openapi: 3.0.3
info:
  title: Crossly Seller API
  version: 1.0.0
  description: "The seller-facing Crossly API — listings, crossposting, orders, analytics. Authenticate with a Personal Access Token (`Authorization: Bearer crossly_pat_…`) or a seller OAuth token (`crossly_oat_…`), scoped `<domain>:<read|write>`. Buyer endpoints are a SEPARATE API with a separate principal — see the Crossly Buyer API."
components:
  schemas:
    AccountIdLabel:
      type: object
      properties:
        accountId:
          type: string
        label:
          type: string
      required:
        - accountId
        - label
      additionalProperties: false
    AmountCurrency:
      type: object
      properties:
        amount:
          type: number
        currency:
          type: string
      required:
        - amount
        - currency
      additionalProperties: false
      nullable: true
    AnalyticExperimentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/AnalyticExperimentResponseData"
      required:
        - data
      additionalProperties: false
    AnalyticExperimentResponseData:
      type: object
      properties:
        hypothesis:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        plannedEndAt:
          type: string
          nullable: true
        stoppedAt:
          type: string
          nullable: true
        conclusion:
          type: string
          nullable: true
        winnerArmId:
          type: string
          nullable: true
        caveat:
          type: string
          enum:
            - before_after
            - cross_marketplace
          nullable: true
        arms:
          type: array
          items:
            $ref: "#/components/schemas/AnalyticExperimentResponseDataArms"
        primary:
          type: array
          items:
            $ref: "#/components/schemas/AnalyticExperimentResponseDataPrimary"
        guardrails:
          type: array
          items:
            $ref: "#/components/schemas/AnalyticExperimentResponseDataPrimary"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/AnalyticExperimentResponseDataDaily"
        recommendation:
          $ref: "#/components/schemas/AnalyticExperimentResponseDataRecommendation"
        id:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - running
            - concluded
            - stopped
        kind:
          type: string
          enum:
            - split
            - sequential
        field:
          type: string
          enum:
            - description
            - category
            - shipping
            - title
            - price
            - photos
            - marketplace
            - other
        startedAt:
          type: string
          nullable: true
        verdict:
          type: string
          enum:
            - insufficient
            - b_better
            - a_better
            - no_difference
            - leading_b
            - leading_a
        primaryMetric:
          type: string
          enum:
            - sale
            - favorite_rate
            - view_to_offer_rate
            - views_per_day
            - favorites_per_day
            - offers_per_day
        daysRunning:
          type: number
        winnerLabel:
          type: string
          nullable: true
      required:
        - arms
        - primary
        - guardrails
        - daily
        - recommendation
        - id
        - name
        - status
        - kind
        - field
        - verdict
        - primaryMetric
        - daysRunning
      additionalProperties: false
    AnalyticExperimentResponseDataArms:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        platform:
          type: string
          nullable: true
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        snapshot:
          type: object
          additionalProperties: {}
        window:
          type: object
          additionalProperties: {}
        exposureDays:
          type: number
        views:
          type: number
          nullable: true
        favorites:
          type: number
          nullable: true
        offers:
          type: number
        sold:
          type: boolean
        daysToSale:
          type: number
          nullable: true
        rates:
          type: object
          additionalProperties: {}
      required:
        - id
        - label
        - title
        - snapshot
        - window
        - exposureDays
        - offers
        - sold
        - rates
      additionalProperties: false
    AnalyticExperimentResponseDataDaily:
      type: object
      properties:
        date:
          type: string
        armId:
          type: string
        views:
          type: number
          nullable: true
        favorites:
          type: number
          nullable: true
        offers:
          type: number
      required:
        - date
        - armId
        - offers
      additionalProperties: false
    AnalyticExperimentResponseDataPrimary:
      type: object
      properties:
        metric:
          type: string
        a:
          type: object
          additionalProperties: {}
        b:
          type: object
          additionalProperties: {}
        lift:
          type: number
          nullable: true
        ci95:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
          nullable: true
        pValue:
          type: number
          nullable: true
        verdict:
          type: string
          enum:
            - insufficient
            - b_better
            - a_better
            - no_difference
            - leading_b
            - leading_a
        reason:
          type: string
          nullable: true
        observational:
          type: boolean
      required:
        - metric
        - a
        - b
        - verdict
        - observational
      additionalProperties: false
    AnalyticExperimentResponseDataRecommendation:
      type: object
      properties:
        action:
          type: string
          enum:
            - keep_running
            - declare_winner
            - stop_no_difference
            - extend
        text:
          type: string
      required:
        - action
        - text
      additionalProperties: false
    AuctionRoom:
      type: object
      properties:
        auction:
          type: string
        room:
          type: string
          nullable: true
      required:
        - auction
      additionalProperties: false
    AverageCount:
      type: object
      properties:
        average:
          type: number
          nullable: true
        count:
          type: number
      required:
        - count
      additionalProperties: false
      description: "1172 ratings: average stars (null before the first) and how many."
    AverageCount2:
      type: object
      properties:
        average:
          type: number
          nullable: true
        count:
          type: number
      required:
        - count
      additionalProperties: false
      nullable: true
    BackfillStaleCatchUp:
      type: object
      properties:
        backfill:
          type: boolean
          nullable: true
        staleCatchUp:
          type: boolean
          nullable: true
      additionalProperties: false
      nullable: true
      description: "Guard 2/3 loosening: act on backfill events; act on a stale catch-up as written."
    BodyRequest:
      type: object
      properties:
        body:
          type: string
      required:
        - body
      additionalProperties: false
    BrandDropResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListBrandDropsItem"
      required:
        - data
      additionalProperties: false
    CodeName:
      type: object
      properties:
        code:
          type: string
        name:
          type: string
      required:
        - code
        - name
      additionalProperties: false
    ColourPattern:
      type: object
      properties:
        colour:
          type: string
          enum:
            - yellow
            - blue
            - green
            - pink
            - purple
            - charcoal
            - red
            - orange
            - teal
            - cream
        pattern:
          type: string
          enum:
            - check
            - stripe
            - solid
            - scallop
      required:
        - colour
        - pattern
      additionalProperties: false
      nullable: true
    ContractName:
      type: object
      properties:
        contract:
          type: string
        name:
          type: string
          nullable: true
      required:
        - contract
      additionalProperties: false
      nullable: true
    CreateAccountCancelDeletionResponse:
      type: object
      properties:
        cancelled:
          type: boolean
        billingResumed:
          type: boolean
      required:
        - cancelled
        - billingResumed
      additionalProperties: false
    CreateAccountIdentityVerificationStartRequest:
      type: object
      properties:
        returnPath:
          type: string
          maxLength: 300
      additionalProperties: false
    CreateAccountLogoutAllResponse:
      type: object
      properties:
        ok:
          type: boolean
        revokedCount:
          type: number
      required:
        - ok
        - revokedCount
      additionalProperties: false
    CreateAccountReconfirmDeletionRequest:
      type: object
      properties:
        confirmEmail:
          type: string
      additionalProperties: false
    CreateAccountReconfirmDeletionResponse:
      type: object
      properties:
        id:
          type: string
        scheduledFor:
          type: string
          format: date-time
        reconfirmed:
          type: boolean
      required:
        - id
        - scheduledFor
        - reconfirmed
      additionalProperties: false
    CreateAccountRequest:
      type: object
      properties:
        platform:
          type: string
        label:
          type: string
        acceptOverage:
          type: boolean
      required:
        - platform
      additionalProperties: false
    CreateAccountRequestDeletionRequest:
      type: object
      properties:
        reason:
          type: string
        confirmEmail:
          type: string
          description: "The account's email address, typed: the same confirmation the dashboard asks for."
      additionalProperties: false
    CreateAccountRequestDeletionResponse:
      type: object
      properties:
        id:
          type: string
        scheduledFor:
          type: string
          format: date-time
        graceDays:
          type: number
        subscriptionsEnding:
          type: number
      required:
        - id
        - scheduledFor
        - graceDays
        - subscriptionsEnding
      additionalProperties: false
    CreateAccountResponse:
      type: object
      properties:
        id:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
        region:
          type: string
        proxyAssigned:
          type: boolean
      required:
        - id
        - platform
        - accountSlot
        - region
        - proxyAssigned
      additionalProperties: false
    CreateActionLogExportRequest:
      type: object
      required:
        - format
      properties:
        format:
          type: string
          enum:
            - csv
            - pdf
            - ndjson
        report:
          type: string
          enum:
            - events
            - summary
          default: events
        filters:
          $ref: "#/components/schemas/CreateActionLogExportRequestFilters"
    CreateActionLogExportRequestFilters:
      type: object
      description: The list filters, applied exactly as the list applies them, for every format and for summary reports.
      properties:
        action:
          type: string
          description: A canonical action key (`listing.delist`, see the public action catalog) or a legacy action word.
        actorUserId:
          type: string
          description: Only what one team member did.
        status:
          type: string
          enum:
            - success
            - failure
        targetType:
          type: string
          description: "With targetId: events about that object (any of their targets)."
        targetId:
          type: string
        area:
          type: string
          enum:
            - listings
            - inventory
            - orders
            - shipping
            - messages
            - automations
            - connections
            - settings
            - billing
            - account
            - emails
          description: "A seller area: every action of that area (the grouped filter of the dashboard)."
        platform:
          type: string
          description: Platform id (`ebay`, `poshmark`, ...).
        category:
          type: string
        source:
          type: string
        q:
          type: string
          maxLength: 512
          description: A search in the activity query language (`action:listing.* -outcome:failure "free text"`), ANDed with the other filters. POST /api/v1/action-log/search/translate turns a question in words into one.
        since:
          type: string
          format: date-time
          description: Inclusive lower bound on when the action happened.
        until:
          type: string
          format: date-time
          description: Exclusive upper bound.
    CreateActionLogSearchTranslateRequest:
      type: object
      required:
        - text
      properties:
        text:
          type: string
          minLength: 1
          maxLength: 2000
          description: The question.
      additionalProperties: false
    CreateActionLogSearchTranslateResponse:
      type: object
      required:
        - q
        - explanation
        - assumptions
        - error
      properties:
        q:
          type: string
          description: The search for the list filter `q`; null when none parsed.
          nullable: true
        explanation:
          type: string
          description: What the search does, in one or two sentences.
        assumptions:
          type: array
          items:
            type: string
          description: Every guess that was made.
        error:
          type: string
          description: Why there is no `q`, when there is none.
          nullable: true
    CreateAdOffsiteCampaignRequest:
      type: object
      properties:
        network:
          type: string
          enum:
            - google
            - tiktok
            - reddit
            - meta
            - pinterest
        category:
          type: string
        title:
          type: string
        priceCents:
          type: number
        landingUrl:
          type: string
        dailyBudgetCents:
          type: number
        listingId:
          type: string
          nullable: true
        condition:
          type: string
        imageUrl:
          type: string
      required:
        - network
        - category
        - title
        - priceCents
        - landingUrl
        - dailyBudgetCents
      additionalProperties: false
    CreateAdOffsiteCampaignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateAdOffsiteCampaignResponseData"
      required:
        - data
      additionalProperties: false
    CreateAdOffsiteCampaignResponseData:
      type: object
      properties:
        campaignId:
          type: string
        network:
          type: string
        status:
          type: string
        creativeHeadline:
          type: string
          nullable: true
        dailyBudgetCents:
          type: number
      required:
        - campaignId
        - network
        - status
        - dailyBudgetCents
      additionalProperties: false
    CreateAdOffsiteResumeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateAdOffsiteResumeResponseData"
      required:
        - data
      additionalProperties: false
    CreateAdOffsiteResumeResponseData:
      type: object
      properties:
        cleared:
          type: boolean
      required:
        - cleared
      additionalProperties: false
    CreateAiCategorizeRequest:
      type: object
      properties:
        imageUrl:
          type: string
      required:
        - imageUrl
      additionalProperties: false
    CreateAiCategorizeResponse:
      type: object
      properties:
        category:
          $ref: "#/components/schemas/ValueConfidence"
        subCategory:
          $ref: "#/components/schemas/ValueConfidence"
        brand:
          $ref: "#/components/schemas/ValueConfidence"
        condition:
          $ref: "#/components/schemas/ValueConfidence"
        colors:
          $ref: "#/components/schemas/CreateAiCategorizeResponseColors"
        size:
          $ref: "#/components/schemas/ValueConfidence"
        tags:
          $ref: "#/components/schemas/CreateAiCategorizeResponseColors"
        suggestedTitle:
          $ref: "#/components/schemas/ValueConfidence"
        material:
          $ref: "#/components/schemas/ValueConfidence"
        style:
          $ref: "#/components/schemas/ValueConfidence"
        pattern:
          $ref: "#/components/schemas/ValueConfidence"
        department:
          $ref: "#/components/schemas/ValueConfidence"
        gender:
          $ref: "#/components/schemas/ValueConfidence"
        itemType:
          $ref: "#/components/schemas/ValueConfidence"
        sizeSystem:
          $ref: "#/components/schemas/ValueConfidence"
      additionalProperties: false
    CreateAiCategorizeResponseColors:
      type: object
      properties:
        value:
          type: array
          items:
            type: string
        confidence:
          type: number
      required:
        - value
        - confidence
      additionalProperties: false
      nullable: true
    CreateAiCopyRequest:
      type: object
      properties:
        action:
          type: string
          enum:
            - ads-copy
            - branding-copy
            - policy-wording
            - lookbook-copy
        kind:
          type: string
        facts:
          type: object
          additionalProperties: {}
        current:
          type: string
          nullable: true
        tone:
          type: string
          enum:
            - minimal
            - friendly
            - playful
            - professional
          nullable: true
        variants:
          type: number
        maxChars:
          type: number
      required:
        - action
        - kind
      additionalProperties: false
    CreateAiCopyResponse:
      type: object
      properties:
        variants:
          type: array
          items:
            type: string
        dropped:
          type: number
      required:
        - variants
        - dropped
      additionalProperties: false
    CreateAiDetectionDisputeResponse:
      type: object
      properties:
        detection:
          $ref: "#/components/schemas/ListListingAiDetectionsItem"
      required:
        - detection
      additionalProperties: false
    CreateAiEnhanceDescriptionRequest:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        brand:
          type: string
        condition:
          type: string
        category:
          type: string
        platformStyle:
          type: string
      required:
        - title
      additionalProperties: false
    CreateAiEnhanceDescriptionResponse:
      type: object
      properties:
        enhancedDescription:
          type: string
      required:
        - enhancedDescription
      additionalProperties: false
    CreateAiEnhanceListingRequest:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        category:
          type: string
        brand:
          type: string
        condition:
          type: string
        imageBase64:
          type: string
      required:
        - title
        - description
      additionalProperties: false
    CreateAiEnhanceListingResponse:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        tags:
          type: array
          items:
            type: string
      required:
        - title
        - description
        - tags
      additionalProperties: false
    CreateAiEnhanceTitleRequest:
      type: object
      properties:
        title:
          type: string
        brand:
          type: string
        category:
          type: string
      required:
        - title
      additionalProperties: false
    CreateAiEnhanceTitleResponse:
      type: object
      properties:
        enhancedTitle:
          type: string
      required:
        - enhancedTitle
      additionalProperties: false
    CreateAiExtractReceiptRequest:
      type: object
      properties:
        imageBase64:
          type: string
      required:
        - imageBase64
      additionalProperties: false
    CreateAiExtractReceiptResponse:
      type: object
      properties:
        error:
          $ref: "#/components/schemas/CreateAiExtractReceiptResponseError"
      required:
        - error
      additionalProperties: false
    CreateAiExtractReceiptResponseError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
          nullable: true
      required:
        - code
      additionalProperties: false
    CreateAiGenerateListingRequest:
      type: object
      properties:
        imageUrls:
          type: array
          items:
            type: string
        brand:
          type: string
        category:
          type: string
        condition:
          type: string
        notes:
          type: string
        model:
          type: string
      required:
        - imageUrls
      additionalProperties: false
    CreateAiHelpRequest:
      type: object
      properties:
        question:
          type: string
        context:
          type: array
          items:
            $ref: "#/components/schemas/CreateAiHelpRequestContext"
        model:
          type: string
      required:
        - question
        - context
      additionalProperties: false
    CreateAiHelpRequestContext:
      type: object
      properties:
        title:
          type: string
        slug:
          type: string
        body:
          type: string
      required:
        - title
        - slug
        - body
      additionalProperties: false
    CreateAiHelpResponse:
      type: object
      properties:
        answer:
          type: string
        sourceSlugs:
          type: array
          items:
            type: string
      required:
        - answer
        - sourceSlugs
      additionalProperties: false
    CreateAiKeyRequest:
      type: object
      properties:
        provider:
          type: string
          enum:
            - custom
            - openai
            - anthropic
            - google
            - groq
            - openrouter
            - xai
            - together
        apiKey:
          type: string
        label:
          type: string
          nullable: true
        customConfig:
          $ref: "#/components/schemas/UpdateAiKeyRequestCustomConfig"
        grants:
          type: array
          items:
            $ref: "#/components/schemas/CreateAiKeyResponseKeyGrants"
        test:
          type: boolean
      required:
        - provider
        - apiKey
      additionalProperties: false
    CreateAiKeyResponse:
      type: object
      properties:
        key:
          $ref: "#/components/schemas/CreateAiKeyResponseKey"
        test:
          $ref: "#/components/schemas/CreateAiKeyResponseTest"
      additionalProperties: false
    CreateAiKeyResponseKey:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
        customConfig:
          $ref: "#/components/schemas/CreateAiKeyResponseKeyCustomConfig"
        lastTestError:
          type: string
          nullable: true
        createdAt:
          type: string
        id:
          type: string
        provider:
          type: string
        label:
          type: string
          nullable: true
        ownerKind:
          type: string
          enum:
            - store
            - personal
        last4:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - ok
            - failing
            - untested
        lastTestedAt:
          type: string
          nullable: true
        lastUsedAt:
          type: string
          nullable: true
        grants:
          type: array
          items:
            $ref: "#/components/schemas/CreateAiKeyResponseKeyGrants"
      required:
        - createdAt
        - id
        - provider
        - ownerKind
        - status
        - grants
      additionalProperties: false
      nullable: true
    CreateAiKeyResponseKeyCustomConfig:
      type: object
      properties:
        baseUrl:
          type: string
        textModel:
          type: string
        visionModel:
          type: string
          nullable: true
        supportsVision:
          type: boolean
        supportsJsonMode:
          type: boolean
      required:
        - baseUrl
        - textModel
        - supportsVision
        - supportsJsonMode
      additionalProperties: false
      nullable: true
    CreateAiKeyResponseKeyGrants:
      type: object
      properties:
        scope:
          type: string
          description: An AI action id, 'image-generate', or '*' (All).
        priority:
          type: number
          description: "Lower runs first: 1 = primary, 2 = first fallback…"
        model:
          type: string
          nullable: true
      required:
        - scope
        - priority
      additionalProperties: false
    CreateAiKeyResponseTest:
      type: object
      properties:
        ok:
          type: boolean
        message:
          type: string
      required:
        - ok
        - message
      additionalProperties: false
      nullable: true
    CreateAiKeyTestRequest:
      type: object
      properties:
        provider:
          type: string
          enum:
            - custom
            - openai
            - anthropic
            - google
            - groq
            - openrouter
            - xai
            - together
        apiKey:
          type: string
        customConfig:
          $ref: "#/components/schemas/UpdateAiKeyRequestCustomConfig"
      required:
        - provider
        - apiKey
      additionalProperties: false
    CreateAiKeyTestResponse:
      type: object
      properties:
        ok:
          type: boolean
        message:
          type: string
      required:
        - ok
        - message
      additionalProperties: false
    CreateAiMagicListingRequest:
      type: object
      properties:
        imagesBase64:
          type: array
          items:
            type: string
        brandHint:
          type: string
        conditionHint:
          type: string
      required:
        - imagesBase64
      additionalProperties: false
    CreateAiMagicListingResponse:
      type: object
      properties:
        description:
          $ref: "#/components/schemas/ValueConfidence"
        suggestedPrice:
          $ref: "#/components/schemas/CreateAiMagicListingResponseSuggestedPrice"
        priceRange:
          $ref: "#/components/schemas/CreateAiMagicListingResponsePriceRange"
        category:
          $ref: "#/components/schemas/ValueConfidence"
        subCategory:
          $ref: "#/components/schemas/ValueConfidence"
        brand:
          $ref: "#/components/schemas/ValueConfidence"
        condition:
          $ref: "#/components/schemas/ValueConfidence"
        colors:
          $ref: "#/components/schemas/CreateAiCategorizeResponseColors"
        size:
          $ref: "#/components/schemas/ValueConfidence"
        tags:
          $ref: "#/components/schemas/CreateAiCategorizeResponseColors"
        suggestedTitle:
          $ref: "#/components/schemas/ValueConfidence"
        material:
          $ref: "#/components/schemas/ValueConfidence"
        style:
          $ref: "#/components/schemas/ValueConfidence"
        pattern:
          $ref: "#/components/schemas/ValueConfidence"
        department:
          $ref: "#/components/schemas/ValueConfidence"
        gender:
          $ref: "#/components/schemas/ValueConfidence"
        itemType:
          $ref: "#/components/schemas/ValueConfidence"
        sizeSystem:
          $ref: "#/components/schemas/ValueConfidence"
      additionalProperties: false
    CreateAiMagicListingResponsePriceRange:
      type: object
      properties:
        value:
          $ref: "#/components/schemas/CreateAiMagicListingResponsePriceRangeValue"
        confidence:
          type: number
      required:
        - value
        - confidence
      additionalProperties: false
      nullable: true
    CreateAiMagicListingResponsePriceRangeValue:
      type: object
      properties:
        low:
          type: number
        high:
          type: number
      required:
        - low
        - high
      additionalProperties: false
    CreateAiMagicListingResponseSuggestedPrice:
      type: object
      properties:
        value:
          type: number
        confidence:
          type: number
      required:
        - value
        - confidence
      additionalProperties: false
      nullable: true
    CreateAiTestKeyResponse:
      type: object
      properties:
        valid:
          type: boolean
        message:
          type: string
      required:
        - valid
        - message
      additionalProperties: false
    CreateAuthSessionSignOutRequest:
      type: object
      required:
        - sessionIds
      properties:
        sessionIds:
          type: array
          minItems: 1
          maxItems: 100
          items:
            type: string
            minLength: 1
            maxLength: 64
    CreateAuthSessionSignOutResponse:
      type: object
      properties:
        signedOut:
          type: array
          items:
            type: string
        notFound:
          type: array
          items:
            type: string
        failed:
          type: array
          items:
            type: string
      required:
        - signedOut
        - notFound
        - failed
      additionalProperties: false
    CreateAutomaticDiscountPreviewRequest:
      type: object
      properties:
        cart:
          type: array
          items:
            $ref: "#/components/schemas/CreateAutomaticDiscountPreviewRequestCart"
        draft:
          $ref: "#/components/schemas/CreateAutomaticDiscountPreviewRequestDraft"
      required:
        - cart
      additionalProperties: false
    CreateAutomaticDiscountPreviewRequestCart:
      type: object
      properties:
        platformListingId:
          type: string
        quantity:
          type: number
        unitPriceCents:
          type: number
      required:
        - platformListingId
        - quantity
      additionalProperties: false
    CreateAutomaticDiscountPreviewRequestDraft:
      type: object
      properties:
        name:
          type: string
        kind:
          type: string
          enum:
            - quantity
            - mix
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/MinQtyPercentBps"
        appliesTo:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestAppliesTo"
        exclusions:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestExclusions"
        channels:
          type: array
          items:
            $ref: "#/components/schemas/CreateAutomaticDiscountPreviewRequestDraftChannelsItem"
        schedule:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesSchedule"
        stacking:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestStacking"
        active:
          type: boolean
      required:
        - name
        - kind
        - tiers
      additionalProperties: false
    CreateAutomaticDiscountPreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateAutomaticDiscountPreviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateAutomaticDiscountPreviewResponseData:
      type: object
      properties:
        subtotalCents:
          type: number
        discountCents:
          type: number
        totalCents:
          type: number
        lines:
          type: array
          items:
            $ref: "#/components/schemas/CreateAutomaticDiscountPreviewResponseDataLines"
      required:
        - subtotalCents
        - discountCents
        - totalCents
        - lines
      additionalProperties: false
    CreateAutomaticDiscountPreviewResponseDataLines:
      type: object
      properties:
        platformListingId:
          type: string
        title:
          type: string
        quantity:
          type: number
        unitPriceCents:
          type: number
        percentBps:
          type: number
        rule:
          type: string
          nullable: true
        discountCents:
          type: number
      required:
        - platformListingId
        - title
        - quantity
        - unitPriceCents
        - percentBps
        - discountCents
      additionalProperties: false
    CreateAutomaticDiscountRequest:
      type: object
      properties:
        name:
          type: string
        kind:
          type: string
          enum:
            - quantity
            - mix
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/MinQtyPercentBps"
        appliesTo:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestAppliesTo"
        exclusions:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestExclusions"
        channels:
          type: array
          items:
            $ref: "#/components/schemas/CreateAutomaticDiscountRequestChannelsItem"
        schedule:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestSchedule"
        stacking:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestStacking"
        active:
          type: boolean
      required:
        - name
        - kind
        - tiers
      additionalProperties: false
    CreateAutomaticDiscountRequestAppliesTo:
      type: object
      properties:
        mode:
          type: string
          enum:
            - all
            - selection
        listingIds:
          type: array
          items:
            type: string
        categories:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
        brands:
          type: array
          items:
            type: string
        conditions:
          type: array
          items:
            type: string
        collectionIds:
          type: array
          items:
            type: string
        catalogIds:
          type: array
          items:
            type: string
        priceMinCents:
          type: number
          nullable: true
        priceMaxCents:
          type: number
          nullable: true
      additionalProperties: false
    CreateAutomaticDiscountRequestExclusions:
      type: object
      properties:
        saleItems:
          type: boolean
        listingIds:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
      additionalProperties: false
    CreateAutomaticDiscountRequestSchedule:
      type: object
      properties:
        startsAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        windows:
          type: array
          items:
            $ref: "#/components/schemas/CreateAutomaticDiscountRequestScheduleWindows"
        timeZone:
          type: string
          enum:
            - store
            - buyer
          description: Whose clock the windows read.
        storeTimeZone:
          type: string
          nullable: true
          description: The store's IANA zone (the api fills it from the store at save time).
      additionalProperties: false
    CreateAutomaticDiscountRequestScheduleWindows:
      type: object
      properties:
        startMinute:
          type: number
        endMinute:
          type: number
        days:
          type: array
          items:
            type: number
          description: 0 = Sunday … 6 = Saturday. Empty = every day.
      required:
        - startMinute
        - endMinute
      additionalProperties: false
    CreateAutomaticDiscountRequestStacking:
      type: object
      properties:
        withAutomatic:
          type: boolean
        withLoyalty:
          type: boolean
        withOtherCodes:
          type: boolean
        priority:
          type: number
          description: Lower runs first when two discounts compete (0..100).
      additionalProperties: false
    CreateAutomaticDiscountResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListAutomaticDiscountsItem"
      required:
        - data
      additionalProperties: false
    CreateAutomationRuleImportRequest:
      type: object
      properties:
        schemaVersion:
          type: number
        name:
          type: string
        trigger:
          $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOfTrigger"
        action:
          $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOfTrigger"
        $schema:
          type: string
        description:
          type: string
        condition:
          $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOfTrigger"
        platforms:
          type: array
          items:
            type: string
        metadata:
          $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOfMetadata"
        recipes:
          type: array
          items:
            $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOf1Recipes"
        exportedAt:
          type: string
      required:
        - schemaVersion
    CreateAutomationRuleImportRequestOneOf1Recipes:
      type: object
      properties:
        schemaVersion:
          type: number
        name:
          type: string
        trigger:
          type: object
          additionalProperties: {}
        action:
          type: object
          additionalProperties: {}
        $schema:
          type: string
          description: Optional reference to the public schema URL — purely cosmetic.
        description:
          type: string
        condition:
          type: object
          description: "Omit or set `type: 'none'` to fire on every match."
          additionalProperties: {}
        platforms:
          type: array
          items:
            type: string
        metadata:
          type: object
          description: Community-library metadata. Server ignores; UI may render.
          additionalProperties: {}
      required:
        - schemaVersion
        - name
        - trigger
        - action
      additionalProperties: false
    CreateAutomationRuleImportRequestOneOfMetadata:
      type: object
      properties:
        author:
          type: string
        sourceUrl:
          type: string
        tags:
          type: array
          items:
            type: string
      additionalProperties: false
      description: Community-library metadata. Server ignores; UI may render.
    CreateAutomationRuleImportRequestOneOfTrigger:
      type: object
      properties:
        type:
          type: string
        config:
          type: object
          additionalProperties: {}
      required:
        - type
      additionalProperties: false
    CreateAutomationRuleImportResponse:
      type: object
      properties:
        created:
          type: array
          items:
            $ref: "#/components/schemas/IdName"
        errors:
          type: array
          items:
            $ref: "#/components/schemas/CreateAutomationRuleImportResponseErrors"
      required:
        - created
        - errors
      additionalProperties: false
    CreateAutomationRuleImportResponseErrors:
      type: object
      properties:
        name:
          type: string
        errors:
          type: array
          items: {}
      required:
        - name
        - errors
      additionalProperties: false
    CreateAutomationRuleRunNowResponse:
      type: object
      properties:
        success:
          type: boolean
        jobId:
          type: string
      required:
        - success
        - jobId
      additionalProperties: false
    CreateAutomationRuleValidateRecipeRequest:
      type: object
      properties:
        schemaVersion:
          type: number
        name:
          type: string
        trigger:
          $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOfTrigger"
        action:
          $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOfTrigger"
        $schema:
          type: string
        description:
          type: string
        condition:
          $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOfTrigger"
        platforms:
          type: array
          items:
            type: string
        metadata:
          $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOfMetadata"
        recipes:
          type: array
          items:
            $ref: "#/components/schemas/CreateAutomationRuleImportRequestOneOf1Recipes"
        exportedAt:
          type: string
      required:
        - schemaVersion
    CreateAutomationRuleValidateRecipeResponse:
      type: object
      properties:
        valid:
          type: boolean
        count:
          type: number
        results:
          type: array
          items:
            $ref: "#/components/schemas/CreateAutomationRuleValidateRecipeResponseResults"
      required:
        - valid
        - count
        - results
      additionalProperties: false
    CreateAutomationRuleValidateRecipeResponseResults:
      type: object
      properties:
        name:
          type: string
        valid:
          type: boolean
        errors:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - name
        - valid
        - errors
      additionalProperties: false
    CreateBillingUpgradeRequest:
      type: object
      required:
        - tier
      properties:
        tier:
          type: string
          enum:
            - starter
            - pro
            - business
            - scale
        interval:
          type: string
          enum:
            - monthly
            - yearly
          default: monthly
        separate:
          type: boolean
          default: false
    CreateBillingUpgradeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateBillingUpgradeResponseData"
      required:
        - data
      additionalProperties: false
    CreateBillingUpgradeResponseData:
      type: object
      properties:
        checkoutUrl:
          type: string
          nullable: true
        tier:
          type: string
          enum:
            - scale
            - business
            - starter
            - pro
        interval:
          type: string
          enum:
            - monthly
            - yearly
        charged:
          type: boolean
      required:
        - tier
        - interval
        - charged
      additionalProperties: false
    CreateBookExpenseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateBookExpenseResponseData"
      required:
        - data
      additionalProperties: false
    CreateBookExpenseResponseData:
      type: object
      properties:
        id:
          type: string
        date:
          type: string
        amountCents:
          type: number
        category:
          type: string
        categoryLabel:
          type: string
        scheduleCLine:
          type: string
        vendor:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        receiptUrl:
          type: string
          nullable: true
        recurring:
          type: string
          enum:
            - monthly
            - yearly
          nullable: true
        recurringUntil:
          type: string
          nullable: true
        source:
          type: string
        sourceRef:
          type: string
          nullable: true
          description: The charge it came from (a billing charge, an interest movement, a grading order); null for manual rows.
        sourceLabel:
          type: string
          description: Where it came from in words ("Crossly ads", "Entered by you").
        crossly:
          type: boolean
          description: "Posted by Crossly for its own charge (audit4 D4): read-only, shown with a Crossly badge."
        possibleDuplicateOf:
          $ref: "#/components/schemas/CreateBookExpenseResponseDataPossibleDuplicateOf"
        createdAt:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
        occurrences:
          type: number
          nullable: true
          description: "In a listed window: how many times it occurs there and what that totals."
        amountInRangeCents:
          type: number
          nullable: true
      required:
        - id
        - date
        - amountCents
        - category
        - categoryLabel
        - scheduleCLine
        - source
        - sourceLabel
        - crossly
      additionalProperties: false
    CreateBookExpenseResponseDataPossibleDuplicateOf:
      type: object
      properties:
        id:
          type: string
        date:
          type: string
        sourceLabel:
          type: string
        description:
          type: string
          nullable: true
      required:
        - id
        - date
        - sourceLabel
      additionalProperties: false
      nullable: true
      description: "On a new manual expense: a Crossly-posted row it may duplicate (same amount within 3 days)."
    CreateBrandDropRequest:
      type: object
      properties:
        name:
          type: string
        dropAt:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        platformListingIds:
          type: array
          items:
            type: string
      required:
        - name
        - dropAt
      additionalProperties: false
    CreateBrandingDropControlRequest:
      type: object
      properties:
        endsAt:
          type: string
      additionalProperties: false
    CreateBrandingDropPublishResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseData"
      required:
        - data
      additionalProperties: false
    CreateBrandingDropPublishResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        status:
          type: string
        phase:
          type: string
          enum:
            - live
            - paused
            - hidden
            - announced
            - countdown
            - over
        format:
          type: string
        placements:
          type: array
          items:
            type: string
        announceAt:
          type: string
          nullable: true
        countdownAt:
          type: string
          nullable: true
        dropAt:
          type: string
        endsAt:
          type: string
          nullable: true
        pausedAt:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        liveStreamId:
          type: string
          nullable: true
        eventId:
          type: string
          nullable: true
        spatialDropId:
          type: string
          nullable: true
        featuredStatus:
          type: string
          nullable: true
        partnerId:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        config:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfig"
        waves:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItemWaves"
        counts:
          $ref: "#/components/schemas/ListBrandingDropsItemCounts"
        unitsAvailable:
          type: number
          nullable: true
          description: Units on offer now (released waves, else the format's units), null = the listings' stock.
        currentPriceCents:
          type: number
          nullable: true
          description: The dutch price right now, else the configured price.
        href:
          type: string
        linkedGroupBuy:
          $ref: "#/components/schemas/ListBrandingDropsItemLinkedGroupBuy"
        restockListings:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItemRestockListings"
          nullable: true
          description: "E5: the drop's Crossly listings with their stock now; only set by getSellerDrop."
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - status
        - phase
        - format
        - placements
        - dropAt
        - config
        - waves
        - counts
        - href
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateBrandingDropPublishResponseDataConfig:
      type: object
      properties:
        what:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfigWhat"
        where:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigWhere"
        format:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfigFormat"
        access:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfigAccess"
        limits:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfigLimits"
        pricing:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigPricing"
        schedule:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigSchedule"
        promotion:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfigPromotion"
        fulfilment:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfigFulfilment"
        after:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigAfter"
        world:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfigWorld"
      required:
        - what
        - where
        - format
        - access
        - limits
        - pricing
        - schedule
        - promotion
        - fulfilment
        - after
      additionalProperties: false
    CreateBrandingDropPublishResponseDataConfigAccess:
      type: object
      properties:
        modes:
          type: array
          items:
            $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfigAccessModesItem"
        earlyAccess:
          type: boolean
          description: Crossly One members and loyalty members with the early_access_drops perk may buy during the countdown.
        loyaltyTierMin:
          type: string
          nullable: true
        tokenGate:
          type: object
          nullable: true
          additionalProperties: {}
        inviteCode:
          type: string
          nullable: true
        regionsAllowed:
          type: array
          items:
            type: string
          nullable: true
        regionsBlocked:
          type: array
          items:
            type: string
          nullable: true
      required:
        - modes
        - earlyAccess
      additionalProperties: false
    CreateBrandingDropPublishResponseDataConfigFormat:
      type: object
      properties:
        kind:
          type: string
          enum:
            - timed
            - auction
            - waitlist
            - limited_stock
            - limited_time
            - first_come
            - raffle
            - preorder
            - dutch
            - waves
        raffle:
          type: object
          nullable: true
          additionalProperties: {}
        auction:
          type: object
          nullable: true
          additionalProperties: {}
        dutch:
          type: object
          nullable: true
          additionalProperties: {}
        waves:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
        preorder:
          type: object
          nullable: true
          additionalProperties: {}
        units:
          type: number
          nullable: true
          description: "limited_stock / first_come: the units on offer (≤ the listings' stock, checked server-side)."
      required:
        - kind
      additionalProperties: false
    CreateBrandingDropPublishResponseDataConfigFulfilment:
      type: object
      properties:
        vaultHeld:
          type: boolean
        localPickup:
          type: boolean
        shipBy:
          type: string
          nullable: true
        preorderWindow:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - vaultHeld
        - localPickup
      additionalProperties: false
    CreateBrandingDropPublishResponseDataConfigLimits:
      type: object
      properties:
        botProtection:
          type: object
          additionalProperties: {}
        cartHoldMinutes:
          type: number
        perBuyer:
          type: number
          nullable: true
        perHousehold:
          type: number
          nullable: true
        perPaymentMethod:
          type: number
          nullable: true
      required:
        - botProtection
        - cartHoldMinutes
      additionalProperties: false
    CreateBrandingDropPublishResponseDataConfigPromotion:
      type: object
      properties:
        featuredRequest:
          type: boolean
        countdownPage:
          type: boolean
        notify:
          type: object
          additionalProperties: {}
        adsCampaignId:
          type: string
          nullable: true
        shareImageUrl:
          type: string
          nullable: true
        pressKitAssetIds:
          type: array
          items:
            type: string
          nullable: true
      required:
        - featuredRequest
        - countdownPage
        - notify
      additionalProperties: false
    CreateBrandingDropPublishResponseDataConfigWhat:
      type: object
      properties:
        kinds:
          type: array
          items:
            $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfigWhatKindsItem"
        listingIds:
          type: array
          items:
            type: string
        variantIds:
          type: array
          items:
            type: string
        bundle:
          type: object
          nullable: true
          additionalProperties: {}
        mysteryBox:
          type: object
          nullable: true
          additionalProperties: {}
        nftTwin:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - kinds
        - listingIds
        - variantIds
      additionalProperties: false
    CreateBrandingDropPublishResponseDataConfigWorld:
      type: object
      properties:
        purchaseFlow:
          type: string
          enum:
            - handoff
            - in_world_cbx
        countdownObject:
          type: boolean
        worldId:
          type: string
          nullable: true
        placeSlug:
          type: string
          nullable: true
        boothSpotIndex:
          type: number
          nullable: true
        displayModelId:
          type: string
          nullable: true
        avatarGate:
          type: object
          nullable: true
          additionalProperties: {}
        eventTieId:
          type: string
          nullable: true
        rewardItemIds:
          type: array
          items:
            type: string
          nullable: true
      required:
        - purchaseFlow
        - countdownObject
      additionalProperties: false
      nullable: true
    CreateBrandingDropRequest:
      type: object
      properties:
        name:
          type: string
        config:
          type: object
          additionalProperties: {}
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
      required:
        - name
        - config
      additionalProperties: false
    CreateBrandingDropResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateBrandingDropResponseData"
      required:
        - data
      additionalProperties: false
    CreateBrandingDropResponseData:
      type: object
      properties:
        drop:
          $ref: "#/components/schemas/CreateBrandingDropResponseDataDrop"
        problems:
          type: array
          items:
            $ref: "#/components/schemas/PathMessage"
      required:
        - drop
        - problems
      additionalProperties: false
    CreateBrandingDropResponseDataDrop:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        status:
          type: string
        phase:
          type: string
          enum:
            - live
            - paused
            - hidden
            - announced
            - countdown
            - over
        format:
          type: string
        placements:
          type: array
          items:
            type: string
        announceAt:
          type: string
          nullable: true
        countdownAt:
          type: string
          nullable: true
        dropAt:
          type: string
        endsAt:
          type: string
          nullable: true
        pausedAt:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        liveStreamId:
          type: string
          nullable: true
        eventId:
          type: string
          nullable: true
        spatialDropId:
          type: string
          nullable: true
        featuredStatus:
          type: string
          nullable: true
        partnerId:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        config:
          $ref: "#/components/schemas/CreateBrandingDropResponseDataDropConfig"
        waves:
          type: array
          items:
            type: object
            additionalProperties: {}
        counts:
          $ref: "#/components/schemas/ListBrandingDropsItemCounts"
        unitsAvailable:
          type: number
          nullable: true
          description: Units on offer now (released waves, else the format's units), null = the listings' stock.
        currentPriceCents:
          type: number
          nullable: true
          description: The dutch price right now, else the configured price.
        href:
          type: string
        linkedGroupBuy:
          $ref: "#/components/schemas/ListBrandingDropsItemLinkedGroupBuy"
        restockListings:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
          description: "E5: the drop's Crossly listings with their stock now; only set by getSellerDrop."
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - status
        - phase
        - format
        - placements
        - dropAt
        - config
        - waves
        - counts
        - href
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateBrandingDropResponseDataDropConfig:
      type: object
      properties:
        what:
          type: object
          additionalProperties: {}
        where:
          type: object
          additionalProperties: {}
        format:
          type: object
          additionalProperties: {}
        access:
          type: object
          additionalProperties: {}
        limits:
          type: object
          additionalProperties: {}
        pricing:
          type: object
          additionalProperties: {}
        schedule:
          type: object
          additionalProperties: {}
        promotion:
          type: object
          additionalProperties: {}
        fulfilment:
          type: object
          additionalProperties: {}
        after:
          type: object
          additionalProperties: {}
        world:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - what
        - where
        - format
        - access
        - limits
        - pricing
        - schedule
        - promotion
        - fulfilment
        - after
      additionalProperties: false
    CreateBrandingDropRestockRunRequest:
      type: object
      properties:
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/MinQtyPriceCents"
        platformListingId:
          type: string
          nullable: true
          description: "One of the drop's platform listings (uuid). Default: the drop's first listing."
        title:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        goalQty:
          type: number
          nullable: true
        minQtyToProceed:
          type: number
        perBuyerMax:
          type: number
        days:
          type: number
        paymentMode:
          type: string
          enum:
            - authorize
            - pay_refund
        priorityHours:
          type: number
          description: How long the drop's entrants have it to themselves.
        shareCopy:
          type: string
          nullable: true
      required:
        - tiers
      additionalProperties: false
    CreateBrandingDropRestockRunResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateBrandingDropRestockRunResponseData"
      required:
        - data
      additionalProperties: false
    CreateBrandingDropRestockRunResponseData:
      type: object
      properties:
        dropId:
          type: string
        groupBuyId:
          type: string
        linkToken:
          type: string
          nullable: true
        sharePath:
          type: string
          description: The buyer link to share (link-only pool).
        goal:
          type: number
        closesAt:
          type: string
        priorityUntil:
          type: string
        entrantsNotified:
          type: number
      required:
        - dropId
        - groupBuyId
        - sharePath
        - goal
        - closesAt
        - priorityUntil
        - entrantsNotified
      additionalProperties: false
    CreateBrandingEventCancelResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateBrandingEventCancelResponseData"
      required:
        - data
      additionalProperties: false
    CreateBrandingEventCancelResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        status:
          type: string
        slug:
          type: string
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
        title:
          type: string
        endsAt:
          type: string
          format: date-time
          nullable: true
        cancelledAt:
          type: string
          format: date-time
          nullable: true
        config:
          type: object
          additionalProperties: {}
        sellerUserId:
          type: string
        coverImageUrl:
          type: string
          nullable: true
        viewCount:
          type: number
        startsAt:
          type: string
          format: date-time
        liveStreamId:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        listingIds:
          type: array
          items:
            type: string
        notifiedAt:
          type: string
          format: date-time
          nullable: true
        discountCodeId:
          type: string
          nullable: true
        cancelReason:
          type: string
          nullable: true
        seriesId:
          type: string
          nullable: true
        capacity:
          type: number
          nullable: true
        locationType:
          type: string
        locationText:
          type: string
          nullable: true
        locationUrl:
          type: string
          nullable: true
        rsvpEnabled:
          type: boolean
        featureOnStorefront:
          type: boolean
        notifyFollowers:
          type: boolean
        recurrence:
          type: object
          nullable: true
          additionalProperties: {}
        cohostUserIds:
          type: array
          items:
            type: string
        ticketingEnabled:
          type: boolean
        checkInEnabled:
          type: boolean
        worldConfig:
          type: object
          nullable: true
          additionalProperties: {}
        worldRef:
          $ref: "#/components/schemas/CreateBrandingEventCancelResponseDataWorldRef"
        remindersSent:
          type: array
          items:
            type: number
      required:
        - id
        - createdAt
        - updatedAt
        - status
        - slug
        - kind
        - title
        - config
        - sellerUserId
        - viewCount
        - startsAt
        - listingIds
        - locationType
        - rsvpEnabled
        - featureOnStorefront
        - notifyFollowers
        - cohostUserIds
        - ticketingEnabled
        - checkInEnabled
        - remindersSent
      additionalProperties: false
    CreateBrandingEventCancelResponseDataWorldRef:
      type: object
      properties:
        kind:
          type: string
        id:
          type: string
      required:
        - kind
        - id
      additionalProperties: false
      nullable: true
    CreateBrandingEventCheckInRequest:
      type: object
      properties:
        qrToken:
          type: string
      required:
        - qrToken
      additionalProperties: false
    CreateBrandingEventCheckInResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateBrandingEventCheckInResponseData"
      required:
        - data
      additionalProperties: false
    CreateBrandingEventCheckInResponseData:
      type: object
      properties:
        ticketId:
          type: string
        tier:
          type: string
          nullable: true
        checkedInAt:
          type: string
      required:
        - ticketId
        - checkedInAt
      additionalProperties: false
    CreateBrandingEventMessageRequest:
      type: object
      properties:
        body:
          type: string
        audience:
          type: string
          enum:
            - all
            - going
            - ticketed
      required:
        - body
      additionalProperties: false
    CreateBrandingEventMessageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateBrandingEventMessageResponseData"
      required:
        - data
      additionalProperties: false
    CreateBrandingEventMessageResponseData:
      type: object
      properties:
        recipients:
          type: number
      required:
        - recipients
      additionalProperties: false
    CreateBreakDrawResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateBreakDrawResponseData"
      required:
        - data
      additionalProperties: false
    CreateBreakDrawResponseData:
      type: object
      properties:
        assigned:
          type: number
      required:
        - assigned
      additionalProperties: false
    CreateBreakRequest:
      type: object
      properties:
        listingSlug:
          type: string
        title:
          type: string
        format:
          type: string
          enum:
            - pick
            - random
        spots: {}
        product:
          type: string
        streamId:
          type: string
      required:
        - listingSlug
        - title
        - format
        - spots
      additionalProperties: false
    CreateBreakResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/IdResponse"
      required:
        - data
      additionalProperties: false
    CreateBreakSpotHitRequest:
      type: object
      properties:
        hits:
          type: string
      required:
        - hits
      additionalProperties: false
    CreateBulkBatchIdentifyRequest:
      type: object
      properties:
        route:
          type: string
          enum:
            - magic
            - market
            - auto
          description: Omit = the batch's route. Given = also stored as the batch's route when itemIds is omitted.
        itemIds:
          type: array
          items:
            type: string
          description: Omit = every item not yet identified.
        magicMode:
          type: string
          enum:
            - auto
            - off
            - review_all
      additionalProperties: false
    CreateBulkBatchIdentifyResponse:
      type: object
      properties:
        queued:
          type: number
        jobId:
          type: string
          nullable: true
      required:
        - queued
      additionalProperties: false
    CreateBulkBatchItemBulkRequest:
      type: object
      properties:
        itemIds:
          type: array
          items:
            type: string
        patch:
          $ref: "#/components/schemas/CreateBulkBatchItemBulkRequestPatch"
      required:
        - itemIds
        - patch
      additionalProperties: false
    CreateBulkBatchItemBulkRequestPatch:
      type: object
      properties:
        priceCents:
          type: number
          nullable: true
        quantity:
          type: number
        costBasisCents:
          type: number
          nullable: true
        condition:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - skipped
            - resolved
        identifyRoute:
          type: string
          enum:
            - magic
            - market
            - auto
          nullable: true
      additionalProperties: false
    CreateBulkBatchItemRequest:
      type: object
      properties:
        imageUrls:
          type: array
          items:
            type: string
          description: Already uploaded (presign); primary first.
        backImageUrl:
          type: string
        scanCaptureId:
          type: string
          description: A guided /scan capture this item came from.
        identifyRoute:
          type: string
          enum:
            - magic
            - market
            - auto
        title:
          type: string
        position:
          type: number
          description: Omit to append at the end.
      required:
        - imageUrls
      additionalProperties: false
    CreateBulkBatchItemResponse:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        variantId:
          type: string
          nullable: true
        quantity:
          type: number
        condition:
          type: string
          nullable: true
        grading:
          $ref: "#/components/schemas/CreateBulkBatchItemResponseGrading"
        costBasisCents:
          type: number
          nullable: true
        title:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        batchId:
          type: string
        error:
          type: string
          nullable: true
        position:
          type: number
        identifyRoute:
          type: string
          nullable: true
        sourceImageUrl:
          type: string
        imageUrls:
          type: array
          items:
            type: string
        cellRegion:
          $ref: "#/components/schemas/CreateBulkBatchItemResponseCellRegion"
        cropUrl:
          type: string
          nullable: true
        backImageUrl:
          type: string
          nullable: true
        backCropUrl:
          type: string
          nullable: true
        anchorKind:
          type: string
          nullable: true
        anchorValue:
          type: string
          nullable: true
        skuId:
          type: string
          nullable: true
        confidence:
          type: number
          nullable: true
        priceSuggestedCents:
          type: number
          nullable: true
        priceCents:
          type: number
          nullable: true
        priceBasis:
          type: string
          nullable: true
        priceSampleSize:
          type: number
          nullable: true
        matchSource:
          type: string
          nullable: true
        magicRunId:
          type: string
          nullable: true
        magicDraftId:
          type: string
          nullable: true
        scanCaptureId:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - status
        - quantity
        - batchId
        - position
        - sourceImageUrl
        - imageUrls
      additionalProperties: false
    CreateBulkBatchItemResponseCellRegion:
      type: object
      properties:
        left:
          type: number
        top:
          type: number
        width:
          type: number
        height:
          type: number
      required:
        - left
        - top
        - width
        - height
      additionalProperties: false
      nullable: true
    CreateBulkBatchItemResponseGrading:
      type: object
      properties:
        graderSlug:
          type: string
        grade:
          type: string
          description: "As the grader writes it: '10', '9.8', 'MS-65'."
        qualifier:
          type: string
          nullable: true
        sealGrade:
          type: string
          nullable: true
          description: Second axis on a `dual` scale — WATA's seal grade.
        certNumber:
          type: string
          nullable: true
        gradeKey:
          type: string
          description: Derived. Never assign by hand — call `gradeKey()`.
        verifiedAt:
          type: string
          nullable: true
      required:
        - graderSlug
        - grade
        - gradeKey
      additionalProperties: false
      nullable: true
    CreateBulkBatchPublishRequest:
      type: object
      properties:
        itemIds:
          type: array
          items:
            type: string
          description: Omit = every publishable row (resolved + drafted).
        destinations:
          type: array
          items:
            type: string
          description: "'crossly' (Market) and/or connected platform ids. Empty = drafts only."
        live:
          type: boolean
          description: false = drafts only (nothing goes live); true = publish to destinations now.
        mergeDuplicates:
          type: boolean
          description: Add quantity to an existing matching listing instead of making a twin. Default on.
      additionalProperties: false
    CreateBulkBatchPublishResponse:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
          description: Every listing the publish produced or added to.
        published:
          type: number
          description: New listings created.
        merged:
          type: array
          items:
            $ref: "#/components/schemas/CreateBulkBatchPublishResponseMerged"
          description: Rows that added quantity to an existing listing instead of a twin.
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/CreateBulkBatchPublishResponseSkipped"
        mergedCount:
          type: number
          description: merged.length, for clients that only show a count.
        bulkJobId:
          type: string
          nullable: true
          description: The tracked crosspost (live only); null for drafts only.
        jobId:
          type: string
          nullable: true
          description: = bulkJobId (the seller app's name).
        live:
          type: boolean
        destinations:
          type: array
          items:
            type: string
      required:
        - listingIds
        - published
        - merged
        - skipped
        - mergedCount
        - live
        - destinations
      additionalProperties: false
    CreateBulkBatchPublishResponseMerged:
      type: object
      properties:
        itemId:
          type: string
        listingId:
          type: string
        addedQuantity:
          type: number
      required:
        - itemId
        - listingId
        - addedQuantity
      additionalProperties: false
    CreateBulkBatchPublishResponseSkipped:
      type: object
      properties:
        itemId:
          type: string
        reason:
          type: string
      required:
        - itemId
        - reason
      additionalProperties: false
    CreateCatalogMatchConfirmResponse:
      type: object
      properties:
        ok:
          type: boolean
        inventoryItemId:
          type: string
          format: uuid
        marketSkuId:
          type: string
          format: uuid
    CreateCbxAccrualPurchaseRequest:
      type: object
      properties:
        subjectId:
          type: string
        paidCents:
          type: number
        externalId:
          type: string
        tierSlug:
          type: string
        target:
          $ref: "#/components/schemas/CreateCbxAccrualPurchaseRequestTarget"
      required:
        - subjectId
        - paidCents
        - externalId
      additionalProperties: false
    CreateCbxAccrualPurchaseRequestTarget:
      type: object
      properties:
        category:
          type: string
        sku:
          type: string
        collection:
          type: string
      additionalProperties: false
    CreateCbxAccrualPurchaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxAccrualPurchaseResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxAccrualPurchaseResponseData:
      type: object
      properties:
        accrualId:
          type: string
          nullable: true
        duplicate:
          type: boolean
        cents:
          type: number
        rateBps:
          type: number
          nullable: true
        source:
          type: string
          enum:
            - tier
            - base
            - boost
          nullable: true
        maturesAt:
          type: string
          nullable: true
        boostBudgetExhausted:
          type: boolean
      required:
        - duplicate
        - cents
        - boostBudgetExhausted
      additionalProperties: false
    CreateCbxAccrualRequest:
      type: object
      properties:
        subjectId:
          type: string
        cents:
          type: number
        sourceExternalId:
          type: string
          description: |-
            Your id for this accrual. Strongly recommended: it is what makes a
            retried webhook a no-op instead of a double credit.
        sourceKind:
          type: string
          enum:
            - campaign
            - merchant_api
        maturationDays:
          type: number
          description: Override the merchant's configured maturation window, in days.
      required:
        - subjectId
        - cents
      additionalProperties: false
    CreateCbxAccrualResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxAccrualResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxAccrualResponseData:
      type: object
      properties:
        duplicate:
          type: boolean
        sourceExternalId:
          type: string
          nullable: true
      required:
        - duplicate
      additionalProperties: false
    CreateCbxAdCreditPurchaseRequest:
      type: object
      properties:
        txSig:
          type: string
          description: The signature of the CBX transfer you sent to our revenue wallet.
      required:
        - txSig
      additionalProperties: false
    CreateCbxAdCreditPurchaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxAdCreditPurchaseResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxAdCreditPurchaseResponseData:
      type: object
      properties:
        creditCents:
          type: number
        baseUnitsPaid:
          type: string
        centsPerToken:
          type: number
        balanceCents:
          type: number
        duplicate:
          type: boolean
      required:
        - creditCents
        - baseUnitsPaid
        - centsPerToken
        - balanceCents
        - duplicate
      additionalProperties: false
    CreateCbxAdCreditQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxAdCreditQuoteResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxAdCreditQuoteResponseData:
      type: object
      properties:
        baseUnits:
          type: string
        creditCents:
          type: number
        centsPerToken:
          type: number
      required:
        - baseUnits
        - creditCents
        - centsPerToken
      additionalProperties: false
    CreateCbxAdCreditSpendRequest:
      type: object
      properties:
        cents:
          type: number
        externalId:
          type: string
        memo:
          type: string
      required:
        - cents
        - externalId
      additionalProperties: false
    CreateCbxAdCreditSpendResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxAdCreditSpendResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxAdCreditSpendResponseData:
      type: object
      properties:
        spentCents:
          type: number
        shortfallCents:
          type: number
        balanceCents:
          type: number
        poolBaseUnits:
          type: string
        duplicate:
          type: boolean
      required:
        - spentCents
        - shortfallCents
        - balanceCents
        - poolBaseUnits
        - duplicate
      additionalProperties: false
    CreateCbxBoostPauseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDiscountCodePauseAllRequest"
      required:
        - data
      additionalProperties: false
    CreateCbxBoostRequest:
      type: object
      properties:
        name:
          type: string
        boostedRateBps:
          type: number
        budgetCents:
          type: number
        startsAt:
          type: string
        endsAt:
          type: string
        targetKind:
          type: string
          enum:
            - all
            - category
            - sku
            - collection
        targetValue:
          type: string
      required:
        - name
        - boostedRateBps
        - budgetCents
        - startsAt
        - endsAt
      additionalProperties: false
    CreateCbxBoostResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxBoostResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxBoostResponseData:
      type: object
      properties:
        boostId:
          type: string
        status:
          type: string
      required:
        - boostId
        - status
      additionalProperties: false
    CreateCbxCampaignExecuteByCampaignIdRequest:
      type: object
      properties:
        executionKey:
          type: string
          description: Makes a retried execution a no-op rather than a second payout.
      required:
        - executionKey
      additionalProperties: false
    CreateCbxCampaignExecuteByCampaignIdResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxCampaignExecuteByCampaignIdResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxCampaignExecuteByCampaignIdResponseData:
      type: object
      properties:
        paidCount:
          type: number
        paidBaseUnits:
          type: string
      required:
        - paidCount
        - paidBaseUnits
      additionalProperties: false
    CreateCbxCampaignPreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxCampaignPreviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxCampaignPreviewResponseData:
      type: object
      properties:
        recipientCount:
          type: number
        totalBaseUnits:
          type: string
        poolBalanceBaseUnits:
          type: string
        hash:
          type: string
        allocations:
          type: array
          items:
            $ref: "#/components/schemas/CreateCbxCampaignPreviewResponseDataAllocations"
        allocationsTruncated:
          type: boolean
      required:
        - recipientCount
        - totalBaseUnits
        - poolBalanceBaseUnits
        - hash
        - allocations
        - allocationsTruncated
      additionalProperties: false
    CreateCbxCampaignPreviewResponseDataAllocations:
      type: object
      properties:
        subjectId:
          type: string
        weight:
          type: string
        baseUnits:
          type: string
      required:
        - subjectId
        - weight
        - baseUnits
      additionalProperties: false
    CreateCbxCampaignRequest:
      type: object
      properties:
        name:
          type: string
        budgetBaseUnits: {}
        windowStart:
          type: string
        windowEnd:
          type: string
        weighting:
          $ref: "#/components/schemas/CreateCbxCampaignRequestWeighting"
        sponsorAccountId:
          type: string
        eligibility:
          $ref: "#/components/schemas/CreateCbxCampaignRequestEligibility"
      required:
        - name
        - budgetBaseUnits
        - windowStart
        - windowEnd
        - weighting
      additionalProperties: false
    CreateCbxCampaignRequestEligibility:
      type: object
      properties:
        minMetric:
          $ref: "#/components/schemas/CreateCbxCampaignRequestEligibilityMinMetric"
      additionalProperties: false
    CreateCbxCampaignRequestEligibilityMinMetric:
      type: object
      properties:
        metric:
          type: string
          enum:
            - accruals_count
            - accrued_cents
            - spend_count
            - spend_base_units
        value:
          type: number
      required:
        - metric
        - value
      additionalProperties: false
    CreateCbxCampaignRequestWeighting:
      type: object
      properties:
        metric:
          type: string
          enum:
            - accruals_count
            - accrued_cents
            - spend_count
            - spend_base_units
        mode:
          type: string
          enum:
            - equal
            - proportional
        capPerSubject:
          type: number
      required:
        - metric
      additionalProperties: false
    CreateCbxCampaignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxCampaignResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxCampaignResponseData:
      type: object
      properties:
        campaignId:
          type: string
        status:
          type: string
      required:
        - campaignId
        - status
      additionalProperties: false
    CreateCbxClaimQuoteRequest:
      type: object
      properties:
        subjectId:
          type: string
        baseUnits: {}
        centsPerToken:
          type: number
        networkCostCents:
          type: number
      required:
        - subjectId
        - baseUnits
        - centsPerToken
      additionalProperties: false
    CreateCbxClaimQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxClaimQuoteResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxClaimQuoteResponseData:
      type: object
      properties:
        requestedBaseUnits:
          type: string
        serviceFeeBaseUnits:
          type: string
        networkFeeBaseUnits:
          type: string
        netBaseUnits:
          type: string
        requestedCents:
          type: number
        serviceFeeCents:
          type: number
        networkFeeCents:
          type: number
        netCents:
          type: number
        appliedBound:
          type: string
      required:
        - requestedBaseUnits
        - serviceFeeBaseUnits
        - networkFeeBaseUnits
        - netBaseUnits
        - requestedCents
        - serviceFeeCents
        - networkFeeCents
        - netCents
        - appliedBound
      additionalProperties: false
    CreateCbxClaimRequest:
      type: object
      properties:
        subjectId:
          type: string
        baseUnits: {}
        centsPerToken:
          type: number
        idempotencyKey:
          type: string
        networkCostCents:
          type: number
      required:
        - subjectId
        - baseUnits
        - centsPerToken
        - idempotencyKey
      additionalProperties: false
    CreateCbxClaimResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxClaimResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxClaimResponseData:
      type: object
      properties:
        claimId:
          type: string
        status:
          type: string
        requestedBaseUnits:
          type: string
        serviceFeeBaseUnits:
          type: string
        networkFeeBaseUnits:
          type: string
        netBaseUnits:
          type: string
      required:
        - claimId
        - status
        - requestedBaseUnits
        - serviceFeeBaseUnits
        - networkFeeBaseUnits
        - netBaseUnits
      additionalProperties: false
    CreateCbxClaimSendResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxClaimSendResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxClaimSendResponseData:
      type: object
      properties:
        status:
          type: string
          enum:
            - confirmed
            - failed
            - unconfirmed
        txSig:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
      required:
        - status
      additionalProperties: false
    CreateCbxCreditDrawRequest:
      type: object
      properties:
        sellerUserId:
          type: string
        cents:
          type: number
        channel:
          type: string
          enum:
            - supplier_order
            - wholesale_lot
            - bulk_purchase
        externalId:
          type: string
      required:
        - sellerUserId
        - cents
        - channel
        - externalId
      additionalProperties: false
    CreateCbxCreditDrawResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxCreditDrawResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxCreditDrawResponseData:
      type: object
      properties:
        movementId:
          type: string
        drawnCents:
          type: number
        baseUnitsGranted:
          type: string
        dueAt:
          type: string
        duplicate:
          type: boolean
      required:
        - movementId
        - drawnCents
        - baseUnitsGranted
        - dueAt
        - duplicate
      additionalProperties: false
    CreateCbxCreditFreezeRequest:
      type: object
      properties:
        sellerUserId:
          type: string
        reason:
          type: string
      required:
        - sellerUserId
        - reason
      additionalProperties: false
    CreateCbxCreditFreezeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxCreditFreezeResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxCreditFreezeResponseData:
      type: object
      properties:
        frozen:
          type: boolean
      required:
        - frozen
      additionalProperties: false
    CreateCbxCreditRefreshResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxCreditRefreshResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxCreditRefreshResponseData:
      type: object
      properties:
        creditLineId:
          type: string
        earnedLimitCents:
          type: number
        stakeBonusCents:
          type: number
        totalLimitCents:
          type: number
        rateBps:
          type: number
        termDays:
          type: number
        status:
          type: string
      required:
        - creditLineId
        - earnedLimitCents
        - stakeBonusCents
        - totalLimitCents
        - rateBps
        - termDays
        - status
      additionalProperties: false
    CreateCbxCreditRepayRequest:
      type: object
      properties:
        sellerUserId:
          type: string
        cents:
          type: number
        kind:
          type: string
          enum:
            - repay_payout
            - repay_invoice
        externalId:
          type: string
        purchaseId:
          type: string
      required:
        - sellerUserId
        - cents
        - kind
        - externalId
      additionalProperties: false
    CreateCbxCreditRepayResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxCreditRepayResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxCreditRepayResponseData:
      type: object
      properties:
        appliedCents:
          type: number
        remainingCents:
          type: number
        duplicate:
          type: boolean
      required:
        - appliedCents
        - remainingCents
        - duplicate
      additionalProperties: false
    CreateCbxDisbursementRuleCheckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxDisbursementRuleCheckResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxDisbursementRuleCheckResponseData:
      type: object
      properties:
        outcome:
          type: string
          enum:
            - coverage
            - cadence
            - no_price
            - inactive
            - fired
            - below_threshold
            - no_recipients
        fired:
          type: boolean
        poolBaseUnits:
          type: string
        thresholdBaseUnits:
          type: string
        distributeBaseUnits:
          type: string
        coverageBps:
          type: number
          nullable: true
        campaignId:
          type: string
          nullable: true
      required:
        - outcome
        - fired
        - poolBaseUnits
        - thresholdBaseUnits
        - distributeBaseUnits
      additionalProperties: false
    CreateCbxDisbursementRuleRequest:
      type: object
      properties:
        name:
          type: string
        thresholdBaseUnits: {}
        distributeBps:
          type: number
        checkCadenceHours:
          type: number
        requireCoverageBps:
          type: number
        metric:
          type: string
        lookbackDays:
          type: number
        maxRecipients:
          type: number
      required:
        - name
        - thresholdBaseUnits
      additionalProperties: false
    CreateCbxDisbursementRuleResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxDisbursementRuleResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxDisbursementRuleResponseData:
      type: object
      properties:
        ruleId:
          type: string
        isActive:
          type: boolean
      required:
        - ruleId
        - isActive
      additionalProperties: false
    CreateCbxEarnTierRequest:
      type: object
      properties:
        slug:
          type: string
        label:
          type: string
        maturationDays:
          type: number
        earnRateBps:
          type: number
        isDefault:
          type: boolean
      required:
        - slug
        - label
        - maturationDays
        - earnRateBps
      additionalProperties: false
    CreateCbxEarnTierResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxEarnTierResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxEarnTierResponseData:
      type: object
      properties:
        slug:
          type: string
        earnRateBps:
          type: number
      required:
        - slug
        - earnRateBps
      additionalProperties: false
    CreateCbxRateQuoteRequest:
      type: object
      properties:
        subjectId:
          type: string
        paidCents:
          type: number
        tierSlug:
          type: string
        target:
          $ref: "#/components/schemas/CreateCbxAccrualPurchaseRequestTarget"
      required:
        - subjectId
        - paidCents
      additionalProperties: false
    CreateCbxRateQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxRateQuoteResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxRateQuoteResponseData:
      type: object
      properties:
        rateBps:
          type: number
        cents:
          type: number
        maturationDays:
          type: number
        source:
          type: string
          enum:
            - tier
            - base
            - boost
        tierSlug:
          type: string
          nullable: true
        boostName:
          type: string
          nullable: true
        stakeBoostBps:
          type: number
        clamped:
          type: boolean
      required:
        - rateBps
        - cents
        - maturationDays
        - source
        - stakeBoostBps
        - clamped
      additionalProperties: false
    CreateCbxRedemptionQuoteRequest:
      type: object
      properties:
        serviceKind:
          type: string
        listPriceCents:
          type: number
      required:
        - serviceKind
        - listPriceCents
      additionalProperties: false
    CreateCbxRedemptionQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxRedemptionQuoteResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxRedemptionQuoteResponseData:
      type: object
      properties:
        serviceKind:
          type: string
          enum:
            - grading
            - authentication
            - subscription
        label:
          type: string
        listPriceCents:
          type: number
        chargedCents:
          type: number
        discountBps:
          type: number
        baseUnits:
          type: string
        centsPerToken:
          type: number
      required:
        - serviceKind
        - label
        - listPriceCents
        - chargedCents
        - discountBps
        - baseUnits
        - centsPerToken
      additionalProperties: false
    CreateCbxRedemptionRequest:
      type: object
      properties:
        serviceKind:
          type: string
        listPriceCents:
          type: number
        subjectId:
          type: string
        externalId:
          type: string
      required:
        - serviceKind
        - listPriceCents
        - subjectId
        - externalId
      additionalProperties: false
    CreateCbxRedemptionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxRedemptionResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxRedemptionResponseData:
      type: object
      properties:
        redemptionId:
          type: string
        duplicate:
          type: boolean
        baseUnits:
          type: string
        chargedCents:
          type: number
        discountBps:
          type: number
      required:
        - redemptionId
        - duplicate
        - baseUnits
        - chargedCents
        - discountBps
      additionalProperties: false
    CreateCbxReserveRequest:
      type: object
      properties:
        reserveTokenAccount:
          type: string
        approveTxSig:
          type: string
      required:
        - reserveTokenAccount
      additionalProperties: false
    CreateCbxReserveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxReserveResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxReserveResponseData:
      type: object
      properties:
        delegationId:
          type: string
        reserveTokenAccount:
          type: string
        reserveOwner:
          type: string
        delegate:
          type: string
        allowanceBaseUnits:
          type: string
        expiresAt:
          type: string
      required:
        - delegationId
        - reserveTokenAccount
        - reserveOwner
        - delegate
        - allowanceBaseUnits
        - expiresAt
      additionalProperties: false
    CreateCbxRevenueSweepRequest:
      type: object
      properties:
        maxBaseUnits:
          description: Cap the sweep. Omit to move everything accrued.
        dryRun:
          type: boolean
          description: Report what would move without moving it.
      additionalProperties: false
    CreateCbxRevenueSweepResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxRevenueSweepResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxRevenueSweepResponseData:
      type: object
      properties:
        swept:
          type: boolean
        baseUnits:
          type: string
        txSig:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
        breakdown:
          $ref: "#/components/schemas/CreateCbxRevenueSweepResponseDataBreakdown"
      required:
        - swept
        - baseUnits
      additionalProperties: false
    CreateCbxRevenueSweepResponseDataBreakdown:
      type: object
      properties:
        reserveBaseUnits:
          type: string
        outstandingBaseUnits:
          type: string
        inFlightBaseUnits:
          type: string
        poolBaseUnits:
          type: string
        accruedRevenueBaseUnits:
          type: string
        freeBaseUnits:
          type: string
        shortfall:
          type: boolean
      required:
        - reserveBaseUnits
        - outstandingBaseUnits
        - inFlightBaseUnits
        - poolBaseUnits
        - accruedRevenueBaseUnits
        - freeBaseUnits
        - shortfall
      additionalProperties: false
      nullable: true
    CreateCbxSpendRequest:
      type: object
      properties:
        subjectId:
          type: string
        baseUnits:
          description: Gross tokens the user is spending, base units as a string.
        crosslyFeeCentsOnOrder:
          type: number
          description: |-
            Your fee on this order, in cents. The margin the skim comes out of
            and is capped against.
        externalId:
          type: string
          description: Your order id. Makes a retried checkout a no-op.
        centsPerToken:
          type: number
          description: Override the oracle spot. Normally omit.
      required:
        - subjectId
        - baseUnits
        - crosslyFeeCentsOnOrder
        - externalId
      additionalProperties: false
    CreateCbxSpendResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxSpendResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxSpendResponseData:
      type: object
      properties:
        spendId:
          type: string
        duplicate:
          type: boolean
        baseUnitsSpent:
          type: string
        skimTotalBaseUnits:
          type: string
        skimEventsBaseUnits:
          type: string
        skimPlatformBaseUnits:
          type: string
        skimCappedByOrderFee:
          type: boolean
        centsPerToken:
          type: number
      required:
        - spendId
        - duplicate
        - baseUnitsSpent
        - skimTotalBaseUnits
        - skimEventsBaseUnits
        - skimPlatformBaseUnits
        - skimCappedByOrderFee
        - centsPerToken
      additionalProperties: false
    CreateCbxSpendReverseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxSpendReverseResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxSpendReverseResponseData:
      type: object
      properties:
        reversed:
          type: boolean
      required:
        - reversed
      additionalProperties: false
    CreateCbxStakeTierRequest:
      type: object
      properties:
        slug:
          type: string
        label:
          type: string
        minBaseUnits: {}
        feeDiscountBps:
          type: number
        earnBoostBps:
          type: number
        cooldownDays:
          type: number
      required:
        - slug
        - label
        - minBaseUnits
      additionalProperties: false
    CreateCbxStakeTierResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxStakeTierResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxStakeTierResponseData:
      type: object
      properties:
        slug:
          type: string
      required:
        - slug
      additionalProperties: false
    CreateCbxSubjectGrantRequest:
      type: object
      properties:
        baseUnits: {}
        kind:
          type: string
          enum:
            - grant_ad_credit
            - grant_wholesale_credit
            - grant_promo
            - grant_makegood
        expiresAt:
          type: string
        batchId:
          type: string
        externalId:
          type: string
        memo:
          type: string
      required:
        - baseUnits
        - kind
      additionalProperties: false
    CreateCbxSubjectGrantResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxSubjectGrantResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxSubjectGrantResponseData:
      type: object
      properties:
        grantId:
          type: string
          nullable: true
        duplicate:
          type: boolean
      required:
        - duplicate
      additionalProperties: false
    CreateCbxSubjectRequest:
      type: object
      properties:
        externalUserId:
          type: string
      required:
        - externalUserId
      additionalProperties: false
    CreateCbxSubjectResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxSubjectResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxSubjectResponseData:
      type: object
      properties:
        subjectId:
          type: string
        externalUserId:
          type: string
        createdAt:
          type: string
          format: date-time
      required:
        - subjectId
        - externalUserId
        - createdAt
      additionalProperties: false
    CreateCbxSubjectSpendPlanRequest:
      type: object
      properties:
        baseUnits: {}
        excludeConnected:
          type: boolean
      required:
        - baseUnits
      additionalProperties: false
    CreateCbxSubjectSpendPlanResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxSubjectSpendPlanResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxSubjectSpendPlanResponseData:
      type: object
      properties:
        legs:
          type: array
          items:
            $ref: "#/components/schemas/CreateCbxSubjectSpendPlanResponseDataLegs"
        shortfallBaseUnits:
          type: string
        fullyFunded:
          type: boolean
      required:
        - legs
        - shortfallBaseUnits
        - fullyFunded
      additionalProperties: false
    CreateCbxSubjectSpendPlanResponseDataLegs:
      type: object
      properties:
        source:
          type: string
          enum:
            - earned
            - connected
            - granted
        baseUnits:
          type: string
      required:
        - source
        - baseUnits
      additionalProperties: false
    CreateCbxSubjectStakeRequest:
      type: object
      properties:
        baseUnits: {}
      required:
        - baseUnits
      additionalProperties: false
    CreateCbxSubjectStakeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxSubjectStakeResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxSubjectStakeResponseData:
      type: object
      properties:
        stakeId:
          type: string
        tierSlug:
          type: string
        baseUnits:
          type: string
        feeDiscountBps:
          type: number
        earnBoostBps:
          type: number
      required:
        - stakeId
        - tierSlug
        - baseUnits
        - feeDiscountBps
        - earnBoostBps
      additionalProperties: false
    CreateCbxSubjectStakeUnstakeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxSubjectStakeUnstakeResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxSubjectStakeUnstakeResponseData:
      type: object
      properties:
        unlocksAt:
          type: string
        cooldownDays:
          type: number
        baseUnits:
          type: string
      required:
        - unlocksAt
        - cooldownDays
        - baseUnits
      additionalProperties: false
    CreateCbxWalletChallengeRequest:
      type: object
      properties:
        subjectId:
          type: string
        address:
          type: string
      required:
        - subjectId
        - address
      additionalProperties: false
    CreateCbxWalletChallengeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxWalletChallengeResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxWalletChallengeResponseData:
      type: object
      properties:
        walletId:
          type: string
        message:
          type: string
          description: The exact text to present for signing.
        nonce:
          type: string
        expiresInMs:
          type: number
      required:
        - walletId
        - message
        - nonce
        - expiresInMs
      additionalProperties: false
    CreateCbxWalletPaymentConfirmRequest:
      type: object
      properties:
        externalId:
          type: string
        txSig:
          type: string
        subjectId:
          type: string
        valueCents:
          type: number
      required:
        - externalId
        - txSig
      additionalProperties: false
    CreateCbxWalletPaymentConfirmResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxWalletPaymentConfirmResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxWalletPaymentConfirmResponseData:
      type: object
      properties:
        paymentId:
          type: string
        duplicate:
          type: boolean
        releaseDecision:
          type: string
          enum:
            - release
            - review
            - refuse
        releaseReason:
          type: string
        baseUnits:
          type: string
        valueCents:
          type: number
        centsPerToken:
          type: number
        payerAddress:
          type: string
        riskLevel:
          type: string
          nullable: true
        riskExposures:
          type: array
          items:
            type: string
        screeningProvider:
          type: string
          nullable: true
      required:
        - paymentId
        - duplicate
        - releaseDecision
        - releaseReason
        - baseUnits
        - valueCents
        - centsPerToken
        - payerAddress
        - riskExposures
      additionalProperties: false
    CreateCbxWalletPaymentQuoteRequest:
      type: object
      properties:
        payerAddress:
          type: string
          description: The buyer's wallet. They will sign; no prior registration needed.
        valueCents:
          type: number
      required:
        - payerAddress
        - valueCents
      additionalProperties: false
    CreateCbxWalletPaymentQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxWalletPaymentQuoteResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxWalletPaymentQuoteResponseData:
      type: object
      properties:
        transactionBase64:
          type: string
        baseUnits:
          type: string
        valueCents:
          type: number
        centsPerToken:
          type: number
        sourceTokenAccount:
          type: string
        destinationTokenAccount:
          type: string
        destinationOwner:
          type: string
        recentBlockhash:
          type: string
        lastValidBlockHeight:
          type: number
        payerCanCover:
          type: boolean
          nullable: true
      required:
        - transactionBase64
        - baseUnits
        - valueCents
        - centsPerToken
        - sourceTokenAccount
        - destinationTokenAccount
        - destinationOwner
        - recentBlockhash
        - lastValidBlockHeight
      additionalProperties: false
    CreateCbxWalletPaymentResolveRequest:
      type: object
      properties:
        decision:
          type: string
          enum:
            - release
            - refuse
        note:
          type: string
        reviewedBy:
          type: string
          description: |-
            Who reviewed it, as the MERCHANT identifies them.

            Opaque and unverifiable, and it has to be. This surface
            authenticates a `cbx_` merchant key, not a Crossly user session —
            there is no person for us to authenticate, because the reviewer
            works for the merchant. Asking them to name the reviewer and
            storing it verbatim is honest; inventing an identity from the API
            key would record a credential as if it were a person.
      required:
        - decision
        - note
        - reviewedBy
      additionalProperties: false
    CreateCbxWalletPaymentResolveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxWalletPaymentResolveResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxWalletPaymentResolveResponseData:
      type: object
      properties:
        resolved:
          type: boolean
      required:
        - resolved
      additionalProperties: false
    CreateCbxWalletVerifyRequest:
      type: object
      properties:
        subjectId:
          type: string
        walletId:
          type: string
        signature:
          type: string
      required:
        - subjectId
        - walletId
        - signature
      additionalProperties: false
    CreateCbxWalletVerifyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCbxWalletVerifyResponseData"
      required:
        - data
      additionalProperties: false
    CreateCbxWalletVerifyResponseData:
      type: object
      properties:
        verified:
          type: boolean
      required:
        - verified
      additionalProperties: false
    CreateCompWatchlistRequest:
      type: object
      properties:
        name:
          type: string
        brand: {}
        categoryMain: {}
        platform: {}
        condition: {}
        minPrice:
          type: number
          nullable: true
        maxPrice:
          type: number
          nullable: true
      required:
        - name
      additionalProperties: false
    CreateCompWatchlistScrapeResponse:
      type: object
      properties:
        scraped:
          type: number
        new:
          type: number
        matched:
          type: number
      required:
        - scraped
        - new
        - matched
      additionalProperties: false
    CreateConnectionCardnexusApiKeyResponse:
      type: object
      properties:
        accountId:
          type: string
        username:
          type: string
        sellerCurrency:
          type: string
          nullable: true
        sellerStatus:
          type: string
          enum:
            - live
            - staged
          nullable: true
        mode:
          type: string
          enum:
            - api_key
            - integration
        connected:
          type: boolean
        platform:
          type: string
      required:
        - accountId
        - username
        - mode
        - connected
        - platform
      additionalProperties: false
    CreateConnectionEmailCheckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateConnectionEmailCheckResponseData"
      required:
        - data
      additionalProperties: false
    CreateConnectionEmailCheckResponseData:
      type: object
      properties:
        ok:
          type: boolean
        reason:
          type: string
          enum:
            - timeout
            - auth
            - provider_unavailable
            - no_password
            - unsafe_host
            - unreachable
            - tls
            - no_inbox
          nullable: true
          description: Why it failed, as a code; null when it worked.
        message:
          type: string
          description: A sentence for the seller.
        scanQueued:
          type: boolean
          description: A scan was asked for (signed in, not paused, not a forwarding address).
      required:
        - ok
        - message
        - scanQueued
      additionalProperties: false
    CreateConnectionEmailImapRequest:
      type: object
      required:
        - host
        - username
        - password
      properties:
        host:
          type: string
        port:
          type: integer
          default: 993
        username:
          type: string
        password:
          type: string
        preset:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        watchedPlatforms:
          type: array
          items:
            $ref: "#/components/schemas/CreateConnectionEmailImapRequestWatchedPlatformsItem"
          nullable: true
    CreateConnectionEmailImapResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListConnectionEmailItem"
        success:
          type: boolean
        id:
          type: string
      required:
        - data
        - success
        - id
      additionalProperties: false
    CreateConnectionEmailImapTestRequest:
      type: object
      required:
        - host
        - username
        - password
      properties:
        host:
          type: string
        port:
          type: integer
          default: 993
        username:
          type: string
        password:
          type: string
    CreateConnectionEmailImapTestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateAiKeyTestResponse"
        success:
          type: boolean
      required:
        - data
        - success
      additionalProperties: false
    CreateConnectionLightspeedXTokenRequest:
      type: object
      required:
        - domainPrefix
        - accessToken
      properties:
        domainPrefix:
          type: string
        accessToken:
          type: string
    CreateConnectionLightspeedXTokenResponse:
      type: object
      properties:
        store:
          type: string
          nullable: true
        outlet:
          type: string
        outlets:
          type: number
      required:
        - outlet
        - outlets
      additionalProperties: false
    CreateConnectionStoreAttachRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - api
            - cookie
        connectionId:
          type: string
        storefrontId:
          type: string
          description: Another of the owner's stores instead of the request's (owner only).
      required:
        - kind
        - connectionId
      additionalProperties: false
    CreateConnectionStoreAttachResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateConnectionStoreAttachResponseData"
      required:
        - data
      additionalProperties: false
    CreateConnectionStoreAttachResponseData:
      type: object
      properties:
        attached:
          type: boolean
      required:
        - attached
      additionalProperties: false
    CreateConnectionStoreCopyRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - api
            - cookie
        connectionId:
          type: string
        storefrontIds:
          type: array
          items:
            type: string
      required:
        - kind
        - connectionId
        - storefrontIds
      additionalProperties: false
    CreateConnectionStoreCopyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateConnectionStoreCopyResponseData"
      required:
        - data
      additionalProperties: false
    CreateConnectionStoreCopyResponseData:
      type: object
      properties:
        added:
          type: array
          items:
            type: string
      required:
        - added
      additionalProperties: false
    CreateConnectionStoreDetachResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateConnectionStoreDetachResponseData"
      required:
        - data
      additionalProperties: false
    CreateConnectionStoreDetachResponseData:
      type: object
      properties:
        removed:
          type: boolean
        remaining:
          type: number
      required:
        - removed
        - remaining
      additionalProperties: false
    CreateConversationMessageRequest:
      type: object
      required:
        - body
      properties:
        body:
          type: string
          minLength: 1
          maxLength: 8000
    CreateConversationMessageResponse:
      type: object
      properties:
        id:
          type: string
        conversationId:
          type: string
        sender:
          type: string
        body:
          type: string
        sentAt:
          type: string
          format: date-time
        deliveryStatus:
          type: string
          enum:
            - sending
            - sent
            - failed
          nullable: true
        jobId:
          type: string
      required:
        - id
        - conversationId
        - sender
        - body
        - sentAt
        - jobId
      additionalProperties: false
    CreateCosmAttestationAnchorRequest:
      type: object
      properties:
        chainSignature:
          type: string
      required:
        - chainSignature
      additionalProperties: false
    CreateCosmAttestationAnchorResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmAttestationAnchorResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmAttestationAnchorResponseData:
      type: object
      properties:
        recorded:
          type: boolean
      required:
        - recorded
      additionalProperties: false
    CreateCosmAuctionRequest:
      type: object
      properties:
        subjectId:
          type: string
        ownershipId:
          type: string
        askBaseUnits:
          type: string
          description: Base units, as a string. See the module docblock.
        expiresAt:
          type: string
      required:
        - subjectId
        - ownershipId
        - askBaseUnits
      additionalProperties: false
    CreateCosmAuctionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmAuctionResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmAuctionResponseData:
      type: object
      properties:
        listingId:
          type: string
        askBaseUnits:
          type: string
        feeBaseUnits:
          type: string
        netBaseUnits:
          type: string
        status:
          type: string
      required:
        - listingId
        - askBaseUnits
        - feeBaseUnits
        - netBaseUnits
        - status
      additionalProperties: false
    CreateCosmCosmeticBuyCbxRequest:
      type: object
      properties:
        subjectId:
          type: string
        requestKey:
          type: string
      required:
        - subjectId
        - requestKey
      additionalProperties: false
    CreateCosmCosmeticBuyCbxResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmCosmeticBuyCbxResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmCosmeticBuyCbxResponseData:
      type: object
      properties:
        ownership:
          $ref: "#/components/schemas/CreateCosmCosmeticBuyCbxResponseDataOwnership"
        ownerships:
          type: array
          items:
            $ref: "#/components/schemas/CreateCosmCosmeticBuyCbxResponseDataOwnership"
        paidCents:
          type: number
        paidBaseUnits:
          type: string
      required:
        - ownership
        - ownerships
        - paidCents
        - paidBaseUnits
      additionalProperties: false
    CreateCosmCosmeticBuyCbxResponseDataOwnership:
      type: object
      properties:
        id:
          type: string
        acquiredAt:
          type: string
          format: date-time
        cosmeticId:
          type: string
        merchantId:
          type: string
        retiredAt:
          type: string
          format: date-time
          nullable: true
        subjectId:
          type: string
        acquiredVia:
          type: string
        bound:
          type: boolean
        paidCents:
          type: number
          nullable: true
        ledgerId:
          type: string
          nullable: true
        editionNumber:
          type: number
          nullable: true
        paymentRef:
          type: string
          nullable: true
        retiredReason:
          type: string
          nullable: true
        requestRef:
          type: string
          nullable: true
      required:
        - id
        - acquiredAt
        - cosmeticId
        - merchantId
        - subjectId
        - acquiredVia
        - bound
      additionalProperties: false
    CreateCosmCosmeticBuyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmCosmeticBuyResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmCosmeticBuyResponseData:
      type: object
      properties:
        ownershipId:
          type: string
        cosmeticId:
          type: string
        editionNumber:
          type: number
          nullable: true
        bound:
          type: boolean
        burnedBaseUnits:
          type: string
      required:
        - ownershipId
        - cosmeticId
        - bound
        - burnedBaseUnits
      additionalProperties: false
    CreateCosmCosmeticClaimResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmCosmeticClaimResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmCosmeticClaimResponseData:
      type: object
      properties:
        granted:
          type: boolean
        ownershipId:
          type: string
          nullable: true
        editionNumber:
          type: number
          nullable: true
        bound:
          type: boolean
        tenureDays:
          type: number
        requiredDays:
          type: number
      required:
        - granted
        - bound
        - tenureDays
        - requiredDays
      additionalProperties: false
    CreateCosmDesignerChainAutoUnlockRequest:
      type: object
      properties:
        cosmeticId:
          type: string
        subjectId:
          type: string
        enabled:
          type: boolean
      required:
        - cosmeticId
        - subjectId
        - enabled
      additionalProperties: false
    CreateCosmDesignerChainAutoUnlockResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmDesignerChainAutoUnlockResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmDesignerChainAutoUnlockResponseData:
      type: object
      properties:
        cosmeticId:
          type: string
        enabled:
          type: boolean
        popularity:
          $ref: "#/components/schemas/CreateCosmDesignerChainAutoUnlockResponseDataPopularity"
      required:
        - cosmeticId
        - enabled
        - popularity
      additionalProperties: false
    CreateCosmDesignerChainAutoUnlockResponseDataPopularity:
      type: object
      properties:
        holders:
          type: number
          description: Distinct people holding a live copy.
        issued:
          type: number
          description: Copies issued so far (editions claimed).
        maxSupply:
          type: number
          nullable: true
          description: The design's edition cap. Null = open edition, never eligible (minting it means nothing).
        resales:
          type: number
          description: Copies resold between players (closed auction sales).
        inUse:
          type: number
          description: People wearing / placing it right now.
        progress:
          type: number
        passed:
          type: boolean
        why:
          type: string
          nullable: true
      required:
        - holders
        - issued
        - resales
        - inUse
        - progress
        - passed
      additionalProperties: false
    CreateCosmDesignerChainUnlockRequest:
      type: object
      properties:
        subjectId:
          type: string
        cosmeticId:
          type: string
      required:
        - subjectId
        - cosmeticId
      additionalProperties: false
    CreateCosmDesignerChainUnlockResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmDesignerChainUnlockResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmDesignerChainUnlockResponseData:
      type: object
      properties:
        unlockId:
          type: string
        charged:
          type: boolean
        feeBaseUnits:
          type: string
      required:
        - unlockId
        - charged
        - feeBaseUnits
      additionalProperties: false
    CreateCosmDesignerMaterialiseConfirmRequest:
      type: object
      properties:
        mintRequestId:
          type: string
        mintAddress:
          type: string
        txSig:
          type: string
      required:
        - mintRequestId
        - mintAddress
        - txSig
      additionalProperties: false
    CreateCosmDesignerMaterialiseConfirmResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmDesignerMaterialiseConfirmResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmDesignerMaterialiseConfirmResponseData:
      type: object
      properties:
        mintAddress:
          type: string
        ownershipVoided:
          type: boolean
      required:
        - mintAddress
        - ownershipVoided
      additionalProperties: false
    CreateCosmDesignerMaterialiseReleaseRequest:
      type: object
      properties:
        mintRequestId:
          type: string
        reason:
          type: string
      required:
        - mintRequestId
        - reason
      additionalProperties: false
    CreateCosmDesignerMaterialiseRequest:
      type: object
      properties:
        subjectId:
          type: string
        ownershipId:
          type: string
        destinationOwner:
          type: string
          description: The holder's OWN wallet. The platform never holds the NFT.
      required:
        - subjectId
        - ownershipId
        - destinationOwner
      additionalProperties: false
    CreateCosmDesignerMaterialiseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmDesignerMaterialiseResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmDesignerMaterialiseResponseData:
      type: object
      properties:
        mintRequestId:
          type: string
        transactionBase64:
          type: string
        assetAddress:
          type: string
        assetSignerSecretBase64:
          type: string
        metadataUri:
          type: string
        metadataSha256:
          type: string
        recentBlockhash:
          type: string
        lastValidBlockHeight:
          type: number
        expiresAt:
          type: string
      required:
        - mintRequestId
        - transactionBase64
        - assetAddress
        - assetSignerSecretBase64
        - metadataUri
        - metadataSha256
        - recentBlockhash
        - lastValidBlockHeight
        - expiresAt
      additionalProperties: false
    CreateCosmDesignerSubmitForReviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmDesignerSubmitForReviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmDesignerSubmitForReviewResponseData:
      type: object
      properties:
        reviewId:
          type: string
        state:
          type: string
        created:
          type: boolean
        submittedAt:
          type: string
          format: date-time
      required:
        - reviewId
        - state
        - created
        - submittedAt
      additionalProperties: false
    CreateCosmDesignerTermRequest:
      type: object
      properties:
        subjectId:
          type: string
        cosmeticId:
          type: string
        resaleAllowed:
          type: boolean
        maxResaleBaseUnits:
          type: string
          nullable: true
        minResaleBaseUnits:
          type: string
          nullable: true
        secondaryRoyaltyBps:
          type: number
        splits:
          type: array
          items:
            $ref: "#/components/schemas/CreateCosmDesignerTermRequestSplits"
      required:
        - subjectId
        - cosmeticId
      additionalProperties: false
    CreateCosmDesignerTermRequestSplits:
      type: object
      properties:
        recipientSubjectId:
          type: string
        shareBps:
          type: number
        memo:
          type: string
          nullable: true
      required:
        - recipientSubjectId
        - shareBps
      additionalProperties: false
    CreateCosmDesignerTermResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmDesignerTermResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmDesignerTermResponseData:
      type: object
      properties:
        policyId:
          type: string
        version:
          type: number
      required:
        - policyId
        - version
      additionalProperties: false
    CreateCosmFusionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmFusionResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmFusionResponseData:
      type: object
      properties:
        ownershipId:
          type: string
        cosmeticId:
          type: string
        editionNumber:
          type: number
          nullable: true
        burnedBaseUnits:
          type: string
      required:
        - ownershipId
        - cosmeticId
        - burnedBaseUnits
      additionalProperties: false
    CreateCosmHandleRequest:
      type: object
      properties:
        subjectId:
          type: string
        handle:
          type: string
      required:
        - subjectId
        - handle
      additionalProperties: false
    CreateCosmHandleResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmHandleResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmHandleResponseData:
      type: object
      properties:
        handle:
          type: string
        burnedBaseUnits:
          type: string
      required:
        - handle
        - burnedBaseUnits
      additionalProperties: false
    CreateCosmWithdrawalRequest:
      type: object
      properties:
        subjectId:
          type: string
        baseUnits:
          type: string
        externalId:
          type: string
      required:
        - subjectId
        - baseUnits
        - externalId
      additionalProperties: false
    CreateCosmWithdrawalResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCosmWithdrawalResponseData"
      required:
        - data
      additionalProperties: false
    CreateCosmWithdrawalResponseData:
      type: object
      properties:
        id:
          type: string
        baseUnits:
          type: string
        destinationAddress:
          type: string
        status:
          type: string
      required:
        - id
        - baseUnits
        - destinationAddress
        - status
      additionalProperties: false
    CreateCreatorCardGamePublishResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorCardGamePublishResponseData"
      required:
        - data
      additionalProperties: false
    CreateCreatorCardGamePublishResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        updatedAt:
          type: string
        check:
          $ref: "#/components/schemas/ListCreatorCardGamesItemCheck"
        publishedAt:
          type: string
          nullable: true
        submitted:
          $ref: "#/components/schemas/CreateCreatorCardGamePublishResponseDataSubmitted"
        gameId:
          type: string
        sets:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCardGamesItemSets"
          description: The picked sets, as the creator knows them (missing ones dropped; the check names them).
        setCode:
          type: string
        publishedVersion:
          type: number
          nullable: true
        publishedSemver:
          type: string
          nullable: true
        coverCards:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCardGamesItemCoverCards"
          description: "The picked cards that have art: what the cover can be (`cover: { kind: 'card', cardId }`)."
        spec:
          $ref: "#/components/schemas/ListCreatorCardGamesItemSpec"
      required:
        - id
        - name
        - updatedAt
        - check
        - submitted
        - gameId
        - sets
        - setCode
        - coverCards
        - spec
      additionalProperties: false
    CreateCreatorCardGamePublishResponseDataSubmitted:
      type: object
      properties:
        gameId:
          type: string
        version:
          type: number
        status:
          type: string
      required:
        - gameId
        - version
        - status
      additionalProperties: false
    CreateCreatorCardSetArtRequest:
      type: object
      properties:
        pngBase64:
          type: string
      required:
        - pngBase64
      additionalProperties: false
    CreateCreatorCardSetPublishResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorCardSetPublishResponseData"
      required:
        - data
      additionalProperties: false
    CreateCreatorCardSetPublishResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        updatedAt:
          type: string
        check:
          $ref: "#/components/schemas/CreatorCardSetResponseDataCheck"
        publishedAt:
          type: string
          nullable: true
        submitted:
          $ref: "#/components/schemas/CreateCreatorCardGamePublishResponseDataSubmitted"
        gameId:
          type: string
        setCode:
          type: string
        publishedVersion:
          type: number
          nullable: true
        publishedSemver:
          type: string
          nullable: true
        draft:
          $ref: "#/components/schemas/CreatorCardSetResponseDataDraft"
      required:
        - id
        - name
        - updatedAt
        - check
        - submitted
        - gameId
        - setCode
        - draft
      additionalProperties: false
    CreateCreatorCardSetRequest:
      type: object
      properties:
        gameId:
          type: string
        setCode:
          type: string
        name:
          type: string
      required:
        - gameId
        - setCode
        - name
      additionalProperties: false
    CreateCreatorCreationSubmitRequest:
      type: object
      properties:
        previewImageUrl:
          type: string
      additionalProperties: false
    CreateCreatorCreationSubmitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorCreationSubmitResponseData"
      required:
        - data
      additionalProperties: false
    CreateCreatorCreationSubmitResponseData:
      type: object
      properties:
        ref:
          type: string
        format:
          type: string
          enum:
            - wearable
            - model
            - decor
            - interactive
            - card
            - classic_game
            - card_game
        id:
          type: string
      required:
        - ref
        - format
        - id
      additionalProperties: false
    CreateCreatorExperienceKeyRequest:
      type: object
      properties:
        name:
          type: string
        scopes:
          type: array
          items:
            type: string
        ipAllowlist:
          type: array
          items:
            type: string
        experienceIds:
          type: array
          items:
            type: string
        environment:
          type: string
          enum:
            - live
            - test
        expiresInDays:
          type: number
          nullable: true
      required:
        - name
        - scopes
        - ipAllowlist
      additionalProperties: false
    CreateCreatorExperienceKeyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorExperienceKeyResponseData"
      required:
        - data
      additionalProperties: false
    CreateCreatorExperienceKeyResponseData:
      type: object
      properties:
        key:
          $ref: "#/components/schemas/ListCreatorExperienceKeysItem"
        token:
          type: string
      required:
        - key
        - token
      additionalProperties: false
    CreateCreatorExperienceKeyResponseN201:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorExperienceKeyResponseN201Data"
    CreateCreatorExperienceKeyResponseN201Data:
      type: object
      properties:
        key:
          $ref: "#/components/schemas/CreateCreatorExperienceKeyResponseN201DataKey"
        token:
          type: string
    CreateCreatorExperienceKeyResponseN201DataKey:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        prefix:
          type: string
        environment:
          type: string
        scopes:
          type: array
          items:
            type: string
        experienceIds:
          type: array
          items:
            type: string
        ipAllowlist:
          type: array
          items:
            type: string
        expiresAt:
          type: string
          nullable: true
        lastUsedAt:
          type: string
          nullable: true
        lastUsedIp:
          type: string
          nullable: true
        rotatedFromId:
          type: string
          nullable: true
        createdAt:
          type: string
    CreateCreatorExperienceKeyRotateRequest:
      type: object
      properties:
        overlapHours:
          type: number
      additionalProperties: false
    CreateCreatorExperienceKeyRotateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorExperienceKeyRotateResponseData"
      required:
        - data
      additionalProperties: false
    CreateCreatorExperienceKeyRotateResponseData:
      type: object
      properties:
        key:
          $ref: "#/components/schemas/ListCreatorExperienceKeysItem"
        token:
          type: string
        previous:
          $ref: "#/components/schemas/ListCreatorExperienceKeysItem"
      required:
        - key
        - token
        - previous
      additionalProperties: false
    CreateCreatorExperienceKeyRotateResponseN201:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorExperienceKeyRotateResponseN201Data"
    CreateCreatorExperienceKeyRotateResponseN201Data:
      type: object
      properties:
        key:
          $ref: "#/components/schemas/CreateCreatorExperienceKeyResponseN201DataKey"
        token:
          type: string
        previous:
          $ref: "#/components/schemas/CreateCreatorExperienceKeyResponseN201DataKey"
    CreateCreatorImportCommitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorImportCommitResponseData"
      required:
        - data
      additionalProperties: false
    CreateCreatorImportCommitResponseData:
      type: object
      properties:
        importId:
          type: string
        created:
          type: array
          items:
            $ref: "#/components/schemas/CreateCreatorImportCommitResponseDataCreated"
        pending:
          type: array
          items:
            $ref: "#/components/schemas/CreateCreatorImportCommitResponseDataPending"
          description: Items that need a file in their editor (models, decor, interactive) or failed with a reason.
      required:
        - importId
        - created
        - pending
      additionalProperties: false
    CreateCreatorImportCommitResponseDataCreated:
      type: object
      properties:
        ref:
          type: string
        name:
          type: string
        editHref:
          type: string
      required:
        - ref
        - name
        - editHref
      additionalProperties: false
    CreateCreatorImportCommitResponseDataPending:
      type: object
      properties:
        index:
          type: number
        name:
          type: string
        reason:
          type: string
      required:
        - index
        - name
        - reason
      additionalProperties: false
    CreateCreatorImportRequest:
      type: object
      properties:
        manifest:
          type: string
        texts:
          type: object
          additionalProperties: {}
        paths:
          type: array
          items:
            type: string
      required:
        - manifest
      additionalProperties: false
    CreateCreatorItemModelCheckRequest:
      type: object
      properties:
        glbBase64:
          type: string
        use:
          type: string
          enum:
            - wearable
            - prop
      required:
        - glbBase64
      additionalProperties: false
    CreateCreatorItemModelCheckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListCreatorItemModelsItemReport"
      required:
        - data
      additionalProperties: false
    CreateCreatorItemModelRequest:
      type: object
      properties:
        glbBase64:
          type: string
        name:
          type: string
        use:
          type: string
          enum:
            - wearable
            - prop
      required:
        - glbBase64
        - name
      additionalProperties: false
    CreateCreatorItemPreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorItemPreviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateCreatorItemPreviewResponseData:
      type: object
      properties:
        url:
          type: string
        sha256:
          type: string
      required:
        - url
        - sha256
      additionalProperties: false
    CreateCreatorItemWearableRequest:
      type: object
      properties:
        templateKey:
          type: string
        slug:
          type: string
        name:
          type: string
        colourways:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemWearablesItemColourways"
        priceCosm:
          type: number
          description: Whole COSM.
        description:
          type: string
        maxSupply:
          type: number
          nullable: true
      required:
        - templateKey
        - slug
        - name
        - colourways
        - priceCosm
      additionalProperties: false
    CreateCreatorItemWearableSubmitRequest:
      type: object
      properties:
        previewImageUrl:
          type: string
      required:
        - previewImageUrl
      additionalProperties: false
    CreateCreatorReviewReplyRequest:
      type: object
      properties:
        reply:
          type: string
      required:
        - reply
      additionalProperties: false
    CreateCrmIntegrationRequest:
      type: object
      properties:
        provider:
          type: string
          enum:
            - custom
            - hubspot
            - salesforce
            - pipedrive
            - zoho
            - mailchimp
        name:
          type: string
        enabled:
          type: boolean
        config:
          type: object
          additionalProperties: {}
        sync:
          $ref: "#/components/schemas/CreateCrmIntegrationRequestSync"
      required:
        - provider
        - name
      additionalProperties: false
    CreateCrmIntegrationRequestSync:
      type: object
      properties:
        sources:
          type: array
          items:
            $ref: "#/components/schemas/CreateCrmIntegrationRequestSyncSourcesItem"
        marketingConsentOnly:
          type: boolean
        fieldMap:
          type: object
          additionalProperties: {}
      additionalProperties: false
    CreateCrmIntegrationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListCrmIntegrationsItem"
      required:
        - data
      additionalProperties: false
    CreateCrmIntegrationTestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCrmIntegrationTestResponseData"
      required:
        - data
      additionalProperties: false
    CreateCrmIntegrationTestResponseData:
      type: object
      properties:
        ok:
          type: boolean
        message:
          type: string
          description: "One sanitized line: what happened."
        log:
          $ref: "#/components/schemas/CreateCrmIntegrationTestResponseDataLog"
      required:
        - ok
        - message
      additionalProperties: false
    CreateCrmIntegrationTestResponseDataLog:
      type: object
      properties:
        status:
          type: string
        request:
          type: string
          nullable: true
        response:
          type: string
          nullable: true
      required:
        - status
      additionalProperties: false
      nullable: true
      description: "The rendered request and the response: the custom webhook's (the seller's own endpoint) only."
    CreateCustomerBulkDeleteRequest:
      type: object
      properties:
        handles:
          type: array
          items:
            type: string
      required:
        - handles
      additionalProperties: false
    CreateCustomerBulkDeleteResponse:
      type: object
      properties:
        ok:
          type: boolean
        deleted:
          type: number
      required:
        - ok
        - deleted
      additionalProperties: false
    CreateCustomerRefreshProfileResponse:
      type: object
      properties:
        handle:
          type: string
        platforms:
          type: array
          items:
            $ref: "#/components/schemas/CreateCustomerRefreshProfileResponsePlatforms"
      required:
        - handle
        - platforms
      additionalProperties: false
    CreateCustomerRefreshProfileResponsePlatforms:
      type: object
      properties:
        platform:
          type: string
        queued:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - platform
        - queued
      additionalProperties: false
    CreateDaoProposalFinaliseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDaoProposalFinaliseResponseData"
      required:
        - data
      additionalProperties: false
    CreateDaoProposalFinaliseResponseData:
      type: object
      properties:
        status:
          type: string
        turnoutBps:
          type: number
        approvalBps:
          type: number
        quorumMet:
          type: boolean
      required:
        - status
        - turnoutBps
        - approvalBps
        - quorumMet
      additionalProperties: false
    CreateDaoProposalOpenRequest:
      type: object
      properties:
        subjectId:
          type: string
        votingDays:
          type: number
      required:
        - subjectId
      additionalProperties: false
    CreateDaoProposalOpenResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDaoProposalOpenResponseData"
      required:
        - data
      additionalProperties: false
    CreateDaoProposalOpenResponseData:
      type: object
      properties:
        eligibleVoters:
          type: number
        id:
          type: string
        title:
          type: string
        body:
          type: string
        beneficiaryKind:
          type: string
        beneficiaryNote:
          type: string
          nullable: true
        requestedBaseUnits:
          type: string
          nullable: true
        status:
          type: string
        totalVotingPower:
          type: string
        powerFor:
          type: string
        powerAgainst:
          type: string
        powerAbstain:
          type: string
        quorumBps:
          type: number
        passThresholdBps:
          type: number
        opensAt:
          type: string
          nullable: true
        closesAt:
          type: string
          nullable: true
        talliedAt:
          type: string
          nullable: true
        vetoedReason:
          type: string
          nullable: true
        charityGoalId:
          type: string
          nullable: true
        proposalKind:
          type: string
        params:
          type: object
          nullable: true
          additionalProperties: {}
        createdAt:
          type: string
      required:
        - eligibleVoters
        - id
        - title
        - body
        - beneficiaryKind
        - status
        - totalVotingPower
        - powerFor
        - powerAgainst
        - powerAbstain
        - quorumBps
        - passThresholdBps
        - proposalKind
        - createdAt
      additionalProperties: false
    CreateDaoProposalRequest:
      type: object
      properties:
        subjectId:
          type: string
        title:
          type: string
        body:
          type: string
        beneficiaryKind:
          type: string
          enum:
            - marketing
            - policy
            - grant
            - community_event
            - charity
            - funding_pool
        beneficiaryNote:
          type: string
        requestedBaseUnits:
          type: string
        proposalKind:
          type: string
          enum:
            - spend
            - pool_parameter
            - pool_allocation
            - spend_category
            - supplier_allowlist
        params:
          type: object
          additionalProperties: {}
        quorumBps:
          type: number
        passThresholdBps:
          type: number
        charityGoal:
          $ref: "#/components/schemas/CreateDaoProposalRequestCharityGoal"
      required:
        - subjectId
        - title
        - body
        - beneficiaryKind
      additionalProperties: false
    CreateDaoProposalRequestCharityGoal:
      type: object
      properties:
        charitySlug:
          type: string
        title:
          type: string
        mission:
          type: string
        targetCents:
          type: number
        endsAt:
          type: string
      required:
        - charitySlug
        - title
        - mission
        - targetCents
      additionalProperties: false
    CreateDaoProposalResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListDaoProposalsItem"
      required:
        - data
      additionalProperties: false
    CreateDaoProposalVetoRequest:
      type: object
      properties:
        reason:
          type: string
        vetoedByUserId:
          type: string
      required:
        - reason
        - vetoedByUserId
      additionalProperties: false
    CreateDaoProposalVetoResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDaoProposalVetoResponseData"
      required:
        - data
      additionalProperties: false
    CreateDaoProposalVetoResponseData:
      type: object
      properties:
        vetoed:
          type: boolean
      required:
        - vetoed
      additionalProperties: false
    CreateDaoProposalVoteRequest:
      type: object
      properties:
        subjectId:
          type: string
        choice:
          type: string
          enum:
            - for
            - against
            - abstain
        reason:
          type: string
      required:
        - subjectId
        - choice
      additionalProperties: false
    CreateDaoProposalVoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDaoProposalVoteResponseData"
      required:
        - data
      additionalProperties: false
    CreateDaoProposalVoteResponseData:
      type: object
      properties:
        weight:
          type: string
        changed:
          type: boolean
      required:
        - weight
        - changed
      additionalProperties: false
    CreateDesignToolImportRequest:
      type: object
      properties:
        file:
          type: string
        nodeIds:
          type: array
          items:
            type: string
        tool:
          type: string
        use:
          type: string
          enum:
            - ads
            - branding
            - lookbooks
            - site-editor
            - share-cards
        design:
          type: string
      required:
        - tool
        - use
    CreateDesignToolImportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDesignToolImportResponseData"
      required:
        - data
      additionalProperties: false
    CreateDesignToolImportResponseData:
      type: object
      properties:
        images:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldExperienceGalleryTrailerUrlRequest"
      required:
        - images
      additionalProperties: false
    CreateDetectedEventEventConfirmRequest:
      type: object
      properties:
        itemId:
          type: string
          format: uuid
        actions:
          type: array
          items:
            type: object
            additionalProperties: {}
    CreateDetectedEventEventDismissRequest:
      type: object
      properties:
        reason:
          type: string
          maxLength: 500
    CreateDetectedEventEventRejectRequest:
      type: object
      properties:
        itemId:
          type: string
          format: uuid
    CreateDetectedEventRuleCopyRequest:
      type: object
      required:
        - storefrontIds
      properties:
        storefrontIds:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
          maxItems: 100
        overwrite:
          type: boolean
    CreateDetectedEventRuleCopyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDetectedEventRuleCopyResponseData"
      required:
        - data
      additionalProperties: false
    CreateDetectedEventRuleCopyResponseData:
      type: object
      properties:
        copied:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventRuleCopyResponseDataCopied"
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventRuleCopyResponseDataSkipped"
      required:
        - copied
        - skipped
      additionalProperties: false
    CreateDetectedEventRuleCopyResponseDataCopied:
      type: object
      properties:
        storefrontId:
          type: string
        ruleId:
          type: string
        replaced:
          type: boolean
      required:
        - storefrontId
        - ruleId
        - replaced
      additionalProperties: false
    CreateDetectedEventRuleCopyResponseDataSkipped:
      type: object
      properties:
        storefrontId:
          type: string
        reason:
          type: string
      required:
        - storefrontId
        - reason
      additionalProperties: false
    CreateDetectedEventRulePlaceRequest:
      type: object
      required:
        - rule
        - ids
      properties:
        rule:
          $ref: "#/components/schemas/CreateDetectedEventRuleRequest"
        ids:
          type: array
          items:
            type: string
    CreateDetectedEventRulePlaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDetectedEventRulePlaceResponseData"
      required:
        - data
      additionalProperties: false
    CreateDetectedEventRulePlaceResponseData:
      type: object
      properties:
        rule:
          $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseData"
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventRulePlaceResponseDataItems"
      required:
        - rule
        - items
      additionalProperties: false
    CreateDetectedEventRulePlaceResponseDataItems:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        enabled:
          type: boolean
        order:
          type: number
        filter:
          type: object
          additionalProperties: {}
        then:
          type: array
          items: {}
        else:
          type: array
          items: {}
          nullable: true
        continue:
          type: boolean
          nullable: true
        allowWeakEvidence:
          type: boolean
          nullable: true
          description: "Guard 1 grant: destructive actions may run on a similarity match / fuzzy correlation / bare email."
        loosen:
          type: object
          nullable: true
          description: "Guard 2/3 loosening: act on backfill events; act on a stale catch-up as written."
          additionalProperties: {}
        candidatePool:
          type: object
          nullable: true
          additionalProperties: {}
        source:
          type: string
          enum:
            - default
            - legacy
            - seller
          nullable: true
        defaultKey:
          type: string
          nullable: true
          description: 'Default rules: the default this rule restores on "reset".'
        meta:
          type: object
          nullable: true
          description: Client-owned passthrough (the grid's `meta.grid` split state); stored with the rule, ignored by the resolver.
          additionalProperties: {}
      required:
        - id
        - name
        - enabled
        - order
        - filter
        - then
      additionalProperties: false
    CreateDetectedEventRuleReorderRequest:
      type: object
      required:
        - ids
      properties:
        ids:
          type: array
          items:
            type: string
    CreateDetectedEventRuleReorderResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseData"
        pagination:
          $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponsePagination"
      required:
        - data
        - pagination
      additionalProperties: false
    CreateDetectedEventRuleReorderResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        enabled:
          type: boolean
        order:
          type: number
        filter:
          $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseDataFilter"
        then:
          type: array
          items: {}
        else:
          type: array
          items: {}
          nullable: true
        continue:
          type: boolean
          nullable: true
        allowWeakEvidence:
          type: boolean
          nullable: true
          description: "Guard 1 grant: destructive actions may run on a similarity match / fuzzy correlation / bare email."
        loosen:
          $ref: "#/components/schemas/BackfillStaleCatchUp"
        candidatePool:
          $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseDataCandidatePool"
        source:
          type: string
          enum:
            - default
            - legacy
            - seller
          nullable: true
        defaultKey:
          type: string
          nullable: true
          description: 'Default rules: the default this rule restores on "reset".'
        meta:
          type: object
          nullable: true
          description: Client-owned passthrough (the grid's `meta.grid` split state); stored with the rule, ignored by the resolver.
          additionalProperties: {}
      required:
        - id
        - name
        - enabled
        - order
        - filter
        - then
      additionalProperties: false
    CreateDetectedEventRuleReorderResponseDataCandidatePool:
      type: object
      properties:
        statuses:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseDataCandidatePoolStatusesItem"
        minStock:
          type: number
        platforms:
          type: array
          items:
            type: string
          nullable: true
        imagePass:
          type: boolean
          nullable: true
          description: Request the image (CLIP) pass, not only on ambiguous pairs.
      required:
        - statuses
        - minStock
      additionalProperties: false
      nullable: true
    CreateDetectedEventRuleReorderResponseDataFilter:
      type: object
      properties:
        kinds:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseDataFilterKindsItem"
        platforms:
          type: array
          items:
            type: string
          nullable: true
        accounts:
          type: array
          items:
            type: string
          nullable: true
        apps:
          type: array
          items:
            type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          nullable: true
        itemIds:
          type: array
          items:
            type: string
          nullable: true
        storefronts:
          type: array
          items:
            type: string
          nullable: true
          description: |-
            The stores this rule applies in (storefront ids); unset = every store of the account. "Copy to other stores…"
            writes a copy limited to each target store (api-sale detected-events/copy-rule.ts).
      required:
        - kinds
      additionalProperties: false
    CreateDetectedEventRuleReorderResponsePagination:
      type: object
      properties:
        limit:
          type: number
        nextCursor:
          nullable: true
        hasMore:
          type: boolean
      required:
        - limit
        - nextCursor
        - hasMore
      additionalProperties: false
    CreateDetectedEventRuleRequest:
      type: object
      required:
        - name
        - filter
        - then
      properties:
        name:
          type: string
        enabled:
          type: boolean
        order:
          type: integer
          description: Evaluation position, lowest first; omit on create to auto-place.
        filter:
          type: object
          description: "{ kinds: DetectedEventKind[], platforms?, accounts?, apps?, tags?, itemIds? }"
          additionalProperties: {}
        when:
          type: object
          description: "Condition AST: { and } | { or } | { not } | { const } | { field, op, value? }"
          additionalProperties: {}
        then:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: "Actions: { type, params? }"
        else:
          type: array
          items:
            type: object
            additionalProperties: {}
        continue:
          type: boolean
        allowWeakEvidence:
          type: boolean
        loosen:
          type: object
          additionalProperties: {}
        target:
          type: object
          additionalProperties: {}
        candidatePool:
          type: object
          additionalProperties: {}
        meta:
          type: object
          description: Client-owned data stored with the rule as is (ignored by evaluation).
          additionalProperties: {}
    CreateDetectedEventRuleResetDefaultRequest:
      type: object
      properties:
        keys:
          type: array
          items:
            type: string
    CreateDetectedEventRuleResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDetectedEventRuleResponseData"
      required:
        - data
      additionalProperties: false
    CreateDetectedEventRuleResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        enabled:
          type: boolean
        order:
          type: number
        filter:
          $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseDataFilter"
        then:
          type: array
          items: {}
        else:
          type: array
          items: {}
          nullable: true
        continue:
          type: boolean
          nullable: true
        allowWeakEvidence:
          type: boolean
          nullable: true
          description: "Guard 1 grant: destructive actions may run on a similarity match / fuzzy correlation / bare email."
        loosen:
          $ref: "#/components/schemas/BackfillStaleCatchUp"
        target:
          $ref: "#/components/schemas/CreateDetectedEventRuleResponseDataTarget"
        candidatePool:
          $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseDataCandidatePool"
        source:
          type: string
          enum:
            - default
            - legacy
            - seller
          nullable: true
        defaultKey:
          type: string
          nullable: true
          description: 'Default rules: the default this rule restores on "reset".'
        meta:
          type: object
          nullable: true
          description: Client-owned passthrough (the grid's `meta.grid` split state); stored with the rule, ignored by the resolver.
          additionalProperties: {}
      required:
        - id
        - name
        - enabled
        - order
        - filter
        - then
      additionalProperties: false
    CreateDetectedEventSimulateImpactRequest:
      type: object
      required:
        - rules
      properties:
        rules:
          type: array
          items:
            type: object
            additionalProperties: {}
        days:
          type: integer
          minimum: 1
          maximum: 30
    CreateDetectedEventSimulateImpactResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDetectedEventSimulateImpactResponseData"
      required:
        - data
      additionalProperties: false
    CreateDetectedEventSimulateImpactResponseData:
      type: object
      properties:
        since:
          type: string
        scanned:
          type: number
        changed:
          type: number
        truncated:
          type: boolean
          description: More events exist in the window than were scanned.
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventSimulateImpactResponseDataItems"
      required:
        - since
        - scanned
        - changed
        - truncated
        - items
      additionalProperties: false
    CreateDetectedEventSimulateImpactResponseDataItems:
      type: object
      properties:
        eventId:
          type: string
        kind:
          type: string
        platform:
          type: string
        title:
          type: string
          nullable: true
        createdAt:
          type: string
        recorded:
          $ref: "#/components/schemas/CreateDetectedEventSimulateImpactResponseDataItemsRecorded"
        before:
          $ref: "#/components/schemas/CreateDetectedEventSimulateImpactResponseDataItemsBefore"
        after:
          $ref: "#/components/schemas/CreateDetectedEventSimulateImpactResponseDataItemsBefore"
        changed:
          type: boolean
      required:
        - eventId
        - kind
        - platform
        - createdAt
        - recorded
        - before
        - after
        - changed
      additionalProperties: false
    CreateDetectedEventSimulateImpactResponseDataItemsBefore:
      type: object
      properties:
        ruleId:
          type: string
          nullable: true
        actions:
          type: array
          items:
            type: string
      required:
        - actions
      additionalProperties: false
    CreateDetectedEventSimulateImpactResponseDataItemsRecorded:
      type: object
      properties:
        ruleId:
          type: string
          nullable: true
        status:
          type: string
      required:
        - status
      additionalProperties: false
      description: What the engine decided when it happened.
    CreateDetectedEventSimulateRequest:
      type: object
      required:
        - event
      properties:
        event:
          type: object
          additionalProperties: {}
        rules:
          type: array
          items:
            type: object
            additionalProperties: {}
    CreateDetectedEventSimulateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDetectedEventSimulateResponseData"
      required:
        - data
      additionalProperties: false
    CreateDetectedEventSimulateResponseData:
      type: object
      properties:
        resolution:
          $ref: "#/components/schemas/CreateDetectedEventSimulateResponseDataResolution"
        guards:
          $ref: "#/components/schemas/CreateDetectedEventSimulateResponseDataGuards"
        plan:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventEventsItemPlan"
      required:
        - resolution
        - guards
        - plan
      additionalProperties: false
    CreateDetectedEventSimulateResponseDataGuards:
      type: object
      properties:
        actions:
          type: array
          items: {}
        notes:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventEventsItemGuards"
      required:
        - actions
        - notes
      additionalProperties: false
    CreateDetectedEventSimulateResponseDataResolution:
      type: object
      properties:
        matched:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventSimulateResponseDataResolutionMatched"
        winnerId:
          type: string
          nullable: true
        shadowed:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventSimulateResponseDataResolutionShadowed"
        trace:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventSimulateResponseDataResolutionTrace"
      required:
        - matched
        - shadowed
        - trace
      additionalProperties: false
    CreateDetectedEventSimulateResponseDataResolutionMatched:
      type: object
      properties:
        ruleId:
          type: string
        branch:
          type: string
          enum:
            - then
            - else
        actions:
          type: array
          items: {}
      required:
        - ruleId
        - branch
        - actions
      additionalProperties: false
    CreateDetectedEventSimulateResponseDataResolutionShadowed:
      type: object
      properties:
        ruleId:
          type: string
        by:
          type: string
      required:
        - ruleId
        - by
      additionalProperties: false
    CreateDetectedEventSimulateResponseDataResolutionTrace:
      type: object
      properties:
        ruleId:
          type: string
        outcome:
          type: string
          enum:
            - then
            - else
            - filter_miss
            - disabled
            - then_continue
            - fall_through
            - not_reached
      required:
        - ruleId
        - outcome
      additionalProperties: false
    CreateDetectedEventStartingPointPreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDetectedEventStartingPointPreviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateDetectedEventStartingPointPreviewResponseData:
      type: object
      properties:
        startingPoint:
          type: string
          enum:
            - hands_on
            - balanced
            - hands_off
        changes:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventStartingPointPreviewResponseDataChanges"
      required:
        - startingPoint
        - changes
      additionalProperties: false
    CreateDetectedEventStartingPointPreviewResponseDataChanges:
      type: object
      properties:
        key:
          type: string
        title:
          type: string
        from:
          type: string
        to:
          type: string
        overwritesEdit:
          type: boolean
      required:
        - key
        - title
        - from
        - to
        - overwritesEdit
      additionalProperties: false
    CreateDeveloperAppClientVersionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDeveloperAppClientVersionResponseData"
      required:
        - data
      additionalProperties: false
    CreateDeveloperAppClientVersionResponseData:
      type: object
      properties:
        version:
          $ref: "#/components/schemas/ListDeveloperAppClientVersionsItem"
        run:
          $ref: "#/components/schemas/ListDeveloperAppConformanceRunsItem"
      required:
        - version
        - run
      additionalProperties: false
    CreateDeveloperAppConformanceRunAbortResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDeveloperAppConformanceRunAbortResponseData"
      required:
        - data
      additionalProperties: false
    CreateDeveloperAppConformanceRunAbortResponseData:
      type: object
      properties:
        aborted:
          type: boolean
      required:
        - aborted
      additionalProperties: false
    CreateDeveloperAppResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDeveloperAppResponseData"
      required:
        - data
      additionalProperties: false
    CreateDeveloperAppResponseData:
      type: object
      properties:
        clientSecret:
          type: string
          nullable: true
        clientId:
          type: string
        storeName:
          type: string
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        revokedAt:
          type: string
          format: date-time
          nullable: true
        description:
          type: string
          nullable: true
        scopes:
          type: array
          items:
            type: string
        slug:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        listedAt:
          type: string
          format: date-time
          nullable: true
        verified:
          type: boolean
        audience:
          type: string
        isPublic:
          type: boolean
        verifiedAt:
          type: string
          format: date-time
          nullable: true
        termsUrl:
          type: string
          nullable: true
        tagline:
          type: string
          nullable: true
        listingStatus:
          type: string
        logoUrl:
          type: string
          nullable: true
        homepageUrl:
          type: string
          nullable: true
        revShareBps:
          type: number
          nullable: true
        supportUrl:
          type: string
          nullable: true
        privacyUrl:
          type: string
          nullable: true
        featured:
          type: boolean
        bannerUrl:
          type: string
          nullable: true
        ownerStorefrontId:
          type: string
          nullable: true
        needsStoreChoice:
          type: boolean
        clientSecretPrefix:
          type: string
        secretRotatedAt:
          type: string
          format: date-time
          nullable: true
        redirectUris:
          type: array
          items:
            type: string
        screenshots:
          type: array
          items:
            type: string
        supportEmail:
          type: string
          nullable: true
        audienceOverride:
          type: string
          nullable: true
        longDescription:
          type: string
          nullable: true
        docsLinks:
          type: array
          items:
            $ref: "#/components/schemas/LabelUrl"
        demoVideoUrl:
          type: string
          nullable: true
        pricingNote:
          type: string
          nullable: true
        installUrl:
          type: string
          nullable: true
        monetization:
          type: string
        revShareCapCents:
          type: number
          nullable: true
        revShareMinOrderCents:
          type: number
          nullable: true
        payoutMethod:
          type: string
        payoutState:
          type: string
      required:
        - clientId
        - storeName
        - id
        - name
        - createdAt
        - scopes
        - verified
        - audience
        - isPublic
        - listingStatus
        - featured
        - needsStoreChoice
        - clientSecretPrefix
        - redirectUris
        - screenshots
        - docsLinks
        - monetization
        - payoutMethod
        - payoutState
      additionalProperties: false
    CreateDiscountCodeGenerateRequest:
      type: object
      properties:
        count:
          type: number
        prefix:
          type: string
        length:
          type: number
      required:
        - count
      additionalProperties: false
    CreateDiscountCodeGenerateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDiscountCodeGenerateResponseData"
      required:
        - data
      additionalProperties: false
    CreateDiscountCodeGenerateResponseData:
      type: object
      properties:
        batchId:
          type: string
        generated:
          type: number
      required:
        - batchId
        - generated
      additionalProperties: false
    CreateDiscountCodePauseAllRequest:
      type: object
      properties:
        paused:
          type: boolean
      required:
        - paused
      additionalProperties: false
    CreateDiscountCodePauseAllResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateDiscountCodePauseAllResponseData"
      required:
        - data
      additionalProperties: false
    CreateDiscountCodePauseAllResponseData:
      type: object
      properties:
        changed:
          type: number
      required:
        - changed
      additionalProperties: false
    CreateDiscountCodeRequest:
      type: object
      properties:
        code:
          type: string
        kind:
          type: string
          enum:
            - fixed
            - percent
            - free_shipping
            - bxgy
            - spend_tiers
            - fixed_price_set
        name:
          type: string
          nullable: true
        rules:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRules"
      required:
        - code
        - kind
      additionalProperties: false
    CreateDiscountCodeRequestRules:
      type: object
      properties:
        value:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesValue"
        bxgy:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesBxgy"
        spendTiers:
          type: array
          items:
            $ref: "#/components/schemas/CreateDiscountCodeRequestRulesSpendTiers"
        fixedPriceSet:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesFixedPriceSet"
        requirements:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesRequirements"
        appliesTo:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestAppliesTo"
        exclusions:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestExclusions"
        limits:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesLimits"
        schedule:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesSchedule"
        stacking:
          $ref: "#/components/schemas/CreateAutomaticDiscountRequestStacking"
        delivery:
          type: string
          enum:
            - code
            - auto_apply
            - unique_bulk
        channels:
          type: array
          items:
            $ref: "#/components/schemas/CreateDiscountCodeRequestRulesChannelsItem"
        display:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesDisplay"
      additionalProperties: false
    CreateDiscountCodeRequestRulesBxgy:
      type: object
      properties:
        buyQty:
          type: number
        getQty:
          type: number
        target:
          type: string
          enum:
            - same
            - chosen
          description: "`same`: the Y items come from the same eligible set; `chosen`: only the listings in getListingIds."
        getListingIds:
          type: array
          items:
            type: string
        reward:
          type: string
          enum:
            - free
            - percent
        rewardBps:
          type: number
          nullable: true
        maxApplications:
          type: number
          nullable: true
          description: How many times one order can use it (null = as often as the cart allows).
      required:
        - buyQty
        - getQty
      additionalProperties: false
      nullable: true
    CreateDiscountCodeRequestRulesDisplay:
      type: object
      properties:
        badge:
          type: boolean
        banner:
          type: boolean
        bannerText:
          type: string
          nullable: true
        hidden:
          type: boolean
          description: "Code only: never advertised anywhere."
      additionalProperties: false
    CreateDiscountCodeRequestRulesFixedPriceSet:
      type: object
      properties:
        qty:
          type: number
        priceCents:
          type: number
      required:
        - qty
        - priceCents
      additionalProperties: false
      nullable: true
    CreateDiscountCodeRequestRulesLimits:
      type: object
      properties:
        totalUses:
          type: number
          nullable: true
        usesPerBuyer:
          type: number
          nullable: true
        usesPerDay:
          type: number
          nullable: true
        budgetCents:
          type: number
          nullable: true
          description: Total $ the code may give away, across every order.
        onePerOrder:
          type: boolean
        regions:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesLimitsRegions"
      additionalProperties: false
    CreateDiscountCodeRequestRulesLimitsRegions:
      type: object
      properties:
        allowCountries:
          type: array
          items:
            type: string
        blockCountries:
          type: array
          items:
            type: string
        allowStates:
          type: array
          items:
            type: string
        blockStates:
          type: array
          items:
            type: string
        allowPostalPrefixes:
          type: array
          items:
            type: string
        blockPostalPrefixes:
          type: array
          items:
            type: string
        caps:
          type: array
          items:
            type: object
            additionalProperties: {}
      additionalProperties: false
    CreateDiscountCodeRequestRulesRequirements:
      type: object
      properties:
        minSubtotalCents:
          type: number
        minItemCount:
          type: number
        firstOrderOnly:
          type: boolean
        returningOnly:
          type: boolean
        mustFollowStore:
          type: boolean
        loyaltyTierMinId:
          type: string
          nullable: true
          description: "A loyalty tier id: the buyer's tier must be this one or above."
        verifiedTradeBuyer:
          type: boolean
        channel:
          type: string
          enum:
            - retail
            - any
            - wholesale
      additionalProperties: false
    CreateDiscountCodeRequestRulesSchedule:
      type: object
      properties:
        startsAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        windows:
          type: array
          items:
            type: object
            additionalProperties: {}
        timeZone:
          type: string
          enum:
            - store
            - buyer
          description: Whose clock the windows read.
        storeTimeZone:
          type: string
          nullable: true
          description: The store's IANA zone (the api fills it from the store at save time).
      additionalProperties: false
    CreateDiscountCodeRequestRulesSpendTiers:
      type: object
      properties:
        minSubtotalCents:
          type: number
        offCents:
          type: number
      required:
        - minSubtotalCents
        - offCents
      additionalProperties: false
    CreateDiscountCodeRequestRulesValue:
      type: object
      properties:
        percentBps:
          type: number
          nullable: true
        amountCents:
          type: number
          nullable: true
        maxDiscountCents:
          type: number
          nullable: true
          description: The most one order can get off, whatever the % says.
        rounding:
          type: string
          enum:
            - none
            - down_dollar
            - nearest_dollar
      additionalProperties: false
    CreateDiscountCodeStatusRequest:
      type: object
      properties:
        status:
          type: string
          enum:
            - active
            - paused
            - archived
      required:
        - status
      additionalProperties: false
    CreateDiscountHolderResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListDiscountHoldersItem"
      required:
        - data
      additionalProperties: false
    CreateDropResponse:
      type: object
      properties:
        drop:
          $ref: "#/components/schemas/ListDropMineItem"
      required:
        - drop
      additionalProperties: false
    CreateEmailEventConfirmRequest:
      type: object
      properties:
        platformListingDbId:
          type: string
          format: uuid
    CreateEmailEventConfirmResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        detail:
          type: string
          nullable: true
      required:
        - id
        - status
      additionalProperties: false
    CreateEmailProviderRequest:
      type: object
      properties:
        provider:
          type: string
        fromEmail:
          type: string
        label:
          type: string
        fromName:
          type: string
          nullable: true
        replyTo:
          type: string
          nullable: true
        config:
          type: object
          additionalProperties: {}
        makeDefault:
          type: boolean
      required:
        - provider
        - fromEmail
      additionalProperties: false
    CreateEmailProviderResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateEmailProviderResponseData"
      required:
        - data
      additionalProperties: false
    CreateEmailProviderResponseData:
      type: object
      properties:
        credential:
          $ref: "#/components/schemas/ListEmailProvidersItem"
        webhookUrl:
          type: string
      required:
        - credential
        - webhookUrl
      additionalProperties: false
    CreateEmailProviderTestRequest:
      type: object
      properties:
        to:
          type: string
      required:
        - to
      additionalProperties: false
    CreateEmailProviderTestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateEmailProviderTestResponseData"
      required:
        - data
      additionalProperties: false
    CreateEmailProviderTestResponseData:
      type: object
      properties:
        ok:
          type: boolean
        message:
          type: string
          description: One sanitized line.
        error:
          type: string
          nullable: true
          description: "Kept for older clients: the same sanitized line when it failed."
      required:
        - ok
        - message
      additionalProperties: false
    CreateEmailProviderWebhookUrlResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateEmailProviderWebhookUrlResponseData"
      required:
        - data
      additionalProperties: false
    CreateEmailProviderWebhookUrlResponseData:
      type: object
      properties:
        webhookUrl:
          type: string
      required:
        - webhookUrl
      additionalProperties: false
    CreateEmbedKeyRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
          description: Which site this is for, e.g. "my Squarespace shop".
        allowedOrigins:
          type: array
          items:
            type: string
          description: Origins permitted to use this key, e.g. ["https://shop.example.com"]. LEAVE EMPTY to allow any origin — necessary when embedding on a platform whose domain you do not control, and the reason this is not locked by default.
        environment:
          type: string
          enum:
            - live
            - test
          description: "Omit for this server's own: live on crossly.net, test on sandbox.crossly.net. The other one is refused."
      required:
        - name
    CreateEmbedKeyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateEmbedKeyResponseData"
      required:
        - data
      additionalProperties: false
    CreateEmbedKeyResponseData:
      type: object
      properties:
        id:
          type: string
        key:
          type: string
        name:
          type: string
        allowedOrigins:
          type: array
          items:
            type: string
      required:
        - id
        - key
        - name
        - allowedOrigins
      additionalProperties: false
    CreateEventPolicyDecisionConfirmResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateEventPolicyDecisionConfirmResponseData"
      required:
        - data
      additionalProperties: false
    CreateEventPolicyDecisionConfirmResponseData:
      type: object
      properties:
        decision:
          $ref: "#/components/schemas/ListEventPolicyDecisionsItem"
      required:
        - decision
      additionalProperties: false
    CreateEventRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - sale
            - other
            - party
            - launch
            - pack_break
            - scavenger_hunt
            - convention
            - drop
            - live_show
            - meetup
            - pop_up
            - workshop
        title:
          type: string
        startsAt:
          type: string
        publish:
          type: boolean
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        locationType:
          type: string
          enum:
            - online
            - world
            - in_person
        locationText:
          type: string
          nullable: true
        locationUrl:
          type: string
          nullable: true
        rsvpEnabled:
          type: boolean
        capacity:
          type: number
          nullable: true
        listingIds:
          type: array
          items:
            type: string
        liveStreamId:
          type: string
          nullable: true
        dropRef:
          $ref: "#/components/schemas/TypeId2"
        discountCodeId:
          type: string
          nullable: true
        featureOnStorefront:
          type: boolean
        notifyFollowers:
          type: boolean
        worldConfig:
          type: object
          description: A World type's own settings (its configZ in shared branding/event-types.ts); refused on a standard kind.
          additionalProperties: {}
      required:
        - kind
        - title
        - startsAt
      additionalProperties: false
    CreateFieldRulePreviewRequest:
      type: object
      properties:
        platform:
          type: string
        accountSlot:
          type: number
          nullable: true
        listingId:
          type: string
          description: Preview against a real listing…
        sample:
          type: object
          description: …or an inline sample (title/description/brand/price/category/tags/…).
          additionalProperties: {}
        rules:
          type: array
          items:
            $ref: "#/components/schemas/CreateFieldRulePreviewRequestRules"
          description: Unsaved draft rules to preview instead of the stored ones.
      required:
        - platform
      additionalProperties: false
    CreateFieldRulePreviewRequestRules:
      type: object
      properties:
        name:
          type: string
        platform:
          type: string
        target:
          type: string
          enum:
            - description
            - title
            - attribute
            - item_specific
        actions:
          type: array
          items: {}
        accountSlot:
          type: number
          nullable: true
        position:
          type: number
        enabled:
          type: boolean
        targetKey:
          type: string
          nullable: true
        conditions:
          $ref: "#/components/schemas/CreateFieldRulePreviewRequestRulesConditions"
        stopAfter:
          type: boolean
      required:
        - name
        - platform
        - target
        - actions
      additionalProperties: false
    CreateFieldRulePreviewRequestRulesConditions:
      type: object
      properties:
        match:
          type: string
          enum:
            - all
            - any
        items:
          type: array
          items:
            type: object
            additionalProperties: {}
      additionalProperties: false
    CreateFieldRulePreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFieldRulePreviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateFieldRulePreviewResponseData:
      type: object
      properties:
        fields:
          $ref: "#/components/schemas/CreateFieldRulePreviewResponseDataFields"
        changed:
          type: array
          items:
            type: string
          description: Field keys (see RuleTrace.field) a rule actually changed.
        trimmed:
          type: array
          items:
            type: string
          description: Field keys that were cut to the platform's length limit after the rules ran.
        trace:
          type: array
          items:
            $ref: "#/components/schemas/CreateFieldRulePreviewResponseDataTrace"
      required:
        - fields
        - changed
        - trimmed
        - trace
      additionalProperties: false
    CreateFieldRulePreviewResponseDataFields:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        attributes:
          type: object
          additionalProperties: {}
        itemSpecifics:
          type: object
          additionalProperties: {}
      required:
        - title
        - description
        - attributes
        - itemSpecifics
      additionalProperties: false
    CreateFieldRulePreviewResponseDataTrace:
      type: object
      properties:
        ruleId:
          type: string
        name:
          type: string
        field:
          type: string
          description: '"title" | "description" | "attribute:brand" | "item_specific:Department".'
        status:
          type: string
          enum:
            - applied
            - no_match
            - overridden
            - disabled
            - unchanged
        before:
          type: string
          nullable: true
        after:
          type: string
          nullable: true
        errors:
          type: array
          items:
            type: string
          nullable: true
      required:
        - ruleId
        - name
        - field
        - status
      additionalProperties: false
    CreateFieldRuleReorderRequest:
      type: object
      properties:
        order:
          type: array
          items:
            $ref: "#/components/schemas/CreateFieldRuleReorderRequestOrder"
      required:
        - order
      additionalProperties: false
    CreateFieldRuleReorderRequestOrder:
      type: object
      properties:
        id:
          type: string
        position:
          type: number
      required:
        - id
        - position
      additionalProperties: false
    CreateFieldRuleRequest:
      type: object
      properties:
        name:
          type: string
        platform:
          type: string
        target:
          type: string
          enum:
            - description
            - title
            - attribute
            - item_specific
        actions:
          type: array
          items:
            $ref: "#/components/schemas/CreateFieldRuleRequestActionsItem"
        accountSlot:
          type: number
          nullable: true
        position:
          type: number
        enabled:
          type: boolean
        targetKey:
          type: string
          nullable: true
        conditions:
          $ref: "#/components/schemas/CreateFieldRuleRequestConditions"
        stopAfter:
          type: boolean
      required:
        - name
        - platform
        - target
        - actions
      additionalProperties: false
    CreateFieldRuleRequestConditions:
      type: object
      properties:
        match:
          type: string
          enum:
            - all
            - any
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateFieldRuleRequestConditionsItems"
      additionalProperties: false
    CreateFieldRuleRequestConditionsItems:
      type: object
      properties:
        field:
          type: string
          enum:
            - brand
            - description
            - category
            - sku
            - condition
            - size
            - material
            - color
            - title
            - price
            - tag
        op:
          type: string
          enum:
            - in
            - matches
            - eq
            - gt
            - gte
            - lt
            - lte
            - between
            - contains
            - not_contains
            - starts_with
            - ends_with
            - not_in
            - is_empty
            - equals
            - not_equals
            - is_not_empty
        value:
          description: Text, a number (price, in DOLLARS), or a list for in / not_in.
        valueMax:
          type: number
          description: Upper bound for `between` (price, DOLLARS, inclusive).
      required:
        - field
        - op
      additionalProperties: false
    CreateFundingApplyRequest:
      type: object
      properties:
        requestedCents:
          type: number
        legalName:
          type: string
        entityType:
          type: string
          enum:
            - other
            - llc
            - corporation
            - partnership
            - non_profit
        yearsOperating:
          type: number
        monthlyRevenueCrosslyCents:
          type: number
        monthlyRevenueOtherCents:
          type: number
        uses:
          type: array
          items:
            $ref: "#/components/schemas/CreateFundingApplyRequestUsesItem"
        useBreakdown:
          type: array
          items:
            $ref: "#/components/schemas/CreateFundingApplyRequestUseBreakdown"
        termDays: {}
        autorepayPct:
          type: number
        documentFileIds:
          type: array
          items:
            type: string
        attest:
          type: boolean
        acceptedTermsVersion:
          type: string
        intendedUse:
          type: string
          enum:
            - other
            - wholesale_inventory
            - supplier_order
            - bulk_sourcing
        note:
          type: string
      required:
        - requestedCents
      additionalProperties: false
    CreateFundingApplyRequestUseBreakdown:
      type: object
      properties:
        use:
          type: string
          enum:
            - ads
            - wholesale_on_crossly
            - verified_wholesaler
            - shipping_labels
            - crossly_fees
            - vault_fees
        cents:
          type: number
      required:
        - use
        - cents
      additionalProperties: false
    CreateFundingApplyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingApplyResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingApplyResponseData:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        requestedCents:
          type: number
        intendedUse:
          type: string
        uses:
          type: array
          items:
            type: string
        useBreakdown:
          type: array
          items:
            $ref: "#/components/schemas/CreateFundingApplyResponseDataUseBreakdown"
        legalName:
          type: string
          nullable: true
        entityType:
          type: string
          nullable: true
        yearsOperating:
          type: number
          nullable: true
        termDays:
          type: number
          nullable: true
        autorepayPct:
          type: number
          nullable: true
        documentFileIds:
          type: array
          items:
            type: string
        attestedAt:
          type: string
          nullable: true
        termsVersion:
          type: string
          nullable: true
        previewLimitCents:
          type: number
        decisionReasons:
          type: array
          items:
            type: string
        creditLineId:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        decidedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - status
        - requestedCents
        - intendedUse
        - uses
        - useBreakdown
        - documentFileIds
        - previewLimitCents
        - decisionReasons
        - createdAt
      additionalProperties: false
    CreateFundingApplyResponseDataUseBreakdown:
      type: object
      properties:
        use:
          type: string
        cents:
          type: number
      required:
        - use
        - cents
      additionalProperties: false
    CreateFundingDrawQuoteRequest:
      type: object
      properties:
        amountCents:
          type: number
      required:
        - amountCents
      additionalProperties: false
    CreateFundingDrawQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingDrawQuoteResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingDrawQuoteResponseData:
      type: object
      properties:
        amountCents:
          type: number
        aprBps:
          type: number
        termDays:
          type: number
        estFeeCents:
          type: number
          description: Simple interest for the full term at the line's APR, rounded to the cent.
        totalRepayCents:
          type: number
        dueAt:
          type: string
        availableCents:
          type: number
        lineStatus:
          type: string
      required:
        - amountCents
        - aprBps
        - termDays
        - estFeeCents
        - totalRepayCents
        - dueAt
        - availableCents
        - lineStatus
      additionalProperties: false
    CreateFundingDrawRejectResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingDrawRejectResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingDrawRejectResponseData:
      type: object
      properties:
        draw:
          $ref: "#/components/schemas/ListFundingDrawsItem"
      required:
        - draw
      additionalProperties: false
    CreateFundingDrawRequest:
      type: object
      properties:
        amountCents:
          type: number
        supplierName:
          type: string
        acceptedAprBps:
          type: number
        idempotencyKey:
          type: string
        invoiceRef:
          type: string
        invoiceUrl:
          type: string
        invoiceFileId:
          type: string
          description: "An uploaded invoice: POST …/funding/invoice-files, PUT the bytes, then draw with its id."
      required:
        - amountCents
        - supplierName
        - acceptedAprBps
        - idempotencyKey
      additionalProperties: false
    CreateFundingDrawResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingDrawResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingDrawResponseData:
      type: object
      properties:
        draw:
          $ref: "#/components/schemas/ListFundingDrawsItem"
        duplicate:
          type: boolean
      required:
        - draw
        - duplicate
      additionalProperties: false
    CreateFundingDrawUseRequest:
      type: object
      properties:
        cents:
          type: number
        use:
          type: string
          enum:
            - ads
            - wholesale_on_crossly
            - verified_wholesaler
            - shipping_labels
            - crossly_fees
            - vault_fees
        acceptedAprBps:
          type: number
        idempotencyKey:
          type: string
        counterpartyUserId:
          type: string
        forMemberUserId:
          type: string
        note:
          type: string
      required:
        - cents
        - use
        - acceptedAprBps
        - idempotencyKey
      additionalProperties: false
    CreateFundingDrawUseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingDrawUseResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingInvoiceFileRequest:
      type: object
      properties:
        fileName:
          type: string
        contentType:
          type: string
        contentLength:
          type: number
      required:
        - fileName
        - contentType
        - contentLength
      additionalProperties: false
    CreateFundingInvoiceFileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingInvoiceFileResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingInvoiceFileResponseData:
      type: object
      properties:
        file:
          $ref: "#/components/schemas/CreateFundingInvoiceFileResponseDataFile"
        uploadUrl:
          type: string
        method:
          type: string
        headers:
          $ref: "#/components/schemas/CreateFundingInvoiceFileResponseDataHeaders"
        maxBytes:
          type: number
      required:
        - file
        - uploadUrl
        - method
        - headers
        - maxBytes
      additionalProperties: false
    CreateFundingInvoiceFileResponseDataFile:
      type: object
      properties:
        id:
          type: string
        fileName:
          type: string
        contentType:
          type: string
        sizeBytes:
          type: number
        status:
          type: string
        createdAt:
          type: string
      required:
        - id
        - fileName
        - contentType
        - sizeBytes
        - status
        - createdAt
      additionalProperties: false
    CreateFundingInvoiceFileResponseDataHeaders:
      type: object
      properties:
        Content-Type:
          type: string
          enum:
            - application/pdf
            - image/jpeg
            - image/png
            - image/webp
            - image/heic
            - image/heif
      required:
        - Content-Type
      additionalProperties: false
    CreateFundingPayCrosslyFeeRequest:
      type: object
      properties:
        invoiceId:
          type: string
      required:
        - invoiceId
      additionalProperties: false
    CreateFundingPayCrosslyFeeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingPayCrosslyFeeResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingPayCrosslyFeeResponseData:
      type: object
      properties:
        receipt:
          $ref: "#/components/schemas/ListFundingReceiptsItem"
        duplicate:
          type: boolean
      required:
        - receipt
        - duplicate
      additionalProperties: false
    CreateFundingPayShippingLabelRequest:
      type: object
      properties:
        amountCents: {}
        idempotencyKey:
          type: string
      required:
        - amountCents
        - idempotencyKey
      additionalProperties: false
    CreateFundingPayShippingLabelResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingPayShippingLabelResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingPayShippingLabelResponseData:
      type: object
      properties:
        balanceAfterCents:
          nullable: true
        receipt:
          $ref: "#/components/schemas/ListFundingReceiptsItem"
        duplicate:
          type: boolean
      required:
        - balanceAfterCents
        - receipt
        - duplicate
      additionalProperties: false
    CreateFundingPayVaultFeeRequest:
      type: object
      properties:
        vaultItemId:
          type: string
        speed:
          type: string
          enum:
            - standard
            - expedited
      required:
        - vaultItemId
      additionalProperties: false
    CreateFundingPayVaultFeeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingPayVaultFeeResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingPayVaultFeeResponseData:
      type: object
      properties:
        feeCents:
          type: number
        earlyWithdrawCents:
          type: number
        ok:
          type: boolean
      required:
        - feeCents
        - earlyWithdrawCents
        - ok
      additionalProperties: false
    CreateFundingPoolStakeRequest:
      type: object
      properties:
        baseUnits:
          type: string
        acceptedDisclosure:
          type: boolean
        idempotencyKey:
          type: string
        lockupDays: {}
      required:
        - baseUnits
        - acceptedDisclosure
        - idempotencyKey
      additionalProperties: false
    CreateFundingPoolStakeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingPoolStakeResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingPoolStakeResponseData:
      type: object
      properties:
        duplicate:
          type: boolean
        view:
          $ref: "#/components/schemas/FundingPoolResponseData"
      required:
        - duplicate
        - view
      additionalProperties: false
    CreateFundingPoolUnstakeRequest:
      type: object
      properties:
        shares:
          type: string
        idempotencyKey:
          type: string
      required:
        - shares
        - idempotencyKey
      additionalProperties: false
    CreateFundingRepayRequest:
      type: object
      properties:
        amountCents:
          type: number
        idempotencyKey:
          type: string
        source:
          type: string
          enum:
            - card
            - cbx
            - balance
            - checkout
      required:
        - amountCents
        - idempotencyKey
      additionalProperties: false
    CreateFundingRepayResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateFundingRepayResponseData"
      required:
        - data
      additionalProperties: false
    CreateFundingRepayResponseData:
      type: object
      properties:
        repayment:
          $ref: "#/components/schemas/ListFundingRepaymentsItem"
        clientSecret:
          type: string
          nullable: true
        paymentIntentId:
          type: string
        checkoutUrl:
          nullable: true
      required:
        - repayment
        - paymentIntentId
        - checkoutUrl
      additionalProperties: false
    CreateGamePackBreakPickRequest:
      type: object
      properties:
        index:
          type: number
      required:
        - index
      additionalProperties: false
    CreateGamePackBreakPickResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateGamePackBreakPickResponseData"
      required:
        - data
      additionalProperties: false
    CreateGamePackBreakPickResponseData:
      type: object
      properties:
        id:
          type: string
        picked:
          type: number
        won:
          type: boolean
        pulls:
          type: array
          items:
            $ref: "#/components/schemas/CreateGamePackBreakPickResponseDataPulls"
        coupon:
          $ref: "#/components/schemas/CreateGamePackBreakPickResponseDataCoupon"
      required:
        - id
        - picked
        - won
        - pulls
      additionalProperties: false
    CreateGamePackBreakPickResponseDataCoupon:
      type: object
      properties:
        id:
          type: string
        game:
          type: string
        valueCents:
          type: number
        status:
          type: string
          enum:
            - expired
            - live
            - redeemed
        earnedAt:
          type: number
        expiresAt:
          type: number
        paidCents:
          type: number
          nullable: true
          description: Bucks it paid, once redeemed.
      required:
        - id
        - game
        - valueCents
        - status
        - earnedAt
        - expiresAt
      additionalProperties: false
      nullable: true
      description: The coupon this win earned (null on a loss, or past the daily coupon).
    CreateGamePackBreakPickResponseDataPulls:
      type: object
      properties:
        askCents:
          type: number
          description: The lowest open ask when the pack was dealt, in cents.
        href:
          type: string
          description: The piece's market page.
        skuId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        category:
          type: string
      required:
        - askCents
        - href
        - skuId
        - name
        - category
      additionalProperties: false
    CreateGamePackBreakResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateGamePackBreakResponseData"
      required:
        - data
      additionalProperties: false
    CreateGamePackBreakResponseData:
      type: object
      properties:
        id:
          type: string
        pulls:
          type: array
          items:
            $ref: "#/components/schemas/CreateGamePackBreakResponseDataPulls"
        expiresAt:
          type: number
      required:
        - id
        - pulls
        - expiresAt
      additionalProperties: false
    CreateGamePackBreakResponseDataPulls:
      type: object
      properties:
        skuId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        category:
          type: string
      required:
        - skuId
        - name
        - category
      additionalProperties: false
    CreateGeoLocationCheckRequest:
      type: object
      properties:
        address:
          $ref: "#/components/schemas/CreateGeoLocationCheckRequestAddress"
        presetId:
          type: string
        policy:
          type: object
          additionalProperties: {}
        consolidateVia:
          $ref: "#/components/schemas/CreateGeoLocationCheckRequestAddress"
      required:
        - address
      additionalProperties: false
    CreateGeoLocationCheckRequestAddress:
      type: object
      properties:
        country:
          type: string
        state:
          type: string
          nullable: true
        zip:
          type: string
          nullable: true
        street1:
          type: string
          nullable: true
        street2:
          type: string
          nullable: true
      required:
        - country
      additionalProperties: false
    CreateGeoLocationCheckResponse:
      type: object
      properties:
        ships:
          type: boolean
        reason:
          type: string
          enum:
            - embargoed
            - listing_restricted
            - not_offered
            - excluded
            - not_in_ship_to
            - excluded_location
            - outside_ship_area
            - postal_required
          nullable: true
        stage:
          type: string
          enum:
            - buyer
            - hub
          nullable: true
          description: "Which address decided a refusal: the buyer's, or the ship-together hub."
        message:
          type: string
          nullable: true
        rule:
          $ref: "#/components/schemas/CreateGeoLocationCheckResponseRule"
        partial:
          type: boolean
          description: The answer could change once a fuller address (state, ZIP) is known.
        metroUnmapped:
          type: boolean
          nullable: true
          description: An include metro rule could not see this ZIP (it is not mapped to any metro).
        facts:
          $ref: "#/components/schemas/CreateGeoLocationCheckResponseFacts"
        hubFacts:
          $ref: "#/components/schemas/CreateGeoLocationCheckResponseHubFacts"
        services:
          type: array
          items:
            $ref: "#/components/schemas/CreateGeoLocationCheckResponseServices"
          description: What the buyer could pick; empty when the policy does not ship there.
        policySource:
          type: string
          enum:
            - default
            - draft
            - preset
          description: "Where the policy came from: the draft, a preset, or the seller's default."
      required:
        - ships
        - partial
        - facts
        - services
        - policySource
      additionalProperties: false
    CreateGeoLocationCheckResponseFacts:
      type: object
      properties:
        country:
          type: string
        state:
          type: string
          nullable: true
        territory:
          type: string
          nullable: true
        postalCompact:
          type: string
          nullable: true
        zip5:
          type: string
          nullable: true
        cbsa:
          type: string
          nullable: true
        csa:
          type: string
          nullable: true
        metroStatus:
          type: string
          enum:
            - known
            - unmapped
            - no_zip
        isPoBox:
          type: boolean
        complete:
          type: boolean
          description: A full address, including a postal code where the country has one.
      required:
        - country
        - metroStatus
        - isPoBox
        - complete
      additionalProperties: false
      description: The buyer address as the rules saw it.
    CreateGeoLocationCheckResponseHubFacts:
      type: object
      properties:
        country:
          type: string
        state:
          type: string
          nullable: true
        territory:
          type: string
          nullable: true
        postalCompact:
          type: string
          nullable: true
        zip5:
          type: string
          nullable: true
        cbsa:
          type: string
          nullable: true
        csa:
          type: string
          nullable: true
        metroStatus:
          type: string
          enum:
            - known
            - unmapped
            - no_zip
        isPoBox:
          type: boolean
        complete:
          type: boolean
          description: A full address, including a postal code where the country has one.
      required:
        - country
        - metroStatus
        - isPoBox
        - complete
      additionalProperties: false
      nullable: true
      description: The hub as the rules saw it, when consolidating.
    CreateGeoLocationCheckResponseServices:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        costType:
          type: string
          enum:
            - free
            - flat
            - calculated
        flatRateCents:
          type: number
          nullable: true
        additionalItemCents:
          type: number
          nullable: true
        minDays:
          type: number
          nullable: true
          description: Transit business days (handling time is added separately).
        maxDays:
          type: number
          nullable: true
        speed:
          type: string
          enum:
            - standard
            - expedited
            - overnight
          nullable: true
        carrierService:
          type: string
          nullable: true
          description: |-
            Buyer pays: calculated at checkout (shared policies/calculated-shipping.ts).
            The Shippo servicelevel token this service buys: its price is that live
            label rate for the parcel, plus `handlingFeeCents` once per shipment.
            Never stored on a policy; domesticServices derives it from `domestic.calculated`.
        handlingFeeCents:
          type: number
          nullable: true
      required:
        - id
        - name
        - costType
      additionalProperties: false
    CreateGradingRunReserveRequest:
      type: object
      properties:
        declaredValueCents:
          type: number
        inventoryItemId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        prescreen:
          type: boolean
        missMode:
          type: string
          enum:
            - release
            - roll_over
        returnMode:
          type: string
          enum:
            - vault
            - return
      required:
        - declaredValueCents
      additionalProperties: false
    CreateGradingSubmissionShippedRequest:
      type: object
      properties:
        tracking:
          type: string
          nullable: true
      additionalProperties: false
    CreateGradingVerifyCertRequest:
      type: object
      properties:
        graderSlug:
          type: string
        certNumber:
          type: string
      required:
        - graderSlug
        - certNumber
      additionalProperties: false
    CreateGradingVerifyCertResponse:
      type: object
      properties:
        graderSlug:
          type: string
        certNumber:
          type: string
        grade:
          type: string
          nullable: true
          description: "As the grader writes it in our grade vocabulary: '10', '8.5', 'Authentic'."
        label:
          type: string
          nullable: true
          description: The grader's own label, e.g. 'GEM MT 10'.
        description:
          type: string
          nullable: true
          description: "What the grader says the item is: year, set, subject, number."
        population:
          type: number
          nullable: true
          description: How many the grader has graded at this grade, and higher — when it publishes them.
        popHigher:
          type: number
          nullable: true
        found:
          type: boolean
      required:
        - found
    CreateGroupBuyCancelResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateGroupBuyCancelResponseData"
      required:
        - data
      additionalProperties: false
    CreateGroupBuyCancelResponseData:
      type: object
      properties:
        refunded:
          type: number
      required:
        - refunded
      additionalProperties: false
    CreateGroupBuyCloseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateGroupBuyCloseResponseData"
      required:
        - data
      additionalProperties: false
    CreateGroupBuyCloseResponseData:
      type: object
      properties:
        outcome:
          type: string
          enum:
            - cancelled
            - released
            - settled
            - extended
      required:
        - outcome
      additionalProperties: false
    CreateGroupBuyExtendRequest:
      type: object
      properties:
        days:
          type: number
      required:
        - days
      additionalProperties: false
    CreateGroupBuyExtendResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateGroupBuyExtendResponseData"
      required:
        - data
      additionalProperties: false
    CreateGroupBuyExtendResponseData:
      type: object
      properties:
        endsAt:
          type: string
      required:
        - endsAt
      additionalProperties: false
    CreateGroupBuyMessageRequest:
      type: object
      properties:
        title:
          type: string
        body:
          type: string
      required:
        - title
        - body
      additionalProperties: false
    CreateGroupBuyMessageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateGroupBuyMessageResponseData"
      required:
        - data
      additionalProperties: false
    CreateGroupBuyMessageResponseData:
      type: object
      properties:
        sent:
          type: number
      required:
        - sent
      additionalProperties: false
    CreateGroupBuyRequest:
      type: object
      properties:
        listingSlug:
          type: string
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/CreateGroupBuyRequestTiers"
        minBuyers:
          type: number
        days:
          type: number
      required:
        - listingSlug
        - tiers
        - minBuyers
        - days
      additionalProperties: false
    CreateGroupBuyRequestTiers:
      type: object
      properties:
        minBuyers:
          type: number
        priceCents:
          type: number
      required:
        - minBuyers
        - priceCents
      additionalProperties: false
    CreateImportRequest:
      type: object
      properties:
        platform:
          type: string
        marketplaces:
          type: array
          items:
            type: string
          description: eBay sites to import (EBAY_GB, …). Omit for every site. See GET /api/v1/imports/sites.
        listOnCrossly:
          type: boolean
          description: Also list what the import brings in on Crossly, once its details are filled in.
      required:
        - platform
      additionalProperties: false
    CreateImportResponse:
      type: object
      properties:
        jobId:
          type: string
        platform:
          type: string
        status:
          type: string
      required:
        - jobId
        - platform
        - status
      additionalProperties: false
    CreateInboxAiSuggestRequest:
      type: object
      properties:
        conversationId:
          type: string
      required:
        - conversationId
      additionalProperties: false
    CreateInboxAiSuggestResponse:
      type: object
      properties:
        suggestion:
          type: string
      required:
        - suggestion
      additionalProperties: false
    CreateInboxCannedResponseRequest:
      type: object
      properties:
        name:
          type: string
        body:
          type: string
      required:
        - name
        - body
      additionalProperties: false
    CreateInboxCannedResponseResponse:
      type: object
      properties:
        cannedResponse:
          $ref: "#/components/schemas/CreateInboxCannedResponseResponseCannedResponse"
      required:
        - cannedResponse
      additionalProperties: false
    CreateInboxCannedResponseResponseCannedResponse:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        title:
          type: string
          nullable: true
        body:
          type: string
        surface:
          type: string
        sortOrder:
          type: number
      required:
        - id
        - name
        - createdAt
        - userId
        - body
        - surface
        - sortOrder
      additionalProperties: false
    CreateInboxConversationBulkAiRespondRequest:
      type: object
      properties:
        conversationIds:
          type: array
          items:
            type: string
        mode:
          type: string
          enum:
            - draft
            - send
      required:
        - conversationIds
        - mode
      additionalProperties: false
    CreateInboxConversationBulkAiRespondResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: "#/components/schemas/CreateInboxConversationBulkAiRespondResponseResults"
      required:
        - results
      additionalProperties: false
    CreateInboxConversationBulkAiRespondResponseResults:
      type: object
      properties:
        conversationId:
          type: string
        ok:
          type: boolean
        suggestion:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
      required:
        - conversationId
        - ok
      additionalProperties: false
    CreateInboxConversationBulkRequest:
      type: object
      properties:
        conversationIds:
          type: array
          items:
            type: string
        action:
          type: string
          enum:
            - delete
            - mark_read
            - mark_unread
      required:
        - conversationIds
        - action
      additionalProperties: false
    CreateInboxConversationBulkResponse:
      type: object
      properties:
        affected:
          type: number
      required:
        - affected
      additionalProperties: false
    CreateInboxConversationOfferActionRequest:
      type: object
      properties:
        action:
          type: string
          enum:
            - accept
            - decline
            - counter
        counterAmount: {}
      required:
        - action
      additionalProperties: false
    CreateInboxMessageTriageResponse:
      type: object
      properties:
        aiIntent:
          type: string
          nullable: true
        aiUrgency:
          type: string
          nullable: true
        aiScamScore:
          type: number
          nullable: true
        aiSuggestedReply:
          type: string
          nullable: true
        aiTriagedAt:
          type: string
          format: date-time
          nullable: true
      additionalProperties: false
    CreateInboxOfferRequest:
      type: object
      properties:
        action:
          type: string
          enum:
            - accept
            - decline
            - counter
        counterAmount:
          type: number
      required:
        - action
      additionalProperties: false
    CreateInboxOfferResponse:
      type: object
      properties:
        jobId:
          type: string
      required:
        - jobId
      additionalProperties: false
    CreateInboxReplyResponse:
      type: object
      properties:
        jobId:
          type: string
        messageId:
          type: string
        deliveryStatus:
          type: string
          enum:
            - sending
            - sent
            - failed
          nullable: true
      required:
        - jobId
        - messageId
      additionalProperties: false
    CreateInboxSendOfferRequest:
      type: object
      required:
        - amount
      properties:
        amount:
          type: number
          exclusiveMinimum: true
          minimum: 0
        note:
          type: string
          maxLength: 1000
          description: Optional text sent with the offer; the marketplace shows it as a message of its own.
    CreateInboxSendOfferResponse:
      type: object
      properties:
        jobId:
          type: string
        messageId:
          type: string
        deliveryStatus:
          type: string
          enum:
            - sending
            - sent
            - failed
          nullable: true
        message:
          $ref: "#/components/schemas/CreateInboxSendOfferResponseMessage"
      required:
        - jobId
        - messageId
        - message
      additionalProperties: false
    CreateInboxSendOfferResponseMessage:
      type: object
      properties:
        id:
          type: string
        videoUrl:
          type: string
          nullable: true
        syncedAt:
          type: string
          format: date-time
          nullable: true
        offerAmount:
          type: string
          nullable: true
        offerStatus:
          type: string
          enum:
            - expired
            - pending
            - accepted
            - declined
            - voided
          nullable: true
        conversationId:
          type: string
        platformMessageId:
          type: string
          nullable: true
        sender:
          type: string
        body:
          type: string
          nullable: true
        authorUserId:
          type: string
          nullable: true
        attachments:
          type: array
          items:
            type: string
          nullable: true
        sentAt:
          type: string
          format: date-time
        aiIntent:
          type: string
          nullable: true
        aiUrgency:
          type: string
          nullable: true
        aiScamScore:
          type: number
          nullable: true
        aiSuggestedReply:
          type: string
          nullable: true
        aiTriagedAt:
          type: string
          format: date-time
          nullable: true
        stickerId:
          type: string
          nullable: true
        gifUrl:
          type: string
          nullable: true
        videoThumbUrl:
          type: string
          nullable: true
        voiceUrl:
          type: string
          nullable: true
        voiceDurationSeconds:
          type: number
          nullable: true
        readAt:
          type: string
          format: date-time
          nullable: true
        deliveryStatus:
          type: string
          enum:
            - sending
            - sent
            - failed
          nullable: true
        deliveryError:
          type: string
          nullable: true
        automation:
          type: string
          enum:
            - hash_harvest
          nullable: true
      required:
        - id
        - conversationId
        - sender
        - sentAt
      additionalProperties: false
    CreateInventoryBulkArchiveResponse:
      type: object
      properties:
        success:
          type: boolean
        archived:
          type: number
        bulkJobId:
          type: string
      required:
        - success
        - archived
        - bulkJobId
      additionalProperties: false
    CreateInventoryBulkDeleteRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
        force:
          type: boolean
        deleteListings:
          type: boolean
      required:
        - ids
      additionalProperties: false
    CreateInventoryBulkDeleteResponse:
      type: object
      properties:
        deleted:
          type: number
        deletedIds:
          type: array
          items:
            type: string
        refused:
          type: array
          items:
            $ref: "#/components/schemas/CreateInventoryBulkDeleteResponseRefused"
          description: "Items NOT deleted: a live listing Crossly may not end (action authority)."
        relayed:
          type: number
          description: Live rows handed to their managing app as delist commands.
        bulkJobId:
          type: string
        success:
          type: boolean
      required:
        - deleted
        - deletedIds
        - refused
        - relayed
        - bulkJobId
        - success
      additionalProperties: false
    CreateInventoryBulkDeleteResponseRefused:
      type: object
      properties:
        inventoryItemId:
          type: string
        platform:
          type: string
        platformListingDbId:
          type: string
        listingId:
          type: string
        code:
          type: string
        reason:
          type: string
      required:
        - inventoryItemId
        - platform
        - platformListingDbId
        - listingId
        - code
        - reason
      additionalProperties: false
    CreateInventoryBulkLabelRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
        addLabels:
          type: array
          items:
            type: string
        removeLabels:
          type: array
          items:
            type: string
      required:
        - ids
      additionalProperties: false
    CreateInventoryBulkQuantityResponse:
      type: object
      properties:
        affected:
          type: number
          description: Rows whose available stock actually changed.
        skipped:
          type: number
          description: |-
            Ids that did not move. Either they were already at that number, or they
            aren't this seller's. The two are deliberately not distinguished: telling
            a caller "that id isn't yours" confirms the id exists.
        bulkJobId:
          type: string
          nullable: true
          description: Watchable job for the marketplace fan-out, when one was started.
      required:
        - affected
        - skipped
      additionalProperties: false
    CreateInventoryBulkRestoreResponse:
      type: object
      properties:
        success:
          type: boolean
        restored:
          type: number
        restoredIds:
          type: array
          items:
            type: string
      required:
        - success
        - restored
        - restoredIds
      additionalProperties: false
    CreateInventoryCatalogMatchRefreshResponse:
      type: object
      additionalProperties: true
      properties:
        run:
          $ref: "#/components/schemas/CreateInventoryCatalogMatchRefreshResponseRun"
        boundMarketSkuId:
          type: string
          nullable: true
        suggestions:
          type: array
          items:
            $ref: "#/components/schemas/GetInventoryCatalogMatchResponseSuggestions"
    CreateInventoryCatalogMatchRefreshResponseRun:
      type: object
      properties:
        outcome:
          type: string
        boundSkuId:
          type: string
          nullable: true
        proposed:
          type: integer
    CreateInventoryCsvExportRequest:
      type: object
      properties:
        itemIds:
          type: array
          items:
            type: string
      additionalProperties: false
    CreateInventoryCsvExportResponse:
      type: string
    CreateInventoryCsvImportRequest:
      type: object
      properties:
        csv:
          type: string
        dryRun:
          type: boolean
      required:
        - csv
      additionalProperties: false
    CreateInventoryCsvImportResponse:
      type: object
      properties:
        problems:
          type: array
          items:
            $ref: "#/components/schemas/CreateInventoryCsvImportResponseProblems"
        problemCount:
          type: number
        maxRows:
          type: number
        created:
          type: number
          description: New items written — or, on a dry run, that WOULD be written.
        updated:
          type: number
          description: Existing items updated by SKU — or, on a dry run, that would be.
        usable:
          type: number
          description: |-
            Rows that can be imported: `created + updated + skippedOverLimit`.
            Zero means the file has nothing usable in it.
        totalRows:
          type: number
        listingsCreated:
          type: number
        skippedOverLimit:
          type: number
          description: New rows left out because the monthly item limit was reached.
        capacity:
          $ref: "#/components/schemas/CreateInventoryCsvImportResponseCapacity"
        dryRun:
          type: boolean
          description: True when nothing was written — a preview pass.
      required:
        - problems
        - problemCount
        - maxRows
        - created
        - updated
        - usable
        - totalRows
        - listingsCreated
        - skippedOverLimit
        - capacity
        - dryRun
      additionalProperties: false
    CreateInventoryCsvImportResponseCapacity:
      type: object
      properties:
        limit:
          type: number
          nullable: true
          description: Items the plan allows per calendar month. `null` = unlimited.
        used:
          type: number
          description: Items already created this month, before this import.
        remaining:
          type: number
          nullable: true
          description: New items this import may still add. `null` = unlimited.
        tier:
          type: string
      required:
        - used
        - tier
      additionalProperties: false
    CreateInventoryCsvImportResponseProblems:
      type: object
      properties:
        line:
          type: number
          description: |-
            1-based, and counting the header — so it matches what the seller sees
            in their spreadsheet. Off-by-one here makes every error unfindable.
        message:
          type: string
      required:
        - line
        - message
      additionalProperties: false
    CreateInventoryHoldReleaseRequest:
      type: object
      properties:
        reason:
          type: string
          enum:
            - cancelled
            - released
          description: "`released` (default): freed early. `cancelled`: the program it was held for fell through."
      additionalProperties: false
    CreateInventoryHoldReleaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListInventoryHoldsItem"
      required:
        - data
      additionalProperties: false
    CreateInventoryMergeRequest:
      type: object
      properties:
        keepItemId:
          type: string
        mergeItemIds:
          type: array
          items:
            type: string
      required:
        - keepItemId
        - mergeItemIds
      additionalProperties: false
    CreateInventoryMergeResponse:
      type: object
      properties:
        merged:
          type: number
        keptItemId:
          type: string
      required:
        - merged
        - keptItemId
      additionalProperties: false
    CreateInventoryRequest:
      type: object
      properties:
        defaultTitle:
          type: string
        originalPrice: {}
        brand:
          type: string
        size:
          type: string
        material:
          type: string
        style:
          type: string
        pattern:
          type: string
        department:
          type: string
        gender:
          type: string
        itemType:
          type: string
        sizeSystem:
          type: string
        condition:
          type: string
        color:
          type: array
          items:
            type: string
        category:
          $ref: "#/components/schemas/CreateInventoryRequestCategory"
        tags:
          type: array
          items:
            type: string
        labels:
          type: array
          items:
            type: string
        sku:
          type: string
        quantity:
          type: number
        images:
          type: array
          items:
            type: string
        videoUrl:
          type: string
          nullable: true
        notes:
          type: string
        warehouseLocation:
          type: string
          description: "Where it sits: a free-text location, and the bin / shelf (0242)."
        storageBin:
          type: string
        storageNote:
          type: string
        weightLb:
          type: number
        weightOz:
          type: number
        dimensionLIn:
          type: number
        dimensionWIn:
          type: number
        dimensionHIn:
          type: number
        costBasisCents:
          type: number
          nullable: true
          description: "What one unit costs you, in cents (the supplier's price): net profit's cost of goods."
        supplier:
          $ref: "#/components/schemas/CreateInventoryRequestSupplier"
      required:
        - defaultTitle
      additionalProperties: false
    CreateInventoryRequestCategory:
      type: object
      properties:
        main:
          type: string
        sub:
          type: string
        sub2:
          type: string
      additionalProperties: false
    CreateInventoryRequestSupplier:
      type: object
      properties:
        name:
          type: string
        kind:
          type: string
          enum:
            - wholesale
            - retailer
        productUrl:
          type: string
          nullable: true
        productId:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        handlingTimeDays:
          type: number
          nullable: true
        shipFromRegion:
          type: string
          nullable: true
      required:
        - name
      additionalProperties: false
      nullable: true
      description: |-
        Where the item comes from (services/inventory-items/supplier.ts). Decides which marketplaces it may be
        crossposted to; Crossly never orders from the supplier. null clears it.
    CreateInventoryResponse:
      type: object
      properties:
        category:
          $ref: "#/components/schemas/MainSub"
      additionalProperties: false
    CreateInventoryUnitIdentifierRequest:
      type: object
      properties:
        value:
          type: string
        namespace:
          type: string
          enum:
            - custom
            - gtin
            - serial
            - imei
            - licence_key
        source:
          type: string
          enum:
            - manual
            - import
            - dispute
            - intake
            - packing
        unitId:
          type: string
        notes:
          type: string
      required:
        - value
      additionalProperties: false
    CreateInventoryUnitIdentifierResponse:
      type: object
      properties:
        unitId:
          type: string
        created:
          type: boolean
        normalised:
          type: string
      required:
        - unitId
        - created
        - normalised
      additionalProperties: false
    CreateInventoryUnitLookupRequest:
      type: object
      properties:
        value:
          type: string
        namespace:
          type: string
          enum:
            - custom
            - gtin
            - serial
            - imei
            - licence_key
      required:
        - value
      additionalProperties: false
    CreateInventoryUnitLookupResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateInventoryUnitLookupResponseData"
      required:
        - data
      additionalProperties: false
    CreateInventoryUnitLookupResponseData:
      type: object
      properties:
        found:
          type: boolean
        reason:
          type: string
      required:
        - found
        - reason
      additionalProperties: false
    CreateListingAdBulkAddItem:
      type: object
      properties:
        listingId:
          type: string
        platformListingId:
          type: string
          nullable: true
        ok:
          type: boolean
        status:
          type: string
        error:
          type: string
          nullable: true
        code:
          type: string
          nullable: true
          description: "not_live: the listing has no active row on that marketplace (the form then keeps the intent for publish)."
      required:
        - listingId
        - ok
        - status
      additionalProperties: false
    CreateListingAdBulkAddRequest:
      type: object
      properties:
        platform:
          type: string
        campaignId:
          type: string
          description: "Crossly: the campaign uuid; a marketplace: its own campaign id."
        listingIds:
          type: array
          items:
            type: string
          description: "Master listing ids: each one's live row on `platform` is added."
        ratePct:
          type: number
        bidCents:
          type: number
      required:
        - platform
        - campaignId
        - listingIds
      additionalProperties: false
    CreateListingAdBulkAddResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingAdBulkAddItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    CreateListingAdCampaignListingItem:
      type: object
      properties:
        platformListingId:
          type: string
        ok:
          type: boolean
        status:
          type: string
        error:
          type: string
          nullable: true
      required:
        - platformListingId
        - ok
        - status
      additionalProperties: false
    CreateListingAdCampaignListingRequest:
      type: object
      properties:
        platformListingIds:
          type: array
          items:
            type: string
          description: Crossly platform_listings ids (uuids) on this marketplace.
        ratePct:
          type: number
      required:
        - platformListingIds
      additionalProperties: false
    CreateListingAdCampaignListingResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingAdCampaignListingItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    CreateListingAdCampaignRequest:
      type: object
      properties:
        program:
          type: string
          enum:
            - promoted_listing_rate
            - cpc_campaign
            - bump
            - boost
        name:
          type: string
        ratePct:
          type: number
        dailyBudgetCents:
          type: number
        startsAt:
          type: string
        endsAt:
          type: string
        fields:
          type: object
          description: The program's other registry fields by key (weeklyBudgetCents, durationDays …).
          additionalProperties: {}
      required:
        - program
        - name
      additionalProperties: false
    CreateListingAdCampaignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListListingAdCampaignsItem"
      required:
        - data
      additionalProperties: false
    CreateListingAiImagePromptRequest:
      type: object
      properties:
        listingId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
        color: {}
        material:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        style:
          type: string
          enum:
            - detail
            - studio
            - lifestyle
            - flatlay
          nullable: true
        extra:
          type: string
          nullable: true
        referenceImageUrl:
          type: string
          nullable: true
          description: One of the listing's photos on the Crossly CDN; the model keeps that exact item.
      additionalProperties: false
    CreateListingAiImagePromptResponse:
      type: object
      properties:
        prompt:
          type: string
      required:
        - prompt
      additionalProperties: false
    CreateListingAiImageRequest:
      type: object
      properties:
        listingId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
        color: {}
        material:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        style:
          type: string
          enum:
            - detail
            - studio
            - lifestyle
            - flatlay
          nullable: true
        extra:
          type: string
          nullable: true
        referenceImageUrl:
          type: string
          nullable: true
          description: One of the listing's photos on the Crossly CDN; the model keeps that exact item.
        prompt:
          type: string
          nullable: true
          description: Use this prompt verbatim (e.g. the one /prompt returned, edited by the seller).
      additionalProperties: false
    CreateListingAiImageResponse:
      type: object
      properties:
        url:
          type: string
        prompt:
          type: string
        provider:
          type: string
        model:
          type: string
        listingId:
          type: string
          nullable: true
        aiGenerated:
          type: boolean
          description: Always true — the image is recorded as AI-generated.
      required:
        - url
        - prompt
        - provider
        - model
        - aiGenerated
      additionalProperties: false
    CreateListingBulkDeleteRequest:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        allowLive:
          type: boolean
          description: |-
            bulk-hard-delete only: also delete listings that are NOT archived/sold.
            They stay live on the marketplaces (delete never delists — archive does)
            and Crossly stops tracking them. Without it, such a request 409s with
            the counts a confirmation needs.
        dryRun:
          type: boolean
          description: |-
            bulk-hard-delete only: return the counts (found / live / per
            marketplace) without deleting — what the confirmation dialog shows.
        filters:
          $ref: "#/components/schemas/CreateListingBulkDeleteRequestFilters"
      required:
        - listingIds
      additionalProperties: false
    CreateListingBulkDeleteRequestFilters:
      type: object
      properties:
        listedMoreThanDays:
          type: number
          description: |-
            Listing went live > N days ago anywhere. Uses MIN(listed_at)
            across the listing's platform_listings; falls back to
            listings.createdAt when there's no platform_listing yet.
        noSaleDays:
          type: number
          description: |-
            No sale in the last N days. Joins against the sales table on
            inventory_item_id. "Never sold" passes.
        priceMin:
          type: number
          description: Effective price (listings.price → inventory_items.default_price) ≥ X.
        priceMax:
          type: number
        viewsLessThan:
          type: number
          description: |-
            SUM(platform_listings.views) across all active PLs for the listing
            is strictly less than this. Use 1 to catch "zero views".
        favoritesLessThan:
          type: number
          description: SUM(platform_listings.favorites) strictly less than this.
        quantityAvailableLessThanOrEqual:
          type: number
          description: listings.quantity_available ≤ X. quantity=0 catches OOS items.
        listedOnLessThan:
          type: number
          description: |-
            Count of distinct active platform_listings for this listing < X.
            listedOnLessThan=2 = "only on one platform" (under-crossposted).
        listedOnAtLeast:
          type: number
          description: Count of distinct active platform_listings ≥ X (over-exposed).
        brandContains:
          type: string
          description: |-
            Case-insensitive brand contains. Effective brand
            (listings.brand → inventory_items.brand).
        hasAnyLabels:
          type: array
          items:
            type: string
          description: |-
            OR-match: at least one of these labels present on the listing's
            inventory_item.labels array.
        hasNoneLabels:
          type: array
          items:
            type: string
          description: NONE of these labels present.
        condition:
          type: string
          description: Effective condition exactly matches (e.g. 'used', 'new_with_tags').
      additionalProperties: false
      description: |-
        Optional narrowing filters from the dialog's Advanced section.
        Applied server-side BEFORE coordinator fan-out.
    CreateListingBulkDeleteResponse:
      type: object
      properties:
        message:
          type: string
        bulkJobId:
          nullable: true
      required:
        - message
        - bulkJobId
      additionalProperties: false
    CreateListingBulkDelistPreviewResponse:
      type: object
      properties:
        marketplaces:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingBulkDelistPreviewResponseMarketplaces"
        totalActive:
          type: number
        totalSelected:
          type: number
        matched:
          type: number
      required:
        - marketplaces
        - totalActive
        - totalSelected
        - matched
      additionalProperties: false
    CreateListingBulkDelistPreviewResponseMarketplaces:
      type: object
      properties:
        platform:
          type: string
        activeCount:
          type: number
        accountStatus:
          type: string
          enum:
            - active
            - unknown
            - needs_reauth
      required:
        - platform
        - activeCount
        - accountStatus
      additionalProperties: false
    CreateListingBulkHardDeleteResponse:
      type: object
      properties:
        message:
          type: string
        deletedCount:
          type: number
      required:
        - message
        - deletedCount
      additionalProperties: false
    CreateListingBulkRelistRequest:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        platforms:
          type: array
          items:
            type: string
        confirmOverFreeQuota:
          type: boolean
          description: |-
            Same opt-in escape hatch as CrosspostInputSchema — confirms the
            seller accepts eBay's per-listing overage fee for the listings
            past the free tier. The server returns 402 with details when
            the guard would block.
        filters:
          $ref: "#/components/schemas/CreateListingBulkDeleteRequestFilters"
      required:
        - listingIds
      additionalProperties: false
    CreateListingBulkRequest:
      type: object
      properties:
        items:
          type: array
          items: {}
      required:
        - items
      additionalProperties: false
    CreateListingBulkResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingBulkResponseData"
        meta:
          $ref: "#/components/schemas/CreateListingBulkResponseMeta"
      required:
        - data
        - meta
      additionalProperties: false
    CreateListingBulkResponseData:
      type: object
      properties:
        index:
          type: number
        clientReferenceId:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - error
            - created
            - existing
        httpStatus:
          type: number
        listingId:
          type: string
          nullable: true
        jobs:
          type: array
          items: {}
          nullable: true
        skipped:
          type: array
          items: {}
          nullable: true
        warnings:
          type: array
          items: {}
          nullable: true
        error:
          $ref: "#/components/schemas/CreateListingBulkResponseDataError"
      required:
        - index
        - status
        - httpStatus
      additionalProperties: false
    CreateListingBulkResponseDataError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      additionalProperties: false
      nullable: true
    CreateListingBulkResponseMeta:
      type: object
      properties:
        created:
          type: number
        existing:
          type: number
        failed:
          type: number
      required:
        - created
        - existing
        - failed
      additionalProperties: false
    CreateListingBulkUpdateRequest:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        updates:
          $ref: "#/components/schemas/CreateListingBulkUpdateRequestUpdates"
        allowLive:
          type: boolean
          description: |-
            bulk-hard-delete only: also delete listings that are NOT archived/sold.
            They stay live on the marketplaces (delete never delists — archive does)
            and Crossly stops tracking them. Without it, such a request 409s with
            the counts a confirmation needs.
        dryRun:
          type: boolean
          description: |-
            bulk-hard-delete only: return the counts (found / live / per
            marketplace) without deleting — what the confirmation dialog shows.
        filters:
          $ref: "#/components/schemas/CreateListingBulkDeleteRequestFilters"
      required:
        - listingIds
        - updates
      additionalProperties: false
    CreateListingBulkUpdateRequestUpdates:
      type: object
      properties:
        title:
          $ref: "#/components/schemas/CreateListingBulkUpdateRequestUpdatesTitle"
        description:
          $ref: "#/components/schemas/CreateListingBulkUpdateRequestUpdatesTitle"
        price:
          $ref: "#/components/schemas/CreateListingBulkUpdateRequestUpdatesPrice"
      additionalProperties: false
    CreateListingBulkUpdateRequestUpdatesPrice:
      type: object
      properties:
        action:
          type: string
          enum:
            - set
            - drop_percent
            - drop_amount
            - raise_percent
            - raise_amount
        value:
          type: number
        rounding:
          type: string
          enum:
            - none
            - up
            - down
      required:
        - action
        - value
      additionalProperties: false
    CreateListingBulkUpdateRequestUpdatesTitle:
      type: object
      properties:
        action:
          type: string
          enum:
            - set
            - remove
            - insert_start
            - insert_end
            - find_replace
        value:
          type: string
        find:
          type: string
        replace:
          type: string
      required:
        - action
      additionalProperties: false
    CreateListingBulkUpdateResponse:
      type: object
      properties:
        success:
          type: boolean
        updated:
          type: number
        bulkJobId:
          type: string
      required:
        - success
        - updated
        - bulkJobId
      additionalProperties: false
    CreateListingByIdRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
      required:
        - ids
      additionalProperties: false
    CreateListingByIdResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingByIdResponseItems"
      required:
        - items
      additionalProperties: false
    CreateListingByIdResponseItems:
      type: object
      properties:
        effectiveTitle:
          type: string
        effectivePrice:
          type: string
          nullable: true
        effectiveDescription:
          type: string
          nullable: true
        effectiveImages:
          type: array
          items:
            type: string
        effectiveBrand:
          type: string
          nullable: true
        effectiveCondition:
          type: string
          nullable: true
        effectiveSize:
          type: string
          nullable: true
        effectiveSku:
          type: string
          nullable: true
        effectiveColor:
          type: array
          items:
            type: string
        effectiveTags:
          type: array
          items:
            type: string
        platformListings:
          type: array
          items:
            type: object
            additionalProperties: {}
        inventoryItemId:
          type: string
          nullable: true
        id:
          type: string
        userId:
          type: string
        name:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        descriptionHtml:
          type: string
          nullable: true
        price:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
          description: ISO display currency for `price` (GBP for a UK-eBay store). NULL = USD.
        images:
          type: array
          items:
            type: string
          nullable: true
        videoUrl:
          type: string
          nullable: true
          description: Optional single product video (R2/CDN URL). Shown on the Crossly buyer page.
        aiMediaUrls:
          type: array
          items:
            type: string
          description: |-
            URLs among images/videoUrl that a generative model made (0495). The shop's
            AI tag fires while any of them is still on the listing.
        aiMediaDeclared:
          type: boolean
          description: Seller's own declaration that the listing uses AI images/video (0495).
        aiMediaDetectedUrls:
          type: array
          items:
            type: string
          description: |-
            Images Crossly's AI-image detector flagged (0507; ai_media_detections,
            kept in step by services/ai-images/detected.ts). Never client-written.
        status:
          type: string
        condition:
          type: string
          nullable: true
        gradeKey:
          type: string
          nullable: true
          description: |-
            Third-party grading, when the item is slabbed. Migration 0277.

            Separate from `condition` on purpose and never derived from it: a grade
            is a claim about what a GRADING COMPANY certified, and inferring "PSA 10"
            from a coarse condition would be a false authenticity claim. It is also
            never filled from our own AI estimate (`bulk_market_items.grade`), which
            carries an explicit "not a professional grade" disclaimer.

            `gradeKey` is the canonical form from `gradeKey()` in
            shared/constants/graders.ts; `grading` holds the full GradingInfo
            including the cert number and whether a cert lookup verified it.
        grading:
          $ref: "#/components/schemas/CreateBulkBatchItemResponseGrading"
        brand:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        material:
          type: string
          nullable: true
          description: Migration 0179 — see the matching fields on inventory_items above.
        style:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        department:
          type: string
          nullable: true
        gender:
          type: string
          nullable: true
        itemType:
          type: string
          nullable: true
        sizeSystem:
          type: string
          nullable: true
        color:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
        sku:
          type: string
          nullable: true
        isDigital:
          type: boolean
          description: |-
            Physical good (false, the default) or digital one. Migration 0314.

            The discriminator the whole physical/digital boundary is evaluated
            against: physical items are CBX/cash only and NEVER reach the COSM
            auction house, digital items may use either rail. Before this the
            rule existed only as prose — nothing in schema/ could ask whether an
            item was physical, so `docs/METAVERSE-ECONOMY-PLAN.md` §1 was
            unenforceable by construction.

            Why it is a fact about the LISTING: a listing is what gets sold
            (`crossly_auctions` keys on a platform listing, the shop cart sells
            listings), while inventory is what is owned, and the two are M:N —
            so an inventory-side flag could not answer "is this sale digital"
            for a multi-item listing, nor at all for the listings that have no
            inventory row (external-sale stubs, bundle parents).

            Why the default is false: fail closed. A row nobody classified is
            barred from the auction house rather than admitted to it.

            `scripts/check-auction-physical.mjs` (in `pnpm typecheck`) fails the
            build on any code path that can carry a listing into COSM's
            cosmetics/auction tables without gating on this column. Migration
            0314 also adds UNIQUE (id, is_digital) so a future COSM-side table
            can make the refusal a composite FK rather than a convention.
        quantity:
          type: number
        quantityAvailable:
          type: number
        weightLb:
          type: string
          nullable: true
        weightOz:
          type: string
          nullable: true
        dimensionLIn:
          type: string
          nullable: true
        dimensionWIn:
          type: string
          nullable: true
        dimensionHIn:
          type: string
          nullable: true
        publishAt:
          type: string
          format: date-time
          nullable: true
          description: |-
            Scheduled go-live time. When set on a draft, the listing-scheduler
            worker waits until this passes then dispatches the crosspost to
            scheduledPlatforms and flips status from 'draft' to 'active'.
        scheduledPlatforms:
          type: array
          items:
            type: string
          nullable: true
          description: |-
            Which platforms to publish to when publishAt fires. JSON array of
            platform ids. Null/empty = scheduler skips (listing won't auto-
            publish, even after publishAt — gives the seller an escape hatch).
        parentListingId:
          type: string
          nullable: true
          description: |-
            Parent listing when this row is a CHILD in a listing chain. Null =
            standalone. What being a child means depends on the parent's
            `groupKind` — see it.
        groupKind:
          type: string
          enum:
            - bundle
            - variation
            - group
          nullable: true
          description: |-
            What kind of chain this listing is the PARENT of. Null = not a parent.

            `parentListingId` alone models "N listings chained under one" and that
            shape is not bundle-specific — three features want it, differing only
            in what happens when something sells:

              'bundle'     buy the whole thing as one unit. Children never publish
                           on their own; the parent is what goes to marketplaces;
                           selling the parent marks every child sold.
              'variation'  buy one of N (sizes, card conditions, vinyl pressings).
                           Children DO publish — individually on single-axis
                           platforms like Depop/Poshmark, as one group on
                           eBay/Shopify/Etsy. Selling one child must NOT touch its
                           siblings.
              'group'      buy N of these together under a purchase rule ("three
                           $1 cards, or pair it with something") so shipping does
                           not eat the margin.

            A boolean could not express three, and the dangerous direction is
            specific: `sale/detect/bundle-cascade.ts` reading `isBundle` on a
            variation parent would mark every other size sold when one size sold.
            That is why the cascade gates on this column, not on isBundle.

            Chains are depth-1, enforced by a DB trigger (migration 0238) — every
            consumer assumes two levels and discovering otherwise inside the sale
            cascade costs a wrongly-delisted inventory.
        isBundle:
          type: boolean
        automationAssignedRuleIds:
          type: array
          items:
            type: string
          description: |-
            Per-listing automation overrides. See migration 0098.

             automationAssignedRuleIds  — force-include for these rules
             automationBlockedRuleIds   — exempt from these rules
             automationAssignedChainIds — force-include for these workflow chains
             automationBlockedChainIds  — exempt from these workflow chains
        automationBlockedRuleIds:
          type: array
          items:
            type: string
        automationAssignedChainIds:
          type: array
          items:
            type: string
        automationBlockedChainIds:
          type: array
          items:
            type: string
        workflowBlockedIds:
          type: array
          items:
            type: string
          description: |-
            Per-listing workflow overrides (migration 1099, docs/WORKFLOWS.md §10): the automation_* rule/chain ids
            above map here on conversion; `find.listings` and listing action nodes honour them.

             workflowBlockedIds  — workflows (workflows.id) this listing is exempt from
             workflowAssignedIds — workflows this listing is force-included in
        workflowAssignedIds:
          type: array
          items:
            type: string
        hsCode:
          type: string
          nullable: true
          description: Harmonised System customs code — international shipping declarations.
        countryOfOrigin:
          type: string
          nullable: true
          description: Customs country of origin. Distinct from the seller's location.
        priceFloorCents:
          type: number
          nullable: true
          description: |-
            Never let a repricing rule go below this. On the ITEM because it is a
            fact about the thing owned, not about any one rule — "this jacket never
            goes below $45" should apply to every rule, and before this it was
            expressible only as one rule per jacket. Listings inherit when null.
        floorIsNet:
          type: boolean
          description: |-
            When true the floor is a TAKE-HOME target, converted to a per-platform
            gross at reprice time. A gross floor is four different promises across
            four platforms; this is the one number a seller actually cares about.
        delistedAt:
          type: string
          format: date-time
          nullable: true
        soldAt:
          type: string
          format: date-time
          nullable: true
        ebayAttributesEnrichedAt:
          type: string
          format: date-time
          nullable: true
          description: |-
            When the eBay per-item attribute back-fill (GetItem → condition/
            category/item-specifics/…) last RAN for this listing — set whether or
            not it found anything, so the background enrichment pass
            (services/import-listings/ebay-attribute-enrich.ts) terminates and
            resumes cleanly: it only picks up eBay listings where this is null.
            The bulk import leaves it null (it only reads GetMyeBaySelling, which
            carries none of those fields); null on a non-eBay listing is just
            "n/a". See quota.ts for why this is decoupled from the import.
        source:
          type: string
          description: |-
            Mirrors inventory_items.source. 'manual' for every seller-created
            listing; external-stub.ts sets 'external_sale' on the synthetic
            listing it fabricates for a sale detected on a platform id Crossly
            never listed — those rows have no real photos/description of their
            own (everything is lifted from the platform's sale payload) and are
            otherwise indistinguishable from a real listing in the UI.
        duplicateOfListingId:
          type: string
          nullable: true
          description: |-
            Set when import's bin-packing (see _import-one.ts) created THIS
            listing to hold a same-platform straggler it couldn't fit onto an
            existing candidate listing for the same physical item — points at
            the primary/first candidate. Purely informational: this listing
            is a real, independently listable/delistable row, not a shadow.
            Null for every ordinarily-created listing.
        clientDraftId:
          type: string
          nullable: true
          description: |-
            UUID minted on a seller's machine for a draft written offline.

            The idempotency key for desktop sync. The failure it guards is a POST
            that succeeds server-side whose reply is lost — the client cannot tell
            that from a failure, retries, and one item becomes two live listings
            against one piece of stock. Unique per user (partial index, migration
            0268); null for every listing that did not come from an offline draft.
        attributedOauthAppId:
          type: string
          nullable: true
          description: |-
            The third-party OAuth app that created this listing (via its access
            token), if any — the anchor for developer revenue-share: the app that
            created the item earns a cut of its sales. Stamped once at create time
            (first writer wins, never overwritten); null for the web app, a PAT, or
            anything first-party. `attributedGrantId` pins the specific install whose
            agreed terms apply. See services/developer-earnings/.
        attributedGrantId:
          type: string
          nullable: true
        quotaBucket:
          type: string
          nullable: true
          description: |-
            Which quota this listing is counted in (migration 1064): 'app_allowance' = the
            attributed app's per-seller allowance (services/app-allowance/), 'plan' = the
            seller's plan, null = created before allowances / by no app (plan rules).
            Stays 'app_allowance' after an unlink (grandfathered, no longer counted).
        storefrontId:
          type: string
          nullable: true
          description: |-
            The store this listing belongs to (STORE-SCOPE-PLAN D7, migration 1342): stamped at write time from the
            request store, the connection's home store or the default store. NULL = not stamped yet, which belongs to
            the owner's DEFAULT store (services/storefronts/scope.ts inStore) until backfill-store-usage.ts stamps it.
            Hot table: nullable, no default; the index is built CONCURRENTLY in 1343.
        assigneeMemberId:
          type: string
          nullable: true
          description: |-
            The teammate this listing (or draft) is assigned to (team_members.id, migration 1613); NULL = unassigned. Written only
            through the work-assignment service (api-orders services/work-assignment). Hot table: nullable, no default;
            the partial index is built CONCURRENTLY in 1613.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - effectiveTitle
        - effectiveImages
        - effectiveColor
        - effectiveTags
        - platformListings
        - id
        - userId
        - aiMediaUrls
        - aiMediaDeclared
        - aiMediaDetectedUrls
        - status
        - color
        - tags
        - isDigital
        - quantity
        - quantityAvailable
        - isBundle
        - automationAssignedRuleIds
        - automationBlockedRuleIds
        - automationAssignedChainIds
        - automationBlockedChainIds
        - workflowBlockedIds
        - workflowAssignedIds
        - floorIsNet
        - source
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateListingCheckDuplicateRequest:
      type: object
      properties:
        title:
          type: string
          nullable: true
        images:
          type: array
          items:
            type: string
        size:
          type: string
          nullable: true
      additionalProperties: false
    CreateListingCheckDuplicateResponse:
      type: object
      properties:
        matches:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingCheckDuplicateResponseMatches"
      required:
        - matches
      additionalProperties: false
    CreateListingCheckDuplicateResponseMatches:
      type: object
      properties:
        suggested:
          type: string
          enum:
            - variation
            - restock
            - duplicate
          description: |-
            What we'd offer to do about this match. A suggestion for which button to
            feature — never a decision. All three actions stay available.
        variationGroupId:
          type: string
          nullable: true
          description: |-
            The variation group to ADD to, when the match already belongs to one.
            Null means there is no group yet and choosing `variation` creates one from
            the match plus the new listing. Without this the UI has to guess, and
            guessing wrong means either a second group beside the first or a silent
            no-op.
        listingId:
          type: string
          nullable: true
          description: |-
            The seller's existing listing this scan probably duplicates (null if the
            match landed only on an inventory item with no listing row).
        inventoryItemId:
          type: string
          nullable: true
          description: |-
            The inventory item behind that listing, when linked. Drives the
            "View inventory" button.
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        matchType:
          type: string
          enum:
            - title
            - image
        score:
          type: number
          description: 0–1 confidence. Image matches report 1; title matches the similarity.
      required:
        - suggested
        - title
        - matchType
        - score
      additionalProperties: false
    CreateListingCombineResponse:
      type: object
      properties:
        keepListingId:
          type: string
        mergedListingIds:
          type: array
          items:
            type: string
          description: Listings archived into the keeper.
        newQuantityAvailable:
          type: number
          description: Stock on the keeper's item after summing.
        unitsMoved:
          type: number
          description: Units moved off the merged items.
        delistJobsDispatched:
          type: number
          description: Delist jobs dispatched for the merged listings' live platforms.
      required:
        - keepListingId
        - mergedListingIds
        - newQuantityAvailable
        - unitsMoved
        - delistJobsDispatched
      additionalProperties: false
    CreateListingCommandCompleteRequest:
      type: object
      properties:
        newExternalId:
          type: string
        platformRefundId:
          type: string
        amount:
          type: number
        trackingNumber:
          type: string
        carrier:
          type: string
        platformMessageId:
          type: string
      additionalProperties: false
    CreateListingCommandFailRequest:
      type: object
      properties:
        reason:
          type: string
        permanent:
          type: boolean
      required:
        - reason
      additionalProperties: false
    CreateListingDiscrepancyResolveRequest:
      type: object
      properties:
        action:
          type: string
          enum:
            - relist
            - dismiss
            - accept_remote
            - push_ours
            - sync_from_master
      required:
        - action
      additionalProperties: false
    CreateListingDiscrepancyResolveResponse:
      type: object
      properties:
        ok:
          type: boolean
        bulkJobId:
          type: string
          nullable: true
      required:
        - ok
      additionalProperties: false
    CreateListingEvent2Request:
      type: object
      properties:
        events:
          type: array
          items: {}
      required:
        - events
      additionalProperties: false
    CreateListingEvent2Response:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingEventResponse"
      required:
        - data
      additionalProperties: false
    CreateListingEventRequest:
      type: object
      properties:
        type:
          type: string
        changes:
          $ref: "#/components/schemas/CreateListingEventRequestOneOfChanges"
        eventId:
          type: string
        sequence:
          type: number
        occurredAt:
          type: string
        reason:
          type: string
        newExternalId:
          type: string
        price:
          type: number
        quantity:
          type: number
        order:
          $ref: "#/components/schemas/CreateListingEventRequestOneOf3Order"
      required:
        - type
        - eventId
        - sequence
    CreateListingEventRequestOneOf3Order:
      type: object
      properties:
        orderId:
          type: string
        salePrice:
          type: number
        lineId:
          type: string
        lineCount:
          type: number
        quantity:
          type: number
        shippingCharged:
          type: number
        platformFee:
          type: number
        currency:
          type: string
        soldAt:
          type: string
        buyer:
          $ref: "#/components/schemas/CreateListingEventRequestOneOf3OrderBuyer"
      required:
        - orderId
        - salePrice
      additionalProperties: false
    CreateListingEventRequestOneOf3OrderBuyer:
      type: object
      properties:
        username:
          type: string
        name:
          type: string
        email:
          type: string
        address:
          type: object
          additionalProperties: {}
      additionalProperties: false
    CreateListingEventRequestOneOfChanges:
      type: object
      properties:
        title:
          type: string
        price:
          type: number
        quantity:
          type: number
        url:
          type: string
        images:
          type: array
          items:
            type: string
      additionalProperties: false
    CreateListingEventResponse:
      type: object
      properties:
        eventId:
          type: string
        status:
          type: string
          enum:
            - applied
            - rejected
            - stale
            - duplicate
        listingId:
          type: string
          nullable: true
        saleId:
          type: string
          nullable: true
          description: Set when an item.sold created (or found) a sale.
        error:
          $ref: "#/components/schemas/CreateListingEventResponseError"
      required:
        - eventId
        - status
      additionalProperties: false
    CreateListingEventResponseError:
      type: object
      properties:
        code:
          type: string
          enum:
            - app_token_required
            - platform_not_supported
            - item_not_found
            - item_not_active
            - item_not_owned
            - snapshot_required
            - managed_by_another_app
            - listing_platform_conflict
            - external_id_linked_elsewhere
            - listing_not_found
            - listing_not_managed
            - not_managing_app
            - listing_managed_elsewhere
            - event_invalid
            - command_not_found
            - command_state_conflict
            - order_not_found
            - completion_invalid
            - platform_unavailable
        message:
          type: string
      required:
        - code
        - message
      additionalProperties: false
      nullable: true
    CreateListingImportByUrlRequest:
      type: object
      properties:
        platform:
          type: string
        url:
          type: string
        accountSlot:
          type: number
      required:
        - platform
        - url
      additionalProperties: false
    CreateListingImportByUrlResponse:
      type: object
      properties:
        outcome:
          type: string
        listing:
          $ref: "#/components/schemas/CreateListingImportByUrlResponseListing"
      required:
        - outcome
      additionalProperties: false
    CreateListingImportByUrlResponseListing:
      type: object
      properties:
        platformListingId:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        price:
          type: number
          nullable: true
        currency:
          type: string
          nullable: true
          description: ISO currency `price` is in, as the platform reported it (eBay UK → GBP).
        marketplaceId:
          type: string
          nullable: true
          description: |-
            The platform SITE this listing is on, for platforms that list one item
            per site (eBay: EBAY_GB, EBAY_US, …). Drives the import site filter and
            is stored on platform_listings.marketplace_id.
        images:
          type: array
          items:
            type: string
          nullable: true
        brand:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        color:
          type: array
          items:
            type: string
          nullable: true
          description: |-
            Color(s) the platform's own response exposes (e.g. Poshmark's
            `colors` array). Only set when actually present in the scrape.
        sku:
          type: string
          nullable: true
        stockLocation:
          type: string
          enum:
            - seller
            - consigned
          nullable: true
          description: |-
            Where the goods physically are, when the platform tells us.

            Only the consignment-aware marketplaces set it (Alias reports
            `consigned`; POIZON's consignment listings are created that way). Absent
            means 'seller', which is correct for every other platform.
        url:
          type: string
          nullable: true
        category:
          type: array
          items:
            type: string
          nullable: true
          description: |-
            The platform's OWN category, as a top-down path (e.g. Poshmark's
            ["Kids", "Toys", "Dolls & Accessories"] from department → category →
            feature). Only set when the platform's list/scrape response actually
            carries this — never guessed. Mapped onto Crossly's category.main/
            sub/sub2 (listings) or categoryMain/categorySub (inventory_items) at
            create/enrich time.
        categoryId:
          type: string
          nullable: true
          description: |-
            The platform's raw numeric category id, same space as
            overrides.<platform>.categoryId — distinct from `category`'s
            human-readable path. Only set by platforms whose id space is directly
            comparable to what we publish (currently eBay's drift-check second
            call — see platform-parsers/ebay/listing-detail.ts). eBay's own
            CategoryName wording/depth is a different vocabulary from Crossly's
            master taxonomy breadcrumb and will essentially never string-match
            it, so drift-detection compares ids instead of names.
        tags:
          type: array
          items:
            type: string
          nullable: true
          description: |-
            Tag-like strings the platform's own response exposes (e.g. Poshmark's
            marketing "experience" tags). Distinct from a full search-tag
            generator — just whatever real tag data the scrape already carries.
        material:
          type: string
          nullable: true
          description: |-
            Structured item aspects — the same shape the listing form's Item
            Details section captures (and templates already persist), now sourced
            from the platform's own data instead of only manual entry. Only set
            when the platform's response genuinely carries a semantically-matching
            field (eBay item specifics, Facebook attributes, Poshmark catalog,
            Depop's detail-call ride-along) — never derived or guessed.
        style:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        department:
          type: string
          nullable: true
        gender:
          type: string
          nullable: true
        itemType:
          type: string
          nullable: true
        sizeSystem:
          type: string
          nullable: true
        itemSpecifics:
          type: object
          nullable: true
          description: |-
            Category-specific facets from a per-item DETAIL call (e.g. Facebook's
            Age Range/Character/Age Group), keyed the same way eBay item-specifics
            are: aspect name -> value array. Only set by platforms with a genuine
            per-item attribute source — costs one extra call per listing, so
            populated by a dedicated enrichment pass, not the main list mapper.
            Maps onto listings.itemSpecifics; inventory_items has no equivalent
            column.
          additionalProperties: {}
        listedAt:
          type: string
          format: date-time
          nullable: true
          description: |-
            When the listing was first published on the platform. Used by
            the Advanced filter's listedAfter / listedBefore knobs. Optional
            because not every platform returns it on the listing endpoint.
        quantity:
          type: number
          nullable: true
          description: |-
            Units this platform reports. Only meaningful for platforms
            `PLATFORM_QUANTITY_SYNC` marks 'native' — relist platforms show one item
            and say 1 forever, so they leave this undefined rather than voting with
            a number they cannot actually express. See `_quantity.ts`.
        accountSlot:
          type: number
          nullable: true
          description: |-
            Which of the user's connected accounts on this platform this listing
            was scraped from — stamped by fetchCookieListings as it loops each
            connected account (see listActiveForPlatform in
            user-platform-accounts/read.ts). Undefined for API-track platforms
            (single connection, no multi-account concept) and for any cookie path
            that hasn't been threaded yet; importOne treats undefined as slot 1,
            matching the historical single-account default.
        weightOz:
          type: number
          nullable: true
          description: |-
            Total item weight in ounces (already summed, not split lb+oz —
            the write path converts to the DB's weightLb+weightOz split).
        dimensionLIn:
          type: number
          nullable: true
        dimensionWIn:
          type: number
          nullable: true
        dimensionHIn:
          type: number
          nullable: true
        handlingTimeDays:
          type: number
          nullable: true
          description: |-
            Max days the platform's own listing commits to ship within (eBay's
            DispatchTimeMax, Etsy's processing_max).
        bestOfferEnabled:
          type: boolean
          nullable: true
        bestOfferAutoAcceptCents:
          type: number
          nullable: true
        bestOfferAutoDeclineCents:
          type: number
          nullable: true
        itemLocation:
          type: string
          nullable: true
          description: |-
            Free text as the platform itself expresses it (e.g. eBay's `Location`
            is a single seller-typed string like "Austin, TX", not a structured
            address) — never parsed into city/state.
        itemLocationZip:
          type: string
          nullable: true
        itemLocationCountry:
          type: string
          nullable: true
        declaredShippingCost:
          type: number
          nullable: true
          description: |-
            What the platform's OWN listing declares shipping costs — reference
            only, distinct from a realized post-sale shipping cost.
        returnPolicyText:
          type: string
          nullable: true
      required:
        - platformListingId
        - title
      additionalProperties: false
      nullable: true
    CreateListingLinkBulkRequest:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingLinkRequest"
      required:
        - items
      additionalProperties: false
    CreateListingLinkBulkResponse:
      type: object
      properties:
        data:
          type: array
          items: {}
        meta:
          $ref: "#/components/schemas/CreateListingLinkBulkResponseMeta"
      required:
        - data
        - meta
      additionalProperties: false
    CreateListingLinkBulkResponseMeta:
      type: object
      properties:
        linked:
          type: number
        alreadyLinked:
          type: number
        failed:
          type: number
      required:
        - linked
        - alreadyLinked
        - failed
      additionalProperties: false
    CreateListingLinkRequest:
      type: object
      properties:
        platform:
          type: string
        externalId:
          type: string
        crosslyListingId:
          type: string
        snapshot:
          $ref: "#/components/schemas/CreateListingLinkRequestSnapshot"
        sequence:
          type: number
      required:
        - platform
        - externalId
      additionalProperties: false
    CreateListingLinkRequestSnapshot:
      type: object
      properties:
        title:
          type: string
        price:
          type: number
        quantity:
          type: number
        status:
          type: string
          enum:
            - active
            - sold
            - ended
        currency:
          type: string
        url:
          type: string
        images:
          type: array
          items:
            type: string
        description:
          type: string
        sku:
          type: string
        identifiers:
          type: object
          additionalProperties: {}
        condition:
          type: string
        brand:
          type: string
        categoryId:
          type: string
      required:
        - title
        - price
        - quantity
        - status
      additionalProperties: false
    CreateListingLinkResponse:
      type: object
      properties:
        outcome:
          type: string
          enum:
            - linked
            - already_linked
        listingId:
          type: string
        platformListingId:
          type: string
        created:
          type: boolean
          description: True when a new Crossly listing was created (false = attached to an existing one).
        management:
          $ref: "#/components/schemas/CreateListingLinkResponseManagement"
      required:
        - outcome
        - listingId
        - platformListingId
        - created
        - management
      additionalProperties: false
    CreateListingLinkResponseManagement:
      type: object
      properties:
        origin:
          type: string
          enum:
            - linked
            - created
        managingApp:
          $ref: "#/components/schemas/CreateListingLinkResponseManagementManagingApp"
        platform:
          type: string
          nullable: true
        externalId:
          type: string
          nullable: true
        channel:
          type: string
          enum:
            - direct
            - relayed
          nullable: true
        verification:
          type: string
          enum:
            - verified
            - attested
            - mismatch
          nullable: true
        linkedAt:
          type: string
          nullable: true
        crosslyShopFeeBps:
          type: number
          description: |-
            Charged ONLY on sales made on Crossly Shop; sales on eBay or any other
            marketplace never carry an app fee. The seller's agreed revenue share on this
            app's install (oauth_grants.agreed_rev_share_bps); 0 = none (free app, revoked grant).
        openCommands:
          type: number
          description: Commands the app has not completed yet (delist/update/relist).
        attention:
          $ref: "#/components/schemas/CreateListingLinkResponseManagementAttention"
      required:
        - origin
        - managingApp
        - crosslyShopFeeBps
        - openCommands
      additionalProperties: false
    CreateListingLinkResponseManagementAttention:
      type: object
      properties:
        commandId:
          type: string
        type:
          type: string
          enum:
            - delist
            - update
            - relist
            - submit_tracking
            - remove_tracking
            - cancel_order
            - refund_order
            - message_buyer
        state:
          type: string
          enum:
            - expired
            - pending
            - completed
            - cancelled
            - failed
            - acked
        reason:
          type: string
          nullable: true
      required:
        - commandId
        - type
        - state
      additionalProperties: false
      nullable: true
      description: Oldest failed/expired command, surfaced to the seller.
    CreateListingLinkResponseManagementManagingApp:
      type: object
      properties:
        clientId:
          type: string
          description: The Atlas/OAuth client id the app authenticates with.
        name:
          type: string
          description: The app's display name ("Infinity").
      required:
        - clientId
        - name
      additionalProperties: false
    CreateListingMagicFillRequest:
      type: object
      properties:
        platform:
          type: string
        note:
          type: string
          description: |-
            Seller's own words, treated as authoritative by the category + facet
            pickers. See services/listings/magic-fill.ts.
      required:
        - platform
      additionalProperties: false
    CreateListingMagicFillResponse:
      type: object
      properties:
        filled:
          type: object
          additionalProperties: {}
        count:
          type: number
        aiAvailable:
          type: boolean
          description: |-
            False when the seller has no AI provider configured — `count: 0` then
            means "nothing new could be resolved" rather than "already complete",
            a distinction the caller (web's useMagicFill toast) needs but `count`
            alone can't express. True whenever a provider IS configured, even if
            the AI call itself failed for some other reason (network, bad key) —
            that's a different problem than "connect a provider."
      required:
        - filled
        - count
        - aiAvailable
      additionalProperties: false
    CreateListingMergeRequest:
      type: object
      properties:
        keepListingId:
          type: string
        mergeListingIds:
          type: array
          items:
            type: string
      required:
        - keepListingId
        - mergeListingIds
      additionalProperties: false
    CreateListingMergeResponse:
      type: object
      properties:
        winnerId:
          type: string
        merged:
          type: number
        movedPlatforms:
          type: array
          items:
            type: string
        inventoryItemIds:
          type: array
          items:
            type: string
          description: Inventory items after the merge (for a stock reconcile).
      required:
        - winnerId
        - merged
        - movedPlatforms
        - inventoryItemIds
      additionalProperties: false
    CreateListingPlatformRecloneRequest:
      type: object
      properties:
        consent:
          type: boolean
        acceptPendingOffers:
          type: boolean
        returnTo:
          type: string
      required:
        - consent
      additionalProperties: false
    CreateListingPlatformRecloneResponse:
      type: object
      properties:
        id:
          type: string
        listingId:
          type: string
        platform:
          type: string
        oldExternalId:
          type: string
        newExternalId:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - completed
            - cancelled
            - failed
            - ending
            - awaiting_seller
            - confirming_end
            - publishing
        endMethod:
          type: string
          enum:
            - seller
            - direct
            - relay
        message:
          type: string
          nullable: true
          description: Seller-facing line for awaiting_seller / failed.
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - listingId
        - platform
        - oldExternalId
        - state
        - endMethod
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateListingPlatformTakeOverResponse:
      type: object
      properties:
        listingId:
          type: string
        platform:
          type: string
        externalId:
          type: string
        mode:
          type: string
          enum:
            - full
            - direct
        outcome:
          type: string
        cancelledCommands:
          type: number
          description: Open commands withdrawn from the app (command.cancelled).
        inFlightCommands:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingPlatformTakeOverResponseInFlightCommands"
          description: Of those, the ones the app had already acked (the seller confirmed over them).
        reissued:
          type: number
          description: Withdrawn commands Crossly re-issued itself (e.g. a pending delist now runs directly).
        ebayModel:
          type: string
          enum:
            - unknown
            - trading
            - inventory_own
            - inventory_foreign
          nullable: true
          description: "eBay only: the item's listing model as Crossly classified it."
        ordersSwitched:
          type: number
          description: Orders on this row now handled directly (address fetches queued).
      required:
        - listingId
        - platform
        - externalId
        - mode
        - outcome
        - cancelledCommands
        - inFlightCommands
        - reissued
        - ordersSwitched
      additionalProperties: false
    CreateListingPlatformTakeOverResponseInFlightCommands:
      type: object
      properties:
        commandId:
          type: string
        type:
          type: string
          enum:
            - delist
            - update
            - relist
        ackedAt:
          type: string
          nullable: true
      required:
        - commandId
        - type
      additionalProperties: false
    CreateListingRequest:
      type: object
      properties:
        platforms:
          type: array
          items:
            type: string
          description: Platforms to crosspost to. Each entry gets a dispatched job.
        data:
          type: object
          description: Listing data — merged with any inventory-item defaults.
          additionalProperties: {}
        clientReferenceId:
          type: string
          description: |-
            The caller's own id for this listing (its SKU / product id). A repeat with
            the same reference returns the listing already made (200, `existing: true`)
            instead of creating a second one. Scoped to the calling app.
        packageWeightAndSize: {}
        listingPolicies: {}
        shippingDetails: {}
        dispatchTimeMax: {}
        shippingPackageDetails: {}
        policies:
          $ref: "#/components/schemas/CreateListingRequestPolicies"
        categoryId:
          type: string
          description: A canonical category id (GET /v1/categories/search).
        itemSpecifics:
          type: object
          description: Aspect name -> value or values (GET /v1/categories/:id/aspects).
          additionalProperties: {}
        strictItemSpecifics:
          type: boolean
          description: Refuse (422) instead of warn when a required aspect is missing.
        condition:
          type: string
          enum:
            - new
            - good
            - fair
            - like_new
            - poor
            - refurbished
        brand:
          type: string
        overrides:
          type: object
          description: "Per-marketplace overrides, e.g. { ebay: { conditionId: '3000' }, poshmark: { brand: 'Nike' } }."
          additionalProperties: {}
        supplier:
          $ref: "#/components/schemas/CreateListingRequestSupplier"
        aiMediaUrls:
          type: array
          items:
            type: string
        aiMediaDeclared:
          type: boolean
          description: The seller's own "this listing uses AI images/video" declaration.
        inventoryItemId:
          type: string
        createInventoryItem:
          type: boolean
          description: |-
            Create the inventory item behind this listing from its own fields.

            Without an item there is no quantity to decrement on a sale, no cost
            basis, no aging, and the listing is invisible to every inventory
            analytic — an agent bulk-creating a catalogue would produce a shelf that
            reports as empty. Ignored when `inventoryItemId` is supplied.
        inventoryItemQuantity:
          type: number
          description: |-
            Physical units on the shelf. Defaults to the listing's `quantity`,
            then 1. Distinct from the advertised quantity when a listing consumes
            several units per sale.
        compositionQuantity:
          type: number
          description: Units of the item consumed per sale of this listing.
        storefrontId:
          type: string
          description: "Crossly only: the store to publish into (default store when omitted); 422 storefront_requirements_missing if it is not set up."
        automationAssignedRuleIds:
          type: array
          items:
            type: string
          description: |-
            Per-listing automation overrides (see migration 0098). Force-include
            or exempt this listing from specific rules / workflow chains.
        automationBlockedRuleIds:
          type: array
          items:
            type: string
        automationAssignedChainIds:
          type: array
          items:
            type: string
        automationBlockedChainIds:
          type: array
          items:
            type: string
        workflowAssignedIds:
          type: array
          items:
            type: string
          description: "Per-listing workflow overrides (docs/WORKFLOWS.md §10): force-include / exempt this listing."
        workflowBlockedIds:
          type: array
          items:
            type: string
      required:
        - platforms
        - data
      additionalProperties: false
    CreateListingRequestPolicies:
      type: object
      properties:
        returnPresetId:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
      additionalProperties: false
    CreateListingRequestSupplier:
      type: object
      properties:
        name:
          type: string
        kind:
          type: string
          enum:
            - wholesale
            - retailer
        productUrl:
          type: string
          nullable: true
        productId:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        handlingTimeDays:
          type: number
          nullable: true
        shipFromRegion:
          type: string
          nullable: true
      required:
        - name
      additionalProperties: false
    CreateListingResponse:
      type: object
      properties:
        listing:
          $ref: "#/components/schemas/IdResponse"
        jobs:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingResponseJobs"
          description: One dispatched crosspost job per accepted platform.
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingResponseSkipped"
          description: |-
            Platforms not dispatched, and why (category gate, dropship_not_allowed_on_platform, a dispatch
            refusal such as validation_error "Add a weight before listing", ...). The listing itself was created.
        bulkJobId:
          type: string
          nullable: true
        clientReferenceId:
          type: string
          nullable: true
        existing:
          type: boolean
          nullable: true
        warnings:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingResponseWarnings"
          nullable: true
          description: Soft item-specifics problems (strictItemSpecifics off) and eBay fields accepted but mapped or ignored.
      required:
        - listing
        - jobs
        - skipped
      additionalProperties: false
    CreateListingResponseJobs:
      type: object
      properties:
        platform:
          type: string
        jobId:
          type: string
      required:
        - platform
        - jobId
      additionalProperties: false
    CreateListingResponseSkipped:
      type: object
      properties:
        platform:
          type: string
        reason:
          type: string
        code:
          type: string
          nullable: true
      required:
        - platform
        - reason
      additionalProperties: false
    CreateListingResponseWarnings:
      type: object
      properties:
        code:
          type: string
          enum:
            - item_specifics_invalid
            - aspect_cardinality
            - aspect_required_missing
            - aspect_unknown
            - aspect_value_too_long
            - ebay_field_ignored
            - ebay_field_mapped
            - description_truncated
          description: "`description_truncated`: the HTML description ends mid-tag or unbalanced (lib/description-view.ts)."
        aspect:
          type: string
          nullable: true
        field:
          type: string
          nullable: true
        message:
          type: string
      required:
        - code
        - message
      additionalProperties: false
    CreateListingTagBulkRequest:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        add:
          type: array
          items:
            type: string
        remove:
          type: array
          items:
            type: string
        dryRun:
          type: boolean
          description: Compute what would change (and the tags on the selection) without writing.
      required:
        - listingIds
      additionalProperties: false
    CreateListingTagBulkResponse:
      type: object
      properties:
        matched:
          type: number
          description: Listings of the caller among `listingIds`.
        changed:
          type: number
          description: Listings whose tags change (dry run) or changed.
        capped:
          type: number
          description: Listings that hit the per-listing cap, so some added tags were left off.
        selectionTags:
          type: array
          items:
            $ref: "#/components/schemas/ListListingTagsItem"
          description: The tags on the matched listings before the edit, most used first.
        dryRun:
          type: boolean
      required:
        - matched
        - changed
        - capped
        - selectionTags
        - dryRun
      additionalProperties: false
    CreateListingTagRenameRequest:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
      required:
        - from
        - to
      additionalProperties: false
    CreateListingTagRenameResponse:
      type: object
      properties:
        updated:
          type: number
        merged:
          type: boolean
        tag:
          type: string
      required:
        - updated
        - merged
        - tag
      additionalProperties: false
    CreateListingUnlinkResponse:
      type: object
      properties:
        listingId:
          type: string
        platform:
          type: string
          nullable: true
        externalId:
          type: string
          nullable: true
        unlinkedBy:
          type: string
          enum:
            - app
            - seller
        reason:
          type: string
          enum:
            - unlinked
            - taken_over
            - recloned
          nullable: true
          description: See ListingUnlinkedPayload.reason (always set by the api).
        unlinkedAt:
          type: string
        cancelledCommands:
          type: number
          description: Pending commands cancelled by the unlink.
        platformConnection:
          type: string
          enum:
            - connected
            - not_connected
          description: |-
            relayed → the platform row is kept but Crossly cannot act on it until the
            seller connects that platform: 'not_connected'. direct → 'connected'.
      required:
        - listingId
        - unlinkedBy
        - unlinkedAt
        - cancelledCommands
        - platformConnection
      additionalProperties: false
    CreateLiveShipmentShipRequest:
      type: object
      properties:
        trackingNumber:
          type: string
        carrier:
          type: string
      required:
        - trackingNumber
      additionalProperties: false
    CreateLiveShipmentShipResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListLiveShipmentsItem"
      required:
        - data
      additionalProperties: false
    CreateLiveStreamConnectionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateLiveStreamConnectionResponseData"
      required:
        - data
      additionalProperties: false
    CreateLiveStreamConnectionResponseData:
      type: object
      properties:
        configured:
          type: boolean
        provider:
          type: string
          enum:
            - none
            - cloudflare
            - mediamtx
        capabilities:
          $ref: "#/components/schemas/CreateLiveStreamConnectionResponseDataCapabilities"
        reason:
          type: string
          nullable: true
        ingestUrl:
          type: string
          nullable: true
        ingestKey:
          type: string
          nullable: true
        ingestSrtUrl:
          type: string
          nullable: true
        playbackUrl:
          type: string
          nullable: true
        whipUrl:
          type: string
          nullable: true
          description: WHIP endpoint for publishing from a browser; null when the ingest has none.
      required:
        - configured
        - provider
        - capabilities
      additionalProperties: false
    CreateLiveStreamConnectionResponseDataCapabilities:
      type: object
      properties:
        rtmp:
          type: boolean
        srt:
          type: boolean
        whip:
          type: boolean
      required:
        - rtmp
        - srt
        - whip
      additionalProperties: false
    CreateLiveStreamRequest:
      type: object
      properties:
        title:
          type: string
        scheduledAt:
          type: string
        description:
          type: string
        coverImageUrl:
          type: string
        category:
          type: string
        platformListingIds:
          type: array
          items:
            type: string
      required:
        - title
        - scheduledAt
      additionalProperties: false
    CreateLookbookCampaignPreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateLookbookCampaignPreviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateLookbookCampaignPreviewResponseData:
      type: object
      properties:
        audience:
          $ref: "#/components/schemas/CreateLookbookCampaignPreviewResponseDataAudience"
        subject:
          type: string
        html:
          type: string
        text:
          type: string
        from:
          type: string
      required:
        - audience
        - subject
        - html
        - text
        - from
      additionalProperties: false
    CreateLookbookCampaignPreviewResponseDataAudience:
      type: object
      properties:
        total:
          type: number
        eligible:
          type: number
        skipped:
          type: object
          additionalProperties: {}
        sample:
          type: array
          items:
            $ref: "#/components/schemas/CreateLookbookCampaignPreviewResponseDataAudienceSample"
      required:
        - total
        - eligible
        - skipped
        - sample
      additionalProperties: false
    CreateLookbookCampaignPreviewResponseDataAudienceSample:
      type: object
      properties:
        email:
          type: string
          nullable: true
        handle:
          type: string
          nullable: true
        eligible:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - eligible
      additionalProperties: false
    CreateLookbookCampaignRequest:
      type: object
      properties:
        collectionId:
          type: string
        subject:
          type: string
        footerAddress:
          type: string
        audience:
          $ref: "#/components/schemas/CreateLookbookCampaignRequestAudience"
        credentialId:
          type: string
          nullable: true
        preheader:
          type: string
          nullable: true
        intro:
          type: string
          nullable: true
        scheduledAt:
          type: string
          nullable: true
        idempotencyKey:
          type: string
          nullable: true
      required:
        - collectionId
        - subject
        - footerAddress
        - audience
      additionalProperties: false
    CreateLookbookCampaignRequestAudience:
      type: object
      properties:
        kind:
          type: string
          enum:
            - repeat
            - all
            - segment
            - subscribers
            - handles
      required:
        - kind
      additionalProperties: false
    CreateLookbookRequest:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
          nullable: true
        templateId:
          type: string
        isPublished:
          type: boolean
      required:
        - title
      additionalProperties: false
    CreateLookbookResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateLookbookResponseData"
      required:
        - data
      additionalProperties: false
    CreateLookbookResponseData:
      type: object
      properties:
        lookbook:
          $ref: "#/components/schemas/CreateLookbookResponseDataLookbook"
        version:
          type: number
        latestVersion:
          type: number
        design:
          $ref: "#/components/schemas/CreateLookbookResponseDataDesign"
        listings:
          type: object
          additionalProperties: {}
        brand:
          $ref: "#/components/schemas/CreateLookbookResponseDataBrand"
        renders:
          type: object
          additionalProperties: {}
      required:
        - lookbook
        - version
        - latestVersion
        - listings
        - brand
        - renders
      additionalProperties: false
    CreateLookbookResponseDataBrand:
      type: object
      properties:
        colors:
          type: array
          items:
            type: string
        logoUrl:
          type: string
          nullable: true
        headingFont:
          type: string
          enum:
            - system
            - inter
            - space-grotesk
            - playfair
            - cormorant
            - archivo-black
            - dm-serif
            - syne
            - bebas
            - caveat
            - mono
            - serif
        bodyFont:
          type: string
          enum:
            - system
            - inter
            - space-grotesk
            - playfair
            - cormorant
            - archivo-black
            - dm-serif
            - syne
            - bebas
            - caveat
            - mono
            - serif
        shopName:
          type: string
          nullable: true
      required:
        - colors
        - headingFont
        - bodyFont
      additionalProperties: false
    CreateLookbookResponseDataDesign:
      type: object
      properties:
        schema:
          type: number
        size:
          $ref: "#/components/schemas/WH"
        pages:
          type: array
          items:
            type: object
            additionalProperties: {}
        brand:
          $ref: "#/components/schemas/CreateLookbookResponseDataDesignBrand"
      required:
        - schema
        - size
        - pages
      additionalProperties: false
      nullable: true
    CreateLookbookResponseDataDesignBrand:
      type: object
      properties:
        colors:
          type: array
          items:
            type: string
        logoUrl:
          type: string
          nullable: true
        headingFont:
          type: string
          enum:
            - system
            - inter
            - space-grotesk
            - playfair
            - cormorant
            - archivo-black
            - dm-serif
            - syne
            - bebas
            - caveat
            - mono
            - serif
        bodyFont:
          type: string
          enum:
            - system
            - inter
            - space-grotesk
            - playfair
            - cormorant
            - archivo-black
            - dm-serif
            - syne
            - bebas
            - caveat
            - mono
            - serif
        shopName:
          type: string
          nullable: true
      required:
        - colors
        - headingFont
        - bodyFont
      additionalProperties: false
      nullable: true
    CreateLookbookResponseDataLookbook:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        isPublished:
          type: boolean
        publicUrl:
          type: string
      required:
        - id
        - slug
        - title
        - isPublished
        - publicUrl
      additionalProperties: false
    CreateLookbookShareLinkRequest:
      type: object
      properties:
        role:
          type: string
          enum:
            - view
            - comment
            - edit
        label:
          type: string
          nullable: true
        ttlHours:
          type: number
      required:
        - role
      additionalProperties: false
    CreateLookbookShareLinkResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateLookbookShareLinkResponseData"
      required:
        - data
      additionalProperties: false
    CreateLookbookShareLinkResponseData:
      type: object
      properties:
        url:
          type: string
        id:
          type: string
        role:
          type: string
          enum:
            - view
            - comment
            - edit
        label:
          type: string
          nullable: true
        expiresAt:
          type: string
          format: date-time
        revokedAt:
          type: string
          format: date-time
          nullable: true
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
        useCount:
          type: number
        createdAt:
          type: string
          format: date-time
      required:
        - url
        - id
        - role
        - expiresAt
        - useCount
        - createdAt
      additionalProperties: false
    CreateLoyaltyAirdropPrepareResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateLoyaltyAirdropPrepareResponseData"
      required:
        - data
      additionalProperties: false
    CreateLoyaltyAirdropPrepareResponseDataOneOfTxs:
      type: object
      properties:
        asset:
          type: string
        transactionBase64:
          type: string
      required:
        - asset
        - transactionBase64
      additionalProperties: false
    CreateLoyaltyAirdropSubmitRequest:
      type: object
      properties:
        txHash:
          type: string
        signatures:
          type: array
          items:
            type: string
      additionalProperties: false
    CreateLoyaltyProgramInviteRequest:
      type: object
      properties:
        buyerUserIds:
          type: array
          items:
            type: string
      required:
        - buyerUserIds
      additionalProperties: false
    CreateLoyaltyProgramInviteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateLoyaltyProgramInviteResponseData"
      required:
        - data
      additionalProperties: false
    CreateLoyaltyProgramInviteResponseData:
      type: object
      properties:
        invited:
          type: number
      required:
        - invited
      additionalProperties: false
    CreateLoyaltyProgramMemberOverrideRequest:
      type: object
      properties:
        tierId:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
      required:
        - tierId
      additionalProperties: false
    CreateLoyaltyProgramMemberPointRequest:
      type: object
      properties:
        points:
          type: number
      required:
        - points
      additionalProperties: false
    CreateLoyaltyProgramMemberPointResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateLoyaltyProgramMemberPointResponseData"
      required:
        - data
      additionalProperties: false
    CreateLoyaltyProgramMemberPointResponseData:
      type: object
      properties:
        awarded:
          type: boolean
        clubId:
          type: string
        memberId:
          type: string
        points:
          type: number
        balance:
          type: number
      required:
        - awarded
        - clubId
        - memberId
        - points
        - balance
      additionalProperties: false
    CreateLoyaltyTierResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateLoyaltyTierResponseData"
      required:
        - data
      additionalProperties: false
    CreateLoyaltyTierResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        color:
          type: string
        badge:
          type: string
        minSpendCents:
          type: number
        minOrders:
          type: number
        minPoints:
          type: number
        perks:
          type: array
          items:
            $ref: "#/components/schemas/CreateLoyaltyTierResponseDataPerksItem"
        sort:
          type: number
      required:
        - id
        - name
        - color
        - badge
        - minSpendCents
        - minOrders
        - minPoints
        - perks
        - sort
      additionalProperties: false
    CreateMagicAutoDecisionUndoResponse:
      type: object
      properties:
        decision:
          $ref: "#/components/schemas/ListMagicAutoRunDecisionsItem"
        deletedDraftId:
          type: string
          nullable: true
        deletedListingId:
          type: string
          nullable: true
        suggestedKeys:
          type: array
          items:
            type: string
          description: The keys to pre-mark in the deck after the undo.
      required:
        - decision
        - suggestedKeys
      additionalProperties: false
    CreateMagicAutoItemRequest:
      type: object
      properties:
        imageUrls:
          type: array
          items:
            type: string
        hint:
          type: string
        itemRef:
          type: string
        mode:
          type: string
          enum:
            - auto
            - review_all
      required:
        - imageUrls
      additionalProperties: false
    CreateMagicAutoItemResponse:
      type: object
      properties:
        mode:
          type: string
        runId:
          type: string
        draftId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        confidence:
          type: number
        verdict:
          type: string
          enum:
            - none
            - accepted
            - review
        decisionIds:
          type: array
          items:
            type: string
      required:
        - mode
        - runId
        - confidence
        - verdict
        - decisionIds
      additionalProperties: false
    CreateMagicAutoRunRequest:
      type: object
      properties:
        mode:
          type: string
          enum:
            - auto
            - off
            - review_all
      additionalProperties: false
    CreateMagicAutoRunResponse:
      type: object
      properties:
        mode:
          type: string
          enum:
            - auto
            - off
            - review_all
        listingId:
          type: string
          nullable: true
        suggestedKeys:
          type: array
          items:
            type: string
          description: "Keys Crossly picked: the draft's comps on an accept, the pre-marked set otherwise."
        runId:
          type: string
        draftId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        confidence:
          type: number
        verdict:
          type: string
          enum:
            - none
            - accepted
            - review
        decisionIds:
          type: array
          items:
            type: string
      required:
        - mode
        - suggestedKeys
        - runId
        - confidence
        - verdict
        - decisionIds
      additionalProperties: false
    CreateMagicAutoRunSwipeRequest:
      type: object
      properties:
        acceptedKeys:
          type: array
          items:
            type: string
        rejectedKeys:
          type: array
          items:
            type: string
        itemRef:
          type: string
      additionalProperties: false
    CreateMagicAutoRunSwipeResponse:
      type: object
      properties:
        decision:
          $ref: "#/components/schemas/ListMagicAutoRunDecisionsItem"
      required:
        - decision
      additionalProperties: false
    CreateMagicScanRequest:
      type: object
      properties:
        imageUrls:
          type: array
          items:
            type: string
        hint:
          type: string
        matchMode:
          type: string
          enum:
            - auto
            - off
            - review_all
        imageUrl:
          type: string
    CreateMagicScanResponse:
      type: object
      properties:
        runId:
          type: string
        photoIdentifier:
          $ref: "#/components/schemas/CreateMagicScanResponsePhotoIdentifier"
        matchReference:
          $ref: "#/components/schemas/CreateMagicScanResponseMatchReference"
        ebayMatch:
          $ref: "#/components/schemas/CreateMagicScanResponseEbayMatch"
        topHits:
          type: array
          items:
            $ref: "#/components/schemas/CreateMagicScanResponseTopHits"
          description: |-
            Unified top-10-globally list, ranked by CLIP visual similarity to
            the seller's source photo. Each hit carries its origin platform.
        ebayHits:
          type: array
          items:
            $ref: "#/components/schemas/CreateMagicScanResponseEbayHits"
          description: |-
            Legacy compat — UI's existing render. ebayHits now == visually-
            validated eBay subset; otherMatches is re-grouped from topHits.
        otherMatches:
          type: object
          additionalProperties: {}
        imageUrls:
          type: array
          items:
            type: string
          description: Every photo the seller uploaded for this scan, primary first.
        visionAspects:
          type: object
          description: |-
            Vision-LLM aspects extracted across all photos. Populated only
            when the seller has magic-list-vision-aspects enabled + a vision
            provider configured. Empty otherwise.
          additionalProperties: {}
        possibleDuplicates:
          type: array
          items:
            $ref: "#/components/schemas/CreateMagicScanResponsePossibleDuplicates"
          description: |-
            The seller's OWN listings/inventory that this scan probably duplicates
            (image + fuzzy-title self-dedup). Empty when nothing matched. Drives the
            "you may already have this" prompt.
        cached:
          type: boolean
        visionCallsUsed:
          type: number
          nullable: true
          description: |-
            Monthly vision calls (vision-quota.ts) this scan spent: the seller's Activity Log shows them as credits used.
            0 for a single-photo scan and for a re-scan of the same photos.
      required:
        - runId
        - topHits
        - ebayHits
        - otherMatches
        - imageUrls
        - visionAspects
        - possibleDuplicates
        - cached
      additionalProperties: false
    CreateMagicScanResponseEbayHits:
      type: object
      properties:
        itemId:
          type: string
        legacyItemId:
          type: string
          nullable: true
        title:
          type: string
        brand:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
          description: Integer cents.
        currency:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        categoryId:
          type: string
          nullable: true
          description: The category the marketplace filed the match under (id + path), when the provider returns it.
        categoryPath:
          type: string
          nullable: true
        itemUrl:
          type: string
        thumbnailUrl:
          type: string
          nullable: true
        aspects:
          type: object
          nullable: true
          description: Item specifics, when the provider returns them. Always read defensively.
          additionalProperties: {}
      required:
        - itemId
        - title
        - itemUrl
      additionalProperties: false
    CreateMagicScanResponseEbayMatch:
      type: object
      properties:
        itemId:
          type: string
        legacyItemId:
          type: string
          nullable: true
        title:
          type: string
        brand:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
          description: Integer cents.
        currency:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        categoryId:
          type: string
          nullable: true
          description: The category the marketplace filed the match under (id + path), when the provider returns it.
        categoryPath:
          type: string
          nullable: true
        itemUrl:
          type: string
        thumbnailUrl:
          type: string
          nullable: true
        aspects:
          type: object
          nullable: true
          description: Item specifics, when the provider returns them. Always read defensively.
          additionalProperties: {}
      required:
        - itemId
        - title
        - itemUrl
      additionalProperties: false
      nullable: true
      description: |-
        Top eBay match (or null when eBay returned zero). Drives the
        synthesize step's title/brand/price seed.
    CreateMagicScanResponseMatchReference:
      type: object
      properties:
        title:
          type: string
        brand:
          type: string
          nullable: true
        hint:
          type: string
          nullable: true
        source:
          type: string
          enum:
            - ebay
            - none
            - catalog
            - hint
          description: "'catalog' = an identifier resolved to exactly one catalogue product."
        identifier:
          $ref: "#/components/schemas/CreateMagicScanResponseMatchReferenceIdentifier"
        catalog:
          $ref: "#/components/schemas/CreateMagicScanResponseMatchReferenceCatalog"
      required:
        - title
        - source
      additionalProperties: false
      nullable: true
      description: |-
        What every comp was gated and ranked against: the catalogue product the
        identifier resolved to, else the eBay image match (scan/anchor.ts).
    CreateMagicScanResponseMatchReferenceCatalog:
      type: object
      properties:
        skuId:
          type: string
        variantId:
          type: string
          nullable: true
        name:
          type: string
      required:
        - skuId
        - name
      additionalProperties: false
      nullable: true
    CreateMagicScanResponseMatchReferenceIdentifier:
      type: object
      properties:
        namespace:
          type: string
        value:
          type: string
      required:
        - namespace
        - value
      additionalProperties: false
      nullable: true
    CreateMagicScanResponsePhotoIdentifier:
      type: object
      properties:
        identifier:
          $ref: "#/components/schemas/CreateMagicScanResponsePhotoIdentifierIdentifier"
        source:
          type: string
          enum:
            - ocr
            - visual_offsite
        confidence:
          type: number
          description: 0–1. What it is depends on `source`; see the rungs below.
        reason:
          type: string
          description: Human-readable, for a UI that has to explain why it prefilled a field.
      required:
        - identifier
        - source
        - confidence
        - reason
      additionalProperties: false
      nullable: true
      description: |-
        A checksummed identifier established from the photo itself, or null.

        ── WHY THIS OUTRANKS EVERYTHING ELSE IN THIS RESULT ─────────────
        The rest of a scan is RESEMBLANCE: eBay image search and CLIP ranking
        find listings that look like the seller's photo, which is the right tool
        when nothing better exists and is strictly worse than knowing what the
        thing IS. A GTIN read off a barcode, or matched against a retailer's own
        product shot, resolves to catalogue data, real comps and a price history
        for THAT product rather than for products that photograph like it.

        Null far more often than not, and deliberately so — see
        `identify-from-photo.ts` for why the floors are set where they are. A
        wrong identifier silently attaches a seller's listing to another
        product's identity, which is worse than no identifier at all.
    CreateMagicScanResponsePhotoIdentifierIdentifier:
      type: object
      properties:
        namespace:
          type: string
          enum:
            - discogs
            - tcgplayer
            - gtin
            - style_code
            - lego_set
            - asin
        value:
          type: string
      required:
        - namespace
        - value
      additionalProperties: false
    CreateMagicScanResponsePossibleDuplicates:
      type: object
      properties:
        listingId:
          type: string
          nullable: true
          description: |-
            The seller's existing listing this scan probably duplicates (null if the
            match landed only on an inventory item with no listing row).
        inventoryItemId:
          type: string
          nullable: true
          description: |-
            The inventory item behind that listing, when linked. Drives the
            "View inventory" button.
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        matchType:
          type: string
          enum:
            - title
            - image
        score:
          type: number
          description: 0–1 confidence. Image matches report 1; title matches the similarity.
        variationGroupId:
          type: string
          nullable: true
          description: |-
            The variation group the matched listing already belongs to, if any.

            This is what turns "you already have this" into something useful for a
            seller scanning a size run. Scan the Medium, scan the Large, and the
            second scan lands here — the honest answer is usually neither "it's the
            same one" nor "it's different", it's "it's another size of that". Which
            of the two offers to make depends entirely on this field:

              null      → offer to CREATE a group from the match and the new listing
              set       → offer to ADD the new listing to the group that exists

            Without it the UI would have to guess, and guessing wrong means either a
            second group beside the first or a silent no-op.
      required:
        - title
        - matchType
        - score
      additionalProperties: false
    CreateMagicScanResponseTopHits:
      type: object
      properties:
        platform:
          type: string
        title:
          type: string
        priceCents:
          type: number
        imageUrl:
          type: string
          nullable: true
        listingUrl:
          type: string
          nullable: true
        origin:
          type: string
          description: |-
            Origin marker for the UI badge. Every eBay hit is an image-search hit ('ebay-image');
            'ebay-text' is kept in the union only for rows cached before that was fixed.
        visualSim:
          type: number
          nullable: true
          description: |-
            CLIP cosine [0,1]; populated after the visual-rank pass. ABSENT = unscored (no image,
            CLIP down) — never filled in with a made-up value.
        agreement:
          type: number
          nullable: true
          description: Title agreement with the match reference after the hard gates (rank.ts).
        carriesIdentifier:
          type: boolean
          nullable: true
          description: True when the comp states the photo's own identifier (GTIN / style code).
        priceOutlier:
          type: boolean
          nullable: true
          description: "Price outlier within its condition / grade bucket: shown, but not used for pricing."
        condition:
          type: string
          nullable: true
          description: Condition text the platform reported, for the pricing buckets.
        brand:
          type: string
          nullable: true
          description: Brand the platform reported, for the brand gate at verdict time.
        state:
          type: string
          enum:
            - active
            - sold
          description: |-
            'active' = currently for sale; 'sold' = historical comp. UI
            renders distinct badges so the seller can see both at a glance.
        shippingCents:
          type: number
          nullable: true
          description: Shipping in cents (0 = free), where the platform reports it (ExternalSoldComp.shippingCents).
        format:
          type: string
          enum:
            - auction
            - fixed_price
          nullable: true
          description: Auction vs fixed price, where the platform says; an active auction's price is a bid (compPriceIsBid).
      required:
        - platform
        - title
        - priceCents
        - origin
        - state
      additionalProperties: false
    CreateMagicScanSynthesizeRequest:
      type: object
      properties:
        confirmedMatchKeys:
          type: array
          items:
            type: string
        chosenPriceCents: {}
        note:
          type: string
          description: |-
            Post-scan correction, applied to the write-up. Overrides the run's
            pre-scan hint when both exist — see synthesize/seller-note.ts.
      additionalProperties: false
    CreateMagicScanSynthesizeResponse:
      type: object
      properties:
        draftId:
          type: string
        payload:
          $ref: "#/components/schemas/CreateMagicScanSynthesizeResponsePayload"
      required:
        - draftId
        - payload
      additionalProperties: false
    CreateMagicScanSynthesizeResponsePayload:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        brand:
          type: string
          nullable: true
        condition:
          type: string
          enum:
            - new
            - good
            - fair
            - like_new
            - poor
            - refurbished
          nullable: true
          description: |-
            Master form enum value — one of new/like_new/good/fair/poor. The
            heuristic synth maps eBay/Mercari/Poshmark condition strings into
            this canonical form so the UI's <Select> finds a match.
        grading:
          $ref: "#/components/schemas/CreateBulkBatchItemResponseGrading"
        color:
          type: string
          nullable: true
        material:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        sizeSystem:
          type: string
          nullable: true
          description: Poshmark/Vestiaire size system — "US", "EU", "UK", etc.
        weightOz:
          type: number
          nullable: true
        dimensions:
          $ref: "#/components/schemas/CreateMeTemplateRequestDimensions"
        priceCents:
          type: number
          nullable: true
          description: |-
            Echoed user-selected price (cents). Set on every synthesize call
            so the master form's defaultPrice input gets populated regardless
            of which path (AI or heuristic) generated the rest.
        sellerNote:
          type: string
          nullable: true
          description: |-
            The seller's own words about this item — the pre-scan hint, or the
            post-scan note that supersedes it (see synthesize/seller-note.ts).
            Carried on the payload so the TAXONOMY resolvers see it too: category
            and facet picking happen in their own LLM calls, which never saw the
            note even after the main synthesis prompt did. A seller correcting the
            variant was still getting the category of the wrong one.
        priceLowCents:
          type: number
          nullable: true
          description: |-
            Comp price band (cents), outlier-trimmed — low/median/high across the
            matched comps. The UI surfaces the range so the seller prices
            strategically instead of trusting one number; priceCents defaults to
            the median when the seller hasn't picked.
        priceMedianCents:
          type: number
          nullable: true
        priceHighCents:
          type: number
          nullable: true
        quantity:
          type: number
          nullable: true
          description: |-
            Echoed seller-supplied listable-unit count from Magic List. This is
            the listing's ADVERTISED stock (how many of this listing to sell).
            Hydrates the form's `quantity` field. Undefined = leave form default (1).
        createInventoryItem:
          type: boolean
          nullable: true
          description: |-
            Whether Magic List should turn this scan into a stock-tracked
            inventory item on first save (the "Create an inventory item" toggle
            on the results page). Undefined/true = create (historical default).
        inventoryQuantity:
          type: number
          nullable: true
          description: |-
            Physical units the seller actually has in stock — becomes the auto-
            created inventory item's quantity/quantityAvailable. Distinct from
            `quantity` (advertised stock) and `unitsPerListing` (composition).
            Undefined = fall back to `quantity`.
        unitsPerListing:
          type: number
          nullable: true
          description: |-
            How many physical units are bundled inside ONE listing (composition;
            e.g. a pack of 4). Becomes listing_inventory_items.quantity so the
            multi-channel fulfillable = floor(inventoryQuantity / unitsPerListing).
            Undefined = 1.
        costBasisCents:
          type: number
          nullable: true
          description: |-
            What the seller paid, per physical unit, in cents — the auto-created
            inventory item's `costBasisCents`. Nothing wrote that column from any
            create path, so every Magic List item had a NULL cost basis and every
            sale of one reported its full sale price as profit. Undefined = unknown,
            which stays NULL (0 would be a claim that the item was free).
        chosenDimensions:
          $ref: "#/components/schemas/CreateMeTemplateRequestDimensions"
        imageUrls:
          type: array
          items:
            type: string
          nullable: true
          description: |-
            Every photo the seller uploaded for the source scan, primary
            first. The NewListingPage hydrator drops these straight into the
            form's images state so the seller doesn't have to re-upload.
        category:
          $ref: "#/components/schemas/CreateMeTemplateRequestCategoryPath"
        department:
          type: string
          nullable: true
          description: |-
            eBay item-specifics: Department/Gender/Style/Pattern/Type. These
            drive the eBay-required aspects on the form's Item Details
            section. Mostly only eBay matches have them.
        gender:
          type: string
          nullable: true
        style:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        itemType:
          type: string
          nullable: true
        upc:
          type: string
          nullable: true
          description: |-
            Universal product code, when eBay's enriched detail surfaced it.
            Hydrates the master form's UPC/GTIN field.
        shippingPaidBy:
          type: string
          enum:
            - seller
            - buyer
          nullable: true
          description: |-
            Seller-policy defaults. Reasonable picks based on category +
            averages. Leave seller free to override.
        handlingTimeDays:
          type: string
          nullable: true
        returnsAccepted:
          type: string
          enum:
            - no
            - yes
          nullable: true
        returnWindowDays:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          nullable: true
        itemSpecifics:
          type: string
          nullable: true
          description: |-
            Master-level item specifics (JSON Record<string,string[]>). Item
            specifics are now master-owned + fanned to every aspect platform, so the
            form's shared Item-specifics editor prefills from this. Mirrored from the
            richest resolved per-platform specifics blob (eBay after full-aspect
            enrichment). Undefined = no specifics.
        perPlatformOverrides:
          type: object
          description: |-
            Per-platform required-fields map — slotted directly into
            platformOverrides when the form hydrates.
          additionalProperties: {}
        confidence:
          type: number
          description: |-
            AI's confidence in the synthesis (0-1). Surfaced to the seller
            so they can decide whether to skim or trust + click.
        notes:
          type: string
          nullable: true
          description: |-
            AI's free-text rationale for the merge — what it pulled from
            where. Helps the seller spot a bad merge before listing.
        sectionApplicability:
          $ref: "#/components/schemas/CreateMagicScanSynthesizeResponsePayloadSectionApplicability"
      required:
        - title
        - description
        - perPlatformOverrides
        - confidence
      additionalProperties: false
    CreateMagicScanSynthesizeResponsePayloadSectionApplicability:
      type: object
      properties:
        vehicleCompat:
          type: boolean
          description: eBay Motors / Parts vehicle-fitment (compatibilityList).
        epr:
          type: boolean
          description: EU/UK Extended Producer Responsibility (packaging/e-waste schemes).
        energyLabel:
          type: boolean
          description: EU energy-efficiency label (fridges, TVs, lighting, appliances).
        hazmat:
          type: boolean
          description: Hazmat classification (battery/aerosol/flammable/liquid/chemical).
      required:
        - vehicleCompat
        - epr
        - energyLabel
        - hazmat
      additionalProperties: false
      nullable: true
      description: |-
        Deterministic (NO-AI) applicability hint for the heavyweight optional
        form sections (vehicle compatibility, EU EPR / energy label, hazmat).
        Computed from the resolved category + seller region via
        `applicableOptionalSections`; the form pre-checks each section's
        "this item needs …" toggle from it. Additive + best-effort.
    CreateMeTemplateImportResponse:
      type: object
      properties:
        imported:
          type: number
        skipped:
          type: number
        ids:
          type: array
          items:
            type: string
      required:
        - imported
        - skipped
        - ids
      additionalProperties: false
    CreateMeTemplateRenderRequest:
      type: object
      properties:
        context:
          type: object
          additionalProperties: {}
        variantIndex:
          type: number
          description: 0 = the base title; 1..n index into the stashed A/B variants.
      additionalProperties: false
    CreateMeTemplateRenderResponse:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        tokensUsed:
          type: array
          items:
            $ref: "#/components/schemas/CreateMeTemplateRenderResponseTokensUsedItem"
        missingTokens:
          type: array
          items:
            $ref: "#/components/schemas/CreateMeTemplateRenderResponseMissingTokensItem"
      required:
        - title
        - description
        - tokensUsed
        - missingTokens
      additionalProperties: false
    CreateMeTemplateRequest:
      type: object
      properties:
        scope:
          type: string
          enum:
            - description
            - listing
        name:
          type: string
        notes:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        descriptionVariants:
          type: array
          items:
            type: string
          nullable: true
        title:
          type: string
          nullable: true
        titleVariants:
          type: array
          items:
            type: string
          nullable: true
        brand:
          type: string
          nullable: true
        condition:
          type: string
          enum:
            - new
            - good
            - fair
            - like_new
            - poor
          nullable: true
        color:
          type: string
          nullable: true
        material:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        sizeSystem:
          type: string
          nullable: true
        weightOz:
          type: number
          nullable: true
        dimensions:
          $ref: "#/components/schemas/CreateMeTemplateRequestDimensions"
        categoryPath:
          $ref: "#/components/schemas/CreateMeTemplateRequestCategoryPath"
        department:
          type: string
          nullable: true
        gender:
          type: string
          nullable: true
        style:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        itemType:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          nullable: true
        platformOverrides:
          type: object
          nullable: true
          additionalProperties: {}
        defaultForCategory:
          type: string
          nullable: true
        isDefault:
          type: boolean
        extras:
          type: object
          nullable: true
          additionalProperties: {}
        sortOrder:
          type: number
      additionalProperties: false
    CreateMeTemplateRequestCategoryPath:
      type: object
      properties:
        main:
          type: string
          nullable: true
        sub:
          type: string
          nullable: true
        sub2:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
      description: |-
        Category path — split into [main, sub, sub2] when present. eBay
        categoryPath is the cleanest source.
    CreateMeTemplateRequestDimensions:
      type: object
      properties:
        lengthIn:
          type: number
          nullable: true
        widthIn:
          type: number
          nullable: true
        heightIn:
          type: number
          nullable: true
      additionalProperties: false
      nullable: true
    CreateMileageRequest:
      type: object
      properties:
        date:
          type: string
        miles: {}
        purpose:
          type: string
        startLocation:
          type: string
          nullable: true
        endLocation:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
      required:
        - date
        - miles
        - purpose
      additionalProperties: false
    CreateMileageResponse:
      type: object
      properties:
        miles:
          type: number
        date:
          type: string
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        notes:
          type: string
          nullable: true
        purpose:
          type: string
        startLocation:
          type: string
          nullable: true
        endLocation:
          type: string
          nullable: true
      required:
        - miles
        - date
        - id
        - createdAt
        - userId
        - purpose
      additionalProperties: false
    CreateMobilePushTokenRequest:
      type: object
      properties:
        token:
          type: string
        platform:
          type: string
          enum:
            - web
            - ios
            - android
      required:
        - token
        - platform
      additionalProperties: false
    CreateNetworkPoolResponse:
      type: object
      properties:
        ok:
          type: boolean
        joined:
          type: boolean
      required:
        - ok
        - joined
      additionalProperties: false
    CreateNftMarketExternalResaleRequest:
      type: object
      properties:
        mintAddress:
          type: string
        grossSaleCents: {}
        txSig:
          type: string
      required:
        - mintAddress
        - grossSaleCents
        - txSig
      additionalProperties: false
    CreateNftMarketExternalResaleResponse:
      type: object
      properties:
        routed:
          type: boolean
        cosmeticId:
          type: string
          nullable: true
      required:
        - routed
      additionalProperties: false
    CreateNftMarketListingConfirmSaleRequest:
      type: object
      properties:
        buyerUserId:
          type: string
        txSig:
          type: string
      required:
        - buyerUserId
        - txSig
      additionalProperties: false
    CreateNftMarketListingRequest:
      type: object
      properties:
        ownershipId:
          type: string
        priceCents: {}
      required:
        - ownershipId
        - priceCents
      additionalProperties: false
    CreateNftMarketListingResponse:
      type: object
      properties:
        listing:
          $ref: "#/components/schemas/CreateNftMarketListingResponseListing"
      required:
        - listing
      additionalProperties: false
    CreateNftMarketListingResponseListing:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        status:
          type: string
        soldAt:
          type: string
          format: date-time
          nullable: true
        buyerUserId:
          type: string
          nullable: true
        priceCents:
          type: number
        sellerUserId:
          type: string
          nullable: true
        cosmeticId:
          type: string
        merchantId:
          type: string
        ownershipId:
          type: string
        sellerSubjectId:
          type: string
        txSig:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - status
        - priceCents
        - cosmeticId
        - merchantId
        - ownershipId
        - sellerSubjectId
      additionalProperties: false
    CreateNotificationIntegrationRequest:
      type: object
      properties:
        provider:
          type: string
          enum:
            - discord
            - slack
            - webhook
        name:
          type: string
        enabled:
          type: boolean
        config:
          type: object
          additionalProperties: {}
      required:
        - provider
        - name
      additionalProperties: false
    CreateNotificationIntegrationResponse:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - json
            - teams
            - discord
            - slack
            - telegram
            - google_chat
            - mattermost
            - zapier
      required:
        - id
        - kind
      additionalProperties: false
    CreateNotificationIntegrationTestResponse:
      type: object
      properties:
        ok:
          type: boolean
        status:
          type: number
      required:
        - ok
        - status
      additionalProperties: false
    CreateNotifyActionResponse:
      type: object
      properties:
        ok:
          type: boolean
        message:
          type: string
        kind:
          type: string
      required:
        - ok
        - message
        - kind
      additionalProperties: false
    CreateOfferRespondRequest:
      type: object
      required:
        - action
      properties:
        action:
          type: string
          enum:
            - accept
            - decline
            - counter
        counterCents:
          type: integer
          minimum: 1
          description: Required when action is "counter". Your asking price for the set.
    CreateOfferRespondResponse:
      type: object
      properties:
        floorCents:
          type: number
          nullable: true
        floorSource:
          type: string
          enum:
            - listing
            - item
            - break_even
          nullable: true
        ok:
          type: boolean
        status:
          type: string
      required:
        - ok
        - status
      additionalProperties: false
    CreateOrderBulkDeleteRequest:
      type: object
      properties:
        orderIds:
          type: array
          items:
            type: string
        hardDelete:
          type: boolean
      required:
        - orderIds
      additionalProperties: false
    CreateOrderBulkDeleteResponse:
      type: object
      properties:
        deleted:
          type: number
        hardDelete:
          type: boolean
      required:
        - deleted
        - hardDelete
      additionalProperties: false
    CreateOrderBulkExportRequest:
      type: object
      properties:
        orderIds:
          type: array
          items:
            type: string
      required:
        - orderIds
      additionalProperties: false
    CreateOrderBulkExportResponse:
      type: string
    CreateOrderBulkMarkDisputedRequest:
      type: object
      properties:
        orderIds:
          type: array
          items:
            type: string
        reason:
          type: string
      required:
        - orderIds
        - reason
      additionalProperties: false
    CreateOrderBulkMarkShippedRequest:
      type: object
      properties:
        orderIds:
          type: array
          items:
            type: string
        trackingNumber:
          type: string
        carrier:
          type: string
      required:
        - orderIds
      additionalProperties: false
    CreateOrderBulkMarkShippedResponse:
      type: object
      properties:
        updated:
          type: number
        skipped:
          type: number
          description: |-
            Cancelled/refunded orders in the request that were left untouched
            — reported so a caller can't mistake a partial success for "all
            done" and miss that a closed order was in the batch.
      required:
        - updated
        - skipped
      additionalProperties: false
    CreateOrderCancelRequest:
      type: object
      properties:
        reason:
          type: string
        recordOnly:
          type: boolean
          description: "Already cancelled on the marketplace itself: record it in Crossly, send nothing."
      additionalProperties: false
    CreateOrderCancelResponse:
      type: object
      properties:
        platformCancel:
          type: string
          enum:
            - sent
            - failed
            - queued
            - relayed
            - unsupported
            - no_platform_order_id
            - recorded_only
            - already_cancelled
          description: The marketplace outcome, or already_cancelled when the order was cancelled before this call.
        refund:
          $ref: "#/components/schemas/CreateOrderCancelResponseRefund"
        platform:
          type: string
        orderId:
          type: string
        error:
          type: string
          nullable: true
          description: |-
            The platform's error, VERBATIM. Deliberately not summarised — the
            marketplace names what it objected to, and summarising throws that away.
            eBay reason codes are now fetched per order via checkCancelEligibility
            rather than guessed, but a rejection can still happen (order state changed
            between the probe and the cancel), and this is how it gets diagnosed.
        jobId:
          type: string
          nullable: true
          description: Cookie track only.
        cancelledInCrossly:
          type: boolean
          description: True unless the cancel was relayed to the managing app (then false until it completes).
        commandId:
          type: string
          nullable: true
          description: "platformCancel 'relayed': the app command tracking it."
        platformResult:
          type: object
          nullable: true
          description: Platform payload (e.g. eBay's cancellationId) when it answered.
          additionalProperties: {}
      required:
        - platformCancel
        - platform
        - orderId
        - cancelledInCrossly
      additionalProperties: false
    CreateOrderCancelResponseRefund:
      type: object
      properties:
        id:
          type: string
          nullable: true
        amount:
          type: number
        totalRefunded:
          type: number
          nullable: true
        status:
          type: string
          nullable: true
        rewardsReturned:
          type: boolean
          nullable: true
      required:
        - amount
      additionalProperties: false
      nullable: true
    CreateOrderCorrectTrackingRequest:
      type: object
      properties:
        trackingNumber:
          type: string
        carrier:
          type: string
        confirm:
          type: boolean
          description: Act over an acked managing-app command (409 app_command_in_flight asked).
      required:
        - trackingNumber
      additionalProperties: false
    CreateOrderCorrectTrackingResponse:
      type: object
      properties:
        orderId:
          type: string
        platform:
          type: string
        platformName:
          type: string
        previousTrackingNumber:
          type: string
        trackingNumber:
          type: string
        carrier:
          type: string
        correction:
          type: string
          enum:
            - replace
            - remove_then_submit
            - submit
          description: "How it reaches the marketplace: overwritten, removed then resubmitted, or submitted fresh."
        jobId:
          type: string
          description: The queued job (or relayed command) carrying it.
        message:
          type: string
      required:
        - orderId
        - platform
        - platformName
        - previousTrackingNumber
        - trackingNumber
        - carrier
        - correction
        - jobId
        - message
      additionalProperties: false
    CreateOrderDisputeRequest:
      type: object
      properties:
        reason:
          type: string
        platformCaseId:
          type: string
      required:
        - reason
      additionalProperties: false
    CreateOrderDisputeResponse:
      type: object
      properties:
        error:
          $ref: "#/components/schemas/CreateOrderPackScanRequest"
      required:
        - error
      additionalProperties: false
    CreateOrderEventRequest:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: "#/components/schemas/CreateOrderEventRequestEvents"
      required:
        - events
      additionalProperties: false
    CreateOrderEventRequestEvents:
      type: object
      properties:
        type:
          type: string
          enum:
            - order.shipped
            - order.delivered
            - order.cancelled
            - order.refunded
        eventId:
          type: string
        platform:
          type: string
        platformOrderId:
          type: string
        occurredAt:
          type: string
        tracking:
          $ref: "#/components/schemas/CreateOrderEventRequestEventsTracking"
        platformRefundId:
          type: string
        amount:
          type: number
        reason:
          type: string
      required:
        - type
        - eventId
        - platform
        - platformOrderId
      additionalProperties: false
    CreateOrderEventRequestEventsTracking:
      type: object
      properties:
        number:
          type: string
        carrier:
          type: string
      required:
        - number
      additionalProperties: false
    CreateOrderEventResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateOrderEventResponseData"
      required:
        - data
      additionalProperties: false
    CreateOrderEventResponseData:
      type: object
      properties:
        eventId:
          type: string
        status:
          type: string
          enum:
            - applied
            - rejected
            - stale
            - duplicate
        orderId:
          type: string
          nullable: true
        completedCommandId:
          type: string
          nullable: true
          description: The open command this event completed, when there was one.
        error:
          $ref: "#/components/schemas/CreateListingEventResponseError"
      required:
        - eventId
        - status
      additionalProperties: false
    CreateOrderImportRequest:
      type: object
      properties:
        days:
          type: number
          nullable: true
        platform:
          type: string
          description: "`platform` (singular) kept for back-compat with existing callers."
        platforms:
          type: array
          items:
            type: string
      required:
        - days
      additionalProperties: false
    CreateOrderImportResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: "#/components/schemas/CreateOrderImportResponseResults"
      required:
        - results
      additionalProperties: false
    CreateOrderImportResponseResults:
      type: object
      properties:
        platform:
          type: string
        ok:
          type: boolean
        reason:
          type: string
          enum:
            - not_connected
            - unknown_platform
            - unsupported_platform
          nullable: true
        accountsStarted:
          type: number
          nullable: true
          description: "Cookie track: number of account slots kicked off. API track: always 1."
      required:
        - platform
        - ok
      additionalProperties: false
    CreateOrderLabelPrintRequest:
      type: object
      properties:
        parcelId:
          type: string
        size:
          type: string
          enum:
            - letter
            - a4
            - 4x6
        agentId:
          type: string
        printerName:
          type: string
        copies:
          type: number
        reprint:
          type: boolean
      additionalProperties: false
    CreateOrderLabelPrintResponse:
      type: object
      properties:
        mode:
          type: string
        jobId:
          type: string
        delivered:
          type: boolean
        shipmentId:
          type: string
          nullable: true
        pdfUrl:
          type: string
        url:
          type: string
        reason:
          type: string
        message:
          type: string
        printedAt:
          type: string
      required:
        - mode
    CreateOrderLabelRequest:
      type: object
      properties:
        rateId:
          type: string
        weightOz:
          type: number
        labelSize:
          type: string
          enum:
            - letter
            - 4x6
        acceptDrift:
          type: boolean
        allowSecondLabel:
          type: boolean
      required:
        - rateId
      additionalProperties: false
    CreateOrderLabelResponse:
      type: object
      properties:
        trackingNumber:
          type: string
          nullable: true
        labelUrl:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        service:
          type: string
          nullable: true
      additionalProperties: false
    CreateOrderLabelVoidResponse:
      type: object
      properties:
        orderId:
          type: string
        alreadyVoided:
          type: boolean
          description: "False on a repeat call: the label had already been voided."
        refundedCents:
          type: number
          description: Credited back to the shipping wallet, in CENTS, markup included. 0 while the credit is held.
        refundPendingCents:
          type: number
          description: "Owed back to the shipping wallet but held (pending), in CENTS, markup included: not in the balance yet."
        status:
          type: string
          description: |-
            The order's status now: needs_fulfillment for an order that was waiting
            on the label; a cancelled order's label is refunded and it stays cancelled.
        voidedTrackingNumber:
          type: string
          nullable: true
        tracking:
          $ref: "#/components/schemas/CreateOrderLabelVoidResponseTracking"
      required:
        - orderId
        - alreadyVoided
        - refundedCents
        - refundPendingCents
        - status
        - tracking
      additionalProperties: false
    CreateOrderLabelVoidResponseTracking:
      type: object
      properties:
        platform:
          type: string
        platformName:
          type: string
        outcome:
          type: string
          enum:
            - not_submitted
            - removal_queued
            - replace_on_next_label
            - update_manually
        message:
          type: string
        platformOrderUrl:
          type: string
          nullable: true
          description: The order on the marketplace, when we can link to it.
      required:
        - platform
        - platformName
        - outcome
        - message
      additionalProperties: false
      description: What happens to the tracking the marketplace holds.
    CreateOrderLinkListingRequest:
      type: object
      properties:
        listingId:
          type: string
        platformListingId:
          type: string
      required:
        - listingId
      additionalProperties: false
    CreateOrderLinkListingResponse:
      type: object
      properties:
        saleId:
          type: string
        orderId:
          type: string
          nullable: true
        listingId:
          type: string
        platformListingId:
          type: string
        inventoryItemId:
          type: string
          nullable: true
        reparented:
          type: boolean
        quantityAfter:
          type: number
        soldOut:
          type: boolean
        delistJobsEnqueued:
          type: number
        quantityUpdateJobs:
          type: number
        stubArchived:
          $ref: "#/components/schemas/CreateOrderLinkListingResponseStubArchived"
      required:
        - saleId
        - listingId
        - platformListingId
        - reparented
        - quantityAfter
        - soldOut
        - delistJobsEnqueued
        - quantityUpdateJobs
        - stubArchived
      additionalProperties: false
    CreateOrderLinkListingResponseStubArchived:
      type: object
      properties:
        listingId:
          type: string
        platformListingId:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
      required:
        - listingId
      additionalProperties: false
    CreateOrderMessageRequest:
      type: object
      properties:
        body:
          type: string
        subject:
          type: string
      required:
        - body
      additionalProperties: false
    CreateOrderMessageResponse:
      type: object
      properties:
        orderId:
          type: string
        sent:
          type: boolean
        relayed:
          type: boolean
          nullable: true
          description: True when the managing app was asked to send it (action authority).
        commandId:
          type: string
          nullable: true
          description: The managing-app command id, on a relay.
        platformConversationId:
          type: string
          nullable: true
      required:
        - orderId
        - sent
      additionalProperties: false
    CreateOrderOrderChatRequest:
      type: object
      required:
        - body
      properties:
        body:
          type: string
          minLength: 1
          maxLength: 2000
    CreateOrderPackScanRequest:
      type: object
      properties:
        code:
          type: string
      required:
        - code
      additionalProperties: false
    CreateOrderPackScanResponse:
      type: object
      properties:
        ok:
          type: boolean
        orderId:
          type: string
        matchedBy:
          type: string
          enum:
            - sku
            - custom_label
            - item_id
        title:
          type: string
        expectedQuantity:
          type: number
        reason:
          type: string
          enum:
            - wrong_item
            - no_item
        expected:
          $ref: "#/components/schemas/CreateOrderPackScanResponseOneOf1Expected"
      required:
        - ok
        - orderId
    CreateOrderPackScanResponseOneOf1Expected:
      type: object
      properties:
        title:
          type: string
        sku:
          type: string
          nullable: true
      required:
        - title
      additionalProperties: false
      nullable: true
    CreateOrderPickupLabelRequest:
      type: object
      properties:
        allowSecondLabel:
          type: boolean
      additionalProperties: false
    CreateOrderPickupLabelResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateOrderPickupLabelResponseData"
      required:
        - data
      additionalProperties: false
    CreateOrderPickupLabelResponseData:
      type: object
      properties:
        trackingNumber:
          type: string
          nullable: true
        labelUrl:
          type: string
          nullable: true
      additionalProperties: false
    CreateOrderPickupRequest:
      type: object
      properties:
        orderIds:
          type: array
          items:
            type: string
        date:
          type: string
        minTime:
          type: string
        maxTime:
          type: string
        address:
          $ref: "#/components/schemas/CreateOrderPickupRequestAddress"
        instructions:
          type: string
      required:
        - orderIds
        - date
        - minTime
        - maxTime
      additionalProperties: false
    CreateOrderPickupRequestAddress:
      type: object
      properties:
        street1:
          type: string
        city:
          type: string
        state:
          type: string
        zip:
          type: string
        country:
          type: string
      required:
        - street1
        - city
        - state
        - zip
      additionalProperties: false
    CreateOrderPickupResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateOrderPickupResponseData"
      required:
        - data
      additionalProperties: false
    CreateOrderPickupResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        status:
          type: string
        carrier:
          type: string
        confirmation:
          type: string
          nullable: true
        orderIds:
          type: array
          items:
            type: string
        minTime:
          type: string
        maxTime:
          type: string
        instructions:
          type: string
          nullable: true
        shippoPickupId:
          type: string
        pickupDate:
          type: string
        confirmedStart:
          type: string
          format: date-time
          nullable: true
        confirmedEnd:
          type: string
          format: date-time
          nullable: true
        warnings:
          type: array
          items:
            type: string
      required:
        - id
        - createdAt
        - userId
        - status
        - carrier
        - orderIds
        - minTime
        - maxTime
        - shippoPickupId
        - pickupDate
        - warnings
      additionalProperties: false
    CreateOrderPlatformLabelPullResponse:
      type: object
      properties:
        url:
          type: string
        persisted:
          type: boolean
        expiresInSeconds:
          type: number
        provenance:
          type: string
          enum:
            - verified
            - provisional
        shippingLabelUrl:
          type: string
        trackingNumber:
          type: string
          nullable: true
      required:
        - provenance
    CreateOrderPlatformLabelPurchaseResponse:
      type: object
      properties:
        shipment:
          $ref: "#/components/schemas/GetOrderWhatnotShipmentResponseShipment"
        recorded:
          type: boolean
        ok:
          type: boolean
        downloadUrl:
          type: string
          nullable: true
          description: Absent for an additional label, which Poshmark delivers only by email.
        emailOnly:
          type: boolean
          description: True when the label exists only in the seller's inbox.
        labelUrl:
          type: string
        trackingNumber:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        service:
          type: string
          nullable: true
        documentKind:
          type: string
          nullable: true
        webUrl:
          type: string
          nullable: true
        pending:
          type: boolean
        message:
          type: string
    CreateOrderPlatformLabelQuoteResponse:
      type: object
      properties:
        data:
          type: object
          additionalProperties: {}
        meta:
          type: object
          nullable: true
          additionalProperties: {}
        presentation:
          type: object
          nullable: true
          additionalProperties: {}
        trace_id:
          type: string
          nullable: true
      required:
        - data
      additionalProperties: false
    CreateOrderPullPlatformLabelResponse:
      type: object
      properties:
        url:
          type: string
        persisted:
          type: boolean
        expiresInSeconds:
          type: number
        provenance:
          type: string
          enum:
            - verified
            - provisional
        shippingLabelUrl:
          type: string
        trackingNumber:
          type: string
          nullable: true
      required:
        - provenance
    CreateOrderRateRequest:
      type: object
      properties:
        weightOz:
          type: number
        presetId:
          type: string
        lengthIn:
          type: number
        widthIn:
          type: number
        heightIn:
          type: number
      required:
        - weightOz
      additionalProperties: false
    CreateOrderRateResponse:
      type: object
      properties:
        rates:
          type: array
          items: {}
      required:
        - rates
      additionalProperties: false
    CreateOrderRefundByIdRequest:
      type: object
      properties:
        reason:
          type: string
          description: Free text, or — on a platform that declares refund reasons (GET /v1/orders/:id/refund-options) — one of its keys.
        amount:
          type: number
          description: Dollars (12.5 = $12.50). Omit for everything left, or the line items' value.
        comment:
          type: string
          description: A note sent with the refund, on platforms whose refund takes one.
        lineItems:
          type: array
          items:
            $ref: "#/components/schemas/CreateOrderRefundByIdRequestLineItems"
      required:
        - reason
      additionalProperties: false
    CreateOrderRefundByIdRequestLineItems:
      type: object
      properties:
        quantity:
          type: number
        orderId:
          type: string
        amount:
          type: number
      required:
        - quantity
      additionalProperties: false
    CreateOrderRefundByIdResponse:
      type: object
      properties:
        totalRefunded:
          type: number
        remaining:
          type: number
          nullable: true
        replayed:
          type: boolean
        id:
          type: string
        orderId:
          type: string
        amount:
          type: number
        full:
          type: boolean
        reason:
          type: string
          nullable: true
        lineItems:
          type: array
          items:
            $ref: "#/components/schemas/ListOrderRefundsItemLineItems"
          nullable: true
        status:
          type: string
        platform:
          type: string
        platformRefundId:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
        source:
          type: string
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - totalRefunded
        - replayed
        - id
        - orderId
        - amount
        - full
        - status
        - platform
        - source
        - createdAt
      additionalProperties: false
    CreateOrderRefundRequest:
      type: object
      properties:
        amount:
          type: number
        reason:
          type: string
      additionalProperties: false
    CreateOrderRefundResolveRequest:
      type: object
      properties:
        outcome:
          type: string
          enum:
            - failed
            - succeeded
        amount:
          type: number
          description: Dollars, when the marketplace refunded a different amount than requested.
        platformRefundId:
          type: string
      required:
        - outcome
      additionalProperties: false
    CreateOrderRefundResponse:
      type: object
      properties:
        refundId:
          type: string
        amount:
          type: number
        id:
          type: string
        totalRefunded:
          type: number
        remaining:
          type: number
          nullable: true
        replayed:
          type: boolean
      required:
        - refundId
        - amount
        - id
        - totalRefunded
        - replayed
      additionalProperties: false
    CreateOrderScanFormRequest:
      type: object
      properties:
        orderIds:
          type: array
          items:
            type: string
          description: Omit for every label not yet on a form.
        shipDate:
          type: string
      additionalProperties: false
    CreateOrderScanFormResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateOrderScanFormResponseData"
      required:
        - data
      additionalProperties: false
    CreateOrderScanFormResponseData:
      type: object
      properties:
        manifests:
          type: array
          items:
            $ref: "#/components/schemas/ListOrderScanFormsItem"
        skipped:
          type: number
      required:
        - manifests
        - skipped
      additionalProperties: false
    CreateOrderTakeOverRequest:
      type: object
      properties:
        mode:
          type: string
          enum:
            - full
            - direct
        confirm:
          type: boolean
        returnTo:
          type: string
      additionalProperties: false
    CreateOrderTakeOverResponse:
      type: object
      properties:
        orderId:
          type: string
        listingId:
          type: string
        platform:
          type: string
        externalId:
          type: string
        mode:
          type: string
          enum:
            - full
            - direct
        outcome:
          type: string
        cancelledCommands:
          type: number
          description: Open commands withdrawn from the app (command.cancelled).
        inFlightCommands:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingPlatformTakeOverResponseInFlightCommands"
          description: Of those, the ones the app had already acked (the seller confirmed over them).
        reissued:
          type: number
          description: Withdrawn commands Crossly re-issued itself (e.g. a pending delist now runs directly).
        ebayModel:
          type: string
          enum:
            - unknown
            - trading
            - inventory_own
            - inventory_foreign
          nullable: true
          description: "eBay only: the item's listing model as Crossly classified it."
        ordersSwitched:
          type: number
          description: Orders on this row now handled directly (address fetches queued).
      required:
        - orderId
        - listingId
        - platform
        - externalId
        - mode
        - outcome
        - cancelledCommands
        - inFlightCommands
        - reissued
        - ordersSwitched
      additionalProperties: false
    CreateOrderTrackingRequest:
      type: object
      properties:
        trackingNumber:
          type: string
        carrier:
          type: string
        labelCost:
          type: number
          description: What the seller paid for this postage (dollars), counted as cost of sale.
      required:
        - trackingNumber
        - carrier
      additionalProperties: false
    CreateOrderTrackingResponse:
      type: object
      properties:
        jobId:
          type: string
          nullable: true
      additionalProperties: false
    CreateOrderWhatnotLabelRequest:
      type: object
      properties:
        acceptSurchargeCents:
          type: number
          description: Cents of surcharge the seller has agreed to.
      additionalProperties: false
    CreateOrderWhatnotLabelResponse:
      type: object
      properties:
        shipment:
          $ref: "#/components/schemas/GetOrderWhatnotShipmentResponseShipment"
        recorded:
          type: boolean
        ok:
          type: boolean
        downloadUrl:
          type: string
          nullable: true
          description: Absent for an additional label, which Poshmark delivers only by email.
        emailOnly:
          type: boolean
          description: True when the label exists only in the seller's inbox.
        labelUrl:
          type: string
        trackingNumber:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        service:
          type: string
          nullable: true
        documentKind:
          type: string
          nullable: true
        webUrl:
          type: string
          nullable: true
        pending:
          type: boolean
        message:
          type: string
    CreateOrderWhatnotPackageQuoteResponse:
      type: object
      properties:
        costCents:
          type: number
          description: Cents the platform charges for the change; 0 = free.
        error:
          type: string
          nullable: true
          description: The platform's refusal of this package, when it gives one.
      required:
        - costCents
      additionalProperties: false
    CreateOrderWhatnotPackageRequest:
      type: object
      properties:
        weightOz:
          type: number
        lengthIn:
          type: number
        widthIn:
          type: number
        heightIn:
          type: number
        acceptCostCents:
          type: number
          description: Cents the seller has agreed Whatnot may charge for this change.
      required:
        - weightOz
      additionalProperties: false
    CreatePassportDraftCaptureLinkResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatePassportDraftCaptureLinkResponseData"
      required:
        - data
      additionalProperties: false
    CreatePassportDraftCaptureLinkResponseData:
      type: object
      properties:
        url:
          type: string
        qrSvg:
          type: string
        expiresAt:
          type: string
        hardExpiresAt:
          type: string
      required:
        - url
        - qrSvg
        - expiresAt
        - hardExpiresAt
      additionalProperties: false
    CreatePassportDraftRequest:
      type: object
      properties:
        inventoryItemIds:
          type: array
          items:
            type: string
        platformListingIds:
          type: array
          items:
            type: string
      additionalProperties: false
    CreatePassportPrintRequest:
      type: object
      properties:
        passportIds:
          type: array
          items:
            type: string
        template:
          type: string
        agentId:
          type: string
        printerName:
          type: string
        copies:
          type: number
        pdfOnly:
          type: boolean
      required:
        - passportIds
        - template
      additionalProperties: false
    CreatePassportPrintResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatePassportPrintResponseData"
      required:
        - data
      additionalProperties: false
    CreatePassportRequest:
      type: object
      properties:
        platformListingId:
          type: string
        inventoryItemId:
          type: string
        tagUid:
          type: string
      additionalProperties: false
    CreatePassportTagRequest:
      type: object
      properties:
        tagUid:
          type: string
        locked:
          type: boolean
        written:
          type: boolean
      required:
        - tagUid
      additionalProperties: false
    CreatePatRequest:
      type: object
      properties:
        name:
          type: string
        scopes:
          type: array
          items:
            type: string
        environment:
          type: string
          enum:
            - live
            - test
          description: Omitted → this server's own environment (live on production, test in the sandbox; lib/crossly-env.ts).
        expiresAt:
          type: string
          nullable: true
          description: Optional expiry in ISO format. NULL = never expires (until revoked).
      required:
        - name
        - scopes
      additionalProperties: false
    CreatePatResponse:
      type: object
      properties:
        id:
          type: string
        prefix:
          type: string
        token:
          type: string
        name:
          type: string
        scopes:
          type: array
          items:
            type: string
        environment:
          type: string
          enum:
            - live
            - test
      required:
        - id
        - prefix
        - token
        - name
        - scopes
        - environment
      additionalProperties: false
    CreatePayoutConnectOnboardRequest:
      type: object
      properties:
        country:
          type: string
          minLength: 2
          maxLength: 2
      additionalProperties: false
    CreatePayoutConnectOnboardResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatePayoutConnectOnboardResponseData"
      required:
        - data
      additionalProperties: false
    CreatePayoutIdentityLinkResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatePayoutIdentityLinkResponseData"
      required:
        - data
      additionalProperties: false
    CreatePayoutIdentityLinkResponseData:
      type: object
      properties:
        url:
          type: string
        type:
          type: string
          enum:
            - account_onboarding
            - account_update
        expiresAt:
          type: string
        accountSource:
          type: string
          enum:
            - store
            - owner
      required:
        - url
        - type
        - expiresAt
        - accountSource
      additionalProperties: false
    CreatePayoutPayoutRequest:
      type: object
      required:
        - method
      properties:
        method:
          type: string
          enum:
            - instant
            - standard
        amountCents:
          type: integer
          minimum: 1
        destination:
          type: string
        idempotencyKey:
          type: string
          maxLength: 200
      additionalProperties: false
    CreatePayoutPayoutResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatePayoutPayoutResponseData"
      required:
        - data
      additionalProperties: false
    CreatePayoutPayoutResponseData:
      type: object
      properties:
        payout:
          $ref: "#/components/schemas/CreatePayoutPayoutResponseDataPayout"
        feeCents:
          type: number
      required:
        - payout
        - feeCents
      additionalProperties: false
    CreatePayoutPayoutResponseDataPayout:
      type: object
      properties:
        id:
          type: string
        amountCents:
          type: number
        currency:
          type: string
        status:
          type: string
          description: paid | pending | in_transit | canceled | failed
        method:
          type: string
          description: standard | instant
        arrivalDate:
          type: string
        createdAt:
          type: string
        failureMessage:
          type: string
          nullable: true
      required:
        - id
        - amountCents
        - currency
        - status
        - method
        - arrivalDate
        - createdAt
      additionalProperties: false
    CreatePlatformAccountConnectRequest:
      type: object
      properties:
        accountId:
          type: string
          description: |-
            Reconnect this EXACT row instead of "whichever archived/needs_reauth
            row on this platform comes first" — see the parity note on the
            internal /api/platform-accounts/:platform/connect handler.
      additionalProperties: false
    CreatePlatformAccountConnectResponse:
      type: object
      properties:
        status:
          type: string
        accountId:
          type: string
        needsFirstSync:
          type: boolean
      required:
        - status
        - accountId
        - needsFirstSync
      additionalProperties: false
    CreatePlatformAccountDisconnectResponse:
      type: object
      properties:
        archived:
          type: number
      required:
        - archived
      additionalProperties: false
    CreatePlatformAccountHistoryImportRequest:
      type: object
      required:
        - days
      properties:
        days:
          type: integer
          description: null = All time (no limit); 0 = None; a positive integer = days.
          nullable: true
        accountId:
          type: string
          format: uuid
          description: The platform account to save it on (GET /api/v1/connections). Omitted = every pending account.
    CreatePlatformAccountHistoryImportResponse:
      type: object
      properties:
        pendingAccounts:
          type: number
        accountIds:
          type: array
          items:
            type: string
          nullable: true
          description: The account rows the window was saved on (user_platform_accounts / platform_connections ids).
        ledgerFired:
          type: boolean
        listingsFired:
          type: boolean
        messagesFired:
          type: boolean
          nullable: true
        ok:
          type: boolean
      required:
        - pendingAccounts
        - ledgerFired
        - listingsFired
        - ok
      additionalProperties: false
    CreatePlatformAccountRefreshStatusResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: "#/components/schemas/CreatePlatformAccountRefreshStatusResponseResults"
      required:
        - results
      additionalProperties: false
    CreatePlatformAccountRefreshStatusResponseResults:
      type: object
      properties:
        id:
          type: string
        platform:
          type: string
        status:
          type: string
        checked:
          type: boolean
          description: "A probe ran and the platform answered (false: no healthcheck action, archived, or the call never got through)."
      required:
        - id
        - platform
        - status
        - checked
      additionalProperties: false
    CreatePolicyPresetRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - shipping
            - pricing
            - return
            - payment
        name:
          type: string
        policy:
          type: object
          description: Absent or {} = a copy of the current default of this kind (else a starter policy).
          additionalProperties: {}
        isDefault:
          type: boolean
      required:
        - kind
        - name
      additionalProperties: false
    CreatePolicyPresetResponse:
      type: object
      properties:
        warnings:
          type: array
          items:
            type: string
        summary:
          type: string
        incomplete:
          type: boolean
        listingCount:
          type: number
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        isDefault:
          type: boolean
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
        revision:
          type: number
        hasDomesticRules:
          type: boolean
      required:
        - warnings
        - summary
        - incomplete
        - listingCount
        - id
        - name
        - createdAt
        - updatedAt
        - userId
        - isDefault
        - kind
        - revision
        - hasDomesticRules
      additionalProperties: false
    CreatePolicyReturnReceivedResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatePolicyReturnReceivedResponseData"
      required:
        - data
      additionalProperties: false
    CreatePolicyReturnReceivedResponseData:
      type: object
      properties:
        refundCents:
          type: number
      required:
        - refundCents
      additionalProperties: false
    CreatePriceRulePreviewItem:
      type: object
      properties:
        platform:
          type: string
        source:
          type: string
          enum:
            - override
            - refused
            - ruled
            - unruled
          description: |-
            'override' = the listing's own price for this platform; 'ruled' = a rule
            priced it; 'unruled' = the master price as-is; 'refused' = the rule cannot
            price it (no FX rate / ≤ 0) and a publish would be refused.
        price:
          type: number
          nullable: true
        currency:
          type: string
          nullable: true
        ruleId:
          type: string
          nullable: true
        steps:
          type: array
          items:
            $ref: "#/components/schemas/CreatePriceRulePreviewItemStepsItem"
        message:
          type: string
          nullable: true
      required:
        - platform
        - source
        - steps
      additionalProperties: false
    CreatePriceRulePreviewResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreatePriceRulePreviewItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    CreatePrintMailCredentialRequest:
      type: object
      properties:
        provider:
          type: string
          enum:
            - lob
            - postgrid
        apiKey:
          type: string
        label:
          type: string
        returnAddress:
          type: object
          nullable: true
          additionalProperties: {}
        piecePriceCents:
          type: object
          additionalProperties: {}
      required:
        - provider
        - apiKey
      additionalProperties: false
    CreatePrintMailCredentialResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListPrintMailCredentialsItem"
      required:
        - data
      additionalProperties: false
    CreatePrintMailCredentialTestByIdResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatePrintMailCredentialTestByIdResponseData"
      required:
        - data
      additionalProperties: false
    CreatePrintMailCredentialTestByIdResponseData:
      type: object
      properties:
        ok:
          type: boolean
        mode:
          type: string
          enum:
            - live
            - test
          nullable: true
        message:
          type: string
          description: One sanitized line (spec SE4).
        credential:
          $ref: "#/components/schemas/ListPrintMailCredentialsItem"
      required:
        - ok
        - message
        - credential
      additionalProperties: false
    CreatePrintMailCredentialTestRequest:
      type: object
      properties:
        provider:
          type: string
          enum:
            - lob
            - postgrid
        apiKey:
          type: string
      required:
        - provider
        - apiKey
      additionalProperties: false
    CreatePrintMailCredentialTestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatePrintMailCredentialTestResponseData"
      required:
        - data
      additionalProperties: false
    CreatePrintMailCredentialTestResponseData:
      type: object
      properties:
        ok:
          type: boolean
        mode:
          type: string
          enum:
            - live
            - test
          nullable: true
        message:
          type: string
          description: One sanitized line (spec SE4).
      required:
        - ok
        - message
      additionalProperties: false
    CreatePrintMailJobConfirmRequest:
      type: object
      properties:
        acknowledgeCharges:
          type: boolean
        pieces:
          type: number
      required:
        - acknowledgeCharges
        - pieces
      additionalProperties: false
    CreatePrintMailJobConfirmResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListPrintMailJobsItem"
      required:
        - data
      additionalProperties: false
    CreatePrintMailJobRequest:
      type: object
      properties:
        collectionId:
          type: string
        credentialId:
          type: string
        format:
          type: string
          enum:
            - postcard_4x6
            - postcard_6x9
            - postcard_6x11
            - booklet_8x5
        handles:
          type: array
          items:
            type: string
        addresses:
          type: array
          items:
            type: object
            additionalProperties: {}
        attestAddresses:
          type: boolean
      required:
        - collectionId
        - credentialId
        - format
      additionalProperties: false
    CreatePrintMailJobResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatePrintMailJobResponseData"
      required:
        - data
      additionalProperties: false
    CreatePrintMailJobResponseData:
      type: object
      properties:
        job:
          $ref: "#/components/schemas/ListPrintMailJobsItem"
        estimate:
          $ref: "#/components/schemas/CreatePrintMailJobResponseDataEstimate"
        warnings:
          type: array
          items:
            type: string
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/CreatePrintMailJobResponseDataSkipped"
      required:
        - job
        - estimate
        - warnings
        - skipped
      additionalProperties: false
    CreatePrintMailJobResponseDataEstimate:
      type: object
      properties:
        pieces:
          type: number
        perPieceCents:
          type: number
          nullable: true
        totalCents:
          type: number
          nullable: true
        basis:
          type: string
        providerQuote:
          type: boolean
      required:
        - pieces
        - basis
        - providerQuote
      additionalProperties: false
    CreatePrintMailJobResponseDataSkipped:
      type: object
      properties:
        handle:
          type: string
        reason:
          type: string
      required:
        - handle
        - reason
      additionalProperties: false
    CreateProductFeedCopyRequest:
      type: object
      properties:
        storefrontIds:
          type: array
          items:
            type: string
      required:
        - storefrontIds
      additionalProperties: false
    CreateProductFeedCopyResponse:
      type: object
      properties:
        created:
          type: array
          items:
            $ref: "#/components/schemas/CreateProductFeedCopyResponseCreated"
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/CreateDetectedEventRuleCopyResponseDataSkipped"
      required:
        - created
        - skipped
      additionalProperties: false
    CreateProductFeedCopyResponseCreated:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        channel:
          type: string
          enum:
            - json
            - google
            - tiktok
            - meta
            - pinterest
            - bing
            - snapchat
            - rss
            - csv
        channelLabel:
          type: string
        kind:
          type: string
          enum:
            - marketplace
            - generic
        name:
          type: string
        format:
          type: string
          enum:
            - json
            - csv
            - xml
            - tsv
            - atom
        formats:
          type: array
          items:
            $ref: "#/components/schemas/CreateProductFeedCopyResponseCreatedFormatsItem"
        formatLabels:
          $ref: "#/components/schemas/ListProductFeedsItemFormatLabels"
        enabled:
          type: boolean
        url:
          type: string
        urls:
          $ref: "#/components/schemas/ListProductFeedsItemFormatLabels"
        destination:
          type: string
        recommendedSchedule:
          type: string
        filters:
          $ref: "#/components/schemas/ListProductFeedsItemFilters"
        settings:
          $ref: "#/components/schemas/CreateProductFeedCopyResponseCreatedSettings"
        tokenRotatedAt:
          type: string
          nullable: true
        previousUrlExpiresAt:
          type: string
          nullable: true
          description: While the previous URL still answers (a rotation's grace window), its end.
        lastFetchedAt:
          type: string
          nullable: true
        lastFetchedBy:
          type: string
          nullable: true
        fetchCount:
          type: number
        lastItemCount:
          type: number
          nullable: true
        lastStats:
          $ref: "#/components/schemas/CreateProductFeedCopyResponseCreatedLastStats"
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - channel
        - channelLabel
        - kind
        - name
        - format
        - formats
        - formatLabels
        - enabled
        - url
        - urls
        - destination
        - recommendedSchedule
        - filters
        - settings
        - fetchCount
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateProductFeedCopyResponseCreatedLastStats:
      type: object
      properties:
        items:
          type: number
        itemsWithErrors:
          type: number
          description: Items written with at least one error-severity issue (the channel will reject them).
        issues:
          type: object
          additionalProperties: {}
        generatedAt:
          type: string
      required:
        - items
        - itemsWithErrors
        - issues
        - generatedAt
      additionalProperties: false
      nullable: true
    CreateProductFeedCopyResponseCreatedSettings:
      type: object
      properties:
        fallbackBrand:
          type: string
          nullable: true
          description: |-
            Brand to send when a listing has none. Google and Meta both want a brand;
            a shop's own goods are legitimately branded with the shop name.
        idPrefix:
          type: string
          nullable: true
          description: Prefix added to every item id, so two feeds into one catalogue cannot collide.
        fieldMap:
          type: object
          nullable: true
          description: "Per output column: where its value comes from (absent column = Crossly's own mapping)."
          additionalProperties: {}
        defaultGoogleCategory:
          type: string
          nullable: true
          description: Google product category id sent when none can be derived from the listing's category.
        columns:
          type: array
          items:
            type: string
          nullable: true
          description: "Generic CSV / JSON / RSS feeds: which columns, in order (absent = all)."
        currency:
          type: string
          nullable: true
          description: ISO 4217 currency the prices are sent in (converted at the daily rate). Absent = USD, no conversion.
        targetCountry:
          type: string
          nullable: true
          description: ISO 3166-1 alpha-2 country the feed targets (shipping rows default to it).
        language:
          type: string
          nullable: true
          description: BCP 47 language of the content ("en", "en-GB"); generic RSS/Atom/JSON carry it.
        shipping:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
          description: Flat shipping rates to state per item.
        images:
          type: object
          nullable: true
          description: Image choice.
          additionalProperties: {}
        utm:
          type: object
          nullable: true
          description: UTM / tracking parameters added to every item link. Values may use {id}, {sku}, {channel}.
          additionalProperties: {}
        rotationGraceHours:
          type: number
          nullable: true
          description: "Rotation grace: how long the old URL keeps answering after a rotation, in hours (0 = dead at once)."
      additionalProperties: false
    CreateProductFeedRequest:
      type: object
      properties:
        channel:
          type: string
          enum:
            - json
            - google
            - tiktok
            - meta
            - pinterest
            - bing
            - snapchat
            - rss
            - csv
        name:
          type: string
        format:
          type: string
          enum:
            - json
            - csv
            - xml
            - tsv
            - atom
        enabled:
          type: boolean
        filters:
          $ref: "#/components/schemas/CreateProductFeedRequestFilters"
        settings:
          $ref: "#/components/schemas/CreateProductFeedRequestSettings"
      required:
        - channel
      additionalProperties: false
    CreateProductFeedRequestFilters:
      type: object
      properties:
        includeCategories:
          type: array
          items:
            type: string
        excludeCategories:
          type: array
          items:
            type: string
        includeBrands:
          type: array
          items:
            type: string
        excludeBrands:
          type: array
          items:
            type: string
        includeTags:
          type: array
          items:
            type: string
        excludeTags:
          type: array
          items:
            type: string
        includeListingIds:
          type: array
          items:
            type: string
        excludeListingIds:
          type: array
          items:
            type: string
        minPrice:
          type: number
        maxPrice:
          type: number
        includeOutOfStock:
          type: boolean
        minQuantity:
          type: number
        statuses:
          type: array
          items:
            $ref: "#/components/schemas/CreateProductFeedRequestFiltersStatusesItem"
        conditions:
          type: array
          items:
            $ref: "#/components/schemas/CreateProductFeedRequestFiltersConditionsItem"
        onPlatforms:
          type: array
          items:
            type: string
        notOnPlatforms:
          type: array
          items:
            type: string
        listedWithinDays:
          type: number
      additionalProperties: false
    CreateProductFeedRequestSettings:
      type: object
      properties:
        fallbackBrand:
          type: string
          nullable: true
        idPrefix:
          type: string
          nullable: true
        fieldMap:
          type: object
          additionalProperties: {}
        defaultGoogleCategory:
          type: string
          nullable: true
        columns:
          type: array
          items:
            type: string
        currency:
          type: string
          nullable: true
        targetCountry:
          type: string
          nullable: true
        language:
          type: string
          nullable: true
        shipping:
          type: array
          items:
            $ref: "#/components/schemas/ListProductFeedsItemSettingsShipping"
        images:
          $ref: "#/components/schemas/CreateProductFeedRequestSettingsImages"
        utm:
          $ref: "#/components/schemas/CreateProductFeedRequestSettingsUtm"
        refresh:
          $ref: "#/components/schemas/CreateProductFeedRequestSettingsRefresh"
        rotationGraceHours:
          type: number
      additionalProperties: false
    CreateProductFeedRequestSettingsImages:
      type: object
      properties:
        primaryIndex:
          type: number
        maxAdditional:
          type: number
        skipVideos:
          type: boolean
      additionalProperties: false
    CreateProductFeedRequestSettingsUtm:
      type: object
      properties:
        enabled:
          type: boolean
        source:
          type: string
          nullable: true
        medium:
          type: string
          nullable: true
        campaign:
          type: string
          nullable: true
        content:
          type: string
          nullable: true
        term:
          type: string
          nullable: true
      additionalProperties: false
    CreateProductFeedRotateRequest:
      type: object
      properties:
        graceHours:
          type: number
          description: Keep the old URL answering this many hours (0 = dead at once). Absent = the feed's own setting.
      additionalProperties: false
    CreateProductSetBulkRequest:
      type: object
      properties:
        action:
          type: string
          enum:
            - delist
            - relist
            - check-status
        platforms:
          type: array
          items:
            type: string
          description: Limit delist / relist to these platforms. Omit for every platform.
        confirmOverFreeQuota:
          type: boolean
          description: "Relist only: proceed past the eBay free-listing quota (eBay charges per listing over)."
      required:
        - action
      additionalProperties: false
    CreateProductSetBulkResponse:
      type: object
      properties:
        bulkJobId:
          type: string
          nullable: true
        listingCount:
          type: number
        message:
          type: string
        refused:
          $ref: "#/components/schemas/CreateProductSetBulkResponseRefused"
      required:
        - listingCount
        - message
      additionalProperties: false
    CreateProductSetBulkResponseRefused:
      type: object
      properties:
        count:
          type: number
        listingIds:
          type: array
          items:
            type: string
        error:
          $ref: "#/components/schemas/GetCreatorCollectionPerkResponseDataNotices"
      required:
        - count
        - listingIds
        - error
      additionalProperties: false
      nullable: true
    CreateProductSetMemberRequest:
      type: object
      properties:
        add:
          type: array
          items:
            type: string
          description: Add these as explicit 'include' picks (clears an earlier 'exclude' of the same listing).
        exclude:
          type: array
          items:
            type: string
          description: Pin these OUT even when the filters match them.
        remove:
          type: array
          items:
            type: string
          description: Drop any explicit pick (include or exclude) for these — back to filters-only.
      additionalProperties: false
    CreateProductSetRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
          nullable: true
        filters:
          $ref: "#/components/schemas/CreateProductSetRequestFilters"
        listingIds:
          type: array
          items:
            type: string
          description: Explicit picks added on create.
      required:
        - name
      additionalProperties: false
    CreateProductSetRequestFilters:
      type: object
      properties:
        search:
          type: string
        statuses:
          type: array
          items:
            $ref: "#/components/schemas/CreateProductSetRequestFiltersStatusesItem"
        categories:
          type: array
          items:
            type: string
        brands:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
        tagsMatch:
          type: string
          enum:
            - all
            - any
        minPrice:
          type: number
        maxPrice:
          type: number
        listedOn:
          type: array
          items:
            type: string
        notListedOn:
          type: array
          items:
            type: string
        stock:
          type: string
          enum:
            - in_stock
            - out_of_stock
        minQuantity:
          type: number
        maxQuantity:
          type: number
        minAgeDays:
          type: number
        maxAgeDays:
          type: number
      additionalProperties: false
      nullable: true
    CreateProductionCandidateAcceptRequest:
      type: object
      properties:
        editionSize: {}
        retailPriceCents: {}
        unitCostCents: {}
        spec:
          $ref: "#/components/schemas/CreateProductionCandidateAcceptRequestSpec"
        designerRoyaltyBps: {}
        holderPriority:
          type: boolean
        holderPriceCents: {}
      required:
        - editionSize
        - retailPriceCents
      additionalProperties: false
    CreateProductionCandidateAcceptRequestSpec:
      type: object
      properties:
        category:
          type: string
          enum:
            - other
            - tee
            - hoodie
            - outerwear
            - headwear
            - pants
            - pins
            - jewelry
            - bag
            - socks
            - belt
            - eyewear
            - sneakers
            - slides
            - figure_resin
            - figure_vinyl
            - trading_cards
        materialTier:
          type: string
          enum:
            - standard
            - premium
            - luxury
        complexity:
          type: string
          enum:
            - simple
            - moderate
            - complex
        packaging:
          type: string
          enum:
            - box
            - poly
            - premium_box
        customHardware:
          type: boolean
      required:
        - category
        - materialTier
        - complexity
        - packaging
      additionalProperties: false
      nullable: true
    CreateProductionCandidateAcceptResponse:
      type: object
      properties:
        candidate:
          $ref: "#/components/schemas/CreateProductionCandidateAcceptResponseCandidate"
      required:
        - candidate
      additionalProperties: false
    CreateProductionCandidateAcceptResponseCandidate:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        status:
          type: string
        retailPriceCents:
          type: number
          nullable: true
        acceptedAt:
          type: string
          format: date-time
          nullable: true
        completedAt:
          type: string
          format: date-time
          nullable: true
        creatorUserId:
          type: string
          nullable: true
        cosmeticId:
          type: string
        merchantId:
          type: string
        creatorSubjectId:
          type: string
        editionSize:
          type: number
          nullable: true
        unitCostCents:
          type: number
          nullable: true
        runCostCents:
          type: number
          nullable: true
        designerRoyaltyBps:
          type: number
        fundingAtEligibleCents:
          type: number
        distinctHoldersAtEligible:
          type: number
        holderPriority:
          type: boolean
        holderPriceCents:
          type: number
          nullable: true
        designBrief:
          $ref: "#/components/schemas/CreateProductionDesignSpecResponsePrefsBrief"
        spec:
          $ref: "#/components/schemas/CreateProductionDesignSpecResponsePrefsSpec"
        ipClearedAt:
          type: string
          format: date-time
          nullable: true
        greenlitAt:
          type: string
          format: date-time
          nullable: true
        declineReason:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - status
        - cosmeticId
        - merchantId
        - creatorSubjectId
        - designerRoyaltyBps
        - fundingAtEligibleCents
        - distinctHoldersAtEligible
        - holderPriority
      additionalProperties: false
    CreateProductionCandidateVoteRequest:
      type: object
      properties:
        support:
          type: boolean
      required:
        - support
      additionalProperties: false
    CreateProductionCandidateVoteResponse:
      type: object
      properties:
        votes:
          type: number
        mine:
          type: boolean
      required:
        - votes
        - mine
      additionalProperties: false
    CreateProductionDesignBriefRequest:
      type: object
      properties:
        materials:
          type: string
          nullable: true
        finish:
          type: string
          nullable: true
        colorway:
          type: string
          nullable: true
        packaging:
          type: string
          nullable: true
        dimensions:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        referenceImageUrls:
          type: array
          items:
            type: string
        box:
          $ref: "#/components/schemas/CreateProductionDesignBriefRequestBox"
      additionalProperties: false
    CreateProductionDesignBriefRequestBox:
      type: object
      properties:
        boxType:
          type: string
          nullable: true
        dimensions:
          type: string
          nullable: true
        exteriorFinish:
          type: string
          nullable: true
        exteriorPrint:
          type: string
          nullable: true
        interiorPrint:
          type: string
          nullable: true
        insert:
          type: string
          nullable: true
        closure:
          type: string
          nullable: true
        hangtag:
          type: boolean
        numberedCoa:
          type: boolean
        extras:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
    CreateProductionDesignConsentRequest:
      type: object
      properties:
        optOut:
          type: boolean
      required:
        - optOut
      additionalProperties: false
    CreateProductionDesignSpecRequest:
      type: object
      properties:
        category:
          type: string
          enum:
            - other
            - tee
            - hoodie
            - outerwear
            - headwear
            - pants
            - pins
            - jewelry
            - bag
            - socks
            - belt
            - eyewear
            - sneakers
            - slides
            - figure_resin
            - figure_vinyl
            - trading_cards
        materialTier:
          type: string
          enum:
            - standard
            - premium
            - luxury
        complexity:
          type: string
          enum:
            - simple
            - moderate
            - complex
        packaging:
          type: string
          enum:
            - box
            - poly
            - premium_box
        customHardware:
          type: boolean
      required:
        - category
        - materialTier
        - complexity
        - packaging
      additionalProperties: false
    CreateProductionDesignSpecResponse:
      type: object
      properties:
        prefs:
          $ref: "#/components/schemas/CreateProductionDesignSpecResponsePrefs"
      required:
        - prefs
      additionalProperties: false
    CreateProductionDesignSpecResponsePrefs:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        cosmeticId:
          type: string
        merchantId:
          type: string
        creatorSubjectId:
          type: string
        spec:
          $ref: "#/components/schemas/CreateProductionDesignSpecResponsePrefsSpec"
        physicalOptOut:
          type: boolean
        brief:
          $ref: "#/components/schemas/CreateProductionDesignSpecResponsePrefsBrief"
        physicalLineAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - cosmeticId
        - merchantId
        - creatorSubjectId
        - physicalOptOut
      additionalProperties: false
    CreateProductionDesignSpecResponsePrefsBrief:
      type: object
      properties:
        materials:
          type: string
          nullable: true
        finish:
          type: string
          nullable: true
        colorway:
          type: string
          nullable: true
        packaging:
          type: string
          nullable: true
          description: Free-text packaging note (kept for back-compat; prefer `box` for detail).
        dimensions:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        referenceImageUrls:
          type: array
          items:
            type: string
          nullable: true
        box:
          $ref: "#/components/schemas/CreateProductionDesignSpecResponsePrefsBriefBox"
      additionalProperties: false
      nullable: true
    CreateProductionDesignSpecResponsePrefsBriefBox:
      type: object
      properties:
        boxType:
          type: string
          nullable: true
          description: "'rigid_magnetic' | 'two_piece_lid' | 'mailer' | 'tube' | 'drawstring' | 'custom'."
        dimensions:
          type: string
          nullable: true
        exteriorFinish:
          type: string
          nullable: true
          description: "Exterior finish: matte / soft-touch / gloss / foil-stamped / embossed."
        exteriorPrint:
          type: string
          nullable: true
        interiorPrint:
          type: string
          nullable: true
        insert:
          type: string
          nullable: true
          description: "Insert: none / foam / tissue / custom_tray / crinkle."
        closure:
          type: string
          nullable: true
          description: "Closure: magnetic / ribbon / tuck / seal_sticker."
        hangtag:
          type: boolean
          nullable: true
        numberedCoa:
          type: boolean
          nullable: true
          description: A numbered certificate of authenticity in the box.
        extras:
          type: string
          nullable: true
          description: Stickers, thank-you card, dust bag, etc.
        notes:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
      description: Full designer control of the box / presentation.
    CreateProductionDesignSpecResponsePrefsSpec:
      type: object
      properties:
        category:
          type: string
          enum:
            - other
            - tee
            - hoodie
            - outerwear
            - headwear
            - pants
            - pins
            - jewelry
            - bag
            - socks
            - belt
            - eyewear
            - sneakers
            - slides
            - figure_resin
            - figure_vinyl
            - trading_cards
        materialTier:
          type: string
          enum:
            - standard
            - premium
            - luxury
        complexity:
          type: string
          enum:
            - simple
            - moderate
            - complex
        packaging:
          type: string
          enum:
            - box
            - poly
            - premium_box
        customHardware:
          type: boolean
          nullable: true
          description: Custom hardware / molds (zippers, buckles, outsoles…) — bumps tooling.
      required:
        - category
        - materialTier
        - complexity
        - packaging
      additionalProperties: false
      nullable: true
    CreateProductionEstimateRequest:
      type: object
      properties:
        spec:
          $ref: "#/components/schemas/CreateProductionDesignSpecRequest"
        editionSize: {}
      required:
        - spec
        - editionSize
      additionalProperties: false
    CreateProductionEstimateResponse:
      type: object
      properties:
        estimate:
          $ref: "#/components/schemas/CreateProductionEstimateResponseEstimate"
      required:
        - estimate
      additionalProperties: false
    CreateProductionEstimateResponseEstimate:
      type: object
      properties:
        landedCents:
          type: number
        unitLandedCents:
          type: number
          description: Per-unit landed, for display.
        minMoq:
          type: number
          description: The floor edition size for this category.
        breakdown:
          $ref: "#/components/schemas/CreateProductionEstimateResponseEstimateBreakdown"
      required:
        - landedCents
        - unitLandedCents
        - minMoq
        - breakdown
      additionalProperties: false
    CreateProductionEstimateResponseEstimateBreakdown:
      type: object
      properties:
        unitFobCents:
          type: number
        goodsCents:
          type: number
        toolingCents:
          type: number
        samplesCents:
          type: number
        freightCents:
          type: number
        dutyCents:
          type: number
        qcCents:
          type: number
        threeplCents:
          type: number
        preSafetyCents:
          type: number
        safetyMultiplier:
          type: number
      required:
        - unitFobCents
        - goodsCents
        - toolingCents
        - samplesCents
        - freightCents
        - dutyCents
        - qcCents
        - threeplCents
        - preSafetyCents
        - safetyMultiplier
      additionalProperties: false
    CreateProductionRunPurchaseRequest:
      type: object
      properties:
        paymentRef:
          type: string
          nullable: true
      additionalProperties: false
    CreateProductionRunPurchaseResponse:
      type: object
      properties:
        unitId:
          type: string
        editionNumber:
          type: number
        priceCents:
          type: number
        soldToHolder:
          type: boolean
      required:
        - unitId
        - editionNumber
        - priceCents
        - soldToHolder
      additionalProperties: false
    CreateProfileMilestoneCelebrateRequest:
      type: object
      properties:
        percentOff:
          type: integer
          minimum: 1
          maximum: 90
        hours:
          type: integer
          minimum: 1
          maximum: 336
        bannerText:
          type: string
          maxLength: 140
    CreateProfileMilestoneCelebrateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateProfileMilestoneCelebrateResponseData"
      required:
        - data
      additionalProperties: false
    CreateProfileMilestoneCelebrateResponseData:
      type: object
      properties:
        milestone:
          type: string
          enum:
            - first_sale
            - gmv_10k
            - gmv_50k
            - gmv_100k
            - gmv_250k
            - gmv_500k
            - gmv_1m
            - gmv_5m
            - items_100
            - items_1k
            - items_10k
            - items_100k
            - platforms_3
            - platforms_5
            - platforms_10
            - streak_12w
            - streak_52w
            - years_1
            - years_3
            - years_5
            - best_sale_1k
            - best_sale_10k
            - countries_10
            - countries_25
            - repeat_buyers_100
            - vault_10
            - vault_100
            - graded_100
            - wholesale_10k
        codeId:
          type: string
        code:
          type: string
        percentOff:
          type: number
        endsAt:
          type: string
          nullable: true
        bannerText:
          type: string
        existing:
          type: boolean
          description: False when this call made the code; true when it returned the one an earlier call made.
      required:
        - milestone
        - codeId
        - code
        - percentOff
        - bannerText
        - existing
      additionalProperties: false
    CreateProfilePublishRequest:
      type: object
      properties:
        label:
          type: string
          maxLength: 80
    CreateProfilePublishResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateProfilePublishResponseData"
      required:
        - data
      additionalProperties: false
    CreateProfilePublishResponseData:
      type: object
      properties:
        handle:
          type: string
        document:
          $ref: "#/components/schemas/CreateProfilePublishResponseDataDocument"
        publishedAt:
          type: string
          nullable: true
      required:
        - handle
      additionalProperties: false
    CreateProfilePublishResponseDataDocument:
      type: object
      properties:
        version:
          type: number
        theme:
          $ref: "#/components/schemas/GetProfileResponseDataDraftTheme"
        hero:
          $ref: "#/components/schemas/GetProfileResponseDataDraftHero"
        sections:
          type: array
          items: {}
          description: Ordered, ≤ 40 (sections.ts limits per kind).
        socials:
          type: array
          items:
            $ref: "#/components/schemas/GetProfileResponseDataDraftSocials"
          description: ≤ 20, ordered.
        contact:
          $ref: "#/components/schemas/GetProfileResponseDataDraftContact"
        sources:
          $ref: "#/components/schemas/GetProfileResponseDataDraftSources"
        share:
          $ref: "#/components/schemas/GetProfileResponseDataDraftShare"
        seo:
          $ref: "#/components/schemas/TitleDescription"
        privacy:
          $ref: "#/components/schemas/GetProfileResponseDataDraftPrivacy"
      required:
        - version
        - theme
        - hero
        - sections
        - socials
        - contact
        - sources
        - share
        - seo
        - privacy
      additionalProperties: false
      nullable: true
    CreateProfileShareCardRequest:
      type: object
      required:
        - kind
      properties:
        kind:
          type: string
          enum:
            - profile
            - stat
            - milestone
        ref:
          $ref: "#/components/schemas/CreateProfileShareCardRequestRef"
        settings:
          type: object
          additionalProperties: {}
    CreateProfileShareCardRequestRef:
      type: object
      properties:
        key:
          type: string
        timeframe:
          type: string
    CreateProfileShareCardResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateProfileShareCardResponseData"
      required:
        - data
      additionalProperties: false
    CreateProfileShareCardResponseData:
      type: object
      properties:
        pageUrl:
          type: string
        imageUrl:
          type: string
        discordText:
          type: string
        isPublic:
          type: boolean
      required:
        - pageUrl
        - imageUrl
        - discordText
        - isPublic
      additionalProperties: false
    CreateReceiptRelistResponse:
      type: object
      properties:
        listingId:
          type: string
        created:
          type: boolean
      required:
        - listingId
        - created
      additionalProperties: false
    CreateRentalBulkRentableItem:
      type: object
      properties:
        listingId:
          type: string
        ok:
          type: boolean
        platformListingId:
          type: string
          nullable: true
        problem:
          type: string
          nullable: true
      required:
        - listingId
        - ok
      additionalProperties: false
    CreateRentalBulkRentableRequest:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        options:
          type: object
          additionalProperties: {}
        percentOfPriceBps:
          type: number
          nullable: true
      required:
        - listingIds
      additionalProperties: false
    CreateRentalBulkRentableResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateRentalBulkRentableItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    CreateRentalClaimRequest:
      type: object
      properties:
        cents:
          type: number
        note:
          type: string
        photos:
          type: array
          items:
            type: string
      required:
        - cents
        - note
      additionalProperties: false
    CreateRentalExtensionDecideRequest:
      type: object
      properties:
        approve:
          type: boolean
      required:
        - approve
      additionalProperties: false
    CreateRentalExtensionDecideResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateRentalExtensionDecideResponseData"
      required:
        - data
      additionalProperties: false
    CreateRentalExtensionDecideResponseData:
      type: object
      properties:
        id:
          type: string
        rentalId:
          type: string
        days:
          type: number
        cents:
          type: number
        freeDays:
          type: number
          nullable: true
          description: Days of it a loyalty perk gave free (rental_free_extension; `cents` is for the rest). Migration 1521.
        status:
          type: string
          description: "'requested' (waiting on the seller) | 'approved' (waiting on payment) | 'paid' | 'declined' | 'expired'."
        stripePaymentIntentId:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        decidedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - rentalId
        - days
        - cents
        - status
        - createdAt
      additionalProperties: false
    CreateRentalInspectRequest:
      type: object
      properties:
        checklist:
          type: array
          items:
            $ref: "#/components/schemas/ItemOk"
        photos:
          type: array
          items:
            type: string
        release:
          type: boolean
      additionalProperties: false
    CreateRentalShippedRequest:
      type: object
      properties:
        photos:
          type: array
          items:
            type: string
      additionalProperties: false
    CreateRepriceEventSkipResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListRepriceEventsItem"
      required:
        - data
      additionalProperties: false
    CreateRepricingAssignmentRequest:
      type: object
      properties:
        scope:
          $ref: "#/components/schemas/CreateRepricingAssignmentRequestScope"
        strategy:
          type: string
          enum:
            - undercut_lowest
            - match_market
            - scheduled_decay
            - raise_back
            - sold_median
        name:
          type: string
        params:
          type: object
          additionalProperties: {}
        floorCents:
          type: number
          nullable: true
        breakEvenFloor:
          type: boolean
        approvalMode:
          type: string
          enum:
            - auto
            - ask
        checkEveryHours:
          type: number
        enabled:
          type: boolean
      required:
        - scope
        - strategy
      additionalProperties: false
    CreateRepricingAssignmentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListRepricingAssignmentsItem"
      required:
        - data
      additionalProperties: false
    CreateRestockPromptRepublishRequest:
      type: object
      properties:
        platforms:
          type: array
          items:
            type: string
        confirmOverFreeQuota:
          type: boolean
          description: See CrosspostInputSchema — same opt-in for eBay overage.
      required:
        - platforms
      additionalProperties: false
    CreateRestockPromptRepublishResponse:
      type: object
      properties:
        message:
          type: string
        platforms:
          type: array
          items:
            type: string
        remainingPlatforms:
          type: array
          items:
            type: string
        jobIds:
          type: array
          items:
            type: string
        bulkJobId:
          type: string
          nullable: true
      required:
        - message
        - platforms
        - remainingPlatforms
        - jobIds
      additionalProperties: false
    CreateReturnAcceptRequest:
      type: object
      properties:
        refund:
          $ref: "#/components/schemas/CreateOrderRefundRequest"
      additionalProperties: false
    CreateReturnAcceptResponse:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        platform:
          type: string
        orderId:
          type: string
          nullable: true
        purchaseId:
          type: string
        reason:
          type: string
        buyerNote:
          type: string
          nullable: true
        photoUrls:
          type: array
          items:
            type: string
        state:
          type: string
        awaitingParty:
          type: string
          nullable: true
        actionable:
          type: boolean
          description: The seller can accept or decline it now (false once it is with Crossly).
        respondBy:
          type: string
          format: date-time
          nullable: true
        returnLabelUrl:
          type: string
          nullable: true
        returnTracking:
          $ref: "#/components/schemas/ListReturnsItemReturnTracking"
        returnRecordId:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        labelUrl:
          type: string
          nullable: true
        refund:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - id
        - source
        - platform
        - purchaseId
        - reason
        - photoUrls
        - state
        - actionable
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateReturnDeclineRequest:
      type: object
      required:
        - reason
      properties:
        reason:
          type: string
          minLength: 8
          maxLength: 2000
    CreateSaleBulkDeleteResponse:
      type: object
      properties:
        deleted:
          type: number
      required:
        - deleted
      additionalProperties: false
    CreateSandboxResetResponse:
      type: object
      properties:
        seller:
          $ref: "#/components/schemas/CreateSandboxResetResponseSeller"
        seed:
          $ref: "#/components/schemas/CreateSandboxResetResponseSeed"
      required:
        - seller
        - seed
      additionalProperties: false
    CreateSandboxResetResponseSeed:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateSandboxResetResponseSeedItems"
        variationGroupListingId:
          type: string
          nullable: true
        orders:
          type: array
          items:
            $ref: "#/components/schemas/CreateSandboxResetResponseSeedOrders"
      required:
        - items
        - orders
      additionalProperties: false
    CreateSandboxResetResponseSeedItems:
      type: object
      properties:
        key:
          type: string
        sku:
          type: string
        inventoryItemId:
          type: string
        listingId:
          type: string
        channels:
          type: object
          description: platform → the simulated marketplace's listing id
          additionalProperties: {}
      required:
        - key
        - sku
        - inventoryItemId
        - listingId
        - channels
      additionalProperties: false
    CreateSandboxResetResponseSeedOrders:
      type: object
      properties:
        key:
          type: string
        platform:
          type: string
        platformOrderId:
          type: string
        orderId:
          type: string
          nullable: true
      required:
        - key
        - platform
        - platformOrderId
      additionalProperties: false
    CreateSandboxResetResponseSeller:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        email:
          type: string
        seedVersion:
          type: number
        seededAt:
          type: string
          format: date-time
          nullable: true
        lastResetAt:
          type: string
          format: date-time
          nullable: true
        lastActiveAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - label
        - email
        - seedVersion
        - lastActiveAt
        - createdAt
      additionalProperties: false
    CreateSandboxSimulateInventoryRequest:
      type: object
      properties:
        mode:
          type: string
          enum:
            - set
            - increase
            - decrease
        value:
          type: number
        inventoryItemId:
          type: string
        sku:
          type: string
      required:
        - mode
        - value
      additionalProperties: false
    CreateSandboxSimulateListing.soldOutRequest:
      type: object
      properties:
        listingId:
          type: string
        platform:
          type: string
      required:
        - listingId
        - platform
      additionalProperties: false
    CreateSandboxSimulateListing.soldOutResponse:
      type: object
      properties:
        kind:
          type: string
      required:
        - kind
      additionalProperties: false
    CreateSandboxSimulateOrder.addressRequest:
      type: object
      properties:
        orderId:
          type: string
        address:
          $ref: "#/components/schemas/CreateSandboxSimulateOrder.addressRequestAddress"
      required:
        - orderId
      additionalProperties: false
    CreateSandboxSimulateOrder.addressRequestAddress:
      type: object
      properties:
        name:
          type: string
        line1:
          type: string
        city:
          type: string
        state:
          type: string
        zip:
          type: string
        country:
          type: string
        line2:
          type: string
        phone:
          type: string
      required:
        - name
        - line1
        - city
        - state
        - zip
        - country
      additionalProperties: false
    CreateSandboxSimulateOrder.addressResponse:
      type: object
      properties:
        address:
          $ref: "#/components/schemas/CreateSandboxSimulateOrder.addressResponseAddress"
      required:
        - address
      additionalProperties: false
    CreateSandboxSimulateOrder.addressResponseAddress:
      type: object
      properties:
        name:
          type: string
        line1:
          type: string
        line2:
          type: string
          nullable: true
        city:
          type: string
        state:
          type: string
        zip:
          type: string
        country:
          type: string
        phone:
          type: string
          nullable: true
      required:
        - name
        - line1
        - city
        - state
        - zip
        - country
      additionalProperties: false
    CreateSandboxSimulateOrder.cancelledResponse:
      type: object
      properties:
        outcome:
          type: string
        source:
          type: string
          enum:
            - seller
            - recorded
      required:
        - outcome
        - source
      additionalProperties: false
    CreateSandboxSimulateOrder.deliveredResponse:
      type: object
      properties:
        delivered:
          type: boolean
      required:
        - delivered
      additionalProperties: false
    CreateSandboxSimulateOrderRequest:
      type: object
      properties:
        lines:
          type: array
          items:
            $ref: "#/components/schemas/CreateSandboxSimulateOrderRequestLines"
        platform:
          type: string
        address:
          type: string
          enum:
            - inline
            - delayed
        buyer:
          $ref: "#/components/schemas/CreateSandboxSimulateOrderRequestBuyer"
        shippingCharged:
          type: number
      required:
        - lines
      additionalProperties: false
    CreateSandboxSimulateOrderRequestBuyer:
      type: object
      properties:
        username:
          type: string
        email:
          type: string
        address:
          $ref: "#/components/schemas/CreateSandboxSimulateOrder.addressRequestAddress"
      additionalProperties: false
    CreateSandboxSimulateOrderRequestLines:
      type: object
      properties:
        listingId:
          type: string
        sku:
          type: string
        quantity:
          type: number
        unitPrice:
          type: number
      additionalProperties: false
    CreateSandboxSimulateOrderResponse:
      type: object
      properties:
        platform:
          type: string
        platformOrderId:
          type: string
        orderIds:
          type: array
          items:
            type: string
        addressPending:
          type: boolean
      required:
        - platform
        - platformOrderId
        - orderIds
        - addressPending
      additionalProperties: false
    CreateSandboxSimulateRefundRequest:
      type: object
      properties:
        orderId:
          type: string
        reason:
          type: string
        amount:
          type: number
      required:
        - orderId
      additionalProperties: false
    CreateSandboxSimulateRefundResponse:
      type: object
      properties:
        refundId:
          type: string
        amount:
          type: number
      required:
        - refundId
        - amount
      additionalProperties: false
    CreateSavedViewRequest:
      type: object
      properties:
        resource:
          type: string
          enum:
            - listings
            - inventory
            - orders
            - sales
            - returns
        name:
          type: string
        filters:
          type: object
          additionalProperties: {}
        viewMode:
          type: string
          nullable: true
        isDefault:
          type: boolean
      required:
        - resource
        - name
      additionalProperties: false
    CreateShopLimitRequestRequest:
      type: object
      required:
        - reason
      properties:
        listings:
          type: integer
          minimum: 0
          nullable: true
        valueCents:
          type: integer
          minimum: 0
          nullable: true
        reason:
          type: string
          minLength: 10
          maxLength: 2000
    CreateShopLimitRequestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateShopLimitRequestResponseData"
      required:
        - data
      additionalProperties: false
    CreateShopLimitRequestResponseData:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - pending
            - cancelled
            - declined
            - approved
        requestedListings:
          type: number
          nullable: true
        requestedValueCents:
          type: number
          nullable: true
        reason:
          type: string
        grantedListings:
          type: number
          nullable: true
          description: The limit granted (approved only).
        grantedValueCents:
          type: number
          nullable: true
        autoApproved:
          type: boolean
        decisionNote:
          type: string
          nullable: true
          description: Staff's note to the seller (approved or declined).
        createdAt:
          type: string
        decidedAt:
          type: string
          nullable: true
      required:
        - id
        - status
        - reason
        - autoApproved
        - createdAt
      additionalProperties: false
    CreateShowroomPlacementRequest:
      type: object
      properties:
        plotId:
          type: string
      required:
        - plotId
      additionalProperties: false
    CreateShowroomPlacementResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateShowroomPlacementResponseData"
      required:
        - data
      additionalProperties: false
    CreateShowroomPlacementResponseData:
      type: object
      properties:
        placements:
          type: array
          items:
            $ref: "#/components/schemas/CreateShowroomPlacementResponseDataPlacements"
      required:
        - placements
      additionalProperties: false
    CreateShowroomPlacementResponseDataPlacements:
      type: object
      properties:
        plotId:
          type: string
        street:
          type: string
          description: The street's slug.
        number:
          type: number
        label:
          type: string
          description: '"12 Main Street".'
        tenure:
          type: string
          enum:
            - owned
            - rented
      required:
        - plotId
        - street
        - number
        - label
        - tenure
      additionalProperties: false
    CreateShowroomRequest:
      type: object
      properties:
        name:
          type: string
        autoIncludeInventory:
          type: boolean
        theme:
          type: string
          nullable: true
      required:
        - name
      additionalProperties: false
    CreateShowroomResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListShowroomsItem"
      required:
        - data
      additionalProperties: false
    CreateSkuPresetPreviewRequest:
      type: object
      properties:
        presetId:
          type: string
          description: A saved preset of the store to generate from…
        template:
          type: string
          description: …or an unsaved template (the builder's live preview).
        fields:
          $ref: "#/components/schemas/CreateSkuPresetPreviewRequestFields"
      additionalProperties: false
    CreateSkuPresetPreviewRequestFields:
      type: object
      properties:
        item_name:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        color:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        price: {}
        source:
          type: string
          nullable: true
      additionalProperties: false
      description: The listing's fields; omitted = the builder's sample listing.
    CreateSkuPresetPreviewResponse:
      type: object
      properties:
        sku:
          type: string
          nullable: true
        template:
          type: string
        presetId:
          type: string
          nullable: true
        sample:
          type: boolean
      required:
        - template
        - sample
      additionalProperties: false
    CreateSkuPresetRequest:
      type: object
      properties:
        name:
          type: string
        template:
          type: string
        isDefault:
          type: boolean
          description: Make it the store's default (auto-fills new listings).
      required:
        - name
        - template
      additionalProperties: false
    CreateSourceSyncSyncResponse:
      type: object
      properties:
        started:
          type: boolean
        platform:
          type: string
      required:
        - started
        - platform
      additionalProperties: false
    CreateSourcingReceiptRequest:
      type: object
      properties:
        vendor:
          type: string
          nullable: true
        dateIso:
          type: string
          nullable: true
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateSourcingReceiptRequestItems"
        sourceImageUrl:
          type: string
          nullable: true
      required:
        - vendor
        - dateIso
        - items
        - sourceImageUrl
      additionalProperties: false
    CreateSourcingReceiptRequestItems:
      type: object
      properties:
        description:
          type: string
        priceCents: {}
      required:
        - description
        - priceCents
      additionalProperties: false
    CreateSourcingReceiptResponse:
      type: object
      properties:
        ok:
          type: boolean
        count:
          type: number
      required:
        - ok
        - count
      additionalProperties: false
    CreateSpatialAuctionRoomBidRequest:
      type: object
      properties:
        amountCents: {}
        lotId:
          type: string
          description: |-
            Which lot the bidder MEANT.

            Optional, and when present it is checked against the session's
            `current_lot_id` rather than used in its place — a caller holding a lot id
            from a catalogue read taken thirty seconds ago would otherwise bid on an
            item the auctioneer has already left. Omitting it accepts the rostrum's
            answer, which is what a client that trusts its stream should do.
      required:
        - amountCents
      additionalProperties: false
    CreateSpatialAuctionRoomBidResponse:
      type: object
      properties:
        ok:
          type: boolean
        sceneId:
          type: string
        sessionId:
          type: string
        lotId:
          type: string
        amountCents:
          type: number
        topic:
          type: string
      required:
        - ok
        - sceneId
        - sessionId
        - lotId
        - amountCents
        - topic
      additionalProperties: false
    CreateSpatialInviteAcceptResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialInviteAcceptResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialInviteAcceptResponseData:
      type: object
      properties:
        sceneId:
          type: string
        role:
          type: string
      required:
        - sceneId
        - role
      additionalProperties: false
    CreateSpatialPropertyDeedLeaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialPropertyDeedLeaseResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialPropertyDeedLeaseResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        ownerUserId:
          type: string
        endedAt:
          type: string
          format: date-time
          nullable: true
        rail:
          type: string
          nullable: true
        plotId:
          type: string
        paidThrough:
          type: string
          format: date-time
          nullable: true
        deedId:
          type: string
        tenantUserId:
          type: string
          nullable: true
        tenantSceneId:
          type: string
          nullable: true
        rentWeeklyCents:
          type: number
        termsFrozenAt:
          type: string
          format: date-time
          nullable: true
        endReason:
          type: string
          nullable: true
        autopay:
          type: boolean
      required:
        - id
        - createdAt
        - status
        - ownerUserId
        - plotId
        - deedId
        - rentWeeklyCents
        - autopay
      additionalProperties: false
    CreateSpatialPropertyDeedListResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialPropertyDeedListResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialPropertyDeedListResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        storefrontId:
          type: string
          nullable: true
        buyerUserId:
          type: string
          nullable: true
        priceCents:
          type: number
        sellerUserId:
          type: string
        closedAt:
          type: string
          format: date-time
          nullable: true
        deedId:
          type: string
      required:
        - id
        - createdAt
        - status
        - priceCents
        - sellerUserId
        - deedId
      additionalProperties: false
    CreateSpatialPropertyDeedMaintenanceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialPropertyDeedMaintenanceResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialPropertyLeaseEndResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialPropertyLeaseEndResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialPropertyLeaseEndResponseData:
      type: object
      properties:
        ended:
          type: boolean
      required:
        - ended
      additionalProperties: false
    CreateSpatialPropertyLeaseRentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialPropertyLeaseRentResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialPropertyListingBuyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialPropertyListingBuyResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialSceneGrantRequest:
      type: object
      properties:
        userId:
          type: string
        role:
          type: string
          enum:
            - visitor
            - staff
      required:
        - userId
      additionalProperties: false
    CreateSpatialSceneGrantResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialSceneGrantResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialSceneGrantResponseData:
      type: object
      properties:
        granted:
          type: string
      required:
        - granted
      additionalProperties: false
    CreateSpatialSceneInviteRequest:
      type: object
      properties:
        role:
          type: string
          enum:
            - visitor
            - staff
        expiresInHours:
          type: number
          nullable: true
          description: Null means it never expires — a deliberate choice, not a default.
      additionalProperties: false
    CreateSpatialSceneInviteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialSceneInviteResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialSceneInviteResponseData:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        expiresAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - code
      additionalProperties: false
    CreateSpatialSceneNodeRequest:
      type: object
      properties:
        unitKey:
          type: string
        parentId:
          type: string
          nullable: true
        segment:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        sort:
          type: number
      required:
        - unitKey
      additionalProperties: false
    CreateSpatialSceneNodeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialSceneNodeResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialSceneNodeResponseData:
      type: object
      properties:
        transform:
          $ref: "#/components/schemas/CreateSpatialSceneNodeResponseDataTransform"
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        label:
          type: string
          nullable: true
        sort:
          type: number
        sceneId:
          type: string
        parentId:
          type: string
          nullable: true
        unitKey:
          type: string
        segment:
          type: string
          nullable: true
      required:
        - transform
        - id
        - createdAt
        - updatedAt
        - sort
        - sceneId
        - unitKey
      additionalProperties: false
    CreateSpatialSceneNodeResponseDataTransform:
      type: object
      properties:
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          nullable: true
        rotation:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          nullable: true
        scale:
          type: number
          nullable: true
          description: |-
            Uniform scale. Escape hatch for scenery only — stock is never rescaled,
            because a mis-scaled item is a lie about how much room it takes.
      additionalProperties: false
    CreateSpatialScenePlaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialScenePlaceResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialScenePlaceResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        inventoryItemId:
          type: string
        nodeId:
          type: string
        pinned:
          type: boolean
        sceneId:
          type: string
        inventoryUnitId:
          type: string
          nullable: true
        slotIndex:
          type: number
      required:
        - id
        - createdAt
        - updatedAt
        - inventoryItemId
        - nodeId
        - pinned
        - sceneId
        - slotIndex
      additionalProperties: false
    CreateSpatialSceneRenameRequest:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          maxLength: 120
    CreateSpatialSceneRequest:
      type: object
      required:
        - kind
        - name
      properties:
        kind:
          type: string
          enum:
            - collection
            - warehouse
        name:
          type: string
          maxLength: 120
        categorySlug:
          type: string
          maxLength: 40
          nullable: true
    CreateSpatialSceneShopPlaceRequest:
      type: object
      properties:
        sectionId:
          type: string
        containerKey:
          type: string
        containerIndex:
          type: number
        slotIndex:
          type: number
        inventoryItemId:
          type: string
        inventoryUnitId:
          type: string
          nullable: true
      required:
        - sectionId
        - containerKey
        - containerIndex
        - slotIndex
        - inventoryItemId
      additionalProperties: false
    CreateSpatialSceneShopPlaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialSceneShopPlaceResponseData"
      additionalProperties: false
    CreateSpatialSceneShopPlaceResponseData:
      type: object
      properties:
        sceneId:
          type: string
        inventoryItemId:
          type: string
        inventoryUnitId:
          type: string
          nullable: true
        slotIndex:
          type: number
        containerIndex:
          type: number
        pinned:
          type: boolean
          description: False = placed by the automatic layout, not by a person.
        listingId:
          type: string
          nullable: true
        fixtureId:
          type: string
        unit:
          type: number
        slot:
          type: number
        itemId:
          type: string
        unitId:
          type: string
          nullable: true
      required:
        - sceneId
        - inventoryItemId
        - slotIndex
        - containerIndex
        - pinned
        - fixtureId
        - unit
        - slot
        - itemId
      additionalProperties: false
      nullable: true
    CreateSpatialSceneVisibilityRequest:
      type: object
      required:
        - visibility
      properties:
        visibility:
          type: string
          enum:
            - private
            - unlisted
            - public
    CreateSpatialSceneWarehouseStockRequest:
      type: object
      properties:
        nodeId:
          type: string
        inventoryItemId:
          type: string
        inventoryUnitId:
          type: string
          nullable: true
      required:
        - nodeId
        - inventoryItemId
      additionalProperties: false
    CreateSpatialShopStaffPayResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialShopStaffPayResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialShopStaffPayResponseData:
      type: object
      properties:
        grantId:
          type: string
        paidCents:
          type: number
        paidThrough:
          type: string
      required:
        - grantId
        - paidCents
        - paidThrough
      additionalProperties: false
    CreateSpatialStreetApplyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialStreetApplyResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialStreetApplyResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        status:
          type: string
        kind:
          type: string
        decidedAt:
          type: string
          format: date-time
          nullable: true
        sceneId:
          type: string
        streetId:
          type: string
      required:
        - id
        - createdAt
        - userId
        - status
        - kind
        - sceneId
        - streetId
      additionalProperties: false
    CreateSpatialStreetClaimResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialStreetClaimResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialStreetClaimResponseData:
      type: object
      properties:
        index:
          type: number
        address:
          type: string
      required:
        - index
        - address
      additionalProperties: false
    CreateSpatialStreetInviteRequest:
      type: object
      properties:
        shopSlug:
          type: string
      required:
        - shopSlug
      additionalProperties: false
    CreateSpatialStreetOwnedUpkeepResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialStreetOwnedUpkeepResponseData"
      required:
        - data
      additionalProperties: false
    CreateSpatialStreetOwnedUpkeepResponseData:
      type: object
      properties:
        paidThrough:
          type: string
        upkeep:
          type: string
          enum:
            - active
            - grace
            - delinquent
            - foreclosed
          nullable: true
        paidCents:
          type: number
      required:
        - paidThrough
        - paidCents
      additionalProperties: false
    CreateSpatialStreetPlotBuyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSpatialStreetPlotBuyResponseData"
      required:
        - data
      additionalProperties: false
    CreateSponsoredAdBillingTopupLinkRequest:
      type: object
      properties:
        amountCents:
          type: number
        returnUrl:
          type: string
          description: Where Checkout returns to (a crossly.net URL or the app scheme); default Ads › Billing.
      required:
        - amountCents
      additionalProperties: false
    CreateSponsoredAdBillingTopupLinkResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSponsoredAdBillingTopupLinkResponseData"
      required:
        - data
      additionalProperties: false
    CreateSponsoredAdBoostRemoveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateSponsoredAdBoostRemoveResponseData"
      required:
        - data
      additionalProperties: false
    CreateSponsoredAdBoostRemoveResponseData:
      type: object
      properties:
        cleared:
          type: number
      required:
        - cleared
      additionalProperties: false
    CreateStallBookResponse:
      type: object
      properties:
        booking:
          $ref: "#/components/schemas/CreateStallBookResponseBooking"
      required:
        - booking
      additionalProperties: false
    CreateStallBookResponseBooking:
      type: object
      properties:
        id:
          type: string
        street:
          type: string
        spotIndex:
          type: number
        unit:
          type: string
          enum:
            - day
            - event
        units:
          type: array
          items:
            $ref: "#/components/schemas/CreateStallBookResponseBookingUnits"
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
          enum:
            - cancelled
            - ended
            - booked
            - folded
        rail:
          type: string
          enum:
            - card
            - cbx
            - bucks
        owner:
          $ref: "#/components/schemas/CreateStallBookResponseBookingOwner"
        quote:
          $ref: "#/components/schemas/CreateStallBookResponseBookingQuote"
        totalCents:
          type: number
        refundedCents:
          type: number
        cancellable:
          type: boolean
        listingIds:
          type: array
          items:
            type: string
        boothKind:
          type: string
          enum:
            - cart
            - booth
            - pavilion
        capacity:
          type: number
        awning:
          $ref: "#/components/schemas/ColourPattern"
        booth:
          $ref: "#/components/schemas/CreateStallBookResponseBookingBooth"
        sign:
          type: string
          nullable: true
        attendant:
          type: boolean
        stats:
          $ref: "#/components/schemas/CreateStallBookResponseBookingStats"
        createdAt:
          type: string
      required:
        - id
        - street
        - spotIndex
        - unit
        - units
        - startsAt
        - endsAt
        - status
        - rail
        - owner
        - quote
        - totalCents
        - refundedCents
        - cancellable
        - listingIds
        - boothKind
        - capacity
        - attendant
        - stats
        - createdAt
      additionalProperties: false
    CreateStallBookResponseBookingBooth:
      type: object
      properties:
        canopy:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
          description: A PREMIUM awning pattern; `plain` (free) defers to the booking's awning pattern.
        lights:
          type: string
          nullable: true
        counter:
          type: string
          nullable: true
        piece:
          type: string
          nullable: true
          description: An interactive piece's model key (interactivePieceFor), standing beside the cart.
        paint:
          type: string
          nullable: true
          description: "The sign's paint (STALL_SIGN_PAINTS): its board and its letters. Free."
        font:
          type: string
          nullable: true
          description: "The sign's typeface (sign-lettering.ts SIGN_FONTS): the letters are built in it. Free."
        mood:
          type: string
          nullable: true
          description: "The booth's lighting preset (STALL_MOODS): a light under the canopy on the counter. Free."
      additionalProperties: false
      nullable: true
    CreateStallBookResponseBookingOwner:
      type: object
      properties:
        kind:
          type: string
        isCrossly:
          type: boolean
      required:
        - kind
        - isCrossly
      additionalProperties: false
    CreateStallBookResponseBookingQuote:
      type: object
      properties:
        rate:
          type: string
          enum:
            - day
            - night
          description: "'day' rate or 'night' rate, per unit."
        count:
          type: number
        unitCents:
          type: array
          items:
            type: number
          description: What each unit costs, in order.
        lines:
          type: array
          items:
            type: object
            additionalProperties: {}
        totalCents:
          type: number
        premiumMultiplier:
          type: number
        demandPricing:
          type: boolean
        mode:
          type: string
          enum:
            - both
            - share
            - rent
        shareBps:
          type: number
          description: Owner's share of stall sales, bps; 0 in rent mode.
      required:
        - rate
        - count
        - unitCents
        - lines
        - totalCents
        - premiumMultiplier
        - demandPricing
        - mode
        - shareBps
      additionalProperties: false
    CreateStallBookResponseBookingStats:
      type: object
      properties:
        visits:
          type: number
        offers:
          type: number
      required:
        - visits
        - offers
      additionalProperties: false
    CreateStallBookResponseBookingUnits:
      type: object
      properties:
        key:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        cents:
          type: number
        externalId:
          type: string
          nullable: true
          description: "CBX only: the spend's external id for this unit (one spend per unit)."
        paymentId:
          type: string
          nullable: true
          description: "CBX only, booked since gap 6: this unit's world_payments row (refunds go through refundWorld)."
      required:
        - key
        - startsAt
        - endsAt
        - cents
      additionalProperties: false
    CreateStallBookingCancelResponse:
      type: object
      properties:
        cancelled:
          type: boolean
        refundedCents:
          type: number
        rail:
          type: string
      required:
        - cancelled
        - refundedCents
        - rail
      additionalProperties: false
    CreateStorefrontHighlightItemRequest:
      type: object
      properties:
        storyIds:
          type: array
          items:
            type: string
      required:
        - storyIds
      additionalProperties: false
    CreateStorefrontHighlightRequest:
      type: object
      properties:
        title:
          type: string
        coverUrl:
          type: string
          nullable: true
        storyIds:
          type: array
          items:
            type: string
      required:
        - title
      additionalProperties: false
    CreateStorefrontHighlightResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateStorefrontHighlightResponseData"
      required:
        - data
      additionalProperties: false
    CreateStorefrontHighlightResponseData:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateStorefrontHighlightResponseDataItems"
        id:
          type: string
        storefrontId:
          type: string
        title:
          type: string
        coverUrl:
          type: string
          nullable: true
          description: Custom cover, else the first item's media.
        position:
          type: number
      required:
        - items
        - id
        - storefrontId
        - title
        - position
      additionalProperties: false
    CreateStorefrontHighlightResponseDataItems:
      type: object
      properties:
        caption:
          type: string
          nullable: true
        fit:
          type: string
          enum:
            - cover
            - contain
        mediaTransform:
          type: object
          additionalProperties: {}
        listing:
          type: object
          nullable: true
          description: The tie-in, resolved (null when `listingId` is null or the listing is no longer live).
          additionalProperties: {}
        stickerListings:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Every product the slide's stickers name, resolved, so a sticker on the slide is tappable too.
        sourceStoryId:
          type: string
          nullable: true
          description: "Owner reads only: the story it was copied from (the picker marks those as already added)."
        id:
          type: string
        mediaUrl:
          type: string
        mediaType:
          type: string
          enum:
            - image
            - video
        listingId:
          type: string
          nullable: true
          description: Optional product tie-in (tap → the listing).
        durationMs:
          type: number
        postedAt:
          type: string
          description: When the original story was posted.
      required:
        - fit
        - mediaTransform
        - stickerListings
        - id
        - mediaUrl
        - mediaType
        - durationMs
        - postedAt
      additionalProperties: false
    CreateStorefrontOnboardingSuggestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/NameSlug"
      required:
        - data
      additionalProperties: false
    CreateStorefrontPolicyFromTermResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateStorefrontPolicyFromTermResponseData"
      required:
        - data
      additionalProperties: false
    CreateStorefrontPolicyFromTermResponseData:
      type: object
      properties:
        preset:
          $ref: "#/components/schemas/CreateStorefrontPolicyFromTermResponseDataPreset"
        policies:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseDataStorePolicies"
      required:
        - preset
        - policies
      additionalProperties: false
    CreateStorefrontPolicyFromTermResponseDataPreset:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        isDefault:
          type: boolean
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
        revision:
          type: number
        hasDomesticRules:
          type: boolean
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - userId
        - isDefault
        - kind
        - revision
        - hasDomesticRules
      additionalProperties: false
    CreateStorefrontProfileSuggestShelveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateStorefrontProfileSuggestShelveResponseData"
      required:
        - data
      additionalProperties: false
    CreateStorefrontProfileSuggestShelveResponseData:
      type: object
      properties:
        shelves:
          type: array
          items:
            $ref: "#/components/schemas/CreateStorefrontProfileSuggestShelveResponseDataShelves"
      required:
        - shelves
      additionalProperties: false
    CreateStorefrontProfileSuggestShelveResponseDataShelves:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        source:
          $ref: "#/components/schemas/CreateStorefrontProfileSuggestShelveResponseDataShelvesSource"
        layout:
          type: string
          enum:
            - rail
            - grid
      required:
        - id
        - title
        - source
        - layout
      additionalProperties: false
    CreateStorefrontProfileSuggestShelveResponseDataShelvesSource:
      type: object
      properties:
        mode:
          type: string
          enum:
            - all
            - category
            - tags
            - manual
            - smart
        listingIds:
          type: array
          items:
            type: string
          nullable: true
          description: "mode 'manual': platform_listing ids in order (max 200)."
        tags:
          type: array
          items:
            type: string
          nullable: true
          description: "mode 'tags': the listing tags (listings.tags) to match, case-insensitive."
        tagMatch:
          type: string
          enum:
            - all
            - any
          nullable: true
        category:
          type: object
          nullable: true
          description: "mode 'category': listings.category {main, sub?, sub2?}."
          additionalProperties: {}
        smart:
          type: string
          enum:
            - newest
            - ending_soon
            - back_in_stock
            - on_sale
            - price_drops
            - best_sellers
            - most_viewed
            - most_saved
            - under_price
          nullable: true
          description: "mode 'smart': the rule. 'under_price' uses priceMaxCents."
        priceMinCents:
          type: number
          nullable: true
          description: Narrowing filters, any mode but manual.
        priceMaxCents:
          type: number
          nullable: true
        conditions:
          type: array
          items:
            type: string
          nullable: true
        excludeTags:
          type: array
          items:
            type: string
          nullable: true
          description: Tags to leave out (e.g. "hidden").
        filters:
          type: object
          nullable: true
          description: Fine-grained program filters (on sale, group buy, rentable, members only…), any mode but manual (./filters.ts).
          additionalProperties: {}
        catalogIds:
          type: array
          items:
            type: string
          nullable: true
          description: |-
            W6 trade sites: only items in these wholesale catalogs (crossly_catalogs ids), any mode but manual. On a trade
            site every source already draws from the store's wholesale catalogs; this narrows it to some of them. A retail
            source that names catalogs is narrowed the same way.
        sort:
          type: string
          enum:
            - manual
            - title
            - newest
            - popular
            - price_asc
            - price_desc
        limit:
          type: number
          description: "1..48 (manual: up to the picks)."
      required:
        - mode
        - sort
        - limit
      additionalProperties: false
    CreateStorefrontSectionRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - listings
            - collections
            - about
            - faq
            - social
            - policies
            - hero
            - announcement
            - creations
        title:
          type: string
        listingIds:
          type: array
          items:
            type: string
        config:
          type: object
          additionalProperties: {}
        visible:
          type: boolean
      additionalProperties: false
    CreateStorefrontSitePreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateStorefrontSitePreviewResponseData:
      type: object
      properties:
        store:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataStore"
        design:
          $ref: "#/components/schemas/StorefrontResponse3DataDraft"
        page:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataPage"
        listings:
          type: object
          description: section id → its resolved listings (product_rail, product_grid, featured_product).
          additionalProperties: {}
        extras:
          type: object
          description: section id → extra data (reviews, events, lookbooks, category tiles).
          additionalProperties: {}
        preview:
          type: boolean
          description: Draft preview (editor) vs the live site.
        trade:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataTrade"
      required:
        - store
        - design
        - page
        - listings
        - extras
        - preview
      additionalProperties: false
    CreateStorefrontSitePreviewResponseDataPage:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
          description: "'' = the home page (always present, first). Others: lowercase-kebab, served at /p/:slug."
        title:
          type: string
        visible:
          type: boolean
          description: In the header nav automatically when no nav is set.
        seo:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataPageSeo"
        sections:
          type: array
          items: {}
      required:
        - id
        - slug
        - title
        - visible
        - sections
      additionalProperties: false
      description: The page asked for.
    CreateStorefrontSitePreviewResponseDataPageSeo:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
      required:
        - title
        - description
      additionalProperties: false
      nullable: true
    CreateStorefrontSitePreviewResponseDataStore:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        logoUrl:
          type: string
          nullable: true
        bio:
          type: string
        socialLinks:
          type: object
          additionalProperties: {}
        ratingAverage:
          type: number
          nullable: true
        ratingCount:
          type: number
        policies:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataStorePolicies"
        freeShippingThresholdCents:
          type: number
          nullable: true
        offersLocalPickup:
          type: boolean
      required:
        - id
        - slug
        - name
        - bio
        - socialLinks
        - ratingCount
        - policies
        - offersLocalPickup
      additionalProperties: false
    CreateStorefrontSitePreviewResponseDataStorePolicies:
      type: object
      properties:
        shipping:
          type: string
          nullable: true
        returns:
          type: string
          nullable: true
        payment:
          type: string
          nullable: true
      additionalProperties: false
    CreateStorefrontSitePreviewResponseDataTrade:
      type: object
      properties:
        audience:
          type: string
        gating:
          type: string
          enum:
            - public
            - approved_only
            - prices_private
        gate:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataTradeGate"
        viewer:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataTradeViewer"
        terms:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataTradeTerms"
      required:
        - audience
        - gating
        - gate
        - viewer
      additionalProperties: false
      nullable: true
      description: "W6: present on the trade site — its gating, what this viewer may see, the store's trade terms."
    CreateStorefrontSitePreviewResponseDataTradeGate:
      type: object
      properties:
        showSite:
          type: boolean
          description: Draw the site's own pages (false = the apply page).
        showPrices:
          type: boolean
          description: Prices may be drawn (each catalog's own price visibility still applies).
        reason:
          type: string
          enum:
            - pending
            - ok
            - apply
            - sign_in
          description: Why the apply page shows, for its copy.
      required:
        - showSite
        - showPrices
        - reason
      additionalProperties: false
    CreateStorefrontSitePreviewResponseDataTradeTerms:
      type: object
      properties:
        storefrontId:
          type: string
        storeSlug:
          type: string
        companyName:
          type: string
          nullable: true
        orderMinCents:
          type: number
          nullable: true
        firstOrderMinCents:
          type: number
          nullable: true
        reorderMinCents:
          type: number
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        moqDefault:
          type: number
          nullable: true
        casePackDefault:
          type: number
          nullable: true
        backorders:
          type: string
          nullable: true
        shipsFrom:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataTradeTermsShipsFrom"
        paymentMethods:
          type: array
          items:
            type: string
          description: Payment methods the store's payment preset accepts (card, cbx, ach, on_account…).
        netDays:
          type: number
          nullable: true
          description: Net days when this viewer is approved for terms; null otherwise.
        returnsSummary:
          type: string
          nullable: true
        brandsCarried:
          type: array
          items:
            type: string
        categories:
          type: array
          items:
            type: string
        verifiedOnly:
          type: boolean
        requiresResaleCert:
          type: boolean
        applyPath:
          type: string
      required:
        - storefrontId
        - storeSlug
        - paymentMethods
        - brandsCarried
        - categories
        - verifiedOnly
        - requiresResaleCert
        - applyPath
      additionalProperties: false
      nullable: true
    CreateStorefrontSitePreviewResponseDataTradeTermsShipsFrom:
      type: object
      properties:
        city:
          type: string
          nullable: true
        region:
          type: string
          nullable: true
        country:
          type: string
        postalCode:
          type: string
      required:
        - country
        - postalCode
      additionalProperties: false
      nullable: true
    CreateStorefrontSitePreviewResponseDataTradeViewer:
      type: object
      properties:
        signedIn:
          type: boolean
        approved:
          type: boolean
          description: "Approved by this seller: account terms, an active group, or a catalog grant (their own or their company's)."
        pending:
          type: boolean
          description: Has a pending access request with this seller.
      required:
        - signedIn
        - approved
        - pending
      additionalProperties: false
    CreateStorefrontSiteResolveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateStorefrontSiteResolveResponseData"
      required:
        - data
      additionalProperties: false
    CreateStorefrontSiteResolveResponseData:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateStorefrontSiteResolveResponseDataItems"
        total:
          type: number
      required:
        - items
        - total
      additionalProperties: false
    CreateStorefrontSiteResolveResponseDataItems:
      type: object
      properties:
        id:
          type: string
          description: platform_listings.id (what manual sources and `/site/:slug/products/:id` carry).
        slug:
          type: string
          description: "The public listing slug (platform_listing_id): the Crossly product page is `/shop/:slug`."
        title:
          type: string
        priceCents:
          type: number
        compareAtCents:
          type: number
          nullable: true
        currency:
          type: string
        imageUrl:
          type: string
          nullable: true
        imageUrl2:
          type: string
          nullable: true
          description: Second photo, for the hover-swap card.
        condition:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        quantity:
          type: number
        href:
          type: string
          description: Crossly listing page (the profile) or the site's own product page (`/site/:slug/products/:id`).
        createdAt:
          type: string
        badges:
          type: array
          items:
            type: string
          nullable: true
          description: "Program badges (group buy, rent, members, deal…): ./filters.ts PROGRAM_SECTION_LABELS."
      required:
        - id
        - slug
        - title
        - priceCents
        - currency
        - tags
        - quantity
        - href
        - createdAt
      additionalProperties: false
    CreateStorefrontSiteSuggestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateStorefrontSiteSuggestResponseData"
      required:
        - data
      additionalProperties: false
    CreateStorefrontSiteSuggestResponseData:
      type: object
      properties:
        sections:
          type: array
          items:
            $ref: "#/components/schemas/CreateStorefrontSiteSuggestResponseDataSectionsItem"
      required:
        - sections
      additionalProperties: false
    CreateStorefrontTradeSitePublishRequest:
      type: object
      properties:
        label:
          type: string
          nullable: true
      additionalProperties: false
    CreateStorefrontTradeSiteResolveRequest:
      type: object
      properties:
        source: {}
      required:
        - source
      additionalProperties: false
    CreateStorefrontTradeSiteStarterRequest:
      type: object
      properties:
        starterId:
          type: string
          enum:
            - trade_classic
            - trade_line_sheet
            - trade_brand_house
            - trade_apply_first
      required:
        - starterId
      additionalProperties: false
    CreateStoryItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        batchId:
          type: string
          nullable: true
        position:
          type: number
        sellerUserId:
          type: string
        viewCount:
          type: number
        caption:
          type: string
          nullable: true
        audience:
          type: string
        mediaUrl:
          type: string
        fit:
          type: string
        mediaKind:
          type: string
        taggedListingIds:
          type: array
          items:
            type: string
          nullable: true
      required:
        - id
        - createdAt
        - expiresAt
        - position
        - sellerUserId
        - viewCount
        - audience
        - mediaUrl
        - fit
        - mediaKind
      additionalProperties: false
    CreateStoryRequest:
      type: object
      properties:
        slides:
          type: array
          items:
            $ref: "#/components/schemas/CreateStoryRequestSlides"
        audience:
          type: string
          enum:
            - followers
            - everyone
        expiresInHours:
          type: number
      required:
        - slides
      additionalProperties: false
    CreateStoryRequestSlides:
      type: object
      properties:
        mediaUrl:
          type: string
        mediaKind:
          type: string
          enum:
            - image
            - video
        caption:
          type: string
        taggedListingIds:
          type: array
          items:
            type: string
        overlays:
          type: array
          items: {}
        fit:
          type: string
          enum:
            - cover
            - contain
        mediaTransform:
          $ref: "#/components/schemas/ListStorefrontHighlightsItemItemsMediaTransform"
      required:
        - mediaUrl
      additionalProperties: false
    CreateStoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateStoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    CreateTcgCreatorGameCheckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateTcgCreatorGameCheckResponseData"
      required:
        - data
      additionalProperties: false
    CreateTcgCreatorGameCheckResponseData:
      type: object
      properties:
        ok:
          type: boolean
        issues:
          type: array
          items:
            $ref: "#/components/schemas/PathMessage"
        cards:
          type: number
      required:
        - ok
        - issues
        - cards
      additionalProperties: false
    CreateTcgCreatorGamePackOpenResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateTcgCreatorGamePackOpenResponseData"
      required:
        - data
      additionalProperties: false
    CreateTcgCreatorGamePackOpenResponseData:
      type: object
      properties:
        cards:
          type: array
          items:
            $ref: "#/components/schemas/CreateTcgCreatorGamePackOpenResponseDataCards"
      required:
        - cards
      additionalProperties: false
    CreateTcgCreatorGamePackOpenResponseDataCards:
      type: object
      properties:
        cardId:
          type: string
        ownershipId:
          type: string
        editionNumber:
          type: number
          nullable: true
      required:
        - cardId
        - ownershipId
      additionalProperties: false
    CreateTcgCreatorGameRequest:
      type: object
      properties:
        files:
          type: array
          items:
            $ref: "#/components/schemas/PathBase64"
      required:
        - files
      additionalProperties: false
    CreateTcgCreatorGameResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateTcgCreatorGameResponseData"
      required:
        - data
      additionalProperties: false
    CreateTcgCreatorGameResponseData:
      type: object
      properties:
        gameId:
          type: string
        version:
          type: number
        versionId:
          type: string
        status:
          type: string
        cards:
          type: number
      required:
        - gameId
        - version
        - versionId
        - status
        - cards
      additionalProperties: false
    CreateTcgCreatorGameStarterRequest:
      type: object
      properties:
        key:
          type: string
      required:
        - key
      additionalProperties: false
    CreateTcgDeckRequest:
      type: object
      properties:
        name:
          type: string
        boss:
          type: string
        cards:
          type: array
          items:
            type: string
        id:
          type: string
      required:
        - name
        - boss
        - cards
      additionalProperties: false
    CreateTcgDeckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateTcgDeckResponseData"
      required:
        - data
      additionalProperties: false
    CreateTcgDeckResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        game:
          type: string
        cards:
          type: array
          items:
            type: string
        boss:
          type: string
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - userId
        - game
        - cards
        - boss
      additionalProperties: false
    CreateTcgMatchActRequest:
      type: object
      properties:
        action:
          $ref: "#/components/schemas/CreateTcgMatchActRequestAction"
      required:
        - action
      additionalProperties: false
    CreateTcgMatchActRequestAction:
      type: object
      properties:
        t:
          type: string
      required:
        - t
      additionalProperties: false
    CreateTcgNftReconcileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateTcgNftReconcileResponseData"
      required:
        - data
      additionalProperties: false
    CreateTcgNftReconcileResponseData:
      type: object
      properties:
        gone:
          type: number
        arrived:
          type: number
        complete:
          type: boolean
      required:
        - gone
        - arrived
        - complete
      additionalProperties: false
    CreateTcgPackOpenResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateTcgPackOpenResponseData"
      required:
        - data
      additionalProperties: false
    CreateTcgPackOpenResponseData:
      type: object
      properties:
        cards:
          type: array
          items:
            type: string
      required:
        - cards
      additionalProperties: false
    CreateTcgQueueResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateTcgQueueResponseData"
      required:
        - data
      additionalProperties: false
    CreateTcgStarterRequest:
      type: object
      properties:
        faction:
          type: string
      required:
        - faction
      additionalProperties: false
    CreateTcgStarterResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeckIdRequest"
      required:
        - data
      additionalProperties: false
    CreateTcgTableRequest:
      type: object
      properties:
        starter:
          type: string
      additionalProperties: false
    CreateTcgTournamentRequest:
      type: object
      properties:
        name:
          type: string
        topCut: {}
        roundMinutes:
          type: number
        maxPlayers:
          type: number
        startsAt:
          type: string
          nullable: true
      required:
        - name
      additionalProperties: false
    CreateTcgTournamentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateTcgTournamentResponseData"
      required:
        - data
      additionalProperties: false
    CreateTcgTournamentResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        status:
          type: string
        startsAt:
          type: string
          format: date-time
          nullable: true
        game:
          type: string
        round:
          type: number
        maxPlayers:
          type: number
        hostId:
          type: string
        rounds:
          type: number
        roundMinutes:
          type: number
        roundEndsAt:
          type: string
          format: date-time
          nullable: true
        topCut:
          type: number
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - status
        - game
        - round
        - maxPlayers
        - hostId
        - rounds
        - roundMinutes
        - topCut
      additionalProperties: false
    CreateTeamAcceptResponse:
      type: object
      properties:
        ok:
          type: boolean
        ownerUserId:
          type: string
        role:
          type: string
        scopes:
          type: array
          items:
            type: string
      required:
        - ok
        - ownerUserId
        - role
        - scopes
      additionalProperties: false
    CreateTeamInvite2Request:
      type: object
      properties:
        inviteeEmail:
          type: string
        scopes:
          type: array
          items:
            type: string
        role:
          type: string
          enum:
            - va
            - admin
      required:
        - inviteeEmail
        - scopes
      additionalProperties: false
    CreateTeamInvite2Response:
      type: object
      properties:
        id:
          type: string
        inviteeEmail:
          type: string
        role:
          type: string
          enum:
            - va
            - admin
        scopes:
          type: array
          items:
            type: string
        expiresAt:
          type: string
        acceptUrl:
          type: string
          nullable: true
      required:
        - id
        - inviteeEmail
        - role
        - scopes
        - expiresAt
      additionalProperties: false
    CreateTeamInviteRequest:
      type: object
      properties:
        inviteeEmail:
          type: string
        stores:
          type: array
          items:
            $ref: "#/components/schemas/CreateTeamMemberStoreRequest"
      required:
        - inviteeEmail
        - stores
      additionalProperties: false
    CreateTeamInviteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateTeamInviteResponseData"
      required:
        - data
      additionalProperties: false
    CreateTeamInviteResponseData:
      type: object
      properties:
        id:
          type: string
        inviteeEmail:
          type: string
        stores:
          type: array
          items:
            $ref: "#/components/schemas/CreateTeamInviteResponseDataStores"
        expiresAt:
          type: string
        acceptUrl:
          type: string
          nullable: true
      required:
        - id
        - inviteeEmail
        - stores
        - expiresAt
      additionalProperties: false
    CreateTeamInviteResponseDataStores:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
      additionalProperties: false
    CreateTeamLeaveResponse:
      type: object
      properties:
        ok:
          type: boolean
        leftCount:
          type: number
      required:
        - ok
        - leftCount
      additionalProperties: false
    CreateTeamMemberStoreRequest:
      type: object
      properties:
        permissions:
          type: array
          items:
            type: string
        store:
          type: string
        limits:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataAccessLimits"
      required:
        - permissions
        - store
      additionalProperties: false
    CreateTeamRevokeRequest:
      type: object
      properties:
        invitationId:
          type: string
        memberId:
          type: string
      additionalProperties: false
    CreateTeamRevokeResponse:
      type: object
      properties:
        ok:
          type: boolean
        kind:
          type: string
      required:
        - ok
        - kind
      additionalProperties: false
    CreateToolboxAssetRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - package
            - image
            - model
            - script
            - sound
            - animation
            - plugin
        name:
          type: string
        payload:
          $ref: "#/components/schemas/CreateToolboxAssetRequestPayload"
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        priceCents:
          type: number
        notes:
          type: string
        thumbnailUrl:
          type: string
          nullable: true
      required:
        - kind
        - name
        - payload
      additionalProperties: false
    CreateToolboxAssetRequestPayload:
      type: object
      properties:
        nodes:
          type: array
          items: {}
      required:
        - nodes
      additionalProperties: false
    CreateToolboxAssetUseRequest:
      type: object
      properties:
        experienceId:
          type: string
        placeId:
          type: string
        parentId:
          type: string
        insert:
          type: boolean
      required:
        - experienceId
        - placeId
      additionalProperties: false
    CreateToolboxAssetUseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateToolboxAssetUseResponseData"
      required:
        - data
      additionalProperties: false
    CreateToolboxAssetUseResponseData:
      type: object
      properties:
        nodes:
          type: array
          items:
            $ref: "#/components/schemas/CreateToolboxAssetUseResponseDataNodes"
        version:
          type: number
        credits:
          type: array
          items:
            $ref: "#/components/schemas/CreateToolboxAssetUseResponseDataCredits"
        inserted:
          $ref: "#/components/schemas/CreateToolboxAssetUseResponseDataInserted"
      required:
        - nodes
        - version
        - credits
      additionalProperties: false
    CreateToolboxAssetUseResponseDataCredits:
      type: object
      properties:
        assetId:
          type: string
        versionNumber:
          type: number
          nullable: true
        authorUserId:
          type: string
        name:
          type: string
        priceCents:
          type: number
      required:
        - assetId
        - authorUserId
        - name
        - priceCents
      additionalProperties: false
    CreateToolboxAssetUseResponseDataInserted:
      type: object
      properties:
        seq:
          type: number
        rootIds:
          type: array
          items:
            type: string
      required:
        - seq
        - rootIds
      additionalProperties: false
      nullable: true
    CreateToolboxAssetUseResponseDataNodes:
      type: object
      properties:
        class:
          type: string
        name:
          type: string
          nullable: true
        props:
          type: object
          nullable: true
          additionalProperties: {}
        attributes:
          type: object
          nullable: true
          additionalProperties: {}
        tags:
          type: array
          items:
            type: string
          nullable: true
        children:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
      required:
        - class
      additionalProperties: false
    CreateToolboxAssetVersionRequest:
      type: object
      properties:
        payload:
          $ref: "#/components/schemas/CreateToolboxAssetRequestPayload"
        notes:
          type: string
      required:
        - payload
      additionalProperties: false
    CreateTradeBlockEvolutionClaimResponse:
      type: object
      properties:
        ownershipId:
          type: string
        cosmeticId:
          type: string
      required:
        - ownershipId
        - cosmeticId
      additionalProperties: false
    CreateTradeBlockEvolutionRecipeRequest:
      type: object
      properties:
        name:
          type: string
        inputA:
          $ref: "#/components/schemas/CreateTradeBlockEvolutionRecipeRequestInputA"
        outputCosmeticId:
          type: string
        note:
          type: string
          nullable: true
        inputB:
          $ref: "#/components/schemas/CreateTradeBlockEvolutionRecipeRequestInputB"
      required:
        - name
        - inputA
        - outputCosmeticId
      additionalProperties: false
    CreateTradeBlockEvolutionRecipeRequestInputA:
      type: object
      properties:
        variantId:
          type: string
        condition:
          type: string
          nullable: true
        gradeKey:
          type: string
          nullable: true
      required:
        - variantId
      additionalProperties: false
    CreateTradeBlockEvolutionRecipeRequestInputB:
      type: object
      properties:
        variantId:
          type: string
        condition:
          type: string
          nullable: true
        gradeKey:
          type: string
          nullable: true
      required:
        - variantId
      additionalProperties: false
      nullable: true
    CreateTradeBlockEvolutionRecipeResponse:
      type: object
      properties:
        recipe:
          $ref: "#/components/schemas/CreateTradeBlockEvolutionRecipeResponseRecipe"
      required:
        - recipe
      additionalProperties: false
    CreateTradeBlockEvolutionRecipeResponseRecipe:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        note:
          type: string
          nullable: true
        version:
          type: number
        reviewedAt:
          type: string
          format: date-time
          nullable: true
        merchantId:
          type: string
        creatorSubjectId:
          type: string
        outputCosmeticId:
          type: string
        inputAVariantId:
          type: string
        inputACondition:
          type: string
          nullable: true
        inputAGradeKey:
          type: string
          nullable: true
        inputBVariantId:
          type: string
          nullable: true
        inputBCondition:
          type: string
          nullable: true
        inputBGradeKey:
          type: string
          nullable: true
        frozenAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - name
        - active
        - createdAt
        - updatedAt
        - version
        - merchantId
        - creatorSubjectId
        - outputCosmeticId
        - inputAVariantId
      additionalProperties: false
    CreateTradeBlockOfferRespondRequest:
      type: object
      properties:
        action:
          type: string
        stripePaymentMethodId:
          type: string
          nullable: true
        cashCents: {}
        cashPayer:
          type: string
          enum:
            - responder
            - poster
          nullable: true
        note:
          type: string
          nullable: true
      required:
        - action
    CreateTradeBlockOfferRespondResponse:
      type: object
      properties:
        status:
          type: string
        tradeId:
          type: string
          nullable: true
        counterOfferId:
          type: string
          nullable: true
        settledInVault:
          type: boolean
          nullable: true
          description: "Every item was already in the Crossly vault: the owners swapped on accept and the trade is complete."
      required:
        - status
      additionalProperties: false
    CreateTradeBlockPostOfferRequest:
      type: object
      properties:
        proposerStripePaymentMethodId:
          type: string
          nullable: true
        cashCents: {}
        cashPayer:
          type: string
          enum:
            - responder
            - poster
          nullable: true
        note:
          type: string
          nullable: true
        fromItems:
          type: array
          items:
            $ref: "#/components/schemas/CreateTradeBlockPostOfferRequestFromItems"
        toItems:
          type: array
          items:
            $ref: "#/components/schemas/CreateTradeBlockPostOfferRequestFromItems"
      additionalProperties: false
    CreateTradeBlockPostOfferRequestFromItems:
      type: object
      properties:
        variantId:
          type: string
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        portfolioId:
          type: string
          nullable: true
      required:
        - variantId
      additionalProperties: false
    CreateTradeBlockSetRecipeRequest:
      type: object
      properties:
        name:
          type: string
        members:
          type: array
          items:
            $ref: "#/components/schemas/CreateTradeBlockEvolutionRecipeRequestInputA"
        outputCosmeticId:
          type: string
        note:
          type: string
          nullable: true
      required:
        - name
        - members
        - outputCosmeticId
      additionalProperties: false
    CreateTradeBlockSetRecipeResponse:
      type: object
      properties:
        recipe:
          $ref: "#/components/schemas/CreateTradeBlockSetRecipeResponseRecipe"
      required:
        - recipe
      additionalProperties: false
    CreateTradeBlockSetRecipeResponseRecipe:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        note:
          type: string
          nullable: true
        version:
          type: number
        reviewedAt:
          type: string
          format: date-time
          nullable: true
        members:
          type: array
          items:
            $ref: "#/components/schemas/CreateTradeBlockEvolutionRecipeRequestInputA"
        merchantId:
          type: string
        creatorSubjectId:
          type: string
        outputCosmeticId:
          type: string
        frozenAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - name
        - active
        - createdAt
        - updatedAt
        - version
        - members
        - merchantId
        - creatorSubjectId
        - outputCosmeticId
      additionalProperties: false
    CreateVariationGroupGenerateMatrixRequest:
      type: object
      properties:
        sourceListingId:
          type: string
        axes:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupGenerateMatrixRequestAxes"
        sourceOptions:
          type: object
          additionalProperties: {}
        cells:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupGenerateMatrixRequestCells"
      required:
        - sourceListingId
        - axes
        - sourceOptions
        - cells
      additionalProperties: false
    CreateVariationGroupGenerateMatrixRequestAxes:
      type: object
      properties:
        name:
          type: string
        values:
          type: array
          items:
            type: string
      required:
        - name
        - values
      additionalProperties: false
    CreateVariationGroupGenerateMatrixRequestCells:
      type: object
      properties:
        options:
          type: object
          additionalProperties: {}
        listingId:
          type: string
          nullable: true
        price:
          type: number
          nullable: true
        quantity:
          type: number
          nullable: true
        sku:
          type: string
          nullable: true
      required:
        - options
      additionalProperties: false
    CreateVariationGroupGenerateMatrixResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateVariationGroupGenerateMatrixResponseData"
      required:
        - data
      additionalProperties: false
    CreateVariationGroupGenerateMatrixResponseData:
      type: object
      properties:
        id:
          type: string
        optionListingIds:
          type: array
          items:
            type: string
        createdListingIds:
          type: array
          items:
            type: string
        members:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupResponseDataMembers"
        rollup:
          $ref: "#/components/schemas/CreateVariationGroupResponseDataRollup"
      required:
        - id
        - optionListingIds
        - createdListingIds
        - members
        - rollup
      additionalProperties: false
    CreateVariationGroupGenerateRequest:
      type: object
      properties:
        sourceListingId:
          type: string
        axisName:
          type: string
        sourceValue:
          type: string
        options:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupGenerateRequestOptions"
      required:
        - sourceListingId
        - axisName
        - sourceValue
        - options
      additionalProperties: false
    CreateVariationGroupGenerateRequestOptions:
      type: object
      properties:
        value:
          type: string
        price:
          type: number
          nullable: true
        quantity:
          type: number
          nullable: true
        sku:
          type: string
          nullable: true
      required:
        - value
      additionalProperties: false
    CreateVariationGroupGenerateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateVariationGroupGenerateResponseData"
      required:
        - data
      additionalProperties: false
    CreateVariationGroupGenerateResponseData:
      type: object
      properties:
        id:
          type: string
        optionListingIds:
          type: array
          items:
            type: string
        members:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupResponseDataMembers"
        rollup:
          $ref: "#/components/schemas/CreateVariationGroupResponseDataRollup"
      required:
        - id
        - optionListingIds
        - members
        - rollup
      additionalProperties: false
    CreateVariationGroupPublishRequest:
      type: object
      properties:
        platforms:
          type: array
          items:
            type: string
        accountSlot:
          type: number
      required:
        - platforms
      additionalProperties: false
    CreateVariationGroupPublishResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateVariationGroupPublishResponseData"
      required:
        - data
      additionalProperties: false
    CreateVariationGroupPublishResponseData:
      type: object
      properties:
        outcomes:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupPublishResponseDataOutcomes"
        published:
          type: number
      required:
        - outcomes
        - published
      additionalProperties: false
    CreateVariationGroupPublishResponseDataOutcomes:
      type: object
      properties:
        platform:
          type: string
        mode:
          type: string
          enum:
            - separate
            - grouped
        ok:
          type: boolean
        listingId:
          type: string
          nullable: true
          description: |-
            The marketplace listing id — the GROUP's on a grouped platform, absent
            on a separate one where each option has its own.
        jobIds:
          type: array
          items:
            type: string
          nullable: true
          description: Dispatcher job ids, on the separate path.
        members:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
          description: |-
            Grouped: every option that went live, with its own id on the platform. publishGroupToPlatform records one
            platform_listings row per entry (variation-publish-members.ts), so a sale or delist acts on that option.
        failed:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
          description: "Grouped: options that did not go live. Reported in `warnings`; the live ones are still recorded."
        afterRecorded:
          type: object
          nullable: true
          description: |-
            Grouped: work that needs the option rows to exist (a POS stock base, markPosPushed), run right after they are
            recorded. Returns warnings for the seller; must not throw for one option.
          additionalProperties: {}
        ownOptionRows:
          type: boolean
          nullable: true
          description: |-
            The publisher tracks its options itself, not as platform_listings rows (Crossly: crossly_listing_variants with
            the member listing id, variation-publish-crossly.ts), so no `members` is not a gap.
        warnings:
          type: array
          items:
            type: string
        error:
          type: string
          nullable: true
      required:
        - platform
        - mode
        - ok
        - warnings
      additionalProperties: false
    CreateVariationGroupRequest:
      type: object
      properties:
        members:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupRequestMembers"
        kind:
          type: string
          enum:
            - variation
            - group
        title:
          type: string
        axisName:
          type: string
        axes:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupGenerateMatrixRequestAxes"
          description: "Up to three axes (Size × Color) instead of axisName; each member then sends `options` ({ Size: 'M', Color: 'Black' })."
        rule:
          $ref: "#/components/schemas/CreateVariationGroupRequestRule"
      required:
        - members
      additionalProperties: false
    CreateVariationGroupRequestMembers:
      type: object
      properties:
        listingId:
          type: string
        axisValue:
          type: string
        options:
          type: object
          additionalProperties: {}
      required:
        - listingId
      additionalProperties: false
    CreateVariationGroupRequestRule:
      type: object
      properties:
        minQty:
          type: number
        minSpendCents:
          type: number
        note:
          type: string
        allowPairWithAnyItem:
          type: boolean
      additionalProperties: false
    CreateVariationGroupResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateVariationGroupResponseData"
      required:
        - data
      additionalProperties: false
    CreateVariationGroupResponseData:
      type: object
      properties:
        id:
          type: string
        members:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupResponseDataMembers"
        rollup:
          $ref: "#/components/schemas/CreateVariationGroupResponseDataRollup"
      required:
        - id
        - members
        - rollup
      additionalProperties: false
    CreateVariationGroupResponseDataMembers:
      type: object
      properties:
        listingId:
          type: string
        axisValue:
          type: string
          nullable: true
        options:
          type: object
          nullable: true
          description: The member's value on every axis of a multi-axis group; null on a single-axis member.
          additionalProperties: {}
        sortKey:
          type: number
        title:
          type: string
          nullable: true
        price:
          type: string
          nullable: true
        images:
          type: array
          items:
            type: string
          nullable: true
        status:
          type: string
        sku:
          type: string
          nullable: true
        quantityAvailable:
          type: number
      required:
        - listingId
        - sortKey
        - status
        - quantityAvailable
      additionalProperties: false
    CreateVariationGroupResponseDataRollup:
      type: object
      properties:
        memberCount:
          type: number
        fromPriceCents:
          type: number
          nullable: true
        status:
          type: string
        availableUnits:
          type: number
        needsAttention:
          type: number
      required:
        - memberCount
        - status
        - availableUnits
        - needsAttention
      additionalProperties: false
    CreateVaultLendResponse:
      type: object
      properties:
        lendEnabled:
          type: boolean
        minAprBps:
          type: number
          nullable: true
      required:
        - lendEnabled
      additionalProperties: false
    CreateVaultMarketAdminMarkResponse:
      type: object
      properties:
        uploaded:
          type: number
      required:
        - uploaded
      additionalProperties: false
    CreateVaultMarketAdvanceRelistResponse:
      type: object
      properties:
        askId:
          type: string
        matched:
          type: boolean
        loan:
          $ref: "#/components/schemas/GetVaultMarketCreditResponse"
      required:
        - askId
        - matched
        - loan
      additionalProperties: false
    CreateVaultMarketAgentDraftCancelResponse:
      type: object
      properties:
        ok:
          type: boolean
        draft:
          $ref: "#/components/schemas/CreateVaultMarketAgentDraftCancelResponseDraft"
      required:
        - ok
      additionalProperties: false
    CreateVaultMarketAgentDraftCancelResponseDraft:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        title:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        limitCents:
          type: number
        notionalCents:
          type: number
        funding:
          type: string
          enum:
            - vault
            - card
            - custodian
        cardLabel:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        bestBidCents:
          type: number
          nullable: true
        bestAskCents:
          type: number
          nullable: true
        marketable:
          type: boolean
          description: Fills at once at up to the limit (a buy at or over the lowest ask, a sell at or under the best bid).
        status:
          type: string
          enum:
            - expired
            - cancelled
            - drafted
            - rejected
            - placing
            - placed
        orderId:
          type: string
          nullable: true
        rejectReason:
          type: string
          nullable: true
        expiresAt:
          type: string
        notes:
          type: array
          items:
            type: string
        marketHref:
          type: string
        orderBody:
          $ref: "#/components/schemas/ListVaultMarketAgentDraftsItemOrderBody"
        completeWith:
          type: string
      required:
        - id
        - bookKey
        - title
        - side
        - quantity
        - limitCents
        - notionalCents
        - funding
        - marketable
        - status
        - expiresAt
        - notes
        - marketHref
        - orderBody
        - completeWith
      additionalProperties: false
      nullable: true
    CreateVaultMarketAgentWatchResponse:
      type: object
      properties:
        watch:
          $ref: "#/components/schemas/ListVaultMarketAgentWatchesItem"
        currentCents:
          type: number
          nullable: true
        alreadyPast:
          type: boolean
      required:
        - watch
        - alreadyPast
      additionalProperties: false
    CreateVaultMarketAlertPrefTestResponse:
      type: object
      properties:
        sent:
          type: boolean
        kind:
          type: string
          enum:
            - fill
            - account
            - price
            - auction
            - follow
            - prediction
            - option_expiry
            - margin_call
            - adl
            - p2p_loan
            - market_open
            - receipt_token
            - set_goal
            - share_offering
            - share_vote
            - option_settlement
            - prediction_odds
        plan:
          $ref: "#/components/schemas/CreateVaultMarketAlertPrefTestResponsePlan"
      required:
        - sent
        - kind
        - plan
      additionalProperties: false
    CreateVaultMarketAlertPrefTestResponsePlan:
      type: object
      properties:
        email:
          type: string
          enum:
            - unavailable
            - off
            - send
            - quiet
        push:
          type: string
          enum:
            - unavailable
            - off
            - send
            - quiet
        telegram:
          type: string
          enum:
            - unavailable
            - off
            - send
            - quiet
        webhook:
          type: string
          enum:
            - unavailable
            - off
            - send
            - quiet
        terminal:
          type: string
          enum:
            - unavailable
            - off
            - send
            - quiet
      required:
        - email
        - push
        - telegram
        - webhook
        - terminal
      additionalProperties: false
    CreateVaultMarketAuctionLotBidResponse:
      type: object
      properties:
        leading:
          type: boolean
        priceCents:
          type: number
        reserveMet:
          type: boolean
        endsAt:
          type: string
        minNextBidCents:
          type: number
      required:
        - leading
        - priceCents
        - reserveMet
        - endsAt
        - minNextBidCents
      additionalProperties: false
    CreateVaultMarketAuctionLotResponse:
      type: object
      properties:
        lotId:
          type: string
        eventId:
          type: string
        endsAt:
          type: string
      required:
        - lotId
        - eventId
        - endsAt
      additionalProperties: false
    CreateVaultMarketAutoBuyPauseResponse:
      type: object
      properties:
        explainer:
          type: string
        autoBuy:
          nullable: true
      required:
        - explainer
        - autoBuy
    CreateVaultMarketAutoBuyPauseResponseOneOf1AutoBuy:
      type: object
      properties:
        shareBps:
          type: number
        active:
          type: boolean
        paused:
          type: boolean
        pausedAt:
          type: string
          nullable: true
        budgetCents:
          type: number
        stateNote:
          type: string
          nullable: true
        countingPayoutsFrom:
          type: string
        wants:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketAutoBuyPauseResponseOneOf1AutoBuyWants"
        history:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketAutoBuyPauseResponseOneOf1AutoBuyHistory"
      required:
        - shareBps
        - active
        - paused
        - budgetCents
        - countingPayoutsFrom
        - wants
        - history
      additionalProperties: false
    CreateVaultMarketAutoBuyPauseResponseOneOf1AutoBuyHistory:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - purchase
            - payout_share
        cents:
          type: number
        createdAt:
          type: string
      required:
        - id
        - kind
        - cents
        - createdAt
      additionalProperties: false
    CreateVaultMarketAutoBuyPauseResponseOneOf1AutoBuyWants:
      type: object
      properties:
        id:
          type: string
          nullable: true
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        variantLabel:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        maxPriceCents:
          type: number
          nullable: true
        bestAskCents:
          type: number
          nullable: true
      required:
        - bookKey
      additionalProperties: false
    CreateVaultMarketAutoBuyResumeResponse:
      type: object
      properties:
        explainer:
          type: string
        autoBuy:
          nullable: true
      required:
        - explainer
        - autoBuy
    CreateVaultMarketBlockAllocateResponse:
      type: object
      properties:
        outcome:
          type: string
          enum:
            - none
            - waiting
            - allocated
            - nothing_filled
        block:
          $ref: "#/components/schemas/ListVaultMarketBlocksItem"
      required:
        - outcome
        - block
      additionalProperties: false
    CreateVaultMarketBlockRequest:
      type: object
      properties:
        entityId:
          type: string
        order:
          $ref: "#/components/schemas/CreateVaultMarketBlockRequestOrder"
        plan:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketBlockRequestPlan"
        note:
          type: string
          nullable: true
      required:
        - entityId
        - order
        - plan
      additionalProperties: false
    CreateVaultMarketBlockRequestOrder:
      type: object
      properties:
        quantity:
          type: number
        side:
          type: string
          enum:
            - buy
            - sell
        bookKey:
          type: string
        expiresAt:
          type: string
        type:
          type: string
          enum:
            - limit
            - market
            - stop
            - stop_limit
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
            - fok
        clientOrderId:
          type: string
        limitCents:
          type: number
        postOnly:
          type: boolean
        stopCents:
          type: number
        displayQuantity:
          type: number
        algo:
          type: string
          enum:
            - twap
            - vwap
        algoEndsAt:
          type: string
      required:
        - quantity
        - side
        - bookKey
      additionalProperties: false
    CreateVaultMarketBlockRequestPlan:
      type: object
      properties:
        subaccountId:
          type: string
        quantity:
          type: number
      required:
        - subaccountId
        - quantity
      additionalProperties: false
    CreateVaultMarketCollectionWorthWatchResponse:
      type: object
      properties:
        watched:
          type: number
        skipped:
          type: number
      required:
        - watched
        - skipped
      additionalProperties: false
    CreateVaultMarketCreatorAttributionResponse:
      type: object
      properties:
        attribution:
          nullable: true
      required:
        - attribution
    CreateVaultMarketCreatorAttributionResponseOneOf1Attribution:
      type: object
      properties:
        creator:
          type: string
        source:
          type: string
          enum:
            - link
            - code
        startedAt:
          type: string
        expiresAt:
          type: string
        live:
          type: boolean
        disclosure:
          type: string
      required:
        - creator
        - source
        - startedAt
        - expiresAt
        - live
        - disclosure
      additionalProperties: false
    CreateVaultMarketCreatorCohostInviteRespondResponse:
      type: object
      properties:
        id:
          type: string
        keyId:
          type: string
        roomId:
          type: string
        status:
          type: string
          enum:
            - accepted
            - declined
            - withdrawn
            - invited
        note:
          type: string
          nullable: true
        invitedAt:
          type: string
        respondedAt:
          type: string
          nullable: true
        onShow:
          type: boolean
      required:
        - id
        - keyId
        - roomId
        - status
        - invitedAt
        - onShow
      additionalProperties: false
    CreateVaultMarketCreditRepayResponse:
      type: object
      properties:
        paidCents:
          type: number
        loan:
          $ref: "#/components/schemas/GetVaultMarketCreditResponse"
      required:
        - paidCents
        - loan
      additionalProperties: false
    CreateVaultMarketDcmLinkRequest:
      type: object
      properties:
        accountRef:
          type: string
        code:
          type: string
        subaccountId:
          type: string
      required:
        - accountRef
        - code
      additionalProperties: false
    CreateVaultMarketDcmLinkResponse:
      type: object
      properties:
        linked:
          type: boolean
        accountRef:
          nullable: true
        linkedAt:
          nullable: true
        hedgesReportedAt:
          nullable: true
        positions:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketDcmLinkResponseOneOfPositions"
        dcm:
          type: string
          nullable: true
        open:
          type: boolean
        missing:
          type: array
          items:
            type: string
        readOnly:
          type: string
        account:
          $ref: "#/components/schemas/CreateVaultMarketDcmLinkResponseOneOfAccount"
      required:
        - linked
        - accountRef
        - linkedAt
        - positions
        - open
        - missing
        - readOnly
        - account
    CreateVaultMarketDcmLinkResponseOneOfAccount:
      type: object
      properties:
        accountId:
          type: string
        kind:
          type: string
          enum:
            - individual
            - subaccount
        label:
          type: string
        subaccountId:
          type: string
          nullable: true
      required:
        - accountId
        - kind
        - label
      additionalProperties: false
    CreateVaultMarketDcmLinkResponseOneOfPositions:
      type: object
      properties:
        symbol:
          type: string
        side:
          type: string
          enum:
            - short
            - long
        contracts:
          type: number
        entryPrice:
          type: number
          nullable: true
        markPrice:
          type: number
          nullable: true
        unrealizedPnlCents:
          type: number
          nullable: true
        marginCents:
          type: number
          nullable: true
        liquidationPrice:
          type: number
          nullable: true
        kind:
          type: string
          nullable: true
        indexSlug:
          type: string
          nullable: true
        notionalCents:
          type: number
          nullable: true
      required:
        - symbol
        - side
        - contracts
      additionalProperties: false
    CreateVaultMarketDcmUnlinkRequest:
      type: object
      properties:
        subaccountId:
          type: string
      additionalProperties: false
    CreateVaultMarketDcmUnlinkResponse:
      type: object
      properties:
        linked:
          type: boolean
      required:
        - linked
      additionalProperties: false
    CreateVaultMarketDealerApplyResponse:
      type: object
      properties:
        userId:
          type: string
        status:
          type: string
        businessName:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        maxNotionalCents:
          type: number
          nullable: true
        maxOpenOrders:
          type: number
          nullable: true
        appliedAt:
          type: string
        approvedAt:
          type: string
          nullable: true
        revokedAt:
          type: string
          nullable: true
        revokeReason:
          type: string
          nullable: true
      required:
        - userId
        - status
        - appliedAt
      additionalProperties: false
    CreateVaultMarketDealerPoolPreviewResponse:
      type: object
      properties:
        buyerFeeBps:
          type: number
        valueCents:
          type: number
        bids:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerPoolsItemLadderBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerPoolsItemLadderBids"
        bidLimit:
          type: string
          enum:
            - floor
            - ceiling
            - no_units
            - no_cash
            - curve_end
          nullable: true
          description: Why a side has fewer levels than the depth (null = full).
        askLimit:
          type: string
          enum:
            - floor
            - ceiling
            - no_units
            - no_cash
            - curve_end
          nullable: true
      required:
        - buyerFeeBps
        - valueCents
        - bids
        - asks
      additionalProperties: false
    CreateVaultMarketDepositResponse:
      type: object
      properties:
        vaultItem:
          $ref: "#/components/schemas/IdStatusResponse"
      required:
        - vaultItem
      additionalProperties: false
    CreateVaultMarketDonationResponse:
      type: object
      properties:
        id:
          type: string
        markCents:
          type: number
          nullable: true
      required:
        - id
      additionalProperties: false
    CreateVaultMarketEntityHaltRequest:
      type: object
      properties:
        reason:
          type: string
        subaccountId:
          type: string
          nullable: true
      required:
        - reason
      additionalProperties: false
    CreateVaultMarketEntityHaltResponse:
      type: object
      properties:
        haltId:
          type: string
        cancelled:
          type: number
        view:
          $ref: "#/components/schemas/CreateVaultMarketEntityHaltResponseView"
      required:
        - haltId
        - cancelled
        - view
      additionalProperties: false
    CreateVaultMarketEntityHaltResponseView:
      type: object
      properties:
        entity:
          $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseEntity"
        myRole:
          type: string
          enum:
            - viewer
            - trader
            - admin
            - risk
            - ops
        can:
          $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseCan"
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseMembers"
        subaccounts:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketEntityHaltResponseViewSubaccounts"
        halts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseHalts"
      required:
        - entity
        - myRole
        - can
        - members
        - subaccounts
        - halts
      additionalProperties: false
    CreateVaultMarketEntityHaltResponseViewSubaccounts:
      type: object
      properties:
        id:
          type: string
        accountId:
          type: string
        name:
          type: string
        strategyTag:
          type: string
          nullable: true
        status:
          type: string
        atCustodian:
          type: boolean
        limits:
          type: object
          nullable: true
          additionalProperties: {}
        effectiveLimits:
          type: object
          additionalProperties: {}
        halted:
          type: boolean
        createdAt:
          type: string
      required:
        - id
        - accountId
        - name
        - status
        - atCustodian
        - effectiveLimits
        - halted
        - createdAt
      additionalProperties: false
    CreateVaultMarketEntityKybResponse:
      type: object
      properties:
        kybStatus:
          type: string
          enum:
            - pending
            - rejected
            - approved
            - restricted
        onboardingUrl:
          type: string
          nullable: true
      required:
        - kybStatus
      additionalProperties: false
    CreateVaultMarketEntityMemberRequest:
      type: object
      properties:
        email:
          type: string
        role:
          type: string
          enum:
            - viewer
            - trader
            - admin
            - risk
            - ops
        limits:
          $ref: "#/components/schemas/CreateVaultMarketEntityMemberRequestLimits"
        subaccountIds:
          type: array
          items:
            type: string
          nullable: true
      required:
        - email
        - role
      additionalProperties: false
    CreateVaultMarketEntityMemberRequestLimits:
      type: object
      properties:
        maxOrderNotionalCents:
          type: number
          nullable: true
        maxUnitsPerKey:
          type: number
          nullable: true
        maxGrossCents:
          type: number
          nullable: true
        maxNetCents:
          type: number
          nullable: true
        maxLeverageX100:
          type: number
          nullable: true
      additionalProperties: false
      nullable: true
    CreateVaultMarketEntityRequest:
      type: object
      properties:
        legalName:
          type: string
        entityType:
          type: string
          enum:
            - llc
            - lp
            - corp
            - trust
            - spv
        jurisdiction:
          type: string
        lei:
          type: string
          nullable: true
        taxClassification:
          type: string
          nullable: true
      required:
        - legalName
        - entityType
        - jurisdiction
      additionalProperties: false
    CreateVaultMarketEntityResponse:
      type: object
      properties:
        onboardingUrl:
          type: string
          nullable: true
        entity:
          $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseEntity"
        myRole:
          type: string
          enum:
            - viewer
            - trader
            - admin
            - risk
            - ops
        can:
          $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseCan"
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseMembers"
        subaccounts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseSubaccounts"
        halts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseHalts"
      required:
        - entity
        - myRole
        - can
        - members
        - subaccounts
        - halts
      additionalProperties: false
    CreateVaultMarketEntitySubaccountRequest:
      type: object
      properties:
        name:
          type: string
        strategyTag:
          type: string
          nullable: true
        limits:
          $ref: "#/components/schemas/CreateVaultMarketEntityMemberRequestLimits"
      required:
        - name
      additionalProperties: false
    CreateVaultMarketFollowCopyWatchAlertReadResponse:
      type: object
      properties:
        marked:
          type: number
      required:
        - marked
      additionalProperties: false
    CreateVaultMarketGiftResponse:
      type: object
      properties:
        id:
          type: string
        expiresAt:
          type: string
      required:
        - id
        - expiresAt
      additionalProperties: false
    CreateVaultMarketGradeToVaultBookRequest:
      type: object
      properties:
        runId:
          type: string
        declaredValueCents:
          type: number
        prescreen:
          type: boolean
        missMode:
          type: string
          enum:
            - release
            - roll_over
      required:
        - runId
      additionalProperties: false
    CreateVaultMarketGradeToVaultListRequest:
      type: object
      properties:
        priceCents:
          type: number
        gradeKey:
          type: string
        confirm:
          type: boolean
      required:
        - priceCents
        - gradeKey
        - confirm
      additionalProperties: false
    CreateVaultMarketGradeToVaultRequest:
      type: object
      properties:
        source:
          type: string
          enum:
            - inventory
            - vault_unit
        inventoryItemId:
          type: string
        vaultItemId:
          type: string
        runId:
          type: string
        declaredValueCents:
          type: number
          description: What it is worth, for the grader's tier limit and insurance (a raw vault unit defaults to its mark).
        targetPriceCents:
          type: number
          description: The price in mind. Shown again after the grade; never placed without a confirmation.
        prescreen:
          type: boolean
        missMode:
          type: string
          enum:
            - release
            - roll_over
      required:
        - source
      additionalProperties: false
    CreateVaultMarketGradingOrderPayConfirmRequest:
      type: object
      properties:
        paymentIntentId:
          type: string
      required:
        - paymentIntentId
      additionalProperties: false
    CreateVaultMarketGradingOrderPayRequest:
      type: object
      properties:
        savedCard:
          type: boolean
      additionalProperties: false
    CreateVaultMarketGradingOrderPayResponse:
      type: object
      properties:
        status:
          type: string
        clientSecret:
          type: string
        paymentIntentId:
          type: string
      required:
        - status
    CreateVaultMarketGradingOrderRequest:
      type: object
      properties:
        graderSlug:
          type: string
        tierSlug:
          type: string
        cards:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketGradingOrderRequestCards"
        addOns:
          type: array
          items:
            type: string
        note:
          type: string
          nullable: true
      required:
        - graderSlug
        - tierSlug
        - cards
      additionalProperties: false
    CreateVaultMarketGradingOrderRequestCards:
      type: object
      properties:
        source:
          type: string
          enum:
            - inventory
            - vault
        declaredValueCents:
          type: number
        vaultItemId:
          type: string
        inventoryItemId:
          type: string
        notes:
          type: string
          nullable: true
        addOns:
          type: array
          items:
            type: string
      required:
        - source
        - declaredValueCents
      additionalProperties: false
    CreateVaultMarketGradingOrderResponse:
      type: object
      properties:
        id:
          type: string
        number:
          type: string
      required:
        - id
        - number
      additionalProperties: false
    CreateVaultMarketGradingResponse:
      type: object
      properties:
        submissionId:
          type: string
        vaultItemId:
          type: string
        status:
          type: string
      required:
        - submissionId
        - vaultItemId
        - status
      additionalProperties: false
    CreateVaultMarketHallLoanCreditResponse:
      type: object
      properties:
        id:
          type: string
        credit:
          type: string
          enum:
            - name
            - anonymous
          x-enum-varnames:
            - nameOption
            - anonymous
      required:
        - id
        - credit
      additionalProperties: false
    CreateVaultMarketHallLoanOptOutResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - ended
            - ending
        showingUntil:
          type: string
          nullable: true
      required:
        - id
        - status
      additionalProperties: false
    CreateVaultMarketHallLoanResponse:
      type: object
      properties:
        status:
          type: string
        resumed:
          type: boolean
        next:
          $ref: "#/components/schemas/CreateVaultMarketHallLoanResponseNext"
      required:
        - status
        - resumed
        - next
      additionalProperties: false
    CreateVaultMarketHallLoanResponseNext:
      type: object
      properties:
        week:
          type: number
        key:
          type: string
        title:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        current:
          type: boolean
          description: This week's exhibition.
      required:
        - week
        - key
        - title
        - startsAt
        - endsAt
        - current
      additionalProperties: false
    CreateVaultMarketIdentityStartResponse:
      type: object
      properties:
        alreadyVerified:
          type: boolean
        url:
          type: string
          nullable: true
        clientSecret:
          type: string
          nullable: true
    CreateVaultMarketIndexBuyResponse:
      type: object
      properties:
        index:
          type: string
        basketId:
          type: string
        unitsPerKey:
          type: number
        maxBpsOverMark:
          type: number
        tif:
          type: string
          enum:
            - gtc
            - ioc
        maxTotalCents:
          type: number
        placed:
          type: number
        failed:
          type: number
        filledUnits:
          type: number
        results:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketIndexBuyResponseResults"
      required:
        - index
        - basketId
        - unitsPerKey
        - maxBpsOverMark
        - tif
        - maxTotalCents
        - placed
        - failed
        - filledUnits
        - results
      additionalProperties: false
    CreateVaultMarketIndexBuyResponseResults:
      type: object
      properties:
        bookKey:
          type: string
        ok:
          type: boolean
        markCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        units:
          type: number
        error:
          type: string
          nullable: true
        code:
          type: string
          nullable: true
        order:
          $ref: "#/components/schemas/CreateVaultMarketIndexBuyResponseResultsOrder"
      required:
        - bookKey
        - ok
        - units
      additionalProperties: false
    CreateVaultMarketIndexBuyResponseResultsOrder:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        filledQuantity:
          type: number
      required:
        - id
        - status
        - filledQuantity
      additionalProperties: false
      nullable: true
    CreateVaultMarketIndexComplaintResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - open
            - closed
            - answered
        createdAt:
          type: string
      required:
        - id
        - status
        - createdAt
      additionalProperties: false
    CreateVaultMarketInstantExitResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - missed
            - filled
        filledCents:
          type: number
          nullable: true
        quote:
          $ref: "#/components/schemas/CreateVaultMarketInstantExitResponseQuote"
        order:
          $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
      required:
        - status
        - quote
        - order
      additionalProperties: false
    CreateVaultMarketInstantExitResponseQuote:
      type: object
      properties:
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        bestBidCents:
          type: number
          nullable: true
        unitsAtBest:
          type: number
          description: Units bid at the best price (how many can go at once).
        shareOfMarkBps:
          type: number
          nullable: true
        dealerBid:
          type: boolean
          description: A verified dealer's standing bid is at the best price.
        committedDealers:
          type: number
          description: Dealers keeping an Instant Exit band on this key right now.
        levels:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketInstantExitResponseQuoteLevels"
        floorBps:
          type: number
          description: The lowest share of the mark this key's Instant Exit sells at (its tier's band).
        available:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - bookKey
        - unitsAtBest
        - dealerBid
        - committedDealers
        - levels
        - floorBps
        - available
      additionalProperties: false
    CreateVaultMarketInstantExitResponseQuoteLevels:
      type: object
      properties:
        priceCents:
          type: number
        units:
          type: number
        dealer:
          type: boolean
      required:
        - priceCents
        - units
        - dealer
      additionalProperties: false
    CreateVaultMarketJointCloseResponse:
      type: object
      properties:
        status:
          type: string
        unitsReturned:
          type: number
      required:
        - status
        - unitsReturned
      additionalProperties: false
    CreateVaultMarketJointInviteResponse:
      type: object
      properties:
        userId:
          type: string
        rights:
          type: string
          enum:
            - full
            - view
            - trade
        expiresAt:
          type: string
      required:
        - userId
        - rights
        - expiresAt
      additionalProperties: false
    CreateVaultMarketJointMemberRemoveResponse:
      type: object
      properties:
        userId:
          type: string
        status:
          type: string
        unitsReturned:
          type: number
        jointStatus:
          type: string
      required:
        - userId
        - status
        - unitsReturned
        - jointStatus
      additionalProperties: false
    CreateVaultMarketJointMemberRightResponse:
      type: object
      properties:
        userId:
          type: string
        rights:
          type: string
          enum:
            - full
            - view
            - trade
      required:
        - userId
        - rights
      additionalProperties: false
    CreateVaultMarketJointRespondResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - active
            - declined
      required:
        - status
      additionalProperties: false
    CreateVaultMarketJointResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        invited:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketJointResponseInvited"
      required:
        - id
        - status
        - invited
      additionalProperties: false
    CreateVaultMarketJointResponseInvited:
      type: object
      properties:
        to:
          type: string
        ok:
          type: boolean
        error:
          type: string
          nullable: true
      required:
        - to
        - ok
      additionalProperties: false
    CreateVaultMarketJointTradeCancelResponse:
      type: object
      properties:
        tradeId:
          type: string
        order:
          $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
      required:
        - tradeId
        - order
      additionalProperties: false
    CreateVaultMarketJointTradeResponse:
      type: object
      properties:
        tradeId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        bookKey:
          type: string
        ownerUserId:
          type: string
        order:
          $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
      required:
        - tradeId
        - side
        - bookKey
        - ownerUserId
        - order
      additionalProperties: false
    CreateVaultMarketJointUnitRemoveResponse:
      type: object
      properties:
        removed:
          type: number
        vaultItemIds:
          type: array
          items:
            type: string
      required:
        - removed
        - vaultItemIds
      additionalProperties: false
    CreateVaultMarketJointUnitResponse:
      type: object
      properties:
        added:
          type: number
        vaultItemIds:
          type: array
          items:
            type: string
      required:
        - added
        - vaultItemIds
      additionalProperties: false
    CreateVaultMarketLearnQuizResponse:
      type: object
      properties:
        concept:
          type: string
          enum:
            - lending
            - instant-exit
            - shorts
            - liens
            - auctions
            - indexes
            - marks
            - vault-shares
        correct:
          type: array
          items:
            type: boolean
        score:
          type: number
        of:
          type: number
        passed:
          type: boolean
        passedAt:
          type: string
          nullable: true
        triesLeft:
          type: number
          nullable: true
      required:
        - concept
        - correct
        - score
        - of
        - passed
      additionalProperties: false
    CreateVaultMarketLoanRecallResponse:
      type: object
      properties:
        recallDueAt:
          type: string
      required:
        - recallDueAt
      additionalProperties: false
    CreateVaultMarketLoanUnitSellResponse:
      type: object
      properties:
        askId:
          type: string
        matched:
          type: boolean
        floorCents:
          type: number
        loan:
          $ref: "#/components/schemas/GetVaultMarketCreditResponse"
      required:
        - askId
        - matched
        - floorCents
        - loan
      additionalProperties: false
    CreateVaultMarketLongResponse:
      type: object
      properties:
        positionId:
          type: string
        matched:
          type: boolean
        pending:
          type: boolean
        waitsForCall:
          $ref: "#/components/schemas/CreateVaultMarketLongResponseWaitsForCall"
        units:
          $ref: "#/components/schemas/CreateVaultMarketLongResponseUnits"
      required:
        - positionId
        - matched
        - pending
      additionalProperties: false
    CreateVaultMarketLongResponseUnits:
      type: object
      properties:
        requested:
          type: number
        filled:
          type: number
          nullable: true
      required:
        - requested
      additionalProperties: false
      nullable: true
      description: "A multi-unit opening: the units asked for and, once it opened, the units that filled (the rest were cancelled)."
    CreateVaultMarketLongResponseWaitsForCall:
      type: object
      properties:
        kind:
          type: string
          enum:
            - open
            - daily
            - buy_in
            - sell_off
            - reopen
            - periodic
        closesAt:
          type: string
          description: The call's published close (the real one is up to a few seconds either side).
        note:
          type: string
      required:
        - kind
        - closesAt
        - note
      additionalProperties: false
      nullable: true
      description: |-
        On a call-mode key (tier B / C, or an A key mid-call) the opening order
        rests for the next call and can only fill at its uncross: which call, and
        a plain-words note for the position view. Null on a continuous key.
    CreateVaultMarketMmLpResponse:
      type: object
      properties:
        id:
          type: string
        program:
          type: string
          enum:
            - lp
            - dmm
        bookKey:
          type: string
        key:
          $ref: "#/components/schemas/CreateVaultMarketMmLpResponseKey"
        status:
          type: string
        meeting:
          type: boolean
        level:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
        appliedAt:
          type: string
        approvedAt:
          type: string
          nullable: true
        revokedAt:
          type: string
          nullable: true
        revokeReason:
          type: string
          nullable: true
      required:
        - id
        - program
        - bookKey
        - status
        - meeting
        - appliedAt
      additionalProperties: false
    CreateVaultMarketMmLpResponseKey:
      type: object
      properties:
        variantId:
          type: string
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
      required:
        - variantId
        - condition
      additionalProperties: false
      nullable: true
    CreateVaultMarketMmMassCancelResponse:
      type: object
      properties:
        orders:
          type: number
        legs:
          type: number
      required:
        - orders
        - legs
      additionalProperties: false
    CreateVaultMarketOpeningWaitlistResponse:
      type: object
      properties:
        refCode:
          type: string
        invites:
          type: number
        position:
          type: number
        of:
          type: number
        slug:
          type: string
      required:
        - refCode
        - invites
        - position
        - of
        - slug
      additionalProperties: false
    CreateVaultMarketOptionComboRequest:
      type: object
      properties:
        legs:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketOptionComboRequestLegs"
        quantity:
          type: number
        limitNetCents:
          type: number
        strategy:
          type: string
          enum:
            - custom
            - vertical
            - calendar
            - diagonal
            - straddle
            - strangle
            - butterfly
            - iron_condor
            - collar
            - roll
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        expiresAt:
          type: string
          nullable: true
        postOnly:
          type: boolean
        clientOrderId:
          type: string
          nullable: true
        subaccountId:
          type: string
          nullable: true
      required:
        - legs
        - quantity
        - limitNetCents
      additionalProperties: false
    CreateVaultMarketOptionComboRequestLegs:
      type: object
      properties:
        contractId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        ratio:
          type: number
      required:
        - contractId
        - side
      additionalProperties: false
    CreateVaultMarketOptionComboResponse:
      type: object
      properties:
        combo:
          $ref: "#/components/schemas/ListVaultMarketOptionCombosItem"
        fills:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketOptionCoveredCallResponseOneOf1Fills"
        duplicate:
          type: boolean
      required:
        - combo
        - fills
        - duplicate
      additionalProperties: false
    CreateVaultMarketOptionComboRfqAcceptResponse:
      type: object
      properties:
        rfqId:
          type: string
        responseId:
          type: string
        filledMilli:
          type: number
        priceCents:
          type: number
        comboId:
          type: string
      required:
        - rfqId
        - responseId
        - filledMilli
        - priceCents
        - comboId
      additionalProperties: false
    CreateVaultMarketOptionComboRfqResponse:
      type: object
      properties:
        id:
          type: string
        comboKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        expiresAt:
          type: string
        invited:
          type: number
      required:
        - id
        - comboKey
        - side
        - expiresAt
        - invited
      additionalProperties: false
    CreateVaultMarketOptionCoveredCallReleaseResponse:
      type: object
      properties:
        collateralId:
          type: string
        status:
          type: string
      required:
        - collateralId
        - status
      additionalProperties: false
    CreateVaultMarketOptionCoveredCallRequest:
      type: object
      properties:
        vaultItemId:
          type: string
        contractId:
          type: string
        quantity:
          type: number
        quoteMode:
          type: string
          enum:
            - price
            - iv
        priceCents:
          type: number
        iv:
          type: number
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        expiresAt:
          type: string
          nullable: true
        termsVersion:
          type: string
          nullable: true
      required:
        - vaultItemId
        - contractId
      additionalProperties: false
    CreateVaultMarketOptionCoveredCallResponse:
      type: object
      properties:
        order:
          $ref: "#/components/schemas/CreateVaultMarketOptionOrderCancelResponse"
        fills: {}
        duplicate:
          type: boolean
        routedTo:
          type: string
      required:
        - order
        - fills
        - duplicate
    CreateVaultMarketOptionCoveredCallResponseOneOf1Fills:
      type: object
      properties:
        fillId:
          type: string
        contractId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
        priceCents:
          type: number
        qtyMilli:
          type: number
        premiumCents:
          type: number
        forcedSide:
          type: string
          enum:
            - buy
            - sell
          nullable: true
          description: The side a liquidation or ADL forced (its instruction is opt_liquidate).
        buyer:
          $ref: "#/components/schemas/CreateVaultMarketOptionCoveredCallResponseOneOf1FillsBuyer"
        seller:
          $ref: "#/components/schemas/CreateVaultMarketOptionCoveredCallResponseOneOf1FillsBuyer"
      required:
        - fillId
        - contractId
        - venue
        - priceCents
        - qtyMilli
        - premiumCents
        - buyer
        - seller
      additionalProperties: false
    CreateVaultMarketOptionCoveredCallResponseOneOf1FillsBuyer:
      type: object
      properties:
        userId:
          type: string
        holderAccountId:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        positionId:
          type: string
        feeCents:
          type: number
        variationCents:
          type: number
      required:
        - userId
        - positionId
        - feeCents
        - variationCents
      additionalProperties: false
    CreateVaultMarketOptionMmHeartbeatResponse:
      type: object
      properties:
        quotes:
          type: number
        at:
          type: string
      required:
        - quotes
        - at
      additionalProperties: false
    CreateVaultMarketOptionMmQuoteResponse:
      type: object
      properties:
        contractId:
          type: string
        bid:
          $ref: "#/components/schemas/OrderIdError"
        ask:
          $ref: "#/components/schemas/OrderIdError"
      required:
        - contractId
        - bid
        - ask
      additionalProperties: false
    CreateVaultMarketOptionOrderCancelResponse:
      type: object
      properties:
        id:
          type: string
        contractId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
        side:
          type: string
          enum:
            - buy
            - sell
        priceCents:
          type: number
        qtyMilli:
          type: number
        filledMilli:
          type: number
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        postOnly:
          type: boolean
        expiresAt:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - cancelled
            - rejected
            - filled
            - working
            - partially_filled
            - routed
        cancelReason:
          type: string
          nullable: true
        quoteMode:
          type: string
          enum:
            - price
            - iv
        iv:
          type: number
          nullable: true
        source:
          type: string
        forced:
          type: boolean
        clientOrderId:
          type: string
          nullable: true
        partnerOrderRef:
          type: string
          nullable: true
        holderAccountId:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - contractId
        - venue
        - side
        - priceCents
        - qtyMilli
        - filledMilli
        - tif
        - postOnly
        - status
        - quoteMode
        - source
        - forced
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateVaultMarketOptionOrderRequest:
      type: object
      properties:
        contractId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        quoteMode:
          type: string
          enum:
            - price
            - iv
        priceCents:
          type: number
        iv:
          type: number
        subaccountId:
          type: string
          nullable: true
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        postOnly:
          type: boolean
        expiresAt:
          type: string
          nullable: true
        clientOrderId:
          type: string
          nullable: true
        termsVersion:
          type: string
          nullable: true
          description: "Partner venue: the routing terms version you accept."
      required:
        - contractId
        - side
        - quantity
      additionalProperties: false
    CreateVaultMarketOptionOrderResponse:
      type: object
      properties:
        order:
          $ref: "#/components/schemas/CreateVaultMarketOptionOrderCancelResponse"
        fills: {}
        duplicate:
          type: boolean
        routedTo:
          type: string
      required:
        - order
        - fills
        - duplicate
    CreateVaultMarketOptionPracticeComboResponse:
      type: object
      properties:
        combo:
          $ref: "#/components/schemas/ListVaultMarketOptionCombosItem"
        practice:
          type: boolean
        makerNetCents:
          type: number
        legPricesCents:
          type: array
          items:
            type: number
      required:
        - combo
        - practice
        - makerNetCents
        - legPricesCents
      additionalProperties: false
    CreateVaultMarketOptionPracticeOrderResponse:
      type: object
      properties:
        order:
          $ref: "#/components/schemas/ListVaultMarketOptionPracticeOrdersItem"
        practice:
          type: boolean
        quote:
          $ref: "#/components/schemas/CreateVaultMarketOptionPracticeOrderResponseQuote"
      required:
        - order
        - practice
        - quote
      additionalProperties: false
    CreateVaultMarketOptionPracticeOrderResponseQuote:
      type: object
      properties:
        bidCents:
          type: number
        askCents:
          type: number
        theoCents:
          type: number
      required:
        - bidCents
        - askCents
        - theoCents
      additionalProperties: false
    CreateVaultMarketOptionQuoteRequest:
      type: object
      properties:
        contractId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        quoteMode:
          type: string
          enum:
            - price
            - iv
        priceCents:
          type: number
        iv:
          type: number
        subaccountId:
          type: string
          nullable: true
      required:
        - contractId
        - side
        - quantity
      additionalProperties: false
    CreateVaultMarketOptionQuoteResponse:
      type: object
      properties:
        ok:
          type: boolean
        problem:
          type: string
          nullable: true
        message:
          type: string
          nullable: true
        contract:
          $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponseOneOfContract"
        spotCents:
          type: number
          nullable: true
        rate:
          type: number
        years:
          type: number
        refVol:
          type: number
        side:
          type: string
          enum:
            - buy
            - sell
        qtyMilli:
          type: number
        priceCents:
          type: number
          nullable: true
        iv:
          type: number
          nullable: true
        theoCents:
          type: number
        premiumCents:
          type: number
          nullable: true
        feeCents:
          type: number
        greeks:
          $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponseOneOf1Greeks"
        payoff:
          $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponseOneOf1Payoff"
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        ivLabel:
          type: string
      required:
        - ok
        - contract
        - rate
        - years
        - refVol
    CreateVaultMarketOptionQuoteResponseOneOf1Greeks:
      type: object
      properties:
        delta:
          type: number
        gamma:
          type: number
        vegaPerPoint:
          type: number
        thetaPerDay:
          type: number
        rhoPerPoint:
          type: number
      required:
        - delta
        - gamma
        - vegaPerPoint
        - thetaPerDay
        - rhoPerPoint
      additionalProperties: false
    CreateVaultMarketOptionQuoteResponseOneOf1Payoff:
      type: object
      properties:
        points:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponseOneOf1PayoffPoints"
        breakevens:
          type: array
          items:
            type: number
        maxGainCents:
          type: number
          nullable: true
        maxLossCents:
          type: number
          nullable: true
      required:
        - points
        - breakevens
      additionalProperties: false
      nullable: true
    CreateVaultMarketOptionQuoteResponseOneOf1PayoffPoints:
      type: object
      properties:
        spot:
          type: number
        pnlCents:
          type: number
      required:
        - spot
        - pnlCents
      additionalProperties: false
    CreateVaultMarketOptionQuoteResponseOneOfContract:
      type: object
      properties:
        id:
          type: string
        symbol:
          type: string
        type:
          type: string
          enum:
            - put
            - call
        strikeCents:
          type: number
        expiryDay:
          type: string
        expiresAt:
          type: string
        cycle:
          type: string
          enum:
            - monthly
            - weekly
        status:
          type: string
          enum:
            - expired
            - open
            - delisted
            - settled
            - frozen
        lastPriceCents:
          type: number
          nullable: true
        openInterestMilli:
          type: number
        partnerSymbol:
          type: string
          nullable: true
        seriesId:
          type: string
        underlyingKind:
          type: string
          enum:
            - key
            - share
            - index
        underlying:
          type: string
        underlyingName:
          type: string
        code:
          type: string
      required:
        - id
        - symbol
        - type
        - strikeCents
        - expiryDay
        - expiresAt
        - cycle
        - status
        - openInterestMilli
        - seriesId
        - underlyingKind
        - underlying
        - underlyingName
        - code
      additionalProperties: false
    CreateVaultMarketOptionRfqAcceptResponse:
      type: object
      properties:
        rfqId:
          type: string
        responseId:
          type: string
        filledMilli:
          type: number
        priceCents:
          type: number
        orderId:
          type: string
      required:
        - rfqId
        - responseId
        - filledMilli
        - priceCents
        - orderId
      additionalProperties: false
    CreateVaultMarketOptionRfqRespondResponse:
      type: object
      properties:
        id:
          type: string
        rfqId:
          type: string
        priceCents:
          type: number
        firmUntil:
          type: string
      required:
        - id
        - rfqId
        - priceCents
        - firmUntil
      additionalProperties: false
    CreateVaultMarketOptionRollRequest:
      type: object
      properties:
        fromContractId:
          type: string
        toContractId:
          type: string
        limitNetCents:
          type: number
        quantity:
          type: number
          nullable: true
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        expiresAt:
          type: string
          nullable: true
        subaccountId:
          type: string
          nullable: true
        practice:
          type: boolean
      required:
        - fromContractId
        - toContractId
        - limitNetCents
      additionalProperties: false
    CreateVaultMarketOptionRollResponse:
      type: object
      properties:
        rolled:
          type: boolean
        combo:
          $ref: "#/components/schemas/ListVaultMarketOptionCombosItem"
        practice:
          type: boolean
        makerNetCents:
          type: number
        legPricesCents:
          type: array
          items:
            type: number
        fills:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketOptionCoveredCallResponseOneOf1Fills"
        duplicate:
          type: boolean
      required:
        - rolled
        - combo
    CreateVaultMarketOptionStrategyPreviewResponse:
      type: object
      properties:
        kind:
          type: string
          enum:
            - custom
            - vertical
            - calendar
            - diagonal
            - straddle
            - strangle
            - butterfly
            - iron_condor
            - collar
            - roll
        underlying:
          $ref: "#/components/schemas/CreateVaultMarketOptionStrategyPreviewResponseUnderlying"
        quantity:
          type: number
        legs:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketOptionStrategyPreviewResponseLegs"
        marketNetCents:
          type: number
          description: "Per unit: + you pay (debit), - you receive (credit)."
        netCents:
          type: number
        totalCents:
          type: number
        maxProfitCents:
          type: number
          nullable: true
        maxLossCents:
          type: number
          nullable: true
        breakevens:
          type: array
          items:
            type: number
        payoff:
          $ref: "#/components/schemas/CreateVaultMarketOptionStrategyPreviewResponsePayoff"
        greeks:
          $ref: "#/components/schemas/CreateVaultMarketOptionStrategyPreviewResponseGreeks"
        margin:
          $ref: "#/components/schemas/CreateVaultMarketOptionStrategyPreviewResponseMargin"
        comboKey:
          type: string
        canonicalSide:
          type: string
        comboBook:
          $ref: "#/components/schemas/CreateVaultMarketOptionStrategyPreviewResponseComboBook"
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        ivLabel:
          type: string
      required:
        - kind
        - underlying
        - quantity
        - legs
        - marketNetCents
        - netCents
        - totalCents
        - breakevens
        - payoff
        - greeks
        - margin
        - comboKey
        - canonicalSide
        - comboBook
        - venue
        - ivLabel
      additionalProperties: false
    CreateVaultMarketOptionStrategyPreviewResponseComboBook:
      type: object
      properties:
        bestBidCents:
          type: number
        bestAskCents:
          type: number
      required:
        - bestBidCents
        - bestAskCents
      additionalProperties: false
    CreateVaultMarketOptionStrategyPreviewResponseGreeks:
      type: object
      properties:
        delta:
          type: number
        gamma:
          type: number
        vegaPerPoint:
          type: number
        thetaPerDay:
          type: number
      required:
        - delta
        - gamma
        - vegaPerPoint
        - thetaPerDay
      additionalProperties: false
    CreateVaultMarketOptionStrategyPreviewResponseLegs:
      type: object
      properties:
        contract:
          $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponseOneOfContract"
        side:
          type: string
          enum:
            - buy
            - sell
        ratio:
          type: number
        bidCents:
          type: number
          nullable: true
        askCents:
          type: number
          nullable: true
        refCents:
          type: number
        marketCents:
          type: number
        iv:
          type: number
          nullable: true
      required:
        - contract
        - side
        - ratio
        - refCents
        - marketCents
      additionalProperties: false
    CreateVaultMarketOptionStrategyPreviewResponseMargin:
      type: object
      properties:
        strategyCents:
          type: number
        legsAloneCents:
          type: number
        savedCents:
          type: number
        label:
          type: string
      required:
        - strategyCents
        - legsAloneCents
        - savedCents
        - label
      additionalProperties: false
    CreateVaultMarketOptionStrategyPreviewResponsePayoff:
      type: object
      properties:
        points:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponseOneOf1PayoffPoints"
        atExpiry:
          type: string
        exact:
          type: boolean
      required:
        - points
        - atExpiry
        - exact
      additionalProperties: false
    CreateVaultMarketOptionStrategyPreviewResponseUnderlying:
      type: object
      properties:
        ref:
          type: string
        kind:
          type: string
          enum:
            - key
            - share
            - index
        name:
          type: string
        spotCents:
          type: number
      required:
        - ref
        - kind
        - name
        - spotCents
      additionalProperties: false
    CreateVaultMarketP2pLoanRefiAuctionRequest:
      type: object
      properties:
        startAprBps:
          type: number
          nullable: true
        hours:
          type: number
          nullable: true
      additionalProperties: false
    CreateVaultMarketP2pLoanRefinanceRequest:
      type: object
      properties:
        requestId:
          type: string
        maxPayoffCents:
          type: number
          nullable: true
      additionalProperties: false
    CreateVaultMarketP2pLoanRepayRequest:
      type: object
      properties:
        requestId:
          type: string
        amountCents:
          type: number
          nullable: true
      additionalProperties: false
    CreateVaultMarketP2pOfferRequest:
      type: object
      properties:
        principalCents:
          type: number
        aprBps:
          type: number
        bookKey:
          type: string
          nullable: true
          description: "Lend against any unit of this item (book key: variantId:condition:gradeKey)…"
        vaultItemId:
          type: string
          nullable: true
          description: …or against this one unit. Exactly one of the two.
        maxLoans:
          type: number
        expiresInDays:
          type: number
          nullable: true
        note:
          type: string
          nullable: true
      required:
        - principalCents
        - aprBps
      additionalProperties: false
    CreateVaultMarketP2pOfferTakeRequest:
      type: object
      properties:
        vaultItemId:
          type: string
        requestId:
          type: string
      required:
        - vaultItemId
      additionalProperties: false
    CreateVaultMarketPaperMissionMarkCheckResponse:
      type: object
      properties:
        bookKey:
          type: string
        answer:
          type: string
          enum:
            - C
            - A
            - B
        correct:
          type: boolean
        quality:
          type: string
          enum:
            - C
            - A
            - B
        mission:
          $ref: "#/components/schemas/CreateVaultMarketPaperMissionMarkCheckResponseMission"
        next:
          $ref: "#/components/schemas/CreateVaultMarketPaperMissionMarkCheckResponseNext"
      required:
        - bookKey
        - answer
        - correct
        - quality
        - mission
      additionalProperties: false
    CreateVaultMarketPaperMissionMarkCheckResponseMission:
      type: object
      properties:
        count:
          type: number
        target:
          type: number
        done:
          type: boolean
      required:
        - count
        - target
        - done
      additionalProperties: false
    CreateVaultMarketPaperMissionMarkCheckResponseNext:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - bookKey
      additionalProperties: false
      nullable: true
    CreateVaultMarketPaperOrderCancelResponse:
      type: object
      properties:
        playMoney:
          type: boolean
        label:
          type: string
        order:
          $ref: "#/components/schemas/ListVaultMarketPaperOrdersItem"
      required:
        - playMoney
        - label
        - order
      additionalProperties: false
    CreateVaultMarketPaperOrderResponse:
      type: object
      properties:
        playMoney:
          type: boolean
        label:
          type: string
        order:
          $ref: "#/components/schemas/ListVaultMarketPaperOrdersItem"
        fills:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPaperFillsItem"
      required:
        - playMoney
        - label
        - order
        - fills
      additionalProperties: false
    CreateVaultMarketPaperResetResponse:
      type: object
      properties:
        playMoney:
          type: boolean
        label:
          type: string
        epoch:
          type: number
        resets:
          type: number
        cashCents:
          type: number
        nextResetAt:
          type: string
      required:
        - playMoney
        - label
        - epoch
        - resets
        - cashCents
        - nextResetAt
      additionalProperties: false
    CreateVaultMarketPartnerApplyResponse:
      type: object
      properties:
        partner:
          $ref: "#/components/schemas/CreateVaultMarketPartnerApplyResponsePartner"
      required:
        - partner
      additionalProperties: false
    CreateVaultMarketPartnerApplyResponsePartner:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        status:
          type: string
          enum:
            - applied
            - rejected
            - approved
            - suspended
        shopName:
          type: string
        address:
          type: object
          nullable: true
          additionalProperties: {}
        website:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        code:
          type: string
          nullable: true
        shareBps:
          type: number
        capCents:
          type: number
        appliedAt:
          type: string
        decidedAt:
          type: string
          nullable: true
        decisionNote:
          type: string
          nullable: true
        postalCode:
          type: string
          nullable: true
        hours:
          type: object
          nullable: true
          additionalProperties: {}
        services:
          type: array
          items:
            type: string
        listed:
          type: boolean
      required:
        - id
        - userId
        - status
        - shopName
        - shareBps
        - capCents
        - appliedAt
        - services
        - listed
      additionalProperties: false
    CreateVaultMarketPartnerBatchResponse:
      type: object
      properties:
        batchId:
          type: string
        partnerCode:
          type: string
        created:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPartnerBatchResponseCreated"
        label:
          $ref: "#/components/schemas/LabelUrlTrackingCode"
        labelError:
          type: string
          nullable: true
      required:
        - batchId
        - partnerCode
        - created
      additionalProperties: false
    CreateVaultMarketPartnerBatchResponseCreated:
      type: object
      properties:
        depositId:
          type: string
        vaultItemId:
          type: string
        bookKey:
          type: string
      required:
        - depositId
        - vaultItemId
        - bookKey
      additionalProperties: false
    CreateVaultMarketPoolStakeResponse:
      type: object
      properties:
        stakeId:
          type: string
        status:
          type: string
        shares:
          type: string
        valueCents:
          type: number
          nullable: true
      required:
        - stakeId
        - status
        - shares
      additionalProperties: false
    CreateVaultMarketPoolStakeUnstakeResponse:
      type: object
      properties:
        cooldownUntil:
          type: string
      required:
        - cooldownUntil
      additionalProperties: false
    CreateVaultMarketPortfolioMarginEnrollResponse:
      type: object
      properties:
        enrolled:
          type: boolean
        status:
          type: string
          nullable: true
        statusReason:
          nullable: true
        enrolledAt:
          type: string
        monitoringEvidencedAt:
          type: string
          nullable: true
        eligibility:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOfEligibility"
        preview:
          nullable: true
        current:
          nullable: true
        account:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOfAccount"
        gate:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        label:
          type: string
        policy:
          type: array
          items:
            type: string
        canManage:
          type: boolean
      required:
        - enrolled
        - eligibility
        - current
        - account
        - gate
        - label
        - policy
        - canManage
    CreateVaultMarketPortfolioMarginEnrollResponseOneOf1Preview:
      type: object
      properties:
        equityCents:
          type: number
        requirementCents:
          type: number
        excessCents:
          type: number
        breakdown:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOf1PreviewBreakdown"
      required:
        - equityCents
        - requirementCents
        - excessCents
        - breakdown
      additionalProperties: false
      nullable: true
    CreateVaultMarketPortfolioMarginEnrollResponseOneOf1PreviewBreakdown:
      type: object
      properties:
        scenarioCents:
          type: number
        floorCents:
          type: number
        binding:
          type: string
          enum:
            - floor
            - scenarios
        grossCents:
          type: number
        netCents:
          type: number
        components:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOf1PreviewBreakdownComponents"
        byCategory:
          type: array
          items:
            type: object
            additionalProperties: {}
        topKeys:
          type: array
          items:
            type: object
            additionalProperties: {}
        cash:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOf1PreviewBreakdownCash"
        hedges:
          type: array
          items:
            type: object
            additionalProperties: {}
        unmarkedKeys:
          type: array
          items:
            type: string
        equityBasis:
          type: string
          enum:
            - custodian_split
            - assumed_free
      required:
        - scenarioCents
        - floorCents
        - binding
        - grossCents
        - netCents
        - components
        - byCategory
        - topKeys
        - cash
        - hedges
        - unmarkedKeys
        - equityBasis
      additionalProperties: false
    CreateVaultMarketPortfolioMarginEnrollResponseOneOf1PreviewBreakdownCash:
      type: object
      properties:
        usdCents:
          type: number
        cbxValueCents:
          type: number
        basis:
          type: string
          enum:
            - custodian_split
            - assumed_free
          nullable: true
        freeCents:
          type: number
          nullable: true
        lockedCents:
          type: number
          nullable: true
      required:
        - usdCents
        - cbxValueCents
      additionalProperties: false
    CreateVaultMarketPortfolioMarginEnrollResponseOneOf1PreviewBreakdownComponents:
      type: object
      properties:
        categoriesCents:
          type: number
        cbxCents:
          type: number
        liquidityCents:
          type: number
      required:
        - categoriesCents
        - cbxCents
        - liquidityCents
      additionalProperties: false
    CreateVaultMarketPortfolioMarginEnrollResponseOneOfAccount:
      type: object
      properties:
        accountId:
          type: string
        kind:
          type: string
          enum:
            - individual
            - subaccount
        label:
          type: string
        subaccountId:
          type: string
          nullable: true
        entityId:
          type: string
          nullable: true
      required:
        - accountId
        - kind
        - label
      additionalProperties: false
    CreateVaultMarketPortfolioMarginEnrollResponseOneOfCurrent:
      type: object
      properties:
        equityCents:
          type: number
          nullable: true
        requirementCents:
          type: number
          nullable: true
        excessCents:
          type: number
          nullable: true
        floorCents:
          type: number
          nullable: true
        grossCents:
          type: number
          nullable: true
        state:
          type: string
          enum:
            - healthy
            - call
            - buy_in
          nullable: true
        calledAt:
          type: string
          nullable: true
        callDeadline:
          type: string
          nullable: true
        positionsToAuction:
          type: array
          items:
            type: string
        breakdown:
          type: object
          nullable: true
          additionalProperties: {}
        computedAt:
          type: string
          nullable: true
        stale:
          type: boolean
        equityBasis:
          type: string
          nullable: true
      required:
        - positionsToAuction
        - stale
      additionalProperties: false
    CreateVaultMarketPortfolioMarginEnrollResponseOneOfEligibility:
      type: object
      properties:
        eligible:
          type: boolean
        minEquityCents:
          type: number
        reasons:
          type: array
          items:
            type: string
      required:
        - eligible
        - minEquityCents
        - reasons
      additionalProperties: false
    CreateVaultMarketPortfolioMarginLeaveRequest:
      type: object
      properties:
        subaccountId:
          type: string
      required:
        - subaccountId
      additionalProperties: false
    CreateVaultMarketPortfolioMarginLeaveResponse:
      type: object
      properties:
        enrolled:
          type: boolean
        status:
          type: string
          nullable: true
        statusReason:
          nullable: true
        enrolledAt:
          type: string
        monitoringEvidencedAt:
          type: string
          nullable: true
        eligibility:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOfEligibility"
        preview:
          nullable: true
        current:
          nullable: true
        account:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOfAccount"
        gate:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        label:
          type: string
        policy:
          type: array
          items:
            type: string
        canManage:
          type: boolean
      required:
        - enrolled
        - eligibility
        - current
        - account
        - gate
        - label
        - policy
        - canManage
    CreateVaultMarketPortfolioMarginWhatIfResponse:
      type: object
      properties:
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        units:
          type: number
        markCents:
          type: number
        before:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginWhatIfResponseBefore"
        after:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginWhatIfResponseBefore"
        changeCents:
          type: number
        note:
          type: string
      required:
        - bookKey
        - side
        - units
        - markCents
        - before
        - after
        - changeCents
        - note
      additionalProperties: false
    CreateVaultMarketPortfolioMarginWhatIfResponseBefore:
      type: object
      properties:
        requirementCents:
          type: number
        equityCents:
          type: number
        excessCents:
          type: number
      required:
        - requirementCents
        - equityCents
        - excessCents
      additionalProperties: false
    CreateVaultMarketPositionCloseResponse:
      type: object
      properties:
        positionId:
          type: string
        bidId:
          type: string
          nullable: true
          description: The row's own order (null when only cut rows close, or the row waits on the custodian).
        askId:
          type: string
          nullable: true
        matched:
          type: boolean
        units:
          type: number
          description: Units being closed.
        rows:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPositionCloseResponseRows"
          description: "One-unit rows cut off to close (multi-unit positions only): each waits on the custodian's split, then places ('refused': the custodian refused the split and the unit went back into the position)."
      required:
        - positionId
        - matched
        - units
        - rows
      additionalProperties: false
    CreateVaultMarketPositionCloseResponseRows:
      type: object
      properties:
        positionId:
          type: string
        state:
          type: string
          enum:
            - waiting
            - refused
            - placed
        matched:
          type: boolean
      required:
        - positionId
        - state
        - matched
      additionalProperties: false
    CreateVaultMarketPositionCollateralResponse:
      type: object
      properties:
        topUp:
          $ref: "#/components/schemas/StatusResponse"
        id:
          type: string
        kind:
          type: string
          enum:
            - short
            - long
        status:
          type: string
        bookKey:
          type: string
        variantId:
          type: string
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        units:
          type: number
        entryCents:
          type: number
          nullable: true
        exitCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        leverageX100:
          type: number
        collateralUsdCents:
          type: number
        collateralCbxValueCents:
          type: number
        collateralCbxBaseUnits:
          type: string
        loanCents:
          type: number
        proceedsCents:
          type: number
        feesOwedCents:
          type: number
        feesPaidCents:
          type: number
        interestOwedCents:
          type: number
        interestPaidCents:
          type: number
        tier:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        healthBps:
          type: number
          nullable: true
        calledAt:
          type: string
          nullable: true
        unrealisedPnlCents:
          type: number
          nullable: true
        realizedPnlCents:
          type: number
          nullable: true
        collateralState:
          type: string
          description: "'pending' while the custodian is still taking the collateral (the order is not on the book yet)."
        settled:
          type: boolean
        needsOps:
          type: boolean
        shortfallUnpaidCents:
          type: number
        openedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - topUp
        - id
        - kind
        - status
        - bookKey
        - variantId
        - condition
        - units
        - leverageX100
        - collateralUsdCents
        - collateralCbxValueCents
        - collateralCbxBaseUnits
        - loanCents
        - proceedsCents
        - feesOwedCents
        - feesPaidCents
        - interestOwedCents
        - interestPaidCents
        - collateralState
        - settled
        - needsOps
        - shortfallUnpaidCents
        - createdAt
      additionalProperties: false
    CreateVaultMarketPredictionAccountResponse:
      type: object
      properties:
        venue:
          type: string
          enum:
            - self
            - partner
        status:
          type: string
        opened:
          type: boolean
      required:
        - venue
        - status
        - opened
      additionalProperties: false
    CreateVaultMarketPredictionAlertResponse:
      type: object
      properties:
        id:
          type: string
        marketId:
          type: string
        levelPercent:
          type: number
        direction:
          type: string
          enum:
            - above
            - below
        firedAt:
          nullable: true
      required:
        - id
        - marketId
        - levelPercent
        - direction
        - firedAt
      additionalProperties: false
    CreateVaultMarketPredictionCardResponse:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        ticker:
          type: string
        side:
          type: string
        outcome:
          type: string
          nullable: true
        expiryDay:
          type: string
        practice:
          type: boolean
        headline:
          type: string
        handle:
          type: string
          nullable: true
        showAmounts:
          type: boolean
        amounts:
          $ref: "#/components/schemas/CreateVaultMarketPredictionCardResponseAmounts"
        revoked:
          type: boolean
        createdAt:
          type: string
        url:
          type: string
      required:
        - id
        - title
        - ticker
        - side
        - expiryDay
        - practice
        - headline
        - showAmounts
        - revoked
        - createdAt
        - url
      additionalProperties: false
    CreateVaultMarketPredictionCardResponseAmounts:
      type: object
      properties:
        contracts:
          type: number
        paid:
          type: string
        won:
          type: string
      required:
        - contracts
        - paid
        - won
      additionalProperties: false
      nullable: true
    CreateVaultMarketPredictionComboRfqQuoteResponse:
      type: object
      properties:
        id:
          type: string
        rfqId:
          type: string
        priceCents:
          type: number
        firmUntil:
          type: string
        status:
          type: string
      required:
        - id
        - rfqId
        - priceCents
        - firmUntil
        - status
      additionalProperties: false
    CreateVaultMarketPredictionComboRfqResponse:
      type: object
      properties:
        words:
          type: string
        id:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        playMoney:
          type: boolean
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionComboRfqsItemLegs"
        contracts:
          type: number
        fairBps:
          type: number
          nullable: true
        status:
          type: string
        expiresAt:
          type: string
        comboId:
          type: string
          nullable: true
        mine:
          type: boolean
        limitCents:
          type: number
          nullable: true
        quotes:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionComboRfqsItemQuotes"
        createdAt:
          type: string
      required:
        - words
        - id
        - venue
        - playMoney
        - legs
        - contracts
        - status
        - expiresAt
        - mine
        - quotes
        - createdAt
      additionalProperties: false
    CreateVaultMarketPredictionCommentReportResponse:
      type: object
      properties:
        ok:
          type: boolean
        reported:
          type: boolean
      required:
        - ok
        - reported
      additionalProperties: false
    CreateVaultMarketPredictionCommentResponse:
      type: object
      properties:
        id:
          type: string
        marketId:
          type: string
          nullable: true
        seriesId:
          type: string
          nullable: true
        parentId:
          type: string
          nullable: true
        body:
          type: string
        status:
          type: string
          enum:
            - visible
            - removed
            - hidden
        author:
          $ref: "#/components/schemas/CreateVaultMarketPredictionCommentResponseAuthor"
        mine:
          type: boolean
        createdAt:
          type: string
        editedAt:
          type: string
          nullable: true
      required:
        - id
        - body
        - status
        - author
        - mine
        - createdAt
      additionalProperties: false
    CreateVaultMarketPredictionCommentResponseAuthor:
      type: object
      properties:
        name:
          type: string
          nullable: true
        forecasterId:
          type: string
          nullable: true
        holds:
          type: string
          nullable: true
      additionalProperties: false
    CreateVaultMarketPredictionConversionResponse:
      type: object
      properties:
        conversion:
          $ref: "#/components/schemas/ListVaultMarketPredictionConversionsItem"
        event:
          $ref: "#/components/schemas/GetVaultMarketPredictionEventResponse"
      required:
        - conversion
        - event
      additionalProperties: false
    CreateVaultMarketPredictionForecastResponse:
      type: object
      properties:
        marketId:
          type: string
        probabilityBps:
          type: number
        note:
          type: string
          nullable: true
      required:
        - marketId
        - probabilityBps
      additionalProperties: false
    CreateVaultMarketPredictionForecasterFollowResponse:
      type: object
      properties:
        forecasterId:
          type: string
        following:
          type: boolean
      required:
        - forecasterId
        - following
      additionalProperties: false
    CreateVaultMarketPredictionMakerQuoteResponse:
      type: object
      properties:
        quotes:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPredictionMakerQuoteResponseQuotes"
      required:
        - quotes
      additionalProperties: false
    CreateVaultMarketPredictionMakerQuoteResponseQuotes:
      type: object
      properties:
        marketId:
          type: string
        error:
          type: string
          nullable: true
      required:
        - marketId
      additionalProperties: false
    CreateVaultMarketPredictionOrderAmendResponse:
      type: object
      properties:
        keptPriority:
          type: boolean
        id:
          type: string
        marketId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        action:
          type: string
        side:
          type: string
          enum:
            - no
            - yes
        priceCents:
          type: number
        bookPriceCents:
          type: number
        reduceOnly:
          type: boolean
        type:
          type: string
        tif:
          type: string
        postOnly:
          type: boolean
        quantity:
          type: number
        filled:
          type: number
        status:
          type: string
        expiresAt:
          type: string
          nullable: true
        clientOrderId:
          type: string
          nullable: true
        lockedCents:
          type: number
        feeCents:
          type: number
        costCents:
          type: number
        cancelReason:
          type: string
          nullable: true
        source:
          type: string
        createdAt:
          type: string
        doneAt:
          type: string
          nullable: true
        playMoney:
          type: boolean
        fills:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPredictionOrderResponseFills"
      required:
        - keptPriority
        - id
        - marketId
        - venue
        - action
        - side
        - priceCents
        - bookPriceCents
        - reduceOnly
        - type
        - tif
        - postOnly
        - quantity
        - filled
        - status
        - lockedCents
        - feeCents
        - costCents
        - source
        - createdAt
        - playMoney
        - fills
      additionalProperties: false
    CreateVaultMarketPredictionOrderBatchCancelResponse:
      type: object
      properties:
        cancelled:
          type: number
        results:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPredictionOrderBatchCancelResponseResultsItem"
      required:
        - cancelled
        - results
      additionalProperties: false
    CreateVaultMarketPredictionOrderBatchResponse:
      type: object
      properties:
        placed:
          type: number
        results:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPredictionOrderBatchResponseResultsItem"
      required:
        - placed
        - results
      additionalProperties: false
    CreateVaultMarketPredictionOrderResponse:
      type: object
      properties:
        id:
          type: string
        marketId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        action:
          type: string
        side:
          type: string
          enum:
            - no
            - yes
        priceCents:
          type: number
        bookPriceCents:
          type: number
        reduceOnly:
          type: boolean
        type:
          type: string
        tif:
          type: string
        postOnly:
          type: boolean
        quantity:
          type: number
        filled:
          type: number
        status:
          type: string
        expiresAt:
          type: string
          nullable: true
        clientOrderId:
          type: string
          nullable: true
        lockedCents:
          type: number
        feeCents:
          type: number
        costCents:
          type: number
        cancelReason:
          type: string
          nullable: true
        source:
          type: string
        createdAt:
          type: string
        doneAt:
          type: string
          nullable: true
        playMoney:
          type: boolean
        fills:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPredictionOrderResponseFills"
      required:
        - id
        - marketId
        - venue
        - action
        - side
        - priceCents
        - bookPriceCents
        - reduceOnly
        - type
        - tif
        - postOnly
        - quantity
        - filled
        - status
        - lockedCents
        - feeCents
        - costCents
        - source
        - createdAt
        - playMoney
        - fills
      additionalProperties: false
    CreateVaultMarketPredictionOrderResponseFills:
      type: object
      properties:
        id:
          type: string
        contracts:
          type: number
        yesPriceCents:
          type: number
        role:
          type: string
        feeCents:
          type: number
        kind:
          type: string
        at:
          type: string
      required:
        - id
        - contracts
        - yesPriceCents
        - role
        - feeCents
        - kind
        - at
      additionalProperties: false
    CreateVaultMarketPredictionPaperResetResponse:
      type: object
      properties:
        playMoney:
          type: boolean
        cashCents:
          type: number
        label:
          type: string
      required:
        - playMoney
        - cashCents
        - label
      additionalProperties: false
    CreateVaultMarketPredictionPositionCloseAllResponse:
      type: object
      properties:
        closed:
          type: number
        results:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPredictionPositionCloseAllResponseResultsItem"
      required:
        - closed
        - results
      additionalProperties: false
    CreateVaultMarketPredictionProposalCheckResponse:
      type: object
      properties:
        ok:
          type: boolean
        problems:
          type: array
          items:
            type: string
        underlyingName:
          type: string
          nullable: true
        referenceValue:
          type: number
          nullable: true
      required:
        - ok
        - problems
      additionalProperties: false
    CreateVaultMarketPredictionSettlementDisputeResponse:
      type: object
      properties:
        settlementId:
          type: string
        status:
          type: string
      required:
        - settlementId
        - status
      additionalProperties: false
    CreateVaultMarketPredictionTermResponse:
      type: object
      properties:
        termsVersion:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
      required:
        - termsVersion
        - venue
      additionalProperties: false
    CreateVaultMarketPriceWidgetPreviewResponse:
      type: object
      properties:
        view:
          $ref: "#/components/schemas/CreateVaultMarketPriceWidgetPreviewResponseView"
        html:
          type: string
        frame:
          $ref: "#/components/schemas/ListVaultMarketPriceWidgetsItemFrame"
      required:
        - view
        - html
        - frame
      additionalProperties: false
    CreateVaultMarketPriceWidgetPreviewResponseView:
      type: object
      properties:
        id:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - index
            - mark
        title:
          type: string
          description: The market's or index's name.
        subtitle:
          type: string
          nullable: true
          description: The variant and grade (a market), or the index kind.
        imageUrl:
          type: string
          nullable: true
        value:
          type: number
          nullable: true
          description: The mark in cents (a market) or the level (an index); null when too thin to show.
        valueText:
          type: string
          description: '"$1,234.00", "1,042.17", or "No market yet" / "Insufficient data".'
        changeBps:
          type: number
          nullable: true
          description: The move over the range, from the first to the last point; null with fewer than two.
        changeText:
          type: string
          nullable: true
        points:
          type: array
          items:
            type: number
          description: Daily values for the sparkline (cents or level), oldest first.
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        n:
          type: number
        nText:
          type: string
          description: '"12 trades (30 d)" or "18 markets".'
        asOf:
          type: string
          nullable: true
        insufficient:
          type: boolean
        href:
          type: string
          description: Absolute; through the creator's affiliate link when they have an eligible code.
        source:
          type: string
        disclosure:
          type: string
          nullable: true
          description: Shown whenever the link carries a creator's code.
        range:
          type: string
          enum:
            - 1y
            - 1m
            - 3m
            - 6m
            - 5y
        layout:
          type: string
          enum:
            - chart
            - compact
        theme:
          type: string
          enum:
            - auto
            - light
            - dark
      required:
        - kind
        - title
        - valueText
        - points
        - quality
        - n
        - nText
        - insufficient
        - href
        - source
        - range
        - layout
        - theme
      additionalProperties: false
    CreateVaultMarketProBracketResponse:
      type: object
      properties:
        entry:
          $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
        link:
          $ref: "#/components/schemas/ListVaultMarketProLinksItem"
      required:
        - entry
        - link
      additionalProperties: false
    CreateVaultMarketProOcoResponse:
      type: object
      properties:
        a:
          $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
        b:
          $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
        link:
          $ref: "#/components/schemas/ListVaultMarketProLinksItem"
      required:
        - a
        - b
        - link
      additionalProperties: false
    CreateVaultMarketProOrderCancelAllRequest:
      type: object
      properties:
        bookKey:
          type: string
      additionalProperties: false
    CreateVaultMarketProOrderCancelAllResponse:
      type: object
      properties:
        cancelled:
          type: number
      required:
        - cancelled
      additionalProperties: false
    CreateVaultMarketProOrderRequest:
      type: object
      properties:
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        type:
          type: string
          enum:
            - limit
            - market
            - stop
            - stop_limit
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
            - fok
        limitCents:
          type: number
        stopCents:
          type: number
        postOnly:
          type: boolean
        displayQuantity:
          type: number
        expiresAt:
          type: string
        algo:
          type: string
          enum:
            - twap
            - vwap
        algoEndsAt:
          type: string
        funding:
          type: string
          enum:
            - card
            - custodian
        stripePaymentMethodId:
          type: string
        clientOrderId:
          type: string
        subaccountId:
          type: string
      required:
        - bookKey
        - side
        - quantity
      additionalProperties: false
    CreateVaultMarketProOrderResponse:
      type: object
      properties:
        id:
          type: string
        clientOrderId:
          type: string
          nullable: true
        source:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
          enum:
            - limit
            - market
            - stop
            - stop_limit
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
            - fok
        postOnly:
          type: boolean
        quantity:
          type: number
        filledQuantity:
          type: number
        avgFillCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        stopCents:
          type: number
          nullable: true
        displayQuantity:
          type: number
          nullable: true
        algo:
          type: string
          enum:
            - twap
            - vwap
          nullable: true
        algoEndsAt:
          type: string
          nullable: true
        funding:
          type: string
        status:
          type: string
        rejectReason:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        holderAccountId:
          type: string
          nullable: true
          description: The firm sub-account's holder account it is booked to (null = your own account).
      required:
        - id
        - source
        - bookKey
        - side
        - type
        - tif
        - postOnly
        - quantity
        - filledQuantity
        - funding
        - status
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateVaultMarketProQuoteResponse:
      type: object
      properties:
        bookKey:
          type: string
        bid:
          $ref: "#/components/schemas/OrderIdError"
        ask:
          $ref: "#/components/schemas/OrderIdError"
      required:
        - bookKey
        - bid
        - ask
      additionalProperties: false
    CreateVaultMarketProTrailingStopResponse:
      type: object
      properties:
        order:
          $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
        link:
          $ref: "#/components/schemas/ListVaultMarketProLinksItem"
      required:
        - order
        - link
      additionalProperties: false
    CreateVaultMarketProfileFollowResponse:
      type: object
      properties:
        following:
          type: boolean
        followers:
          type: number
      required:
        - following
        - followers
      additionalProperties: false
    CreateVaultMarketRfqAcceptResponse:
      type: object
      properties:
        rfq:
          $ref: "#/components/schemas/ListVaultMarketRfqItem"
        blockId:
          type: string
          nullable: true
        filled:
          type: number
        tradeIds:
          type: array
          items:
            type: string
        reason:
          type: string
          nullable: true
      required:
        - rfq
        - filled
        - tradeIds
      additionalProperties: false
    CreateVaultMarketRfqRespondResponse:
      type: object
      properties:
        mine:
          type: boolean
          nullable: true
        id:
          type: string
        priceCents:
          type: number
        quantity:
          type: number
        status:
          type: string
        expiresAt:
          type: string
        createdAt:
          type: string
      required:
        - id
        - priceCents
        - quantity
        - status
        - expiresAt
        - createdAt
      additionalProperties: false
    CreateVaultMarketRfqResponse:
      type: object
      properties:
        id:
          type: string
        expiresAt:
          type: string
        invited:
          type: number
      required:
        - id
        - expiresAt
        - invited
      additionalProperties: false
    CreateVaultMarketShareAutoInvestRequest:
      type: object
      properties:
        amountCents:
          type: number
        every:
          type: string
          enum:
            - monthly
            - weekly
        seriesIds:
          type: array
          items:
            type: string
          nullable: true
        targets:
          type: array
          items:
            $ref: "#/components/schemas/SeriesIdWeightBps"
          nullable: true
        basketId: {}
        maxPremiumBps:
          type: number
          nullable: true
        rebalance:
          type: boolean
          nullable: true
        practice:
          type: boolean
          nullable: true
        startAt: {}
        requestId: {}
      required:
        - amountCents
        - every
      additionalProperties: false
    CreateVaultMarketShareAutoInvestRunResponse:
      type: object
      properties:
        runKey:
          type: string
        budgetCents:
          type: number
        spentCents:
          type: number
        carryCents:
          type: number
        status:
          type: string
        lines:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - runKey
        - budgetCents
        - spentCents
        - carryCents
        - status
        - lines
      additionalProperties: false
    CreateVaultMarketShareAutoInvestUpdateRequest:
      type: object
      properties:
        amountCents:
          type: number
          nullable: true
        every:
          type: string
          enum:
            - monthly
            - weekly
          nullable: true
        seriesIds:
          type: array
          items:
            type: string
          nullable: true
        targets:
          type: array
          items:
            $ref: "#/components/schemas/SeriesIdWeightBps"
          nullable: true
        maxPremiumBps:
          type: number
          nullable: true
        rebalance:
          type: boolean
          nullable: true
        status:
          type: string
          enum:
            - active
            - paused
            - cancelled
          nullable: true
      additionalProperties: false
    CreateVaultMarketShareBasketBuyRequest:
      type: object
      properties:
        amountCents:
          type: number
        practice:
          type: boolean
          nullable: true
        maxPremiumBps:
          type: number
          nullable: true
        requestId: {}
      required:
        - amountCents
      additionalProperties: false
    CreateVaultMarketShareBasketBuyResponse:
      type: object
      properties:
        basketId:
          type: string
        practice:
          type: boolean
        amountCents:
          type: number
        spentCents:
          type: number
        leftCents:
          type: number
        lines:
          type: array
          items:
            type: object
            additionalProperties: {}
        note:
          type: string
      required:
        - basketId
        - practice
        - amountCents
        - spentCents
        - leftCents
        - lines
        - note
      additionalProperties: false
    CreateVaultMarketShareBuyoutFundResponse:
      type: object
      properties:
        id:
          type: string
        seriesId:
          type: string
        kind:
          type: string
          enum:
            - offer
            - reserve
        offerCents:
          type: number
        markCents:
          type: number
          nullable: true
        status:
          type: string
        mine:
          type: boolean
        totalShares:
          type: number
        yesShares:
          type: number
        noShares:
          type: number
        opensAt:
          type: string
          nullable: true
        closesAt:
          type: string
          nullable: true
        fundBy:
          type: string
          nullable: true
        decidedAt:
          type: string
          nullable: true
        decision:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - seriesId
        - kind
        - offerCents
        - status
        - mine
        - totalShares
        - yesShares
        - noShares
        - createdAt
      additionalProperties: false
    CreateVaultMarketShareBuyoutVoteRequest:
      type: object
      properties:
        choice:
          type: string
          enum:
            - no
            - yes
      required:
        - choice
      additionalProperties: false
    CreateVaultMarketShareInvestorRequest:
      type: object
      properties:
        acceptTerms:
          type: string
        accredited:
          type: boolean
          nullable: true
        annualIncomeCents:
          type: number
          nullable: true
        netWorthCents:
          type: number
          nullable: true
      required:
        - acceptTerms
      additionalProperties: false
    CreateVaultMarketSharePaperSeryOrderResponse:
      type: object
      properties:
        id:
          type: string
        seriesId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
          enum:
            - limit
            - market
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        postOnly:
          type: boolean
        shares:
          type: number
        filledShares:
          type: number
        limitCents:
          type: number
        amountCents:
          type: number
          nullable: true
        status:
          type: string
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
        paper:
          type: boolean
      required:
        - id
        - seriesId
        - side
        - type
        - tif
        - postOnly
        - shares
        - filledShares
        - limitCents
        - status
        - createdAt
        - paper
      additionalProperties: false
    CreateVaultMarketSharePaperSerySubscribeRequest:
      type: object
      properties:
        shares:
          type: number
      required:
        - shares
      additionalProperties: false
    CreateVaultMarketShareRoomHideResponse:
      type: object
      properties:
        id:
          type: string
        hidden:
          type: boolean
      required:
        - id
        - hidden
      additionalProperties: false
    CreateVaultMarketShareSeryBuyoutRequest:
      type: object
      properties:
        offerCents:
          type: number
        requestId: {}
      required:
        - offerCents
      additionalProperties: false
    CreateVaultMarketShareSeryGiftRequest:
      type: object
      properties:
        to:
          type: string
        shares:
          type: number
        message:
          type: string
          nullable: true
        requestId: {}
      required:
        - to
        - shares
      additionalProperties: false
    CreateVaultMarketShareSeryOrderRequest:
      type: object
      properties:
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
          enum:
            - limit
            - market
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
          nullable: true
        shares:
          type: number
          nullable: true
        amountCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        expiresAt: {}
        postOnly:
          type: boolean
          nullable: true
        requestId: {}
        jointVaultId: {}
      required:
        - side
        - type
      additionalProperties: false
    CreateVaultMarketShareSeryRecombineRequest:
      type: object
      properties:
        withdraw:
          $ref: "#/components/schemas/CreateVaultMarketShareSeryRecombineRequestWithdraw"
      additionalProperties: false
    CreateVaultMarketShareSeryRecombineRequestWithdraw:
      type: object
      properties:
        speed:
          type: string
          enum:
            - standard
            - expedited
      required:
        - speed
      additionalProperties: false
      nullable: true
    CreateVaultMarketShareSeryRecombineResponse:
      type: object
      properties:
        seriesId:
          type: string
        vaultItemId:
          type: string
        status:
          type: string
        withdrawal:
          $ref: "#/components/schemas/CreateVaultMarketShareSeryRecombineResponseWithdrawal"
      required:
        - seriesId
        - vaultItemId
        - status
      additionalProperties: false
    CreateVaultMarketShareSeryRecombineResponseWithdrawal:
      type: object
      properties:
        feeCents:
          type: number
        earlyWithdrawCents:
          type: number
      required:
        - feeCents
        - earlyWithdrawCents
      additionalProperties: false
      nullable: true
    CreateVaultMarketShareSeryRequest:
      type: object
      properties:
        vaultItemId:
          type: string
        retainedShares:
          type: number
          nullable: true
        minRaiseShares:
          type: number
          nullable: true
        days:
          type: number
          nullable: true
        reserveCents:
          type: number
          nullable: true
        requestId: {}
      required:
        - vaultItemId
      additionalProperties: false
    CreateVaultMarketShareSeryRoomResponse:
      type: object
      properties:
        id:
          type: string
        alias:
          type: string
        body:
          type: string
        mine:
          type: boolean
        at:
          type: string
      required:
        - id
        - alias
        - body
        - mine
        - at
      additionalProperties: false
    CreateVaultMarketShareSerySubscribeRequest:
      type: object
      properties:
        shares:
          type: number
        requestId: {}
        jointVaultId: {}
      required:
        - shares
      additionalProperties: false
    CreateVaultMarketShareSeryUnwatchRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - notify
            - waitlist
      required:
        - kind
      additionalProperties: false
    CreateVaultMarketShareSeryUpdateRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - condition
            - event
            - story
            - provenance
            - appraisal
            - exhibition
        title:
          type: string
        body:
          type: string
        mediaUrl: {}
        holdersOnly:
          type: boolean
          nullable: true
      required:
        - kind
        - title
        - body
      additionalProperties: false
    CreateVaultMarketShareSeryWatchRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - notify
            - waitlist
        shares:
          type: number
          nullable: true
      required:
        - kind
      additionalProperties: false
    CreateVaultMarketShareSeryWatchResponse:
      type: object
      properties:
        dropAt:
          type: string
          nullable: true
        earlyOpensAt:
          type: string
          nullable: true
        myEarlyOpensAt:
          type: string
          nullable: true
        earlyAccessMinutes:
          type: number
        allocationMode:
          type: string
          enum:
            - fcfs
            - pro_rata
            - lottery
        allocationText:
          type: string
        perPersonCapShares:
          type: number
          nullable: true
        windowEndsAt:
          type: string
          nullable: true
        allocatedAt:
          type: string
          nullable: true
        lotterySeed:
          type: string
          nullable: true
        phase:
          type: string
          enum:
            - open
            - closed
            - requests
            - early_access
            - announced
        countdownTo:
          type: string
          nullable: true
        countdownLabel:
          type: string
          nullable: true
        watchers:
          type: number
        requestedShares:
          type: number
          nullable: true
        oversubscribedBps:
          type: number
          nullable: true
        notifyMe:
          type: boolean
        onWaitlist:
          type: boolean
        priceNote:
          type: string
      required:
        - earlyAccessMinutes
        - allocationMode
        - allocationText
        - phase
        - watchers
        - notifyMe
        - onWaitlist
        - priceNote
      additionalProperties: false
    CreateVaultMarketShareViewingBookRequest:
      type: object
      properties:
        guests:
          type: number
          nullable: true
      additionalProperties: false
    CreateVaultMarketShareViewingBookResponse:
      type: object
      properties:
        dayId:
          type: string
        guests:
          type: number
      required:
        - dayId
        - guests
      additionalProperties: false
    CreateVaultMarketShareViewingBookingCancelResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - cancelled
            - booked
            - attended
            - no_show
      required:
        - id
        - status
      additionalProperties: false
    CreateVaultMarketSupplyBatchLabelRequest:
      type: object
      properties:
        parcel:
          $ref: "#/components/schemas/CreateVaultMarketSupplyBatchLabelRequestParcel"
      additionalProperties: false
    CreateVaultMarketSupplyBatchLabelRequestParcel:
      type: object
      properties:
        lengthIn:
          type: number
        widthIn:
          type: number
        heightIn:
          type: number
        weightOz:
          type: number
      required:
        - lengthIn
        - widthIn
        - heightIn
        - weightOz
      additionalProperties: false
      nullable: true
    CreateVaultMarketSupplySendInRequest:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketSupplySendInRequestItems"
        method:
          type: string
          enum:
            - label
            - dropoff
        partnerId:
          type: string
          nullable: true
        insured:
          type: boolean
        parcel:
          $ref: "#/components/schemas/CreateVaultMarketSupplyBatchLabelRequestParcel"
      required:
        - items
        - method
      additionalProperties: false
    CreateVaultMarketSupplySendInRequestItems:
      type: object
      properties:
        inventoryItemId:
          type: string
        declaredValueCents:
          type: number
          nullable: true
      required:
        - inventoryItemId
      additionalProperties: false
    CreateVaultMarketSupplySendInResponse:
      type: object
      properties:
        method:
          type: string
          enum:
            - label
            - dropoff
        dropoffCode:
          type: string
          nullable: true
        partner:
          $ref: "#/components/schemas/CreateVaultMarketSupplySendInResponseOneOfPartner"
        batchId:
          nullable: true
        created: {}
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/InventoryItemIdReason"
        label:
          nullable: true
        labelError:
          nullable: true
        storefrontId:
          type: string
          nullable: true
      required:
        - method
        - created
        - skipped
    CreateVaultMarketSupplySendInResponseOneOf1Created:
      type: object
      properties:
        inventoryItemId:
          type: string
        depositId:
          type: string
        vaultItemId:
          type: string
        bookKey:
          type: string
      required:
        - inventoryItemId
        - depositId
        - vaultItemId
        - bookKey
      additionalProperties: false
    CreateVaultMarketSupplySendInResponseOneOfPartner:
      type: object
      properties:
        id:
          type: string
        shopName:
          type: string
        address:
          type: object
          nullable: true
          additionalProperties: {}
        hours:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - id
        - shopName
      additionalProperties: false
      nullable: true
    CreateVaultMarketSupplySendRequest:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketSupplySendRequestItems"
        autoListBps:
          type: number
          nullable: true
        lendWhenIdle:
          type: boolean
        parcel:
          $ref: "#/components/schemas/CreateVaultMarketSupplyBatchLabelRequestParcel"
      required:
        - items
      additionalProperties: false
    CreateVaultMarketSupplySendRequestItems:
      type: object
      properties:
        inventoryItemId:
          type: string
        condition:
          type: string
          enum:
            - DS
            - VNDS
            - Used
        gradeKey:
          type: string
          nullable: true
      required:
        - inventoryItemId
      additionalProperties: false
    CreateVaultMarketSupplySendResponse:
      type: object
      properties:
        batchId:
          nullable: true
        created: {}
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/InventoryItemIdReason"
        label:
          nullable: true
        labelError:
          nullable: true
        storefrontId:
          type: string
          nullable: true
      required:
        - created
        - skipped
    CreateVaultMarketTodClaimObjectResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        estateUnlocked:
          type: boolean
      required:
        - id
        - status
        - estateUnlocked
      additionalProperties: false
    CreateVaultMarketTodMyClaimDocumentResponse:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - other
            - death_certificate
            - letters
            - will
            - id_document
        label:
          type: string
        filename:
          type: string
        bytes:
          type: number
      required:
        - id
        - kind
        - label
        - filename
        - bytes
      additionalProperties: false
    CreateVaultMarketTodMyClaimResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        existing:
          type: boolean
      required:
        - id
        - status
        - existing
      additionalProperties: false
    CreateVaultMarketValuationStatementRequest:
      type: object
      properties:
        purpose:
          type: string
          enum:
            - appraisal
            - insurance
        asOf: {}
        subaccountId: {}
        preparedFor: {}
        policyRef: {}
      required:
        - purpose
      additionalProperties: false
    CreateVaultMarketValuationStatementResponse:
      type: object
      properties:
        issued:
          type: boolean
        hash:
          type: string
        seal:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseSeal"
        kind:
          type: string
        version:
          type: string
        id:
          type: string
          nullable: true
        purpose:
          type: string
          enum:
            - appraisal
            - insurance
        title:
          type: string
        asOf:
          type: string
        issuedAt:
          type: string
        account:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseAccount"
        preparedFor:
          type: string
          nullable: true
        policyRef:
          type: string
          nullable: true
        units:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseUnits"
        totals:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseTotals"
        methodology:
          type: array
          items:
            type: string
        notes:
          type: array
          items:
            type: string
        verifyUrl:
          type: string
          nullable: true
        venue:
          type: string
        shares:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseShares"
      required:
        - issued
        - hash
        - seal
        - kind
        - version
        - purpose
        - title
        - asOf
        - issuedAt
        - account
        - units
        - totals
        - methodology
        - notes
        - venue
      additionalProperties: false
    CreateVaultMarketValuationStatementResponseAccount:
      type: object
      properties:
        label:
          type: string
        kind:
          type: string
          enum:
            - individual
            - subaccount
        subaccountId:
          type: string
          nullable: true
      required:
        - label
        - kind
      additionalProperties: false
    CreateVaultMarketValuationStatementResponseSeal:
      type: object
      properties:
        auditSeq:
          type: number
        auditHash:
          type: string
      required:
        - auditSeq
        - auditHash
      additionalProperties: false
    CreateVaultMarketValuationStatementResponseShares:
      type: object
      properties:
        lines:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseSharesLines"
        impliedValueCents:
          type: number
        note:
          type: string
      required:
        - lines
        - impliedValueCents
        - note
      additionalProperties: false
      nullable: true
      description: |-
        Round 13: Vault Shares held on the day (shares-views.ts shareHoldingsSummary).
        Valued at the last share price: an implied value, quality C, listed apart
        and never added to the units' mark-based totals.
    CreateVaultMarketValuationStatementResponseSharesLines:
      type: object
      properties:
        seriesId:
          type: string
        code:
          type: string
        title:
          type: string
          nullable: true
        shares:
          type: number
        totalShares:
          type: number
        pctText:
          type: string
        priceCents:
          type: number
        impliedValueCents:
          type: number
      required:
        - seriesId
        - code
        - shares
        - totalShares
        - pctText
        - priceCents
        - impliedValueCents
      additionalProperties: false
    CreateVaultMarketValuationStatementResponseTotals:
      type: object
      properties:
        units:
          type: number
        markedUnits:
          type: number
        unmarkedUnits:
          type: number
        pledgedUnits:
          type: number
        totalCents:
          type: number
        byQuality:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseTotalsByQuality"
      required:
        - units
        - markedUnits
        - unmarkedUnits
        - pledgedUnits
        - totalCents
        - byQuality
      additionalProperties: false
    CreateVaultMarketValuationStatementResponseTotalsByQuality:
      type: object
      properties:
        none:
          $ref: "#/components/schemas/UnitsCents"
        C:
          $ref: "#/components/schemas/UnitsCents"
        A:
          $ref: "#/components/schemas/UnitsCents"
        B:
          $ref: "#/components/schemas/UnitsCents"
      required:
        - none
        - C
        - A
        - B
      additionalProperties: false
    CreateVaultMarketValuationStatementResponseUnits:
      type: object
      properties:
        vaultItemId:
          type: string
        receiptNo:
          type: string
          nullable: true
        bookKey:
          type: string
        title:
          type: string
        categoryName:
          type: string
          nullable: true
        condition:
          type: string
        grade:
          type: string
          nullable: true
          description: '"PSA 10"; null = ungraded.'
        grader:
          type: string
          nullable: true
        certNo:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
          description: The mark for the statement day (or the newest within 90 days before it); null = no mark.
        markQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        markDay:
          type: string
          nullable: true
        lastTrade:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseUnitsLastTrade"
        valueCents:
          type: number
          nullable: true
          description: "What the statement counts the unit at: the mark, or null when it has none."
        pledged:
          type: boolean
        vaultInsuredCents:
          type: number
          nullable: true
          description: The value the vault's own policy carries for the unit while in custody, if recorded.
      required:
        - vaultItemId
        - bookKey
        - title
        - condition
        - markQuality
        - pledged
      additionalProperties: false
    CreateVaultMarketValuationStatementResponseUnitsLastTrade:
      type: object
      properties:
        cents:
          type: number
        at:
          type: string
      required:
        - cents
        - at
      additionalProperties: false
      nullable: true
      description: The newest eligible trade in this book key on or before the statement day.
    CreateVaultMarketWatchlistResponse:
      type: object
      properties:
        bookKey:
          type: string
        watching:
          type: boolean
      required:
        - bookKey
        - watching
      additionalProperties: false
    CreateVaultMarketWidgetTokenRequest:
      type: object
      properties:
        deviceName:
          type: string
          description: 'What the phone calls itself ("iPhone 15", "Pixel 8"): only shown back to the person.'
        installId:
          type: string
          description: A random id the app keeps per install, so minting again on the same phone replaces its token.
      required:
        - deviceName
        - installId
      additionalProperties: false
    CreateVaultMarketWidgetTokenResponse:
      type: object
      properties:
        token:
          type: string
          description: Shown once. The app keeps it in the widget's storage; Crossly keeps only its hash.
        scope:
          type: string
        replaced:
          type: number
          description: Tokens on the same phone this one replaced.
        id:
          type: string
        name:
          type: string
        prefix:
          type: string
          description: The token's public prefix (safe to show; the secret never comes back).
        createdAt:
          type: string
          nullable: true
        lastUsedAt:
          type: string
          nullable: true
      required:
        - token
        - scope
        - replaced
        - id
        - name
        - prefix
      additionalProperties: false
    CreateVaultReceiptTokenConfirmRequest:
      type: object
      properties:
        signature:
          type: string
          description: The signature the wallet returned, recorded only when it landed. The chain state decides either way.
      additionalProperties: false
    CreateVaultReceiptTokenConfirmResponse:
      type: object
      properties:
        token:
          $ref: "#/components/schemas/CreateVaultReceiptTokenConfirmResponseToken"
        confirmed:
          type: boolean
      required:
        - token
        - confirmed
      additionalProperties: false
    CreateVaultReceiptTokenConfirmResponseToken:
      type: object
      properties:
        id:
          type: string
        vaultItemId:
          type: string
        receiptNo:
          type: string
        status:
          type: string
          enum:
            - expired
            - live
            - pending
            - conflict
            - frozen
            - burned
        statusText:
          type: string
        frozen:
          type: boolean
        wallet:
          type: string
        holder:
          type: string
          nullable: true
        mint:
          type: string
        tokenAccount:
          type: string
        programId:
          type: string
        cluster:
          type: string
        explorerUrl:
          type: string
        mintSignature:
          type: string
          nullable: true
        burnSignature:
          type: string
          nullable: true
        burnReason:
          type: string
          nullable: true
        conflictReason:
          type: string
          nullable: true
        termsVersion:
          type: string
        mine:
          type: boolean
        createdAt:
          type: string
        liveAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
      required:
        - id
        - vaultItemId
        - receiptNo
        - status
        - statusText
        - frozen
        - wallet
        - mint
        - tokenAccount
        - programId
        - cluster
        - explorerUrl
        - termsVersion
        - mine
        - createdAt
      additionalProperties: false
    CreateVaultReceiptTokenExportRequest:
      type: object
      properties:
        vaultItemId:
          type: string
          description: The unit whose warehouse receipt goes out as a token.
        wallet:
          type: string
          description: "One of the caller's own verified Solana wallets: it receives the token and pays the rent."
        acceptTerms:
          type: string
          description: The receipt token terms version the caller accepts (must be the current one).
      required:
        - vaultItemId
        - wallet
        - acceptTerms
      additionalProperties: false
    CreateVaultReceiptTokenExportResponse:
      type: object
      properties:
        token:
          $ref: "#/components/schemas/CreateVaultReceiptTokenConfirmResponseToken"
        transactionBase64:
          type: string
        recentBlockhash:
          type: string
        lastValidBlockHeight:
          type: number
        rentLamports:
          type: number
      required:
        - token
        - transactionBase64
        - recentBlockhash
        - lastValidBlockHeight
        - rentLamports
      additionalProperties: false
    CreateVaultReceiptTokenRedeemConfirmResponse:
      type: object
      properties:
        token:
          $ref: "#/components/schemas/CreateVaultReceiptTokenConfirmResponseToken"
        redeemed:
          type: boolean
      required:
        - token
        - redeemed
      additionalProperties: false
    CreateVaultReceiptTokenRedeemRequest:
      type: object
      properties:
        wallet:
          type: string
          description: The verified Solana wallet that holds the token now and will sign the burn.
      required:
        - wallet
      additionalProperties: false
    CreateVaultReceiptTokenRedeemResponse:
      type: object
      properties:
        token:
          $ref: "#/components/schemas/CreateVaultReceiptTokenConfirmResponseToken"
        transactionBase64:
          type: string
        recentBlockhash:
          type: string
        lastValidBlockHeight:
          type: number
      required:
        - token
        - transactionBase64
        - recentBlockhash
        - lastValidBlockHeight
      additionalProperties: false
    CreateVaultReceiptTokenWalletAllowResponse:
      type: object
      properties:
        wallet:
          type: string
        transactionBase64:
          type: string
        recentBlockhash:
          type: string
        lastValidBlockHeight:
          type: number
        rentLamports:
          type: number
      required:
        - wallet
        - transactionBase64
        - recentBlockhash
        - lastValidBlockHeight
        - rentLamports
      additionalProperties: false
    CreateVideoRequestAnswerRequest:
      type: object
      properties:
        videoUrl:
          type: string
        note:
          type: string
          nullable: true
      required:
        - videoUrl
      additionalProperties: false
    CreateVideoRequestAnswerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateVideoRequestAnswerResponseData"
      required:
        - data
      additionalProperties: false
    CreateVideoRequestAnswerResponseData:
      type: object
      properties:
        id:
          type: string
        platformListingId:
          type: string
        buyerUserId:
          type: string
        sellerUserId:
          type: string
        note:
          type: string
          nullable: true
        status:
          type: string
          description: open | answered | declined
        videoUrl:
          type: string
          nullable: true
        sellerNote:
          type: string
          nullable: true
        answeredAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - platformListingId
        - buyerUserId
        - sellerUserId
        - status
        - createdAt
      additionalProperties: false
    CreateVideoRequestDeclineRequest:
      type: object
      properties:
        note:
          type: string
          nullable: true
      additionalProperties: false
    CreateVideoRequestUploadUrlResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateVideoRequestUploadUrlResponseData"
      required:
        - data
      additionalProperties: false
    CreateVideoRequestUploadUrlResponseData:
      type: object
      properties:
        uploadUrl:
          type: string
        publicUrl:
          type: string
      required:
        - uploadUrl
        - publicUrl
      additionalProperties: false
    CreateVideoStudioFinalizeRequest:
      type: object
      properties:
        objectKey:
          type: string
        listingId:
          type: string
        width:
          type: number
        height:
          type: number
        jobId:
          type: string
        credits:
          type: number
      required:
        - objectKey
      additionalProperties: false
    CreateVideoStudioFinalizeResponse:
      type: object
      properties:
        videoUrl:
          type: string
        objectKey:
          type: string
        bytes:
          type: number
        contentType:
          type: string
        width:
          type: number
          nullable: true
        height:
          type: number
          nullable: true
        listingId:
          type: string
          nullable: true
      required:
        - videoUrl
        - objectKey
        - bytes
        - contentType
      additionalProperties: false
    CreateVideoStudioUploadUrlResponse:
      type: object
      properties:
        uploadUrl:
          type: string
          description: Presigned R2 PUT. Content-Type `video/mp4` is signed in; the length is not (the render size is unknown).
        objectKey:
          type: string
          description: Pass back to finalize. `uploads/<userId>/video/<uuid>.mp4`.
        publicUrl:
          type: string
          description: The object's public CDN URL once uploaded.
        contentType:
          type: string
        expiresAt:
          type: number
          description: Epoch milliseconds.
        maxBytes:
          type: number
          description: The largest object finalize accepts.
      required:
        - uploadUrl
        - objectKey
        - publicUrl
        - contentType
        - expiresAt
        - maxBytes
      additionalProperties: false
    CreateWeb3AlertRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        price:
          type: string
        tokenId:
          type: string
      required:
        - chain
        - contract
        - price
      additionalProperties: false
    CreateWeb3AuctionRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        tokenId:
          type: string
        reserve:
          type: string
        hours: {}
      required:
        - chain
        - contract
        - tokenId
        - reserve
        - hours
      additionalProperties: false
    CreateWeb3AuctionResponse:
      type: object
      properties:
        auction:
          $ref: "#/components/schemas/ListWeb3AuctionsItem"
      required:
        - auction
      additionalProperties: false
    CreateWeb3CreatorClaimRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
        contract:
          type: string
      required:
        - chain
        - contract
      additionalProperties: false
    CreateWeb3CreatorClaimResponse:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
      required:
        - chain
        - contract
      additionalProperties: false
    CreateWeb3CrosslistItem:
      type: object
      properties:
        marketplace:
          type: string
          enum:
            - crossly
            - opensea
        ok:
          type: boolean
        orderHash:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
      required:
        - marketplace
        - ok
      additionalProperties: false
    CreateWeb3CrosslistRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        orders:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3CrosslistRequestOrders"
      required:
        - chain
        - orders
      additionalProperties: false
    CreateWeb3CrosslistRequestOrders:
      type: object
      properties:
        marketplace:
          type: string
          enum:
            - crossly
            - opensea
        components:
          $ref: "#/components/schemas/CreateWeb3CrosslistRequestOrdersComponents"
        signature:
          type: string
      required:
        - marketplace
        - components
        - signature
      additionalProperties: false
    CreateWeb3CrosslistRequestOrdersComponents:
      type: object
      properties:
        offerer:
          type: string
        zone:
          type: string
        offer:
          type: array
          items:
            type: object
            additionalProperties: {}
        consideration:
          type: array
          items:
            type: object
            additionalProperties: {}
        orderType: {}
        startTime:
          type: string
        endTime:
          type: string
        zoneHash:
          type: string
        salt:
          type: string
        conduitKey:
          type: string
        counter:
          type: string
      required:
        - offerer
        - zone
        - offer
        - consideration
        - orderType
        - startTime
        - endTime
        - zoneHash
        - salt
        - conduitKey
        - counter
      additionalProperties: false
    CreateWeb3CrosslistResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3CrosslistItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    CreateWeb3DropRemindResponse:
      type: object
      properties:
        remindMe:
          type: boolean
      required:
        - remindMe
      additionalProperties: false
    CreateWeb3FavoriteRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        tokenId:
          type: string
      required:
        - chain
        - contract
        - tokenId
      additionalProperties: false
    CreateWeb3FavoriteResponse:
      type: object
      properties:
        favorited:
          type: boolean
      required:
        - favorited
      additionalProperties: false
    CreateWeb3LaunchAirdropResponse:
      type: object
      properties:
        txs: {}
        blockhash:
          type: string
        lastValidBlockHeight:
          type: number
        chain:
          type: string
        recipients:
          type: number
        from:
          type: string
      required:
        - txs
        - chain
        - recipients
    CreateWeb3LaunchAirdropResponseOneOf1Txs:
      type: object
      properties:
        to:
          type: string
        data:
          type: string
      required:
        - to
        - data
      additionalProperties: false
    CreateWeb3LaunchAirdropResponseOneOfTxs:
      type: object
      properties:
        idx:
          type: number
        asset:
          type: string
        to:
          type: string
        transactionBase64:
          type: string
      required:
        - idx
        - asset
        - to
        - transactionBase64
      additionalProperties: false
    CreateWeb3LaunchArtResponse:
      type: object
      properties:
        count:
          type: number
      required:
        - count
      additionalProperties: false
    CreateWeb3LaunchFollowCreatorResponse:
      type: object
      properties:
        following:
          type: boolean
      required:
        - following
      additionalProperties: false
    CreateWeb3LaunchRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        name:
          type: string
        symbol:
          type: string
        maxSupply:
          type: number
        priceWei:
          type: string
        publicStart:
          type: string
        ownerAddress:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        holderStart:
          type: string
          nullable: true
        endTime:
          type: string
          nullable: true
        holderGate:
          type: string
          nullable: true
        maxPerWallet:
          type: number
        royaltyBps:
          type: number
        cardSetId:
          type: string
          nullable: true
          description: "Creator Studio (migration 1163): the card set this collection takes on chain, or the creations it mints."
        creationRefs:
          type: array
          items:
            type: string
        holderPerks:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3LaunchRequestHolderPerksItem"
          description: "Migration 1178 (R-studio-15): the mint flow's Holder perks step. Changed later on its own route."
      required:
        - chain
        - name
        - symbol
        - maxSupply
        - priceWei
        - publicStart
      additionalProperties: false
    CreateWeb3LaunchRevealResponse:
      type: object
      properties:
        revealedAt:
          type: string
      required:
        - revealedAt
      additionalProperties: false
    CreateWeb3OrderFulfillmentBatchRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        orderHashes:
          type: array
          items:
            type: string
      required:
        - chain
        - orderHashes
      additionalProperties: false
    CreateWeb3OrderFulfillmentBatchResponse:
      type: object
      properties:
        fulfillments:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3OrderFulfillmentBatchResponseFulfillments"
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3OrderFulfillmentBatchResponseSkipped"
      required:
        - fulfillments
        - skipped
      additionalProperties: false
    CreateWeb3OrderFulfillmentBatchResponseFulfillments:
      type: object
      properties:
        chain:
          type: string
        orderHash:
          type: string
        kind:
          type: string
          enum:
            - listing
            - bundle
            - offer
            - private_listing
            - collection_offer
            - trait_offer
        components:
          $ref: "#/components/schemas/CreateWeb3OrderFulfillmentBatchResponseFulfillmentsComponents"
        signature:
          type: string
        considerationCriteria:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
          description: "Criteria offers: the token being sold into the offer, and its proof."
      required:
        - chain
        - orderHash
        - kind
        - components
        - signature
      additionalProperties: false
    CreateWeb3OrderFulfillmentBatchResponseFulfillmentsComponents:
      type: object
      properties:
        offerer:
          type: string
        zone:
          type: string
        offer:
          type: array
          items:
            type: object
            additionalProperties: {}
        consideration:
          type: array
          items:
            type: object
            additionalProperties: {}
        orderType:
          type: number
        startTime:
          type: string
        endTime:
          type: string
        zoneHash:
          type: string
        salt:
          type: string
        conduitKey:
          type: string
        counter:
          type: string
      required:
        - offerer
        - zone
        - offer
        - consideration
        - orderType
        - startTime
        - endTime
        - zoneHash
        - salt
        - conduitKey
        - counter
      additionalProperties: false
    CreateWeb3OrderFulfillmentBatchResponseSkipped:
      type: object
      properties:
        orderHash:
          type: string
        reason:
          type: string
      required:
        - orderHash
        - reason
      additionalProperties: false
    CreateWeb3OrderRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        signature:
          type: string
        components:
          $ref: "#/components/schemas/CreateWeb3OrderRequestComponents"
        criteria:
          $ref: "#/components/schemas/CreateWeb3OrderRequestCriteria"
        reservedFor:
          type: string
          description: "A private listing: the one wallet that may buy it."
      required:
        - chain
        - signature
        - components
      additionalProperties: false
    CreateWeb3OrderRequestComponents:
      type: object
      properties:
        offerer:
          type: string
        zone:
          type: string
        offer:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3OrderRequestComponentsOffer"
        consideration:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3OrderRequestComponentsConsideration"
        orderType: {}
        startTime:
          type: string
        endTime:
          type: string
        zoneHash:
          type: string
        salt:
          type: string
        conduitKey:
          type: string
        counter:
          type: string
      required:
        - offerer
        - zone
        - offer
        - consideration
        - orderType
        - startTime
        - endTime
        - zoneHash
        - salt
        - conduitKey
        - counter
      additionalProperties: false
    CreateWeb3OrderRequestComponentsConsideration:
      type: object
      properties:
        itemType: {}
        token:
          type: string
        identifierOrCriteria:
          type: string
        startAmount:
          type: string
        endAmount:
          type: string
        recipient:
          type: string
      required:
        - itemType
        - token
        - identifierOrCriteria
        - startAmount
        - endAmount
        - recipient
      additionalProperties: false
    CreateWeb3OrderRequestComponentsOffer:
      type: object
      properties:
        itemType: {}
        token:
          type: string
        identifierOrCriteria:
          type: string
        startAmount:
          type: string
        endAmount:
          type: string
      required:
        - itemType
        - token
        - identifierOrCriteria
        - startAmount
        - endAmount
      additionalProperties: false
    CreateWeb3OrderRequestCriteria:
      type: object
      properties:
        traitType:
          type: string
        value:
          type: string
        tokenIds:
          type: array
          items:
            type: string
      required:
        - traitType
        - value
        - tokenIds
      additionalProperties: false
    CreateWeb3OrderResponse:
      type: object
      properties:
        order:
          $ref: "#/components/schemas/CreateWeb3OrderResponseOrder"
      required:
        - order
      additionalProperties: false
    CreateWeb3OrderResponseOrder:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - expired
            - cancelled
            - open
            - filled
            - invalid
        currency:
          type: string
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - listing
            - bundle
            - offer
            - private_listing
            - collection_offer
            - trait_offer
        quantity:
          type: number
        inventoryItemId:
          type: string
          nullable: true
        bundle:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3OrderResponseOrderBundle"
          nullable: true
        lastCheckedAt:
          type: string
          format: date-time
          nullable: true
        marketplace:
          type: string
        tokenId:
          type: string
          nullable: true
        externalUrl:
          type: string
          nullable: true
        chain:
          type: string
        contract:
          type: string
        orderHash:
          type: string
        walletId:
          type: string
          nullable: true
        maker:
          type: string
        priceWei:
          type: string
        endPriceWei:
          type: string
          nullable: true
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
        signature:
          type: string
        statusReason:
          type: string
          nullable: true
        itemName:
          type: string
          nullable: true
        itemImage:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        taker:
          type: string
          nullable: true
        filledTx:
          type: string
          nullable: true
        filledAt:
          type: string
          format: date-time
          nullable: true
        criteria:
          $ref: "#/components/schemas/CreateWeb3OrderResponseOrderCriteria"
        reservedFor:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - status
        - currency
        - kind
        - quantity
        - marketplace
        - chain
        - contract
        - orderHash
        - maker
        - priceWei
        - startTime
        - endTime
        - signature
      additionalProperties: false
    CreateWeb3OrderResponseOrderBundle:
      type: object
      properties:
        contract:
          type: string
        tokenId:
          type: string
        standard:
          type: string
          enum:
            - erc721
            - erc1155
        quantity:
          type: number
      required:
        - contract
        - tokenId
        - standard
        - quantity
      additionalProperties: false
    CreateWeb3OrderResponseOrderCriteria:
      type: object
      properties:
        traitType:
          type: string
        value:
          type: string
        tokenIds:
          type: array
          items:
            type: string
      required:
        - traitType
        - value
        - tokenIds
      additionalProperties: false
      nullable: true
    CreateWeb3PhygitalRedeemRequest:
      type: object
      properties:
        shipTo:
          $ref: "#/components/schemas/CreateWeb3PhygitalRedeemRequestShipTo"
      required:
        - shipTo
      additionalProperties: false
    CreateWeb3PhygitalRedeemRequestShipTo:
      type: object
      properties:
        name:
          type: string
        line1:
          type: string
        city:
          type: string
        postalCode:
          type: string
        country:
          type: string
        line2:
          type: string
          nullable: true
        region:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
      required:
        - name
        - line1
        - city
        - postalCode
        - country
      additionalProperties: false
    CreateWeb3PhygitalRedeemResponse:
      type: object
      properties:
        redemptionId:
          type: string
      required:
        - redemptionId
      additionalProperties: false
    CreateWeb3PhygitalRedemptionShipRequest:
      type: object
      properties:
        carrier:
          type: string
        trackingNumber:
          type: string
      required:
        - carrier
        - trackingNumber
      additionalProperties: false
    CreateWeb3PhygitalRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        tokenId:
          type: string
        inventoryItemId:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
      required:
        - chain
        - contract
        - tokenId
        - inventoryItemId
        - title
      additionalProperties: false
    CreateWeb3PhygitalResponse:
      type: object
      properties:
        phygital:
          $ref: "#/components/schemas/CreateWeb3PhygitalResponsePhygital"
      required:
        - phygital
      additionalProperties: false
    CreateWeb3PhygitalResponsePhygital:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - active
            - cancelled
            - redeemed
        createdAt:
          type: string
        item:
          $ref: "#/components/schemas/CreateWeb3PhygitalResponsePhygitalItem"
        redemption:
          $ref: "#/components/schemas/CreateWeb3PhygitalResponsePhygitalRedemption"
      required:
        - id
        - chain
        - contract
        - tokenId
        - title
        - status
        - createdAt
      additionalProperties: false
    CreateWeb3PhygitalResponsePhygitalItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - id
      additionalProperties: false
      nullable: true
    CreateWeb3PhygitalResponsePhygitalRedemption:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        carrier:
          type: string
          nullable: true
        trackingNumber:
          type: string
          nullable: true
        createdAt:
          type: string
        shippedAt:
          type: string
          nullable: true
      required:
        - id
        - status
        - createdAt
      additionalProperties: false
      nullable: true
    CreateWeb3RaribleDraftRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
        maker:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        standard:
          type: string
          enum:
            - erc721
            - erc1155
        priceWei:
          type: string
        days: {}
      required:
        - chain
        - maker
        - contract
        - tokenId
        - standard
        - priceWei
        - days
      additionalProperties: false
    CreateWeb3RaribleDraftResponse:
      type: object
      properties:
        order:
          $ref: "#/components/schemas/CreateWeb3RaribleDraftResponseOrder"
        typedData:
          $ref: "#/components/schemas/CreateWeb3RaribleDraftResponseTypedData"
        approval:
          $ref: "#/components/schemas/CreateWeb3RaribleDraftResponseApproval"
      required:
        - order
        - typedData
        - approval
      additionalProperties: false
    CreateWeb3RaribleDraftResponseApproval:
      type: object
      properties:
        operator:
          type: string
        approved:
          type: boolean
      required:
        - operator
        - approved
      additionalProperties: false
    CreateWeb3RaribleDraftResponseOrder:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
        maker:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        standard:
          type: string
          enum:
            - erc721
            - erc1155
        priceWei:
          type: string
          description: The price in the chain's native coin, in wei.
        salt:
          type: string
        start:
          type: number
          description: Unix seconds.
        end:
          type: number
      required:
        - chain
        - maker
        - contract
        - tokenId
        - standard
        - priceWei
        - salt
        - start
        - end
      additionalProperties: false
    CreateWeb3RaribleDraftResponseTypedData:
      type: object
      properties:
        domain:
          $ref: "#/components/schemas/CreateWeb3RaribleDraftResponseTypedDataDomain"
        types:
          $ref: "#/components/schemas/CreateWeb3RaribleDraftResponseTypedDataTypes"
        primaryType:
          type: string
        message:
          $ref: "#/components/schemas/CreateWeb3RaribleDraftResponseTypedDataMessage"
      required:
        - domain
        - types
        - primaryType
        - message
      additionalProperties: false
    CreateWeb3RaribleDraftResponseTypedDataDomain:
      type: object
      properties:
        name:
          type: string
        version:
          type: string
        chainId:
          type: number
        verifyingContract:
          type: string
      required:
        - name
        - version
        - chainId
        - verifyingContract
      additionalProperties: false
    CreateWeb3RaribleDraftResponseTypedDataMessage:
      type: object
      properties:
        maker:
          type: string
        makeAsset:
          $ref: "#/components/schemas/CreateWeb3RaribleDraftResponseTypedDataMessageMakeAsset"
        taker:
          type: string
        takeAsset:
          $ref: "#/components/schemas/CreateWeb3RaribleDraftResponseTypedDataMessageMakeAsset"
        salt:
          type: string
        start:
          type: string
        end:
          type: string
        dataType:
          type: string
        data:
          type: string
      required:
        - maker
        - makeAsset
        - taker
        - takeAsset
        - salt
        - start
        - end
        - dataType
        - data
      additionalProperties: false
    CreateWeb3RaribleDraftResponseTypedDataMessageMakeAsset:
      type: object
      properties:
        assetType:
          type: object
          additionalProperties: {}
        value:
          type: string
      required:
        - assetType
        - value
      additionalProperties: false
    CreateWeb3RaribleDraftResponseTypedDataTypes:
      type: object
      properties:
        AssetType:
          type: array
          items:
            type: object
            additionalProperties: {}
          minItems: 2
          maxItems: 2
        Asset:
          type: array
          items:
            type: object
            additionalProperties: {}
          minItems: 2
          maxItems: 2
        Order:
          type: array
          items:
            type: object
            additionalProperties: {}
          minItems: 9
          maxItems: 9
      required:
        - AssetType
        - Asset
        - Order
      additionalProperties: false
    CreateWeb3RaribleListingRequest:
      type: object
      properties:
        tokenId:
          type: string
        standard:
          type: string
          enum:
            - erc721
            - erc1155
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
        contract:
          type: string
        maker:
          type: string
        priceWei:
          type: string
        salt:
          type: string
        start: {}
        end: {}
        signature:
          type: string
      required:
        - tokenId
        - standard
        - chain
        - contract
        - maker
        - priceWei
        - salt
        - start
        - end
        - signature
      additionalProperties: false
    CreateWeb3SolanaListTxRequest:
      type: object
      properties:
        mint:
          type: string
        owner:
          type: string
        priceSol:
          type: string
        blockhash:
          type: string
        expireInDays: {}
      required:
        - mint
        - owner
        - priceSol
        - blockhash
      additionalProperties: false
    CreateWeb3SolanaListTxResponse:
      type: object
      properties:
        txs:
          type: array
          items:
            $ref: "#/components/schemas/TxV0Object"
          description: Base64 transactions (v0 or legacy), to be signed and sent in order.
      required:
        - txs
      additionalProperties: false
    CreateWeb3SolanaListingRequest:
      type: object
      properties:
        owner:
          type: string
        mint:
          type: string
        priceSol:
          type: string
        signature:
          type: string
        expireInDays: {}
      required:
        - owner
        - mint
        - priceSol
        - signature
      additionalProperties: false
    CreateWeb3SolanaOfferAcceptTxRequest:
      type: object
      properties:
        seller:
          type: string
        blockhash:
          type: string
      required:
        - seller
        - blockhash
      additionalProperties: false
    CreateWeb3SolanaOfferCancelTxRequest:
      type: object
      properties:
        blockhash:
          type: string
      required:
        - blockhash
      additionalProperties: false
    CreateWeb3SolanaOfferConfirmRequest:
      type: object
      properties:
        signature:
          type: string
        action:
          type: string
          enum:
            - accept
            - cancel
        seller:
          type: string
      required:
        - signature
        - action
      additionalProperties: false
    CreateWeb3SolanaOfferConfirmResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - cancelled
            - filled
      required:
        - status
      additionalProperties: false
    CreateWeb3SolanaOfferRequest:
      type: object
      properties:
        mint:
          type: string
        buyer:
          type: string
        priceSol:
          type: string
        signature:
          type: string
      required:
        - mint
        - buyer
        - priceSol
        - signature
      additionalProperties: false
    CreateWeb3SolanaOfferTxRequest:
      type: object
      properties:
        mint:
          type: string
        buyer:
          type: string
        priceSol:
          type: string
        blockhash:
          type: string
      required:
        - mint
        - buyer
        - priceSol
        - blockhash
      additionalProperties: false
    CreateWeb3SolanaOfferTxResponse:
      type: object
      properties:
        txs:
          type: array
          items:
            $ref: "#/components/schemas/TxV0Object"
        orderHash:
          type: string
      required:
        - txs
        - orderHash
      additionalProperties: false
    CreateWeb3SolanaOrderBuyTxRequest:
      type: object
      properties:
        buyer:
          type: string
        blockhash:
          type: string
      required:
        - buyer
        - blockhash
      additionalProperties: false
    CreateWeb3SolanaOrderBuyTxResponse:
      type: object
      properties:
        txs:
          type: array
          items:
            $ref: "#/components/schemas/TxV0Object"
          description: Base64 transactions (v0 or legacy), to be signed and sent in order.
        priceLamports:
          type: string
        marketplace:
          type: string
      required:
        - txs
        - priceLamports
        - marketplace
      additionalProperties: false
    CreateWeb3SolanaOrderConfirmRequest:
      type: object
      properties:
        signature:
          type: string
        action:
          type: string
          enum:
            - delist
            - buy
        buyer:
          type: string
      required:
        - signature
        - action
      additionalProperties: false
    CreateWeb3SolanaTensorBidConfirmResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - cancelled
            - sold
            - placed
      required:
        - status
      additionalProperties: false
    CreateWeb3SolanaTensorBidPlaceTxResponse:
      type: object
      properties:
        txs:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3SolanaTensorBidPlaceTxResponseTxs"
      required:
        - txs
      additionalProperties: false
    CreateWeb3SolanaTensorBidPlaceTxResponseTxs:
      type: object
      properties:
        tx:
          type: string
          nullable: true
        txV0:
          type: string
        lastValidBlockHeight:
          type: number
          nullable: true
      required:
        - txV0
      additionalProperties: false
    CreateWeb3StakingStakeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWeb3StakingStakeResponseData"
      required:
        - data
      additionalProperties: false
    CreateWeb3StakingStakeResponseData:
      type: object
      properties:
        tierSlug:
          type: string
        stakedBaseUnits:
          type: string
      required:
        - tierSlug
        - stakedBaseUnits
      additionalProperties: false
    CreateWeb3StakingUnstakeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWeb3StakingUnstakeResponseData"
      required:
        - data
      additionalProperties: false
    CreateWeb3StakingUnstakeResponseData:
      type: object
      properties:
        unlocksAt:
          type: string
        cooldownDays:
          type: number
      required:
        - unlocksAt
        - cooldownDays
      additionalProperties: false
    CreateWeb3StoreWalletImportRequest:
      type: object
      properties:
        tokens:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3FavoriteRequest"
      required:
        - tokens
      additionalProperties: false
    CreateWeb3StoreWalletRequest:
      type: object
      properties:
        walletId:
          type: string
      required:
        - walletId
      additionalProperties: false
    CreateWeb3StoreWalletResponse:
      type: object
      properties:
        wallet:
          $ref: "#/components/schemas/ListWeb3StoreWalletsItem"
      required:
        - wallet
      additionalProperties: false
    CreateWeb3StoreWalletSyncResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWeb3StoreWalletSyncResponseData"
      required:
        - data
      additionalProperties: false
    CreateWeb3StoreWalletSyncResponseData:
      type: object
      properties:
        walletId:
          type: string
        added:
          type: number
        updated:
          type: number
        removed:
          type: number
        skipped:
          type: number
          description: New NFTs left out because the wallet's auto-import is off (add them from the import picker).
        chains:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3StoreWalletSyncResponseDataChains"
        syncedAt:
          type: string
      required:
        - walletId
        - added
        - updated
        - removed
        - skipped
        - chains
        - syncedAt
      additionalProperties: false
    CreateWeb3StoreWalletSyncResponseDataChains:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        found:
          type: number
        complete:
          type: boolean
        error:
          type: string
          nullable: true
      required:
        - chain
        - found
        - complete
      additionalProperties: false
    CreateWeb3StoreWalletVerifyRequest:
      type: object
      properties:
        walletId:
          type: string
        signature:
          type: string
      required:
        - walletId
      additionalProperties: false
    CreateWeb3TokenRefreshResponse:
      type: object
      properties:
        refreshed:
          type: boolean
        imageChanged:
          type: boolean
      required:
        - refreshed
        - imageChanged
      additionalProperties: false
    CreateWeb3TransactionRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        txHash:
          type: string
      required:
        - chain
        - txHash
      additionalProperties: false
    CreateWeb3TransactionResponse:
      type: object
      properties:
        filled:
          type: array
          items:
            type: string
        cancelled:
          type: array
          items:
            type: string
      required:
        - filled
        - cancelled
      additionalProperties: false
    CreateWeb3WalletChallengeRequest:
      type: object
      properties:
        family:
          type: string
          enum:
            - solana
            - evm
        address:
          type: string
        chainId: {}
      required:
        - family
        - address
      additionalProperties: false
    CreateWeb3WalletChallengeResponse:
      type: object
      properties:
        walletId:
          type: string
        message:
          type: string
      required:
        - walletId
        - message
      additionalProperties: false
    CreateWeb3WalletImportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWeb3WalletImportResponseData"
      required:
        - data
      additionalProperties: false
    CreateWeb3WalletImportResponseData:
      type: object
      properties:
        walletId:
          type: string
        added:
          type: number
        updated:
          type: number
        notInWallet:
          type: number
      required:
        - walletId
        - added
        - updated
        - notInWallet
      additionalProperties: false
    CreateWeb3WalletSyncResponse:
      type: object
      properties:
        summary:
          $ref: "#/components/schemas/CreateWeb3StoreWalletSyncResponseData"
      required:
        - summary
      additionalProperties: false
    CreateWeb3WalletVerifyRequest:
      type: object
      properties:
        walletId:
          type: string
        signature:
          type: string
      required:
        - walletId
        - signature
      additionalProperties: false
    CreateWeb3WalletVerifyResponse:
      type: object
      properties:
        wallet:
          $ref: "#/components/schemas/ListWeb3WalletsItem"
      required:
        - wallet
      additionalProperties: false
    CreateWebhookDeliveryRedeliverResponse:
      type: object
      properties:
        ok:
          type: boolean
        deliveryId:
          type: string
        eventId:
          type: string
      required:
        - ok
        - deliveryId
        - eventId
      additionalProperties: false
    CreateWebhookRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - json
            - teams
            - discord
            - slack
            - telegram
            - google_chat
            - mattermost
            - zapier
        url:
          type: string
        botToken:
          type: string
        chatId:
          type: string
        channel:
          type: string
        headers:
          type: object
          description: "json only: extra request headers (e.g. Authorization) sent with notify.* calls and http.request credentials."
          additionalProperties: {}
        events:
          type: array
          items:
            type: string
        description:
          type: string
        name:
          type: string
        eventDelivery:
          type: boolean
          description: false = automation only (selectable by notify.* steps, hears no events).
      additionalProperties: false
    CreateWebhookResponse:
      type: object
      properties:
        secret:
          type: string
          nullable: true
        id:
          type: string
        name:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - json
            - teams
            - discord
            - slack
            - telegram
            - google_chat
            - mattermost
            - zapier
        enabled:
          type: boolean
        consecutiveFailures:
          type: number
        lastError:
          type: string
          nullable: true
        lastErrorAt:
          type: string
          format: date-time
          nullable: true
        events:
          type: array
          items:
            type: string
        url:
          type: string
        lastDeliveryAt:
          type: string
          format: date-time
          nullable: true
        oauthAppId:
          type: string
          nullable: true
        destination:
          type: object
          additionalProperties: {}
        eventDelivery:
          type: boolean
        hasBotToken:
          type: boolean
        headerNames:
          type: array
          items:
            type: string
          description: "json: the custom header NAMES (values are credentials and never leave the api)."
      required:
        - id
        - createdAt
        - kind
        - enabled
        - consecutiveFailures
        - events
        - url
        - destination
        - eventDelivery
        - hasBotToken
        - headerNames
      additionalProperties: false
    CreateWebhookRotateSecretResponse:
      type: object
      properties:
        secret:
          type: string
        id:
          type: string
        name:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
          description: The store it belongs to (1500); null = the default store, hearing every store's events for one release.
        kind:
          type: string
          enum:
            - json
            - teams
            - discord
            - slack
            - telegram
            - google_chat
            - mattermost
            - zapier
        enabled:
          type: boolean
        consecutiveFailures:
          type: number
        lastError:
          type: string
          nullable: true
        lastErrorAt:
          type: string
          format: date-time
          nullable: true
        events:
          type: array
          items:
            type: string
        url:
          type: string
        lastDeliveryAt:
          type: string
          format: date-time
          nullable: true
        oauthAppId:
          type: string
          nullable: true
        destination:
          type: object
          additionalProperties: {}
        eventDelivery:
          type: boolean
        hasBotToken:
          type: boolean
        headerNames:
          type: array
          items:
            type: string
          description: "json: the custom header NAMES (values are credentials and never leave the api)."
      required:
        - secret
        - id
        - createdAt
        - kind
        - enabled
        - consecutiveFailures
        - events
        - url
        - destination
        - eventDelivery
        - hasBotToken
        - headerNames
      additionalProperties: false
    CreateWebhookTestRequest:
      type: object
      properties:
        event:
          type: string
      additionalProperties: false
    CreateWebhookTestResponse:
      type: object
      properties:
        ok:
          type: boolean
        deliveryId:
          type: string
          nullable: true
        message:
          type: string
          nullable: true
      required:
        - ok
      additionalProperties: false
    CreateWholesaleBuyerInviteRequest:
      type: object
      properties:
        email:
          type: string
        catalogIds:
          type: array
          items:
            type: string
      required:
        - email
        - catalogIds
      additionalProperties: false
    CreateWholesaleBuyerInviteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleBuyerInviteResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleBuyerInviteResponseData:
      type: object
      properties:
        granted:
          type: number
        boundToAccount:
          type: boolean
      required:
        - granted
        - boundToAccount
      additionalProperties: false
    CreateWholesaleBuyerRemoveRequest:
      type: object
      properties:
        buyerUserId:
          type: string
        email:
          type: string
      additionalProperties: false
    CreateWholesaleBuyerRemoveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteVaultMarketWidgetTokenResponse"
      required:
        - data
      additionalProperties: false
    CreateWholesaleCatalogAccessResendResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleCatalogAccessResendResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleCatalogAccessResendResponseData:
      type: object
      properties:
        grantId:
          type: string
        resent:
          type: boolean
        nextResendAt:
          type: string
      required:
        - grantId
        - resent
        - nextResendAt
      additionalProperties: false
    CreateWholesaleCatalogItemRequest:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateWholesaleCatalogItemRequestItems"
      required:
        - items
      additionalProperties: false
    CreateWholesaleCatalogItemRequestItems:
      type: object
      properties:
        platformListingId:
          type: string
        restockEta:
          type: string
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        verifiedOnly:
          type: boolean
          nullable: true
        priceVisibility:
          type: string
          enum:
            - approved
            - everyone
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          enum:
            - allow
            - no
            - preorder
          nullable: true
        wholesalePriceCents:
          type: number
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
        source:
          type: string
          enum:
            - listing
            - vault
      required:
        - platformListingId
      additionalProperties: false
    CreateWholesaleCatalogItemResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleCatalogItemResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleCatalogItemResponseData:
      type: object
      properties:
        added:
          type: number
        updated:
          type: number
      required:
        - added
        - updated
      additionalProperties: false
    CreateWholesaleCatalogRequest:
      type: object
      properties:
        name:
          type: string
        minOrderQuantity:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
        restockEta:
          type: string
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        verifiedOnly:
          type: boolean
          nullable: true
        priceVisibility:
          type: string
          enum:
            - approved
            - everyone
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          enum:
            - allow
            - no
            - preorder
          nullable: true
        slug:
          type: string
        description:
          type: string
        visibility:
          type: string
          enum:
            - link
            - public
            - private
            - invite
            - public_prices_private
            - private_discoverable
          description: "`private` is the pre-1120 name for `invite` (old clients)."
        autoApprove:
          type: string
          enum:
            - all
            - never
            - verified
        minOrderCents:
          type: number
        requiresBusinessVerification:
          type: boolean
        coverImageUrl:
          type: string
          nullable: true
        listed:
          type: boolean
        directoryCategories:
          type: array
          items:
            type: string
        shipsFromRegion:
          type: string
        directoryBlurb:
          type: string
      required:
        - name
      additionalProperties: false
    CreateWholesaleCatalogResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleCatalogResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleCatalogResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        slug:
          type: string
        storefrontId:
          type: string
          nullable: true
        listedAt:
          type: string
          format: date-time
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        sellerUserId:
          type: string
        coverImageUrl:
          type: string
          nullable: true
        minOrderCents:
          type: number
          nullable: true
        listed:
          type: boolean
        visibility:
          type: string
        shippingPresetId:
          type: string
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        autoApprove:
          type: string
        requiresBusinessVerification:
          type: boolean
        directoryCategories:
          type: array
          items:
            type: string
        shipsFromRegion:
          type: string
          nullable: true
        directoryBlurb:
          type: string
          nullable: true
        boostedUntil:
          type: string
          format: date-time
          nullable: true
        casePack:
          type: number
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        verifiedOnly:
          type: boolean
          nullable: true
        priceVisibility:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          nullable: true
        restockEta:
          type: string
          nullable: true
      required:
        - id
        - name
        - active
        - createdAt
        - updatedAt
        - slug
        - sellerUserId
        - listed
        - visibility
        - autoApprove
        - requiresBusinessVerification
        - directoryCategories
      additionalProperties: false
    CreateWholesaleDropReleaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleDropReleaseResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleDropReleaseResponseData:
      type: object
      properties:
        invoiced:
          type: number
        balanceCents:
          type: number
        invoiceIds:
          type: array
          items:
            type: string
      required:
        - invoiced
        - balanceCents
        - invoiceIds
      additionalProperties: false
    CreateWholesaleDropRequest:
      type: object
      properties:
        name:
          type: string
        dropAt:
          type: string
        audience:
          type: string
          enum:
            - catalog
            - trade
        kind:
          type: string
          enum:
            - release
            - prebook
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        audienceCatalogId:
          type: string
          nullable: true
        depositBps:
          type: number
          nullable: true
        shipBy:
          type: string
          nullable: true
        balanceNetDays:
          type: number
          nullable: true
        perCustomerLimit:
          type: number
          nullable: true
        listingIds:
          type: array
          items:
            type: string
          description: Master listing ids (the seller's listings); each must be on Crossly.
        platformListingIds:
          type: array
          items:
            type: string
          description: Or the Crossly listing rows (platform listing ids, as the Hub's inventory picker has them).
      required:
        - name
        - dropAt
        - audience
      additionalProperties: false
    CreateWholesaleDropResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleDropResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleDropResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        status:
          type: string
        releasedAt:
          type: string
          format: date-time
          nullable: true
        storefrontId:
          type: string
          nullable: true
        published:
          type: boolean
        endsAt:
          type: string
          format: date-time
          nullable: true
        eventId:
          type: string
          nullable: true
        format:
          type: string
        config:
          type: object
          additionalProperties: {}
        sellerUserId:
          type: string
        coverImageUrl:
          type: string
          nullable: true
        platformListingIds:
          type: array
          items:
            type: string
          nullable: true
        dropAt:
          type: string
          format: date-time
        partnerId:
          type: string
          nullable: true
        wholesaleUnitCostCents:
          type: number
          nullable: true
        unitsPurchased:
          type: number
          nullable: true
        supplierName:
          type: string
          nullable: true
        poReference:
          type: string
          nullable: true
        retailUnitPriceCents:
          type: number
          nullable: true
        buyerApiEnabled:
          type: boolean
        perCustomerLimit:
          type: number
          nullable: true
        previewFrom:
          type: string
          format: date-time
          nullable: true
        publishedAt:
          type: string
          format: date-time
          nullable: true
        reviewNote:
          type: string
          nullable: true
        reviewedAt:
          type: string
          format: date-time
          nullable: true
        placements:
          type: array
          items:
            type: string
        announceAt:
          type: string
          format: date-time
          nullable: true
        countdownAt:
          type: string
          format: date-time
          nullable: true
        pausedAt:
          type: string
          format: date-time
          nullable: true
        liveStreamId:
          type: string
          nullable: true
        spatialDropId:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        featuredStatus:
          type: string
          nullable: true
        audience:
          type: string
        audienceCatalogId:
          type: string
          nullable: true
        dropKind:
          type: string
        depositBps:
          type: number
          nullable: true
        shipBy:
          type: string
          nullable: true
        balanceNetDays:
          type: number
          nullable: true
        listingCount:
          type: number
        catalogName:
          type: string
          nullable: true
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - status
        - published
        - format
        - config
        - sellerUserId
        - dropAt
        - buyerApiEnabled
        - placements
        - audience
        - dropKind
        - listingCount
      additionalProperties: false
    CreateWholesaleFreightRequestAnswerRequest:
      type: object
      properties:
        quotedCents:
          type: number
        note:
          type: string
      required:
        - quotedCents
      additionalProperties: false
    CreateWholesaleFreightRequestAnswerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleFreightRequestAnswerResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleFreightRequestAnswerResponseData:
      type: object
      properties:
        id:
          type: string
        buyerUserId:
          type: string
        sellerUserId:
          type: string
        status:
          type: string
          description: open | quoted | closed
        weightLbs:
          type: number
          nullable: true
        lines:
          type: array
          items:
            $ref: "#/components/schemas/CreateWholesaleFreightRequestAnswerResponseDataLines"
        shipTo:
          type: object
          nullable: true
          additionalProperties: {}
        note:
          type: string
          nullable: true
          description: The buyer's note.
        quotedCents:
          type: number
          nullable: true
        sellerNote:
          type: string
          nullable: true
          description: The seller's note with their figure.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - buyerUserId
        - sellerUserId
        - status
        - lines
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateWholesaleFreightRequestAnswerResponseDataLines:
      type: object
      properties:
        platformListingId:
          type: string
        title:
          type: string
          nullable: true
        quantity:
          type: number
      required:
        - platformListingId
        - quantity
      additionalProperties: false
    CreateWholesaleGroupMemberResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleGroupMemberResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleGroupMemberResponseData:
      type: object
      properties:
        buyerUserId:
          type: string
      required:
        - buyerUserId
      additionalProperties: false
    CreateWholesaleGroupRequest:
      type: object
      properties:
        name:
          type: string
        discountPercentBps:
          type: number
      required:
        - name
        - discountPercentBps
      additionalProperties: false
    CreateWholesaleGroupResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleGroupResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleGroupResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        storefrontId:
          type: string
          nullable: true
        sellerUserId:
          type: string
        discountPercentBps:
          type: number
      required:
        - id
        - name
        - active
        - createdAt
        - sellerUserId
        - discountPercentBps
      additionalProperties: false
    CreateWholesaleInvoiceCreditNoteRequest:
      type: object
      properties:
        amountCents:
          type: number
        reason:
          type: string
          enum:
            - other
            - returned
            - damaged
            - short_shipment
            - pricing_error
            - goodwill
        note:
          type: string
      required:
        - amountCents
        - reason
      additionalProperties: false
    CreateWholesaleInvoiceCreditNoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleInvoiceCreditNoteResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleInvoiceCreditNoteResponseData:
      type: object
      properties:
        creditNote:
          $ref: "#/components/schemas/CreateWholesaleInvoiceCreditNoteResponseDataCreditNote"
        invoice:
          $ref: "#/components/schemas/CreateWholesaleInvoiceCreditNoteResponseDataInvoice"
      required:
        - creditNote
        - invoice
      additionalProperties: false
    CreateWholesaleInvoiceCreditNoteResponseDataCreditNote:
      type: object
      properties:
        number:
          type: string
          nullable: true
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        kind:
          type: string
        invoiceId:
          type: string
        note:
          type: string
          nullable: true
        createdByUserId:
          type: string
          nullable: true
        buyerUserId:
          type: string
        reason:
          type: string
          nullable: true
        amountCents:
          type: number
        sellerUserId:
          type: string
      required:
        - id
        - createdAt
        - kind
        - invoiceId
        - buyerUserId
        - amountCents
        - sellerUserId
      additionalProperties: false
    CreateWholesaleInvoiceCreditNoteResponseDataInvoice:
      type: object
      properties:
        creditNotes:
          type: array
          items:
            type: object
            additionalProperties: {}
        writeOffs:
          type: array
          items:
            type: object
            additionalProperties: {}
        lateFees:
          type: array
          items:
            type: object
            additionalProperties: {}
        payments:
          type: array
          items:
            type: object
            additionalProperties: {}
        buyerEmail:
          type: string
          nullable: true
        buyerName:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        lines:
          type: array
          items:
            type: object
            additionalProperties: {}
        id:
          type: string
        kind:
          type: string
        invoiceNumber:
          type: string
        status:
          type: string
        buyerUserId:
          type: string
        sellerUserId:
          type: string
        orderId:
          type: string
          nullable: true
        poReference:
          type: string
          nullable: true
        netDays:
          type: number
          nullable: true
        subtotalCents:
          type: number
        shippingCents:
          type: number
        taxCents:
          type: number
        totalCents:
          type: number
        amountPaidCents:
          type: number
        creditedCents:
          type: number
          description: "W5: the rest of the ledger (credit notes, write-off, late fee, early-pay discount)."
        writtenOffCents:
          type: number
        lateFeeCents:
          type: number
        earlyPayDiscountCents:
          type: number
        balanceDueCents:
          type: number
        platformFeeCents:
          type: number
        platformDueStatus:
          type: string
          nullable: true
        paidMethod:
          type: string
          nullable: true
        paidReference:
          type: string
          nullable: true
        dueAt:
          type: string
          format: date-time
          nullable: true
        paidAt:
          type: string
          format: date-time
          nullable: true
        sentAt:
          type: string
          format: date-time
          nullable: true
        reminderCount:
          type: number
        createdAt:
          type: string
          format: date-time
      required:
        - creditNotes
        - writeOffs
        - lateFees
        - payments
        - lines
        - id
        - kind
        - invoiceNumber
        - status
        - buyerUserId
        - sellerUserId
        - subtotalCents
        - shippingCents
        - taxCents
        - totalCents
        - amountPaidCents
        - creditedCents
        - writtenOffCents
        - lateFeeCents
        - earlyPayDiscountCents
        - balanceDueCents
        - platformFeeCents
        - reminderCount
        - createdAt
      additionalProperties: false
    CreateWholesaleInvoiceMarkPaidRequest:
      type: object
      properties:
        method:
          type: string
          enum:
            - check
            - other
            - card
            - ach
            - wire
        reference:
          type: string
        amountCents:
          type: number
          description: Omitted = the whole remaining balance.
      required:
        - method
      additionalProperties: false
    CreateWholesaleInvoiceSendResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleInvoiceSendResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleInvoiceSendResponseData:
      type: object
      properties:
        sent:
          type: boolean
      required:
        - sent
      additionalProperties: false
    CreateWholesaleProfileShipsFromValidateRequest:
      type: object
      properties:
        postalCode:
          type: string
        country:
          type: string
        city:
          type: string
          nullable: true
        region:
          type: string
          nullable: true
      required:
        - postalCode
        - country
      additionalProperties: false
    CreateWholesaleProfileShipsFromValidateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleProfileShipsFromValidateResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleProfileShipsFromValidateResponseData:
      type: object
      properties:
        postalCode:
          type: string
        country:
          type: string
        city:
          type: string
          nullable: true
        region:
          type: string
          nullable: true
        validatedAt:
          type: string
          nullable: true
      required:
        - postalCode
        - country
      additionalProperties: false
    CreateWholesaleQuoteAnswerRequest:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateWholesaleQuoteAnswerRequestItems"
          description: A price per item; an item left out is not quoted (the buyer cannot accept it).
        expiresAt:
          type: string
          description: "ISO date-time the quoted prices hold until: in the future, at most 90 days out."
        note:
          type: string
      required:
        - items
        - expiresAt
      additionalProperties: false
    CreateWholesaleQuoteAnswerRequestItems:
      type: object
      properties:
        itemId:
          type: string
        unitPriceCents:
          type: number
      required:
        - itemId
        - unitPriceCents
      additionalProperties: false
    CreateWholesaleRequestDecideRequest:
      type: object
      properties:
        decision:
          type: string
          enum:
            - decline
            - approve
        declineReason:
          type: string
        groupId:
          type: string
          description: Approve straight into a customer group (its rate applies at once).
        catalogIds:
          type: array
          items:
            type: string
          description: Approve into more of the seller's catalogs than the one asked for (each must be the seller's own).
      required:
        - decision
      additionalProperties: false
    CreateWholesaleRequestDecideResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleRequestDecideResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleRequestDecideResponseData:
      type: object
      properties:
        status:
          type: string
        grantId:
          type: string
          nullable: true
      required:
        - status
      additionalProperties: false
    CreateWholesaleTierBulkRequest:
      type: object
      properties:
        platformListingIds:
          type: array
          items:
            type: string
        breaks:
          type: array
          items:
            $ref: "#/components/schemas/CreateWholesaleTierBulkRequestBreaks"
          description: Percent off the listing's price at each break, in basis points.
      required:
        - platformListingIds
        - breaks
      additionalProperties: false
    CreateWholesaleTierBulkRequestBreaks:
      type: object
      properties:
        minQuantity:
          type: number
        discountBps:
          type: number
      required:
        - minQuantity
        - discountBps
      additionalProperties: false
    CreateWholesaleTierBulkResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWholesaleTierBulkResponseData"
      required:
        - data
      additionalProperties: false
    CreateWholesaleTierBulkResponseData:
      type: object
      properties:
        updated:
          type: number
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/CreateWholesaleTierBulkResponseDataSkipped"
      required:
        - updated
        - skipped
      additionalProperties: false
    CreateWholesaleTierBulkResponseDataSkipped:
      type: object
      properties:
        platformListingId:
          type: string
        reason:
          type: string
      required:
        - platformListingId
        - reason
      additionalProperties: false
    CreateWorkflowApprovalDecideRequest:
      type: object
      required:
        - decision
      properties:
        decision:
          type: string
          enum:
            - approved
            - rejected
            - approve
            - reject
          description: approved (or approve) continues down "approved"; rejected (or reject) down "rejected".
        note:
          type: string
          maxLength: 2000
          description: Optional note, available to later nodes.
          nullable: true
    CreateWorkflowApprovalDecideResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorkflowApprovalsItem"
      required:
        - data
      additionalProperties: false
    CreateWorkflowChainRequest:
      type: object
      properties:
        name:
          type: string
        triggerId:
          type: string
        steps:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorkflowChainRequestSteps"
        triggerConfig:
          type: object
          additionalProperties: {}
        isActive:
          type: boolean
      required:
        - name
        - triggerId
        - steps
      additionalProperties: false
    CreateWorkflowChainRequestSteps:
      type: object
      properties:
        stepType:
          type: string
          enum:
            - action
            - condition
            - wait
        actionId:
          type: string
        actionConfig:
          type: object
          additionalProperties: {}
        waitMs:
          type: number
      required:
        - stepType
      additionalProperties: false
    CreateWorkflowChainRunNowResponse:
      type: object
      properties:
        success:
          type: boolean
        runId:
          type: string
      required:
        - success
        - runId
      additionalProperties: false
    CreateWorkflowChainToggleResponse:
      type: object
      properties:
        chain:
          $ref: "#/components/schemas/CreateWorkflowChainToggleResponseChain"
      required:
        - chain
      additionalProperties: false
    CreateWorkflowChainToggleResponseChain:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        name:
          type: string
        triggerId:
          type: string
        triggerConfig:
          type: object
          additionalProperties: {}
        isActive:
          type: boolean
        createdAt:
          type: string
          format: date-time
        workflowId:
          type: string
      required:
        - id
        - userId
        - name
        - triggerId
        - triggerConfig
        - isActive
        - createdAt
        - workflowId
      additionalProperties: false
    CreateWorkflowDuplicateRequest:
      type: object
      properties:
        name:
          type: string
          maxLength: 200
          description: Name of the copy (default "<name> (copy)").
    CreateWorkflowDuplicateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowDuplicateResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowDuplicateResponseData:
      type: object
      properties:
        workflow:
          $ref: "#/components/schemas/WorkflowResponseDataWorkflow"
      required:
        - workflow
      additionalProperties: false
    CreateWorkflowExpressionPreviewRequest:
      type: object
      properties:
        value:
          description: "The param value: any JSON; strings may hold {{ }} expressions."
        item:
          type: object
          description: The item ($json).
          additionalProperties: {}
        trigger:
          type: object
          description: The trigger item ($trigger).
          additionalProperties: {}
        nodes:
          type: object
          description: Node display name → that node's output items, for $node("Name").
          additionalProperties: {}
        runId:
          type: string
          format: uuid
          description: Read $node() items and $trigger from this stored run.
        workflowId:
          type: string
          format: uuid
          description: Use this workflow's vars and timezone.
        itemIndex:
          type: integer
          minimum: 0
          description: Index of the item ($itemIndex).
        vars:
          type: object
          description: Extra $vars.
          additionalProperties: {}
        timezone:
          type: string
          description: IANA zone for $now / $today.
    CreateWorkflowExpressionPreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowExpressionPreviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowExpressionPreviewResponseDataOneOf1Error:
      type: object
      properties:
        message:
          type: string
        source:
          type: string
          nullable: true
        position:
          type: number
          nullable: true
      required:
        - message
      additionalProperties: false
    CreateWorkflowImportRequest:
      type: object
      properties:
        graph: {}
        format:
          type: string
          enum:
            - crossly.workflow
        exportVersion:
          type: number
        name:
          type: string
        description:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        templateId:
          type: string
          nullable: true
        document:
          $ref: "#/components/schemas/CreateWorkflowImportRequestOneOf"
    CreateWorkflowImportRequestOneOf:
      type: object
      properties:
        graph: {}
        format:
          type: string
          enum:
            - crossly.workflow
        exportVersion:
          type: number
        name:
          type: string
        description:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        templateId:
          type: string
          nullable: true
      required:
        - graph
      additionalProperties: false
    CreateWorkflowImportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowImportResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowImportResponseData:
      type: object
      properties:
        workflow:
          $ref: "#/components/schemas/WorkflowResponseDataWorkflow"
        issues:
          type: array
          items:
            $ref: "#/components/schemas/WorkflowResponseDataIssues"
        stripped:
          type: array
          items:
            type: string
          description: "`nodeId.paramKey` paths that were cleared and need refilling."
      required:
        - workflow
        - issues
        - stripped
      additionalProperties: false
    CreateWorkflowRequest:
      type: object
      properties:
        from:
          type: string
          enum:
            - blank
            - template
            - import
          description: Where the graph comes from. Default blank.
        name:
          type: string
          maxLength: 200
          description: Workflow name.
        description:
          type: string
          maxLength: 5000
          description: Free-text description.
          nullable: true
        tags:
          type: array
          items:
            type: string
          maxItems: 30
          description: Tags for filtering.
        graph:
          type: object
          description: "A WorkflowGraph: { version: 1, nodes: [{ id, type, name, params, position }], edges: [{ id, source, sourcePort, target, targetPort }], notes?, settings? }. Node types and their params come from GET /v1/workflows/catalog."
          additionalProperties: {}
        timezone:
          type: string
          description: "from=blank: an IANA zone (America/New_York) for schedules, unless the graph names one. Default UTC."
        templateId:
          type: string
          description: "from=template: the template id (GET /v1/workflows/templates). from=blank: optional, recorded as the template the graph was built from."
        setup:
          type: object
          description: 'from=template: values for the template setup fields, keyed "nodeId.paramKey".'
          additionalProperties: {}
        activate:
          type: boolean
          description: "from=template: activate right away when the graph validates."
        document:
          type: object
          description: "from=import: a crossly.workflow export document."
          additionalProperties: {}
    CreateWorkflowResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowResponseData:
      type: object
      properties:
        workflow:
          $ref: "#/components/schemas/WorkflowResponseDataWorkflow"
        issues:
          type: array
          items:
            $ref: "#/components/schemas/WorkflowResponseDataIssues"
        activated:
          type: boolean
      required:
        - workflow
        - issues
        - activated
      additionalProperties: false
    CreateWorkflowRunCancelResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowRunCancelResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowRunCancelResponseData:
      type: object
      properties:
        runId:
          type: string
        cancelled:
          type: number
      required:
        - runId
        - cancelled
      additionalProperties: false
    CreateWorkflowRunOnRequest:
      type: object
      required:
        - workflowId
      properties:
        workflowId:
          type: string
          format: uuid
          description: The workflow to run.
        items:
          type: array
          maxItems: 1000
          items:
            $ref: "#/components/schemas/CreateWorkflowRunOnRequestItems"
          description: Trigger items `{ json }` to run with (one run, these items).
        listingIds:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 1000
          description: Run once with one item per listing.
        orderIds:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 1000
          description: Run once with one item per order.
        inventoryItemIds:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 1000
          description: Run once with one item per inventory item.
        triggerNodeId:
          type: string
          description: The trigger node to start from when the workflow has several.
    CreateWorkflowRunOnRequestItems:
      type: object
      properties:
        json:
          type: object
          additionalProperties: {}
      required:
        - json
    CreateWorkflowRunOnResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowRunOnResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowRunOnResponseData:
      type: object
      properties:
        runId:
          type: string
        triggerNodeId:
          type: string
        itemCount:
          type: number
        workflowId:
          type: string
      required:
        - runId
        - triggerNodeId
        - itemCount
        - workflowId
      additionalProperties: false
    CreateWorkflowRunRequest:
      type: object
      properties:
        items:
          type: array
          maxItems: 1000
          items:
            $ref: "#/components/schemas/CreateWorkflowRunOnRequestItems"
          description: Trigger items `{ json }` to run with (one run, these items).
        listingIds:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 1000
          description: Run once with one item per listing.
        orderIds:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 1000
          description: Run once with one item per order.
        inventoryItemIds:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 1000
          description: Run once with one item per inventory item.
        triggerNodeId:
          type: string
          description: The trigger node to start from when the workflow has several.
    CreateWorkflowRunResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowRunResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowRunResponseData:
      type: object
      properties:
        runId:
          type: string
        triggerNodeId:
          type: string
        itemCount:
          type: number
      required:
        - runId
        - triggerNodeId
        - itemCount
      additionalProperties: false
    CreateWorkflowRunRetryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowRunRetryResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowRunRetryResponseData:
      type: object
      properties:
        runId:
          type: string
        retryOfRunId:
          type: string
      required:
        - runId
        - retryOfRunId
      additionalProperties: false
    CreateWorkflowSaleEndResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowSaleEndResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowSaleEndResponseData:
      type: object
      properties:
        id:
          type: string
        ended:
          type: boolean
        reverted:
          type: number
      required:
        - id
        - ended
        - reverted
      additionalProperties: false
    CreateWorkflowTemplateUseRequest:
      type: object
      properties:
        setup:
          type: object
          description: Values for the template setup fields, keyed "nodeId.paramKey".
          additionalProperties: {}
        name:
          type: string
          maxLength: 200
          description: "Name for the new workflow (default: the template name)."
        activate:
          type: boolean
          description: Activate right away when the graph validates.
    CreateWorkflowTestRequest:
      type: object
      properties:
        graph:
          type: object
          description: "A WorkflowGraph: { version: 1, nodes: [{ id, type, name, params, position }], edges: [{ id, source, sourcePort, target, targetPort }], notes?, settings? }. Node types and their params come from GET /v1/workflows/catalog."
          additionalProperties: {}
        mode:
          type: string
          enum:
            - test
            - dry
          default: test
          description: test (real) or dry (no changes).
        triggerNodeId:
          type: string
          description: "Trigger node to start from (default: on.manual, else the first trigger)."
        startNodeId:
          type: string
          description: Start the test at this node.
        stopAfterNodeId:
          type: string
          description: Stop the test after this node ("test step").
        triggerItems:
          type: array
          maxItems: 1000
          items:
            $ref: "#/components/schemas/CreateWorkflowRunOnRequestItems"
          description: Trigger items { json } to test with.
    CreateWorkflowTestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowTestResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowTestResponseData:
      type: object
      properties:
        runId:
          type: string
        mode:
          type: string
          enum:
            - test
            - dry
        triggerNodeId:
          type: string
        triggerItemSource:
          type: string
          enum:
            - pinned
            - empty
            - given
            - last_run
            - sample
        issues:
          type: array
          items:
            $ref: "#/components/schemas/WorkflowResponseDataIssues"
      required:
        - runId
        - mode
        - triggerNodeId
        - triggerItemSource
        - issues
      additionalProperties: false
    CreateWorkflowValidateRequest:
      type: object
      required:
        - graph
      properties:
        graph:
          type: object
          description: "A WorkflowGraph: { version: 1, nodes: [{ id, type, name, params, position }], edges: [{ id, source, sourcePort, target, targetPort }], notes?, settings? }. Node types and their params come from GET /v1/workflows/catalog."
          additionalProperties: {}
    CreateWorkflowValidateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowValidateResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowValidateResponseData:
      type: object
      properties:
        issues:
          type: array
          items:
            $ref: "#/components/schemas/WorkflowResponseDataIssues"
        blocking:
          type: boolean
      required:
        - issues
        - blocking
      additionalProperties: false
    CreateWorkflowVersionRestoreRequest:
      type: object
      properties:
        version:
          type: number
      additionalProperties: false
    CreateWorkflowWebhookRotateRequest:
      type: object
      properties:
        withSecret:
          type: boolean
          default: false
          description: Also issue an HMAC signing secret for the calls.
    CreateWorkflowWebhookRotateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorkflowWebhookRotateResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorkflowWebhookRotateResponseData:
      type: object
      properties:
        nodeId:
          type: string
        url:
          type: string
          description: Shown once; never retrievable again.
        secret:
          type: string
          nullable: true
          description: Present when a signing secret was requested; shown once.
        rotatedAt:
          type: string
      required:
        - nodeId
        - url
        - rotatedAt
      additionalProperties: false
    CreateWorldAttendantTestChatRequest:
      type: object
      properties:
        message:
          type: string
        sceneId:
          type: string
          nullable: true
      required:
        - message
      additionalProperties: false
    CreateWorldAttendantTestChatResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldAttendantTestChatResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldAttendantTestChatResponseData:
      type: object
      properties:
        reply:
          $ref: "#/components/schemas/CreateWorldAttendantTestChatResponseDataReply"
        tokens:
          $ref: "#/components/schemas/CreateWorldAttendantTestChatResponseDataTokens"
        provider:
          type: string
        model:
          type: string
      required:
        - tokens
        - provider
        - model
      additionalProperties: false
    CreateWorldAttendantTestChatResponseDataReply:
      type: object
      properties:
        act:
          type: string
          enum:
            - offer
            - point
            - idle
            - say
            - approach
        line:
          type: string
        itemId:
          type: string
          nullable: true
        quoteCents:
          type: number
          nullable: true
          description: "An offer: the quoted price, never below the allowed floor."
        holdMinutes:
          type: number
          nullable: true
          description: "A hold: minutes, capped at the allowed hold."
        handoff:
          type: boolean
          nullable: true
          description: Hand off to a human (the seller is notified).
        logged:
          type: string
          enum:
            - offer
            - answer
            - idle
            - handoff
            - hold
          description: What the usage log records.
      required:
        - act
        - line
        - logged
      additionalProperties: false
      nullable: true
    CreateWorldAttendantTestChatResponseDataTokens:
      type: object
      properties:
        in:
          type: number
        out:
          type: number
      required:
        - in
        - out
      additionalProperties: false
    CreateWorldAvatarEquipRequest:
      type: object
      properties:
        cosmeticId:
          type: string
          format: uuid
        receiptId:
          type: string
          format: uuid
        inventoryItemId:
          type: string
          format: uuid
        slot:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
    CreateWorldAvatarEquipResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldAvatarEquipResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldAvatarEquipResponseData:
      type: object
      properties:
        slot:
          type: string
        loadout:
          $ref: "#/components/schemas/CreateWorldAvatarEquipResponseDataLoadout"
      required:
        - slot
        - loadout
      additionalProperties: false
    CreateWorldAvatarEquipResponseDataLoadout:
      type: object
      properties:
        rigKey:
          type: string
        slots:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldAvatarEquipResponseDataLoadoutSlotsItem"
          description: The slots this rig has, so a caller can render empty ones.
        worn:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldAvatarEquipResponseDataLoadoutWorn"
      required:
        - rigKey
        - slots
        - worn
      additionalProperties: false
    CreateWorldAvatarEquipResponseDataLoadoutWorn:
      type: object
      properties:
        slot:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
        kind:
          type: string
          enum:
            - item
            - cosmetic
        equippedAt:
          type: string
        cosmetic:
          type: object
          nullable: true
          additionalProperties: {}
        item:
          type: object
          nullable: true
          additionalProperties: {}
        mark:
          type: object
          nullable: true
          description: |-
            NULL for a cosmetic. See the module docblock — "not a purchase
            claim" and "an unproven purchase claim" are different answers.
          additionalProperties: {}
      required:
        - slot
        - kind
        - equippedAt
      additionalProperties: false
    CreateWorldAvatarUnequipRequest:
      type: object
      required:
        - slot
      properties:
        slot:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
    CreateWorldAvatarUnequipResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldAvatarUnequipResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldAvatarUnequipResponseData:
      type: object
      properties:
        slot:
          type: string
        removed:
          type: boolean
        loadout:
          $ref: "#/components/schemas/CreateWorldAvatarEquipResponseDataLoadout"
      required:
        - slot
        - removed
        - loadout
      additionalProperties: false
    CreateWorldAvatarWearableRequest:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        slot:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
        meshProfile:
          type: string
        priceBaseUnits:
          type: string
          description: |-
            A STRING on the wire. COSM is a bigint with six decimals, and a
            JSON number loses precision past about nine billion COSM.
        meshParams:
          type: object
          additionalProperties: {}
        description:
          type: string
        previewImageUrl:
          type: string
        maxSupply:
          type: number
          nullable: true
      required:
        - slug
        - name
        - slot
        - meshProfile
        - priceBaseUnits
      additionalProperties: false
    CreateWorldAvatarWearableResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldAvatarWearableResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldAvatarWearableResponseData:
      type: object
      properties:
        id:
          type: string
        sku:
          type: string
        name:
          type: string
        slot:
          type: string
        tier:
          type: string
        priceBaseUnits:
          type: string
          nullable: true
        maxSupply:
          type: number
          nullable: true
        active:
          type: boolean
        published:
          type: boolean
      required:
        - id
        - sku
        - name
        - slot
        - tier
        - active
        - published
      additionalProperties: false
    CreateWorldCollaborationAcceptResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldCollaborationsItem"
      required:
        - data
      additionalProperties: false
    CreateWorldCollaborationDeclineResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldCollaborationDeclineResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldCollaborationDeclineResponseData:
      type: object
      properties:
        declined:
          type: boolean
      required:
        - declined
      additionalProperties: false
    CreateWorldContestEntrySettlePaymentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldContestEntrySettlePaymentResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldContestEntrySettlePaymentResponseData:
      type: object
      properties:
        paymentState:
          type: string
      required:
        - paymentState
      additionalProperties: false
    CreateWorldContestJoinResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldContestJoinResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldContestJoinResponseData:
      type: object
      properties:
        entryId:
          type: string
        payment:
          $ref: "#/components/schemas/CreateWorldContestJoinResponseDataPayment"
      required:
        - entryId
      additionalProperties: false
    CreateWorldContestJoinResponseDataPayment:
      type: object
      properties:
        clientSecret:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
    CreateWorldContestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldContestsItem"
      required:
        - data
      additionalProperties: false
    CreateWorldConventionAcceptRequest:
      type: object
      properties:
        username:
          type: string
      additionalProperties: false
    CreateWorldConventionAcceptResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldConventionAcceptResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldConventionAcceptResponseData:
      type: object
      properties:
        tableIndex:
          type: number
      required:
        - tableIndex
      additionalProperties: false
    CreateWorldConventionApplyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldConventionApplyResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldConventionApplyResponseData:
      type: object
      properties:
        applied:
          type: boolean
      required:
        - applied
      additionalProperties: false
    CreateWorldConventionBoothApplyRequest:
      type: object
      properties:
        tierId:
          type: string
        note:
          type: string
          nullable: true
        categories:
          type: array
          items:
            type: string
      required:
        - tierId
      additionalProperties: false
    CreateWorldConventionBoothApplyResponse:
      type: object
      properties:
        exhibitorId:
          type: string
        status:
          type: string
          enum:
            - accepted
            - declined
            - applied
            - withdrawn
            - invited
        boothKey:
          type: string
          nullable: true
      required:
        - exhibitorId
        - status
      additionalProperties: false
    CreateWorldConventionBoothFeeRequest:
      type: object
      properties:
        rail:
          type: string
          enum:
            - cash
            - cbx
      required:
        - rail
      additionalProperties: false
    CreateWorldConventionBoothFeeResponse:
      type: object
      properties:
        paid:
          type: boolean
        paidCents:
          type: number
        paymentRef:
          type: string
          nullable: true
        organiserCents:
          type: number
      required:
        - paid
        - paidCents
    CreateWorldConventionCheckInRequest:
      type: object
      properties:
        exhibitorId:
          type: string
          nullable: true
      additionalProperties: false
    CreateWorldConventionCheckInResponse:
      type: object
      properties:
        checkedInAt:
          type: string
        already:
          type: boolean
      required:
        - checkedInAt
        - already
      additionalProperties: false
    CreateWorldConventionFullRequest:
      type: object
      properties:
        title:
          type: string
        venueId:
          type: string
          description: The venue to rent and its days (inclusive).
        startsOn:
          type: string
        endsOn:
          type: string
        rail:
          type: string
          enum:
            - cash
            - cbx
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldConventionFullRequestTiers"
        description:
          type: string
          nullable: true
        theme:
          type: string
          enum:
            - classic
            - neon
            - gallery
            - arcade
            - market_hall
            - garden
        categorySlug:
          type: string
          nullable: true
        opensHour:
          type: number
          description: Opening hours each day, in the convention's timezone.
        closesHour:
          type: number
        timezone:
          type: string
        bookingMode:
          type: string
          enum:
            - open
            - application
        revenueShareBps:
          type: number
        sellerLimits:
          $ref: "#/components/schemas/CreateWorldConventionFullRequestSellerLimits"
        promotion:
          $ref: "#/components/schemas/CreateWorldConventionFullRequestPromotion"
      required:
        - title
        - venueId
        - startsOn
        - endsOn
        - rail
        - tiers
      additionalProperties: false
    CreateWorldConventionFullRequestPromotion:
      type: object
      properties:
        adsCampaignId:
          type: string
          nullable: true
          description: An Ads campaign promoting the convention (Hub > Ads), when the organiser links one.
        brandingEvent:
          type: boolean
          description: Listed in Branding > Events (buyers find it there). On by default.
        featuredRequested:
          type: boolean
          description: Ask Crossly to feature it on the world's What's on board.
      additionalProperties: false
    CreateWorldConventionFullRequestSellerLimits:
      type: object
      properties:
        maxSellers:
          type: number
          nullable: true
        perSellerBooths:
          type: number
        categories:
          type: array
          items:
            type: string
          description: Market category slugs exhibitors must sell in; empty = any.
      additionalProperties: false
    CreateWorldConventionFullRequestTiers:
      type: object
      properties:
        name:
          type: string
        size:
          type: string
          enum:
            - small
            - large
            - medium
        priceCents:
          type: number
        count:
          type: number
        id:
          type: string
        perks:
          type: array
          items:
            type: string
      required:
        - name
        - size
        - priceCents
        - count
      additionalProperties: false
    CreateWorldConventionMessageRequest:
      type: object
      properties:
        body:
          type: string
        toUserId:
          type: string
          nullable: true
      required:
        - body
      additionalProperties: false
    CreateWorldConventionMessageResponse:
      type: object
      properties:
        id:
          type: string
        at:
          type: string
      required:
        - id
        - at
      additionalProperties: false
    CreateWorldConventionPaidRequest:
      type: object
      properties:
        username:
          type: string
      required:
        - username
      additionalProperties: false
    CreateWorldConventionRequest:
      type: object
      properties:
        sceneId:
          type: string
        title:
          type: string
        startsAt: {}
        endsAt: {}
        entryModel:
          type: string
          enum:
            - free
            - fee
            - invite
            - revenue_share
        categorySlug:
          type: string
          nullable: true
        entryFeeCents:
          type: number
          nullable: true
        revenueShareBps:
          type: number
          nullable: true
        tableCount:
          type: number
      required:
        - sceneId
        - title
        - startsAt
        - endsAt
        - entryModel
      additionalProperties: false
    CreateWorldConventionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldConventionResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldConventionResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - draft
            - live
            - cancelled
            - open
            - ended
        storefrontId:
          type: string
          nullable: true
        title:
          type: string
        endsAt:
          type: string
          format: date-time
        startsAt:
          type: string
          format: date-time
        timezone:
          type: string
        categorySlug:
          type: string
          nullable: true
        theme:
          type: string
        sellerEventId:
          type: string
          nullable: true
        sceneId:
          type: string
        hostUserId:
          type: string
        entryModel:
          type: string
          enum:
            - free
            - fee
            - invite
            - revenue_share
        entryFeeCents:
          type: number
          nullable: true
        revenueShareBps:
          type: number
          nullable: true
        tableCount:
          type: number
        venueBookingId:
          type: string
          nullable: true
        opensHour:
          type: number
        closesHour:
          type: number
        floorPlanVersion:
          type: number
        bookingMode:
          type: string
        walkIns:
          type: number
      required:
        - id
        - createdAt
        - updatedAt
        - status
        - title
        - endsAt
        - startsAt
        - timezone
        - theme
        - sceneId
        - hostUserId
        - entryModel
        - tableCount
        - opensHour
        - closesHour
        - floorPlanVersion
        - bookingMode
        - walkIns
      additionalProperties: false
    CreateWorldConventionSellerAssignRequest:
      type: object
      properties:
        exhibitorId:
          type: string
        boothKey:
          type: string
      required:
        - exhibitorId
        - boothKey
      additionalProperties: false
    CreateWorldConventionSellerAssignResponse:
      type: object
      properties:
        exhibitorId:
          type: string
        boothKey:
          type: string
          nullable: true
      required:
        - exhibitorId
      additionalProperties: false
    CreateWorldConventionSellerDecideRequest:
      type: object
      properties:
        exhibitorId:
          type: string
        decision:
          type: string
          enum:
            - decline
            - approve
      required:
        - exhibitorId
        - decision
      additionalProperties: false
    CreateWorldConventionWithdrawRequest:
      type: object
      properties:
        username:
          type: string
        status:
          type: string
          enum:
            - declined
            - withdrawn
      additionalProperties: false
    CreateWorldCrewChatRequest:
      type: object
      required:
        - text
      properties:
        text:
          type: string
          maxLength: 400
    CreateWorldCrewJoinRequest:
      type: object
      required:
        - code
      properties:
        code:
          type: string
          minLength: 6
          maxLength: 16
    CreateWorldCrewJoinResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldCrewJoinResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldCrewJoinResponseData:
      type: object
      properties:
        joined:
          type: boolean
      required:
        - joined
      additionalProperties: false
    CreateWorldCrewLeaveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteVaultMarketOpeningWaitlistResponse"
      required:
        - data
      additionalProperties: false
    CreateWorldCrewRequest:
      type: object
      required:
        - name
        - tag
      properties:
        name:
          type: string
          minLength: 2
          maxLength: 32
        tag:
          type: string
          minLength: 2
          maxLength: 5
    CreateWorldCrewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldCrewResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldCrewResponseData:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
      required:
        - id
        - code
      additionalProperties: false
    CreateWorldDecorDesignRequest:
      type: object
      properties:
        unlocksKey:
          type: string
        slug:
          type: string
        name:
          type: string
        meshProfile:
          type: string
        priceBaseUnits:
          type: string
          description: COSM base units as a STRING (bigint with six decimals).
        meshParams:
          type: object
          additionalProperties: {}
        description:
          type: string
        previewImageUrl:
          type: string
        maxSupply:
          type: number
          nullable: true
      required:
        - unlocksKey
        - slug
        - name
        - meshProfile
        - priceBaseUnits
      additionalProperties: false
    CreateWorldDecorDesignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldDecorDesignResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldDecorDesignResponseData:
      type: object
      properties:
        id:
          type: string
        sku:
          type: string
        name:
          type: string
        slot:
          type: string
        unlocksKey:
          type: string
          nullable: true
        unlocksValue:
          type: string
          nullable: true
        priceBaseUnits:
          type: string
          nullable: true
        maxSupply:
          type: number
          nullable: true
        active:
          type: boolean
      required:
        - id
        - sku
        - name
        - slot
        - active
      additionalProperties: false
    CreateWorldDecorDesignSubmitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldDecorDesignSubmitResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldDecorDesignSubmitResponseData:
      type: object
      properties:
        reviewId:
          type: string
        state:
          type: string
        created:
          type: boolean
      required:
        - reviewId
        - state
        - created
      additionalProperties: false
    CreateWorldDecorRetractRequest:
      type: object
      properties:
        space:
          $ref: "#/components/schemas/CreateWorldDecorRetractRequestSpace"
        key:
          type: string
        value:
          type: string
      required:
        - space
        - key
        - value
      additionalProperties: false
    CreateWorldDecorRetractRequestSpace:
      type: object
      properties:
        kind:
          type: string
          enum:
            - home
            - shop
            - street
            - stall
        id:
          type: string
      required:
        - kind
        - id
      additionalProperties: false
    CreateWorldDecorRetractResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldDecorRetractResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldDecorRetractResponseData:
      type: object
      properties:
        inventory:
          $ref: "#/components/schemas/CreateWorldDecorRetractResponseDataInventory"
        retracted:
          type: boolean
      required:
        - inventory
        - retracted
      additionalProperties: false
    CreateWorldDecorRetractResponseDataInventory:
      type: object
      properties:
        available:
          type: boolean
        reason:
          type: string
          nullable: true
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldDecorRetractResponseDataInventoryItems"
        spaces:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldDecorRetractResponseDataInventorySpaces"
          description: Every space the person dresses, so a client can offer "Place in...".
      required:
        - available
        - items
        - spaces
      additionalProperties: false
    CreateWorldDecorRetractResponseDataInventoryItems:
      type: object
      properties:
        key:
          type: string
        value:
          type: string
        pair:
          type: string
          description: "`key:value`, the Decor Shop's `item` and the editors' id."
        name:
          type: string
        sku:
          type: string
          nullable: true
        surface:
          type: string
          enum:
            - home
            - shop
            - street
            - avatar
            - stall
        placeable:
          type: boolean
          description: Placed per placement (a prop) rather than applied per space (a finish).
        tint:
          type: string
          nullable: true
        owned:
          type: number
        placed:
          type: number
        available:
          type: number
        placements:
          type: array
          items:
            type: object
            additionalProperties: {}
        granted:
          type: number
          description: "Units a held NFT / COSM copy grants (world-kit/capability-decor.ts): placeable, not copies, never for sale."
        copies:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: "The live copies, oldest first: edition numbers are the collectible part."
      required:
        - key
        - value
        - pair
        - name
        - surface
        - placeable
        - owned
        - placed
        - available
        - placements
        - granted
        - copies
      additionalProperties: false
    CreateWorldDecorRetractResponseDataInventorySpaces:
      type: object
      properties:
        kind:
          type: string
          enum:
            - home
            - shop
            - street
            - stall
        id:
          type: string
          description: The home / scene / booking / street id.
        name:
          type: string
          description: "What a person calls it: \"Your home\", the room's name, \"Stall on Maple Row\"."
        slug:
          type: string
          nullable: true
          description: A street's slug (its decor route is by slug).
      required:
        - kind
        - id
        - name
      additionalProperties: false
    CreateWorldDmResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldDmItem"
      required:
        - data
      additionalProperties: false
    CreateWorldEarningPayoutAccountOnboardResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldEarningPayoutAccountOnboardResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldEarningPayoutAccountOnboardResponseData:
      type: object
      properties:
        url:
          type: string
        country:
          type: string
        agreement:
          type: string
          enum:
            - full
            - recipient
        payoutsSupported:
          type: boolean
      required:
        - url
        - country
        - agreement
        - payoutsSupported
      additionalProperties: false
    CreateWorldExperienceAccessRequest:
      type: object
      properties:
        visibility:
          type: string
          enum:
            - unlisted
            - public
            - private
            - friends
      required:
        - visibility
      additionalProperties: false
    CreateWorldExperienceActivityRevertResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceActivityRevertResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceActivityRevertResponseData:
      type: object
      properties:
        activity:
          $ref: "#/components/schemas/ListWorldExperienceActivityItem"
        applied:
          type: number
        rejected:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceActivityRevertResponseDataRejected"
      required:
        - activity
        - applied
        - rejected
      additionalProperties: false
    CreateWorldExperienceActivityRevertResponseDataRejected:
      type: object
      properties:
        index:
          type: number
        reason:
          type: string
        message:
          type: string
      required:
        - index
        - reason
        - message
      additionalProperties: false
    CreateWorldExperienceAlertAckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceAlertAckResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceAlertAckResponseData:
      type: object
      properties:
        id:
          type: string
        acknowledgedAt:
          type: string
      required:
        - id
        - acknowledgedAt
      additionalProperties: false
    CreateWorldExperienceAnalyticQueryRequest:
      type: object
      properties:
        name:
          type: string
        from:
          type: string
        to:
          type: string
        agg:
          type: string
          enum:
            - count
            - players
            - sum
            - avg
        groupBy:
          type: string
        interval:
          type: string
          enum:
            - day
            - hour
      required:
        - name
      additionalProperties: false
    CreateWorldExperienceAnalyticQueryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceAnalyticQueryResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceAnalyticQueryResponseData:
      type: object
      properties:
        range:
          $ref: "#/components/schemas/CreateListingTagRenameRequest"
        name:
          type: string
        agg:
          type: string
          enum:
            - count
            - players
            - sum
            - avg
        interval:
          type: string
        groupBy:
          type: string
          nullable: true
        series:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceAnalyticQueryResponseDataSeries"
      required:
        - range
        - name
        - agg
        - interval
        - series
      additionalProperties: false
    CreateWorldExperienceAnalyticQueryResponseDataSeries:
      type: object
      properties:
        at:
          type: string
        group:
          type: string
        value:
          type: number
          nullable: true
      required:
        - at
        - group
      additionalProperties: false
    CreateWorldExperienceAssetMeshCheckRequest:
      type: object
      properties:
        glbBase64:
          type: string
      required:
        - glbBase64
      additionalProperties: false
    CreateWorldExperienceAssetMeshCheckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceAssetMeshCheckResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceAssetMeshCheckResponseData:
      type: object
      properties:
        report:
          $ref: "#/components/schemas/ListCreatorItemModelsItemReport"
        ok:
          type: boolean
        errors:
          type: array
          items:
            type: string
        fixes:
          type: array
          items:
            type: string
        makesLod:
          type: boolean
        meshSize:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          nullable: true
        hullPoints:
          type: number
      required:
        - report
        - ok
        - errors
        - fixes
        - makesLod
        - hullPoints
      additionalProperties: false
    CreateWorldExperienceAssetMeshRequest:
      type: object
      properties:
        glbBase64:
          type: string
        name:
          type: string
        fileName:
          type: string
        collision:
          type: string
          enum:
            - Box
            - Hull
        placeId:
          type: string
          description: Insert into this place server-side (through its co-editing session).
        parentId:
          type: string
          description: Parent node id in that place (default Workspace).
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
      required:
        - glbBase64
      additionalProperties: false
    CreateWorldExperienceAssetMeshResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceAssetMeshResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceAssetMeshResponseData:
      type: object
      properties:
        asset:
          $ref: "#/components/schemas/CreateWorldExperienceAssetMeshResponseDataAsset"
        node:
          $ref: "#/components/schemas/CreateToolboxAssetUseResponseDataNodes"
        check:
          $ref: "#/components/schemas/CreateWorldExperienceAssetMeshResponseDataCheck"
        inserted:
          $ref: "#/components/schemas/CreateToolboxAssetUseResponseDataInserted"
      required:
        - asset
        - node
        - check
      additionalProperties: false
    CreateWorldExperienceAssetMeshResponseDataAsset:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        sha256:
          type: string
        meshPath:
          type: string
        lodPath:
          type: string
          nullable: true
        previewUrl:
          type: string
          description: "A URL the caller can load now: the plain path once reviewed, else a short-lived signed one."
        lodPreviewUrl:
          type: string
          nullable: true
        bytes:
          type: number
        triangles:
          type: number
        lodTriangles:
          type: number
          nullable: true
        meshSize:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        hullPoints:
          type: number
        moderation:
          type: string
          enum:
            - pending
            - approved
          description: pending = only you and your team see it until a reviewed publish uses it.
        report:
          $ref: "#/components/schemas/CreateWorldExperienceAssetMeshResponseDataAssetReport"
        createdAt:
          type: string
      required:
        - id
        - name
        - sha256
        - meshPath
        - previewUrl
        - bytes
        - triangles
        - meshSize
        - hullPoints
        - moderation
        - report
        - createdAt
      additionalProperties: false
    CreateWorldExperienceAssetMeshResponseDataAssetReport:
      type: object
      properties:
        use:
          type: string
          enum:
            - wearable
            - prop
        summary:
          $ref: "#/components/schemas/ListCreatorItemModelsItemReportSummary"
        meshes:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Per-mesh triangles, heaviest first (top 10).
        joints:
          type: number
        lines:
          type: array
          items:
            type: object
            additionalProperties: {}
        problems:
          type: array
          items:
            type: string
          description: Hard problems that are not a number against a limit (external URIs, rig).
        suggestions:
          type: array
          items:
            type: object
            additionalProperties: {}
        ok:
          type: boolean
          description: "Fits phone AND desktop and has no problems: can be submitted."
        fitsPhone:
          type: boolean
        fitsDesktop:
          type: boolean
      required:
        - use
        - summary
        - meshes
        - joints
        - lines
        - problems
        - suggestions
        - ok
        - fitsPhone
        - fitsDesktop
      additionalProperties: false
    CreateWorldExperienceAssetMeshResponseDataCheck:
      type: object
      properties:
        report:
          $ref: "#/components/schemas/CreateWorldExperienceAssetMeshResponseDataAssetReport"
        ok:
          type: boolean
        errors:
          type: array
          items:
            type: string
        fixes:
          type: array
          items:
            type: string
        makesLod:
          type: boolean
        meshSize:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          nullable: true
        hullPoints:
          type: number
      required:
        - report
        - ok
        - errors
        - fixes
        - makesLod
        - hullPoints
      additionalProperties: false
    CreateWorldExperienceBadgeRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        iconSha256:
          type: string
          nullable: true
        enabled:
          type: boolean
      required:
        - name
      additionalProperties: false
    CreateWorldExperienceBadgeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceBadgeResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceBadgeResponseData:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        name:
          type: string
        description:
          type: string
        iconUrl:
          type: string
          nullable: true
          description: The approved icon (same-origin path), else null.
        iconState:
          type: string
          enum:
            - pending
            - none
            - rejected
            - approved
        iconNote:
          type: string
          nullable: true
          description: Why an icon was rejected (creator views only).
        iconPreviewUrl:
          type: string
          nullable: true
          description: "Creator views: a short-lived signed path to the icon while it waits for review."
        enabled:
          type: boolean
        awardedCount:
          type: number
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - experienceId
        - name
        - description
        - iconState
        - enabled
        - awardedCount
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateWorldExperienceBanRequest:
      type: object
      properties:
        sub:
          type: string
        reason:
          type: string
        duration: {}
        displayReason:
          type: string
        applyToAlts:
          type: boolean
      required:
        - sub
        - reason
      additionalProperties: false
    CreateWorldExperienceCollaboratorRequest:
      type: object
      properties:
        handle:
          type: string
        role:
          type: string
          enum:
            - admin
            - editor
            - scripter
            - builder
            - tester
            - analyst
      required:
        - handle
        - role
      additionalProperties: false
    CreateWorldExperienceCollaboratorResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceCollaboratorResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceCollaboratorResponseData:
      type: object
      properties:
        userId:
          type: string
        handle:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
        avatarUrl:
          type: string
          nullable: true
        role:
          type: string
          enum:
            - owner
            - admin
            - editor
            - scripter
            - builder
            - tester
            - analyst
        status:
          type: string
          enum:
            - active
            - invited
        invitedAt:
          type: string
          nullable: true
        acceptedAt:
          type: string
          nullable: true
      required:
        - userId
        - role
        - status
      additionalProperties: false
    CreateWorldExperienceConfigRollbackRequest:
      type: object
      properties:
        version:
          type: number
      required:
        - version
      additionalProperties: false
    CreateWorldExperienceDatastoreEntryIncrementResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceDatastoreEntryIncrementResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceDatastoreEntryIncrementResponseData:
      type: object
      properties:
        store:
          type: string
        scope:
          type: string
        key:
          type: string
        version:
          type: number
        sizeBytes:
          type: number
        userIds:
          type: array
          items:
            type: string
        attributes:
          type: object
          additionalProperties: {}
        updatedAt:
          type: string
        value:
          type: number
      required:
        - store
        - scope
        - key
        - version
        - sizeBytes
        - userIds
        - attributes
        - updatedAt
        - value
      additionalProperties: false
    CreateWorldExperienceDropTableRequest:
      type: object
      properties:
        name:
          type: string
        entries:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - name
        - entries
      additionalProperties: false
    CreateWorldExperienceDropTableResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperienceDropTablesItem"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceEventRequest:
      type: object
      properties:
        name:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        values:
          type: object
          additionalProperties: {}
        topic:
          type: string
          nullable: true
      required:
        - name
        - startsAt
        - endsAt
      additionalProperties: false
    CreateWorldExperienceExperienceEventRequest:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        thumbnailUrl:
          type: string
          nullable: true
        placeId:
          type: string
          nullable: true
        liveEventId:
          type: string
          nullable: true
      required:
        - title
      additionalProperties: false
    CreateWorldExperienceExperienceEventRsvpRequest:
      type: object
      properties:
        going:
          type: boolean
        remind:
          type: boolean
        timeZone:
          type: string
          nullable: true
      required:
        - going
      additionalProperties: false
    CreateWorldExperienceExperimentRequest:
      type: object
      properties:
        key:
          type: string
        variants:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceExperimentRequestVariants"
        name:
          type: string
        hypothesis:
          type: string
        holdoutPct:
          type: number
        targeting:
          type: object
          additionalProperties: {}
        primaryMetric:
          type: string
        guardrails:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceExperimentRequestGuardrails"
        minDays:
          type: number
      required:
        - key
        - variants
      additionalProperties: false
    CreateWorldExperienceExperimentRequestGuardrails:
      type: object
      properties:
        metric:
          type: string
        tolerance:
          type: number
      required:
        - metric
      additionalProperties: false
    CreateWorldExperienceExperimentRequestVariants:
      type: object
      properties:
        name:
          type: string
        weight:
          type: number
        values:
          type: object
          additionalProperties: {}
      required:
        - name
        - weight
      additionalProperties: false
    CreateWorldExperienceExperimentShipRequest:
      type: object
      properties:
        variant:
          type: string
      required:
        - variant
      additionalProperties: false
    CreateWorldExperienceGalleryRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - image
            - video
        url:
          type: string
        posterUrl:
          type: string
          nullable: true
        caption:
          type: string
        role:
          type: string
          enum:
            - trailer
            - thumbnail
            - icon
            - gallery
      required:
        - kind
        - url
      additionalProperties: false
    CreateWorldExperienceGalleryUploadUrlRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - image
            - video
        fileName:
          type: string
        contentType:
          type: string
        contentLength:
          type: number
      required:
        - kind
        - fileName
        - contentType
        - contentLength
      additionalProperties: false
    CreateWorldExperienceGalleryUploadUrlResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceGalleryUploadUrlResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceGalleryUploadUrlResponseData:
      type: object
      properties:
        uploadUrl:
          type: string
        publicUrl:
          type: string
        maxBytes:
          type: number
      required:
        - uploadUrl
        - publicUrl
        - maxBytes
      additionalProperties: false
    CreateWorldExperienceHttpDomainRequest:
      type: object
      properties:
        domain:
          type: string
        reason:
          type: string
      required:
        - domain
      additionalProperties: false
    CreateWorldExperienceHttpDomainResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceHttpDomainResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceHttpDomainResponseData:
      type: object
      properties:
        id:
          type: string
        domain:
          type: string
        wildcard:
          type: boolean
        state:
          type: string
          enum:
            - pending
            - rejected
            - approved
        source:
          type: string
          enum:
            - api
            - studio
            - world_json
        reason:
          type: string
        declaredAt:
          type: string
        decidedAt:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
      required:
        - id
        - domain
        - wildcard
        - state
        - source
        - reason
        - declaredAt
      additionalProperties: false
    CreateWorldExperienceJoinRequest:
      type: object
      properties:
        placeId:
          type: string
        followUserId:
          type: string
        reservedCode:
          type: string
        testVersionId:
          type: string
          description: "Studio cloud playtest: join this test version of the place (owner only)."
        serverId:
          type: string
          description: A public server picked from the game page's server list (409 server_full / server_gone when it cannot take you).
        platform:
          type: string
          enum:
            - app
            - web
            - godot
          description: The client joining (analytics breakdowns + live-ops platform targeting).
        clientScripts:
          type: boolean
          description: "The client runs LocalScripts (03 §3.2): a Crossly World build with the client script engine."
        source:
          type: string
          description: "Where the player came from: plaza, search, share, listing, notification, friend, … (acquisition reports)."
        pings:
          type: object
          description: "Round trips the client measured per region (GET …/worlds/regions probe URLs), ms: the join routes to the nearest region with room."
          additionalProperties: {}
      additionalProperties: false
    CreateWorldExperienceJoinResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceJoinResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceLocalizationImportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceLocalizationImportResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceLocalizationImportResponseData:
      type: object
      properties:
        issues:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceLocalizationImportResponseDataIssues"
        locales:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceLocalizationImportResponseDataLocalesItem"
        saved:
          type: boolean
        localization:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseData"
      required:
        - issues
        - locales
        - saved
        - localization
      additionalProperties: false
    CreateWorldExperienceLocalizationImportResponseDataIssues:
      type: object
      properties:
        line:
          type: number
        column:
          type: string
          nullable: true
        message:
          type: string
        severity:
          type: string
          enum:
            - warning
            - error
      required:
        - line
        - message
        - severity
      additionalProperties: false
    CreateWorldExperienceMemoryQueueReadResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceMemoryQueueReadResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceMemoryQueueReadResponseData:
      type: object
      properties:
        readId:
          type: string
          nullable: true
        invisibleUntil:
          type: string
          nullable: true
        items:
          type: array
          items:
            $ref: "#/components/schemas/IdResponse"
      required:
        - items
      additionalProperties: false
    CreateWorldExperienceMessagingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceMessagingResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceMessagingResponseData:
      type: object
      properties:
        seq:
          type: number
        topic:
          type: string
        bytes:
          type: number
      required:
        - seq
        - topic
        - bytes
      additionalProperties: false
    CreateWorldExperienceModerationAppealResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldAppealsItem"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceNotificationRequest:
      type: object
      properties:
        templateKey:
          type: string
        sub:
          type: string
        subs:
          type: array
          items:
            type: string
        vars:
          type: object
          additionalProperties: {}
      required:
        - templateKey
      additionalProperties: false
    CreateWorldExperienceNotificationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceNotificationResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceNotificationResponseData:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceNotificationResponseDataResults"
        sent:
          type: number
        suppressed:
          type: number
      required:
        - results
        - sent
        - suppressed
      additionalProperties: false
    CreateWorldExperienceNotificationResponseDataResults:
      type: object
      properties:
        sub:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - sent
            - suppressed
        reason:
          type: string
          enum:
            - quiet_hours
            - rating
            - age_unknown
            - template_not_approved
            - not_opted_in
            - under_13
            - experience_ban
            - platform_ban
            - blocked_creator
            - player_daily_limit
            - same_template_recently
            - experience_hourly_limit
            - unknown_player
            - filtered
          nullable: true
      required:
        - status
      additionalProperties: false
    CreateWorldExperiencePlaceAssistantApplyRequest:
      type: object
      properties:
        changes:
          type: array
          items: {}
        batch:
          type: string
      required:
        - changes
      additionalProperties: false
    CreateWorldExperiencePlaceAssistantApplyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantApplyResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceAssistantApplyResponseData:
      type: object
      properties:
        applied:
          type: number
        rejected:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceActivityRevertResponseDataRejected"
        seq:
          type: number
        activityId:
          type: string
          nullable: true
        duplicate:
          type: boolean
        changes:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantApplyResponseDataChanges"
          description: "Per accepted change: its summary and why it did not apply (empty = applied)."
      required:
        - applied
        - rejected
        - seq
        - duplicate
        - changes
      additionalProperties: false
    CreateWorldExperiencePlaceAssistantApplyResponseDataChanges:
      type: object
      properties:
        index:
          type: number
        summary:
          type: string
        issues:
          type: array
          items:
            type: string
      required:
        - index
        - summary
        - issues
      additionalProperties: false
    CreateWorldExperiencePlaceAssistantRequest:
      type: object
      properties:
        mode:
          type: string
          enum:
            - edit
            - explain
            - build
        question:
          type: string
        scriptPath:
          type: string
        scriptSource:
          type: string
        error:
          type: string
        selection:
          type: array
          items:
            type: string
        history:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantRequestHistory"
        project: {}
        useOwnKey:
          type: boolean
      additionalProperties: false
    CreateWorldExperiencePlaceAssistantRequestHistory:
      type: object
      properties:
        role:
          type: string
          enum:
            - user
            - assistant
        content:
          type: string
      required:
        - role
        - content
      additionalProperties: false
    CreateWorldExperiencePlaceAssistantResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceAssistantResponseData:
      type: object
      properties:
        explanation:
          type: string
        changes:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantResponseDataChangesItem"
          description: Path-based changes as proposed (send the accepted ones back to apply).
        checked:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantResponseDataChecked"
        problems:
          type: array
          items:
            type: string
          description: Changes the model returned that were malformed (dropped).
        applicable:
          type: boolean
        lintErrors:
          type: number
        model:
          type: string
        keySource:
          type: string
          enum:
            - crossly
            - own
          description: "Whose key paid: Crossly's (counted against the plan) or the creator's own."
        allowance:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantResponseDataAllowance"
      required:
        - explanation
        - changes
        - checked
        - problems
        - applicable
        - lintErrors
        - model
        - keySource
      additionalProperties: false
    CreateWorldExperiencePlaceAssistantResponseDataAllowance:
      type: object
      properties:
        ok:
          type: boolean
        reason:
          type: string
          enum:
            - monthly
            - plan
            - daily
          nullable: true
          description: Why not (null when ok).
        message:
          type: string
          nullable: true
        requestsPerDay:
          type: number
        remainingToday:
          type: number
        monthlyMicroUsd:
          type: number
        remainingMicroUsd:
          type: number
        resetsAt:
          type: string
          nullable: true
          description: When the binding cap resets.
      required:
        - ok
        - requestsPerDay
        - remainingToday
        - monthlyMicroUsd
        - remainingMicroUsd
      additionalProperties: false
      nullable: true
    CreateWorldExperiencePlaceAssistantResponseDataChecked:
      type: object
      properties:
        index:
          type: number
        summary:
          type: string
        issues:
          type: array
          items:
            type: string
        lint:
          type: array
          items:
            type: object
            additionalProperties: {}
        diff:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
      required:
        - index
        - summary
        - issues
        - lint
      additionalProperties: false
    CreateWorldExperiencePlaceCheckRequest:
      type: object
      properties:
        project: {}
      required:
        - project
      additionalProperties: false
    CreateWorldExperiencePlaceCheckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceCheckResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceCheckResponseData:
      type: object
      properties:
        scriptsFingerprint:
          type: string
        sells:
          type: boolean
          description: Shop objects present (the money review step applies).
        listingIds:
          type: array
          items:
            type: string
          description: The shop slugs bound to this seller's live listings (discovery/placements.ts records them per version).
        problems:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceCheckResponseDataProblems"
        blocking:
          type: number
        warnings:
          type: number
        budgets:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceCheckResponseDataBudgets"
      required:
        - scriptsFingerprint
        - sells
        - listingIds
        - problems
        - blocking
        - warnings
      additionalProperties: false
    CreateWorldExperiencePlaceCheckResponseDataBudgets:
      type: object
      properties:
        instances:
          type: number
        parts:
          type: number
        meshParts:
          type: number
        tris:
          type: number
        draws:
          type: number
        lights:
          type: number
        scripts:
          type: number
        sounds:
          type: number
        guiObjects:
          type: number
        terrainChunks:
          type: number
          nullable: true
          description: TerrainChunks (their triangles and region draws are in tris/draws).
      required:
        - instances
        - parts
        - meshParts
        - tris
        - draws
        - lights
        - scripts
        - sounds
        - guiObjects
      additionalProperties: false
      nullable: true
    CreateWorldExperiencePlaceCheckResponseDataProblems:
      type: object
      properties:
        id:
          type: string
        severity:
          type: string
          enum:
            - warning
            - error
        source:
          type: string
          enum:
            - settings
            - budget
            - place
            - script
            - commerce
            - ui
        message:
          type: string
        fix:
          type: string
          nullable: true
        path:
          type: string
          nullable: true
          description: Dotted instance path the problem is about ("ServerScripts.Main").
        rule:
          type: string
          nullable: true
        line:
          type: number
          nullable: true
        column:
          type: number
          nullable: true
      required:
        - id
        - severity
        - source
        - message
      additionalProperties: false
    CreateWorldExperiencePlaceCollabOpRequest:
      type: object
      properties:
        ops:
          type: array
          items: {}
        batch:
          type: string
        baseSeq:
          type: number
      required:
        - ops
      additionalProperties: false
    CreateWorldExperiencePlaceCollabOpResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabOpResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceCollabOpResponseData:
      type: object
      properties:
        type:
          type: string
        batch:
          type: string
        seqFrom:
          type: number
          nullable: true
          description: seq of the first applied op (absent when none applied).
        applied:
          type: number
        rejected:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabOpResponseDataRejected"
        seq:
          type: number
      required:
        - type
        - batch
        - applied
        - rejected
        - seq
      additionalProperties: false
    CreateWorldExperiencePlaceCollabOpResponseDataRejected:
      type: object
      properties:
        index:
          type: number
        reason:
          type: string
          enum:
            - source
            - service
            - missing
            - invalid
            - cycle
            - forbidden
            - parent_missing
            - id_taken
        message:
          type: string
      required:
        - index
        - reason
        - message
      additionalProperties: false
    CreateWorldExperiencePlaceCollabSaveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabSaveResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceCollabSaveResponseData:
      type: object
      properties:
        revision:
          type: number
        seq:
          type: number
      required:
        - revision
        - seq
      additionalProperties: false
    CreateWorldExperiencePlaceCollabScriptCommitRequest:
      type: object
      properties:
        source:
          type: string
        baseSource:
          type: string
      additionalProperties: false
    CreateWorldExperiencePlaceCollabScriptCommitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabScriptCommitResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceCollabScriptCommitResponseData:
      type: object
      properties:
        seq:
          type: number
        source:
          type: string
      required:
        - seq
        - source
      additionalProperties: false
    CreateWorldExperiencePlacePackageRequest:
      type: object
      properties:
        packageId:
          type: string
        version:
          type: number
        parentId:
          type: string
        autoUpdate:
          type: boolean
      required:
        - packageId
      additionalProperties: false
    CreateWorldExperiencePlacePackageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlacePackageResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlacePackageResponseData:
      type: object
      properties:
        nodeId:
          type: string
        version:
          type: number
        seq:
          type: number
      required:
        - nodeId
        - version
        - seq
      additionalProperties: false
    CreateWorldExperiencePlacePackageUpdateRequest:
      type: object
      properties:
        version:
          type: number
        force:
          type: boolean
      additionalProperties: false
    CreateWorldExperiencePlacePackageUpdateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlacePackageUpdateResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlacePackageUpdateResponseData:
      type: object
      properties:
        nodeId:
          type: string
        from:
          type: number
        to:
          type: number
        removed:
          type: number
        added:
          type: number
        changedProps:
          type: array
          items:
            type: string
        seq:
          type: number
      required:
        - nodeId
        - from
        - to
        - removed
        - added
        - changedProps
        - seq
      additionalProperties: false
    CreateWorldExperiencePlacePublishRequest:
      type: object
      properties:
        versionId:
          type: string
        notes:
          type: string
      additionalProperties: false
    CreateWorldExperiencePlaceRequest:
      type: object
      properties:
        name:
          type: string
        maxPlayers:
          type: number
        fillTargetPct:
          type: number
        socialSlots:
          type: number
        emptyShutdownS:
          type: number
      additionalProperties: false
    CreateWorldExperiencePlaceStudioEditRequest:
      type: object
      properties:
        edits:
          type: array
          items: {}
        batch:
          type: string
        note:
          type: string
      required:
        - edits
      additionalProperties: false
    CreateWorldExperiencePlaceStudioEditResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioEditResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceStudioEditResponseData:
      type: object
      properties:
        partial:
          type: boolean
        inserted:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioEditResponseDataInserted"
        summaries:
          type: array
          items:
            type: string
        activityId:
          type: string
          nullable: true
        duplicate:
          type: boolean
        type:
          type: string
        batch:
          type: string
        seqFrom:
          type: number
          nullable: true
          description: seq of the first applied op (absent when none applied).
        applied:
          type: number
        rejected:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabOpResponseDataRejected"
        seq:
          type: number
      required:
        - partial
        - inserted
        - summaries
        - duplicate
        - type
        - batch
        - applied
        - rejected
        - seq
      additionalProperties: false
    CreateWorldExperiencePlaceStudioEditResponseDataInserted:
      type: object
      properties:
        index:
          type: number
        path:
          type: string
      required:
        - index
        - path
      additionalProperties: false
    CreateWorldExperiencePlaceStudioInsertAssetRequest:
      type: object
      properties:
        assetId:
          type: string
        parentPath:
          type: string
      required:
        - assetId
      additionalProperties: false
    CreateWorldExperiencePlaceStudioInsertAssetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioInsertAssetResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceStudioInsertAssetResponseData:
      type: object
      properties:
        version:
          type: number
        credits:
          type: array
          items:
            $ref: "#/components/schemas/CreateToolboxAssetUseResponseDataCredits"
        seq:
          type: number
          nullable: true
        paths:
          type: array
          items:
            type: string
      required:
        - version
        - credits
        - paths
      additionalProperties: false
    CreateWorldExperiencePlaceStudioPlaytestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioPlaytestResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceStudioPlaytestResponseData:
      type: object
      properties:
        outputCursor:
          type: number
        next:
          type: string
        version:
          $ref: "#/components/schemas/ListWorldExperiencePlaceVersionsItem"
        join:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioPlaytestResponseDataJoin"
      required:
        - outputCursor
        - next
        - version
        - join
      additionalProperties: false
    CreateWorldExperiencePlaceStudioPlaytestStopResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioPlaytestStopResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceStudioPlaytestStopResponseData:
      type: object
      properties:
        stopped:
          type: array
          items:
            type: string
        stopping:
          type: array
          items:
            type: string
      required:
        - stopped
        - stopping
      additionalProperties: false
    CreateWorldExperiencePlaceStudioPublishRequest:
      type: object
      properties:
        notes:
          type: string
        details:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioPublishRequestDetails"
        ratingAnswers:
          type: object
          additionalProperties: {}
        access:
          type: string
          enum:
            - unlisted
            - public
            - private
            - friends
      additionalProperties: false
    CreateWorldExperiencePlaceStudioPublishRequestDetails:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        genre:
          type: string
        tags:
          type: array
          items:
            type: string
        maxPlayers:
          type: number
        devices:
          type: array
          items:
            type: string
      additionalProperties: false
    CreateWorldExperiencePlaceStudioPublishResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioPublishResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceStudioPublishResponseData:
      type: object
      properties:
        publish:
          $ref: "#/components/schemas/ListWorldExperiencePlacePublishesItem"
        next:
          type: string
        studioUrl:
          type: string
      required:
        - publish
        - next
        - studioUrl
      additionalProperties: false
    CreateWorldExperiencePlaceStudioScriptCommitRequest:
      type: object
      properties:
        path:
          type: string
        source:
          type: string
        baseSource:
          type: string
      required:
        - path
      additionalProperties: false
    CreateWorldExperiencePlaceStudioScriptCommitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioScriptCommitResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceStudioScriptCommitResponseData:
      type: object
      properties:
        path:
          type: string
        nodeId:
          type: string
        seq:
          type: number
        source:
          type: string
        lint:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioScriptCommitResponseDataLint"
      required:
        - path
        - nodeId
        - seq
        - source
        - lint
      additionalProperties: false
    CreateWorldExperiencePlaceStudioScriptCommitResponseDataLint:
      type: object
      properties:
        rule:
          type: string
        severity:
          type: string
          enum:
            - warning
            - error
        message:
          type: string
        fix:
          type: string
          nullable: true
          description: What to do instead, in words.
        from:
          type: number
        to:
          type: number
        line:
          type: number
        column:
          type: number
      required:
        - rule
        - severity
        - message
        - from
        - to
        - line
        - column
      additionalProperties: false
    CreateWorldExperiencePlaceTestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceTestResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePlaceTestResponseData:
      type: object
      properties:
        version:
          $ref: "#/components/schemas/ListWorldExperiencePlaceVersionsItem"
        join:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceTestResponseDataJoin"
      required:
        - version
        - join
      additionalProperties: false
    CreateWorldExperiencePlaceVersionRequest:
      type: object
      properties:
        bundle: {}
        notes:
          type: string
      required:
        - bundle
      additionalProperties: false
    CreateWorldExperiencePlaytesterRequest:
      type: object
      properties:
        handle:
          type: string
      required:
        - handle
      additionalProperties: false
    CreateWorldExperiencePlaytesterResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperiencePlaytestersItem"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceProductRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - product
            - pass
            - subscription
            - private_server
            - paid_access
        name:
          type: string
        priceCents:
          type: number
        description:
          type: string
        iconUrl:
          type: string
          nullable: true
        regionalPrices:
          type: object
          additionalProperties: {}
        placeId:
          type: string
        paidRandom:
          type: boolean
        dropTableId:
          type: string
        hourlyLimit:
          type: number
        active:
          type: boolean
        tradeable:
          type: boolean
      required:
        - kind
        - name
        - priceCents
      additionalProperties: false
    CreateWorldExperiencePublishRolloutRequest:
      type: object
      properties:
        percent:
          type: number
      required:
        - percent
      additionalProperties: false
    CreateWorldExperiencePurchaseRequest:
      type: object
      properties:
        productId:
          type: string
      required:
        - productId
      additionalProperties: false
    CreateWorldExperiencePurchaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperiencePurchaseResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperiencePurchaseResponseData:
      type: object
      properties:
        intentId:
          type: string
        checkoutPath:
          type: string
        priceCents:
          type: number
        taxCents:
          type: number
        totalCents:
          type: number
        currency:
          type: string
      required:
        - intentId
        - checkoutPath
        - priceCents
        - taxCents
        - totalCents
        - currency
      additionalProperties: false
    CreateWorldExperienceReceiptAckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceReceiptAckResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceReceiptAckResponseData:
      type: object
      properties:
        receiptId:
          type: string
        state:
          type: string
        changed:
          type: boolean
          description: This call moved it to granted.
        duplicate:
          type: boolean
          description: "It was already granted: the caller must not grant again."
      required:
        - receiptId
        - state
        - changed
        - duplicate
      additionalProperties: false
    CreateWorldExperienceRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        genre:
          type: string
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        iconUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          description: Carnival Studio › Details (services/worlds/write.ts cleanLists validates the values).
        devices:
          type: array
          items:
            type: string
        languages:
          type: array
          items:
            type: string
        socialLinks:
          type: array
          items:
            $ref: "#/components/schemas/KindUrl"
        template:
          type: string
          nullable: true
      required:
        - name
      additionalProperties: false
    CreateWorldExperienceReservedServerRequest:
      type: object
      properties:
        placeId:
          type: string
        label:
          type: string
        ttlHours:
          type: number
      required:
        - placeId
      additionalProperties: false
    CreateWorldExperienceReservedServerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceReservedServerResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceReservedServerResponseData:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        placeId:
          type: string
        expiresAt:
          type: string
      required:
        - id
        - code
        - placeId
        - expiresAt
      additionalProperties: false
    CreateWorldExperienceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceResponseData:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        description:
          type: string
        genre:
          type: string
        rating:
          type: string
        ratingDescriptors:
          type: array
          items:
            type: string
          description: Content descriptors + interactive elements from the rating questionnaire (0860).
        visibility:
          type: string
        status:
          type: string
        iconUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        devices:
          type: array
          items:
            type: string
        languages:
          type: array
          items:
            type: string
          description: "1170: Details (shared/carnival)."
        socialLinks:
          type: array
          items:
            $ref: "#/components/schemas/KindUrl"
        chatSettings:
          $ref: "#/components/schemas/TextChatFilter"
        template:
          type: string
          nullable: true
        reviewed:
          type: boolean
          description: A person has approved a publish of it (needed before it may be opened to the public).
        createdAt:
          type: string
        updatedAt:
          type: string
        places:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencePlacesItem"
      required:
        - id
        - slug
        - name
        - description
        - genre
        - rating
        - ratingDescriptors
        - visibility
        - status
        - tags
        - devices
        - languages
        - socialLinks
        - chatSettings
        - reviewed
        - createdAt
        - updatedAt
        - places
      additionalProperties: false
    CreateWorldExperienceRewardCloseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceRewardCloseResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceRewardCloseResponseData:
      type: object
      properties:
        refundedCents:
          type: number
        returnedToCardCents:
          type: number
        pool:
          $ref: "#/components/schemas/CreateWorldExperienceRewardCloseResponseDataPool"
      required:
        - refundedCents
        - returnedToCardCents
      additionalProperties: false
    CreateWorldExperienceRewardCloseResponseDataPool:
      type: object
      properties:
        experienceId:
          type: string
        status:
          type: string
          enum:
            - active
            - closed
        balanceCents:
          type: number
        owedCents:
          type: number
        depositedCents:
          type: number
        grantedCents:
          type: number
        refundedCents:
          type: number
        dailyCapCents:
          type: number
        playerDailyCents:
          type: number
        playerDailyGrants:
          type: number
        closedAt:
          type: string
          nullable: true
      required:
        - experienceId
        - status
        - balanceCents
        - owedCents
        - depositedCents
        - grantedCents
        - refundedCents
        - dailyCapCents
        - playerDailyCents
        - playerDailyGrants
      additionalProperties: false
      nullable: true
    CreateWorldExperienceRewardDefinitionRequest:
      type: object
      properties:
        key:
          type: string
        kind:
          type: string
          enum:
            - item
            - cosm
            - decor
            - cbx
            - pin
            - emote
        name:
          type: string
        description:
          type: string
        imageUrl:
          type: string
          nullable: true
        cosmeticId:
          type: string
        amount:
          type: number
        perPlayerDaily:
          type: number
        active:
          type: boolean
      required:
        - key
        - kind
        - name
      additionalProperties: false
    CreateWorldExperienceRewardDefinitionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceRewardDefinitionResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceRewardDefinitionResponseData:
      type: object
      properties:
        id:
          type: string
        key:
          type: string
        kind:
          type: string
          enum:
            - item
            - cosm
            - decor
            - cbx
            - pin
            - emote
        name:
          type: string
        description:
          type: string
        imageUrl:
          type: string
          nullable: true
        cosmeticId:
          type: string
          nullable: true
        amount:
          type: number
          nullable: true
        perPlayerDaily:
          type: number
        active:
          type: boolean
        updatedAt:
          type: string
      required:
        - id
        - key
        - kind
        - name
        - description
        - perPlayerDaily
        - active
        - updatedAt
      additionalProperties: false
    CreateWorldExperienceRewardDepositRequest:
      type: object
      properties:
        amountCents:
          type: number
        idempotencyKey:
          type: string
      required:
        - amountCents
        - idempotencyKey
      additionalProperties: false
    CreateWorldExperienceRewardDepositResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceRewardDepositResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceRewardDepositResponseData:
      type: object
      properties:
        depositId:
          type: string
        amountCents:
          type: number
        duplicate:
          type: boolean
        pool:
          $ref: "#/components/schemas/CreateWorldExperienceRewardDepositResponseDataPool"
      required:
        - depositId
        - amountCents
        - duplicate
        - pool
      additionalProperties: false
    CreateWorldExperienceRewardDepositResponseDataPool:
      type: object
      properties:
        experienceId:
          type: string
        status:
          type: string
          enum:
            - active
            - closed
        balanceCents:
          type: number
        owedCents:
          type: number
        depositedCents:
          type: number
        grantedCents:
          type: number
        refundedCents:
          type: number
        dailyCapCents:
          type: number
        playerDailyCents:
          type: number
        playerDailyGrants:
          type: number
        closedAt:
          type: string
          nullable: true
      required:
        - experienceId
        - status
        - balanceCents
        - owedCents
        - depositedCents
        - grantedCents
        - refundedCents
        - dailyCapCents
        - playerDailyCents
        - playerDailyGrants
      additionalProperties: false
    CreateWorldExperienceRewardTopupResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperienceRewardTopupsItem"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceServerShutdownRequest:
      type: object
      properties:
        mode:
          type: string
          enum:
            - soft
            - hard
        scope:
          type: string
          enum:
            - all
            - outdated
        placeId:
          type: string
        deadlineS:
          type: number
        reason:
          type: string
      additionalProperties: false
    CreateWorldExperienceServerShutdownResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceServerShutdownResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldExperienceServerShutdownResponseData:
      type: object
      properties:
        mode:
          type: string
          enum:
            - soft
            - hard
        scope:
          type: string
          enum:
            - all
            - outdated
        moving:
          type: number
          description: Servers asked to move their players on.
        draining:
          type: number
          description: Servers draining as they empty (reserved / test servers under a soft shutdown).
        stopped:
          type: number
          description: Servers stopped outright (hard, or never came up).
        deadlineAt:
          type: string
          nullable: true
      required:
        - mode
        - scope
        - moving
        - draining
        - stopped
      additionalProperties: false
    CreateWorldExperienceTransferRequestRequest:
      type: object
      properties:
        to:
          type: string
        note:
          type: string
      required:
        - to
      additionalProperties: false
    CreateWorldFollowResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWeb3LaunchFollowCreatorResponse"
      required:
        - data
      additionalProperties: false
    CreateWorldFriendInviteRequest:
      type: object
      required:
        - slug
      properties:
        slug:
          type: string
          minLength: 1
          maxLength: 64
    CreateWorldFriendInviteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldFriendInviteResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldFriendInviteResponseData:
      type: object
      properties:
        invited:
          type: boolean
      required:
        - invited
      additionalProperties: false
    CreateWorldGamePackageCheckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGamePackageCheckResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGamePackageCheckResponseData:
      type: object
      properties:
        ok:
          type: boolean
        issues:
          type: array
          items:
            $ref: "#/components/schemas/PathMessage"
        fits:
          $ref: "#/components/schemas/CreateWorldGamePackageCheckResponseDataFits"
        totalBytes:
          type: number
        manifest:
          $ref: "#/components/schemas/CreateWorldGamePackageCheckResponseDataManifest"
      required:
        - ok
        - issues
        - fits
        - totalBytes
      additionalProperties: false
    CreateWorldGamePackageCheckResponseDataFits:
      type: object
      properties:
        desktop:
          type: boolean
        phone:
          type: boolean
      required:
        - desktop
        - phone
      additionalProperties: false
    CreateWorldGamePackageCheckResponseDataManifest:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        version:
          type: string
        mode:
          type: string
          enum:
            - object
            - table
            - arena
      required:
        - id
        - name
        - version
        - mode
      additionalProperties: false
      nullable: true
    CreateWorldGamePackagePublishRequest:
      type: object
      properties:
        version:
          type: string
      required:
        - version
      additionalProperties: false
    CreateWorldGamePackagePublishResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGamePackagePublishResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGamePackagePublishResponseData:
      type: object
      properties:
        semver:
          type: string
        live:
          type: boolean
        published:
          type: boolean
      required:
        - semver
        - live
        - published
      additionalProperties: false
    CreateWorldGamePackageRequest:
      type: object
      properties:
        files:
          type: array
          items:
            $ref: "#/components/schemas/PathBase64"
        piecePriceBaseUnits:
          type: string
        maxSupply:
          type: number
          nullable: true
        submit:
          type: boolean
          description: "false: store it as a DRAFT, checked but not queued for review (games/lifecycle.ts submits it later)."
      required:
        - files
      additionalProperties: false
    CreateWorldGamePackageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGamePackageResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGamePackageResponseData:
      type: object
      properties:
        package:
          $ref: "#/components/schemas/CreateWorldGamePackageResponseDataPackage"
        version:
          $ref: "#/components/schemas/CreateWorldGamePackageResponseDataVersion"
        store:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldGamePackageResponseDataStore"
        fits:
          $ref: "#/components/schemas/CreateWorldGamePackageCheckResponseDataFits"
        phoneCopies:
          type: number
        wireCopies:
          type: number
      required:
        - package
        - version
        - store
        - fits
        - phoneCopies
        - wireCopies
      additionalProperties: false
    CreateWorldGamePackageResponseDataPackage:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        designId:
          type: string
      required:
        - id
        - slug
        - designId
      additionalProperties: false
    CreateWorldGamePackageResponseDataStore:
      type: object
      properties:
        itemId:
          type: string
        kind:
          type: string
        name:
          type: string
        priceCents:
          type: number
        cosmeticId:
          type: string
      required:
        - itemId
        - kind
        - name
        - priceCents
        - cosmeticId
      additionalProperties: false
    CreateWorldGamePackageResponseDataVersion:
      type: object
      properties:
        id:
          type: string
        semver:
          type: string
        designVersion:
          type: number
          nullable: true
        state:
          type: string
      required:
        - id
        - semver
        - state
      additionalProperties: false
    CreateWorldGamePackageRestoreResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGamePackageRestoreResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGamePackageRestoreResponseData:
      type: object
      properties:
        restored:
          type: boolean
        deletedAt:
          nullable: true
      required:
        - restored
        - deletedAt
      additionalProperties: false
    CreateWorldGamePackageUnpublishResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGamePackageUnpublishResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGamePackageUnpublishResponseData:
      type: object
      properties:
        published:
          type: boolean
        unpublishedAt:
          type: string
          format: date-time
      required:
        - published
        - unpublishedAt
      additionalProperties: false
    CreateWorldGamePackageVersionSubmitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGamePackageVersionSubmitResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGamePackageVersionSubmitResponseData:
      type: object
      properties:
        semver:
          type: string
        state:
          type: string
          enum:
            - draft
            - pending
            - cancelled
            - rejected
            - approved
            - withdrawn
        designVersion:
          type: number
      required:
        - semver
        - state
        - designVersion
      additionalProperties: false
    CreateWorldGameRatingRequest:
      type: object
      properties:
        stars:
          type: number
      required:
        - stars
      additionalProperties: false
    CreateWorldGameRatingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGameRatingResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGameRatingResponseData:
      type: object
      properties:
        mine:
          type: number
        stars:
          $ref: "#/components/schemas/AverageCount"
      required:
        - mine
        - stars
      additionalProperties: false
    CreateWorldGameReportRequest:
      type: object
      properties:
        reason:
          type: string
        detail:
          type: string
      required:
        - reason
      additionalProperties: false
    CreateWorldGameReportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGameReportResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGameReportResponseData:
      type: object
      properties:
        reported:
          type: boolean
      required:
        - reported
      additionalProperties: false
    CreateWorldGameStoreCheckoutResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGameStoreCheckoutResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGameStoreCheckoutResponseData:
      type: object
      properties:
        clientSecret:
          type: string
        paymentIntentId:
          type: string
        priceCents:
          type: number
          description: What the SKU costs, priced here and never by the caller.
        currency:
          type: string
      required:
        - clientSecret
        - paymentIntentId
        - priceCents
        - currency
      additionalProperties: false
    CreateWorldGrailMatchRequest:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        inventoryIds:
          type: array
          items:
            type: string
        skuIds:
          type: array
          items:
            type: string
      additionalProperties: false
    CreateWorldGrailMatchResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldGrailMatchResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldGrailMatchResponseData:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        inventoryIds:
          type: array
          items:
            type: string
        skuIds:
          type: array
          items:
            type: string
      required:
        - listingIds
        - inventoryIds
        - skuIds
      additionalProperties: false
    CreateWorldHallLoanRequest:
      type: object
      properties:
        vaultItemId:
          type: string
        credit:
          type: string
          enum:
            - name
            - anonymous
          x-enum-varnames:
            - nameOption
            - anonymous
      required:
        - vaultItemId
      additionalProperties: false
    CreateWorldHallLoanResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldHallLoanResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldHallLoanResponseData:
      type: object
      properties:
        id:
          type: string
        exhibition:
          type: string
        endsAt:
          type: string
      required:
        - id
        - exhibition
        - endsAt
      additionalProperties: false
    CreateWorldHomeAskRequest:
      type: object
      properties:
        ref:
          $ref: "#/components/schemas/GetWorldHomePlaceableResponseDataItemsRef"
      required:
        - ref
      additionalProperties: false
    CreateWorldHomeAskResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldHomeAskResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldHomeAskResponseData:
      type: object
      properties:
        sent:
          type: string
          enum:
            - message
            - notice
      required:
        - sent
      additionalProperties: false
    CreateWorldHomeGuestbookReportRequest:
      type: object
      properties:
        reason:
          type: string
          enum:
            - other
            - scam
            - harassment
            - sexual
            - spam
            - hate
            - impersonation
        detail:
          type: string
      required:
        - reason
      additionalProperties: false
    CreateWorldHomeGuestbookResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldHomeGuestbookResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldHomeGuestbookResponseData:
      type: object
      properties:
        id:
          type: string
        author:
          $ref: "#/components/schemas/GetHomeResponseGuestbookAuthor"
        body:
          type: string
        createdAt:
          type: string
        mine:
          type: boolean
      required:
        - id
        - author
        - body
        - createdAt
        - mine
      additionalProperties: false
    CreateWorldInteractiveAssetRequest:
      type: object
      properties:
        kind:
          type: string
        dataBase64:
          type: string
        purpose:
          type: string
          enum:
            - product
            - game
      required:
        - kind
        - dataBase64
      additionalProperties: false
    CreateWorldInteractiveAssetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldInteractiveAssetResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldInteractiveAssetResponseData:
      type: object
      properties:
        sha256:
          type: string
        kind:
          type: string
          enum:
            - glb
            - png
            - wav
        bytes:
          type: number
        path:
          type: string
      required:
        - sha256
        - kind
        - bytes
        - path
      additionalProperties: false
    CreateWorldInteractiveDesignCheckResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldInteractiveDesignCheckResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldInteractiveDesignCheckResponseData:
      type: object
      properties:
        ok:
          type: boolean
        errors:
          type: array
          items:
            $ref: "#/components/schemas/LineMessage"
        warnings:
          type: array
          items:
            $ref: "#/components/schemas/LineMessage"
        stats:
          $ref: "#/components/schemas/GetWorldInteractiveDesignResponseDataValidationStats"
        dryRun:
          type: string
          nullable: true
      required:
        - ok
        - errors
        - warnings
        - stats
      additionalProperties: false
    CreateWorldInteractiveDesignPreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldInteractiveDesignPreviewResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldInteractiveDesignPreviewResponseData:
      type: object
      properties:
        socketPath:
          type: string
        sandbox:
          type: string
        validation:
          $ref: "#/components/schemas/GetWorldInteractiveDesignResponseDataValidation"
        token:
          type: string
        expiresAt:
          type: string
      required:
        - socketPath
        - sandbox
        - validation
        - token
        - expiresAt
      additionalProperties: false
    CreateWorldInteractiveDesignRequest:
      type: object
      properties:
        name:
          type: string
        footprint:
          type: string
          enum:
            - f
            - l
            - m
            - s
        priceBaseUnits:
          type: string
          description: COSM base units as a STRING (bigint, six decimals).
        tint:
          type: string
        description:
          type: string
        maxSupply:
          type: number
          nullable: true
        source:
          type: string
      required:
        - name
        - footprint
        - priceBaseUnits
      additionalProperties: false
    CreateWorldInteractiveDesignSubmitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldInteractiveDesignSubmitResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldInteractiveDesignSubmitResponseData:
      type: object
      properties:
        version:
          $ref: "#/components/schemas/CreateWorldInteractiveDesignSubmitResponseDataVersion"
        cosmeticId:
          type: string
      required:
        - version
        - cosmeticId
      additionalProperties: false
    CreateWorldInteractiveDesignSubmitResponseDataVersion:
      type: object
      properties:
        source:
          type: string
          nullable: true
        id:
          type: string
        version:
          type: number
        state:
          type: string
        sha256:
          type: string
        bytes:
          type: number
        report:
          $ref: "#/components/schemas/CreateWorldInteractiveDesignSubmitResponseDataVersionReport"
        submittedAt:
          type: string
          format: date-time
        decisionNote:
          type: string
          nullable: true
        decidedAt:
          type: string
          format: date-time
          nullable: true
        withdrawnAt:
          type: string
          format: date-time
          nullable: true
        withdrawnReason:
          type: string
          nullable: true
      required:
        - id
        - version
        - state
        - sha256
        - bytes
        - report
        - submittedAt
      additionalProperties: false
    CreateWorldInteractiveDesignSubmitResponseDataVersionReport:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
        warnings:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
        stats:
          $ref: "#/components/schemas/CreateWorldInteractiveDesignSubmitResponseDataVersionReportStats"
        dryRun:
          type: string
          nullable: true
          description: "The dry run's result: 'dryrun_ok', or the reason the document was killed."
      additionalProperties: false
    CreateWorldInteractiveDesignSubmitResponseDataVersionReportStats:
      type: object
      properties:
        bytes:
          type: number
        elements:
          type: number
        scripts:
          type: number
        assets:
          type: array
          items:
            type: string
      required:
        - bytes
        - elements
        - scripts
        - assets
      additionalProperties: false
      nullable: true
    CreateWorldInteractiveResetRequest:
      type: object
      properties:
        instanceId:
          type: string
      required:
        - instanceId
      additionalProperties: false
    CreateWorldInteractiveResetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldInteractiveResetResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldInteractiveResetResponseData:
      type: object
      properties:
        reset:
          type: boolean
      required:
        - reset
      additionalProperties: false
    CreateWorldJobAppraisalAnswerRequest:
      type: object
      properties:
        valueCents:
          type: number
        note:
          type: string
          nullable: true
      required:
        - valueCents
      additionalProperties: false
    CreateWorldJobAppraisalAnswerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldJobAppraisalAnswerResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldJobAppraisalAnswerResponseData:
      type: object
      properties:
        id:
          type: string
        valueCents:
          type: number
      required:
        - id
        - valueCents
      additionalProperties: false
    CreateWorldJobShiftClaimResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListJobShiftsItem"
      required:
        - data
      additionalProperties: false
    CreateWorldJobShiftReleaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldJobShiftReleaseResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldJobShiftReleaseResponseData:
      type: object
      properties:
        released:
          type: boolean
      required:
        - released
      additionalProperties: false
    CreateWorldMarketBuyRequest:
      type: object
      properties:
        rail:
          type: string
          enum:
            - cash
            - cbx
          nullable: true
        attemptId:
          type: string
          nullable: true
          description: "A client-made id per attempt: resending it after 3-D Secure never charges twice."
        showroomId:
          type: string
          nullable: true
        autopay:
          type: boolean
      additionalProperties: false
    CreateWorldMarketBuyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldMarketBuyResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldMarketListingRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - plot
            - street
        id:
          type: string
          description: plot id or street id.
        mode:
          type: string
          enum:
            - sale
            - rent
        priceCents:
          type: number
      required:
        - kind
        - id
        - mode
        - priceCents
      additionalProperties: false
    CreateWorldMarketListingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldMarketListingResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldMarketPlotRentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldMarketPlotRentResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldMarketPlotRentResponseDataOneOf2Placed:
      type: object
      properties:
        plotId:
          type: string
        street:
          type: string
          description: The street's slug.
        number:
          type: number
        label:
          type: string
          description: '"12 Main Street".'
        tenure:
          type: string
          enum:
            - owned
            - rented
      required:
        - plotId
        - street
        - number
        - label
        - tenure
      additionalProperties: false
      nullable: true
    CreateWorldMatureVerifyRequest:
      type: object
      properties:
        returnPath:
          type: string
      additionalProperties: false
    CreateWorldMatureVerifyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldMatureVerifyResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldMeReceiptRefundResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldMeReceiptRefundResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldMeReceiptRefundResponseData:
      type: object
      properties:
        refundedCents:
          type: number
      required:
        - refundedCents
      additionalProperties: false
    CreateWorldMeSubscriptionCancelResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldMeSubscriptionsItem"
      required:
        - data
      additionalProperties: false
    CreateWorldMeSubscriptionPrivateServerCodeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldMeSubscriptionPrivateServerCodeResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldMeSubscriptionPrivateServerCodeResponseData:
      type: object
      properties:
        code:
          type: string
        placeId:
          type: string
        expiresAt:
          type: string
      required:
        - code
        - placeId
        - expiresAt
      additionalProperties: false
    CreateWorldOutfitApplyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldOutfitApplyResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldOutfitApplyResponseData:
      type: object
      properties:
        appearance:
          $ref: "#/components/schemas/ListWorldOutfitsItemAppearance"
        applied:
          type: array
          items:
            type: string
          description: Labels put on.
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldOutfitApplyResponseDataSkipped"
          description: Labels not put on, and why ("you no longer own it").
        cleared:
          type: array
          items:
            type: string
          description: Slots emptied because the preset had nothing there.
      required:
        - appearance
        - applied
        - skipped
        - cleared
      additionalProperties: false
    CreateWorldOutfitApplyResponseDataSkipped:
      type: object
      properties:
        label:
          type: string
        reason:
          type: string
      required:
        - label
        - reason
      additionalProperties: false
    CreateWorldOutfitRequest:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 32
        appearance:
          type: object
          additionalProperties: {}
    CreateWorldOutfitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldOutfitResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldOutfitResponseData:
      type: object
      properties:
        preset:
          $ref: "#/components/schemas/CreateWorldOutfitResponseDataPreset"
        skipped:
          type: array
          items:
            type: string
          description: Worn things that could not be traced to something you own (and so were not saved).
      required:
        - preset
        - skipped
      additionalProperties: false
    CreateWorldOutfitResponseDataPreset:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        appearance:
          $ref: "#/components/schemas/CreateWorldOutfitResponseDataPresetAppearance"
        items:
          type: array
          items:
            type: object
            additionalProperties: {}
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - appearance
        - items
        - createdAt
        - updatedAt
      additionalProperties: false
    CreateWorldOutfitResponseDataPresetAppearance:
      type: object
      properties:
        skin:
          type: string
        hair:
          type: string
        hairColour:
          type: string
        eyes:
          type: string
        build:
          type: string
        brows:
          type: string
          nullable: true
          description: "Face presets (BROW_STYLES, MOUTH_RESTS). Optional: a look saved before they existed is the defaults."
        mouth:
          type: string
          nullable: true
        shape:
          type: string
          nullable: true
          description: A body shape (BODY_SHAPES). Optional, like the face presets.
        outfit:
          type: object
          nullable: true
          description: |-
            The basic outfit (basic-wardrobe.ts): what this person wears in every
            slot nothing they own fills. Absent means never chosen -- the client
            seeds one (`outfitFor`) and keeps it, so nobody stands bare and a crowd
            of newcomers is not one outfit repeated.
          additionalProperties: {}
      required:
        - skin
        - hair
        - hairColour
        - eyes
        - build
      additionalProperties: false
    CreateWorldPackageRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        notes:
          type: string
        node: {}
        from:
          $ref: "#/components/schemas/CreateWorldPackageRequestFrom"
      required:
        - name
      additionalProperties: false
    CreateWorldPackageRequestFrom:
      type: object
      properties:
        experienceId:
          type: string
        placeId:
          type: string
        nodeId:
          type: string
      required:
        - experienceId
        - placeId
        - nodeId
      additionalProperties: false
    CreateWorldPackageToolboxRequest:
      type: object
      properties:
        priceCents:
          type: number
        tags:
          type: array
          items:
            type: string
        notes:
          type: string
      additionalProperties: false
    CreateWorldPackageToolboxResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldPackageToolboxResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldPackageToolboxResponseData:
      type: object
      properties:
        toolboxAssetId:
          type: string
      required:
        - toolboxAssetId
      additionalProperties: false
    CreateWorldPackageVersionRequest:
      type: object
      properties:
        notes:
          type: string
        node: {}
        from:
          $ref: "#/components/schemas/CreateWorldPackageRequestFrom"
      additionalProperties: false
    CreateWorldPackageVersionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldPackageVersionResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldPackageVersionResponseData:
      type: object
      properties:
        package:
          $ref: "#/components/schemas/ListWorldPackagesItem"
        version:
          $ref: "#/components/schemas/GetWorldPackageResponseDataVersions"
        propagation:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldPackageVersionResponseDataPropagation"
          description: "One entry per place that holds copies: what the auto-update did there."
        unchanged:
          type: boolean
          description: "The new version had the same content as the latest: nothing was published."
      required:
        - package
        - version
        - propagation
        - unchanged
      additionalProperties: false
    CreateWorldPackageVersionResponseDataPropagation:
      type: object
      properties:
        placeId:
          type: string
        experienceId:
          type: string
        updated:
          type: number
        skippedModified:
          type: number
          description: Auto-updating copies left alone because they were edited in the place.
        pinned:
          type: number
          description: 'Copies with auto-update off: they show "update available".'
        error:
          type: string
          nullable: true
      required:
        - placeId
        - experienceId
        - updated
        - skippedModified
        - pinned
      additionalProperties: false
    CreateWorldParentalAcceptRequest:
      type: object
      properties:
        code:
          type: string
        pin:
          type: string
      required:
        - code
        - pin
      additionalProperties: false
    CreateWorldParentalChildrenPinRequest:
      type: object
      properties:
        pin:
          type: string
        newPin:
          type: string
      required:
        - pin
        - newPin
      additionalProperties: false
    CreateWorldParentalChildrenPinResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldParentalChildrenPinResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldParentalChildrenPinResponseData:
      type: object
      properties:
        changed:
          type: boolean
      required:
        - changed
      additionalProperties: false
    CreateWorldParentalChildrenUnlinkRequest:
      type: object
      properties:
        pin:
          type: string
      required:
        - pin
      additionalProperties: false
    CreateWorldParentalChildrenUnlinkResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldParentalChildrenUnlinkResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldParentalChildrenUnlinkResponseData:
      type: object
      properties:
        unlinked:
          type: boolean
      required:
        - unlinked
      additionalProperties: false
    CreateWorldParentalInviteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldParentalInviteResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldParentalInviteResponseData:
      type: object
      properties:
        code:
          type: string
        expiresAt:
          type: string
        acceptPath:
          type: string
      required:
        - code
        - expiresAt
        - acceptPath
      additionalProperties: false
    CreateWorldPartyChatRequest:
      type: object
      properties:
        text:
          type: string
      required:
        - text
      additionalProperties: false
    CreateWorldPartyInviteAcceptResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldPartyInviteAcceptResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldPartyInviteAcceptResponseData:
      type: object
      properties:
        partyId:
          type: string
      required:
        - partyId
      additionalProperties: false
    CreateWorldPartyInviteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateVaultMarketGiftResponse"
      required:
        - data
      additionalProperties: false
    CreateWorldPartyKickResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldPartyKickResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldPartyKickResponseData:
      type: object
      properties:
        removed:
          type: string
      required:
        - removed
      additionalProperties: false
    CreateWorldPartyLeaderResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldPartyLeaderResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldPartyLeaderResponseData:
      type: object
      properties:
        leader:
          type: string
      required:
        - leader
      additionalProperties: false
    CreateWorldPartyLeaveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldPartyLeaveResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldPartyLeaveResponseData:
      type: object
      properties:
        disbanded:
          type: boolean
      required:
        - disbanded
      additionalProperties: false
    CreateWorldPartyWishlistItem:
      type: object
      properties:
        listingId:
          type: string
        slug:
          type: string
          nullable: true
          description: The shop slug (/shop/:slug), null when the listing is no longer live.
        title:
          type: string
        priceCents:
          type: number
          nullable: true
        imageUrl:
          type: string
          nullable: true
        addedBy:
          type: string
        addedByName:
          type: string
        createdAt:
          type: string
        votes:
          type: object
          description: userId -> vote, for every member who voted.
          additionalProperties: {}
        up:
          type: number
        down:
          type: number
      required:
        - listingId
        - title
        - addedBy
        - addedByName
        - createdAt
        - votes
        - up
        - down
      additionalProperties: false
    CreateWorldPartyWishlistRequest:
      type: object
      properties:
        listingId:
          type: string
        slug:
          type: string
    CreateWorldPartyWishlistResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldPartyWishlistItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    CreateWorldPlaceItemWantResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldPlaceItemWantResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldPlaceItemWantResponseData:
      type: object
      properties:
        wanted:
          type: boolean
      required:
        - wanted
      additionalProperties: false
    CreateWorldPropertyPlotPhotoUploadUrlRequest:
      type: object
      properties:
        contentType:
          type: string
          enum:
            - image/jpeg
            - image/png
            - image/webp
        contentLength:
          type: number
      required:
        - contentType
        - contentLength
      additionalProperties: false
    CreateWorldPropertyPlotPhotoUploadUrlResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldPropertyPlotPhotoUploadUrlResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldPropertyPlotPhotoUploadUrlResponseData:
      type: object
      properties:
        uploadUrl:
          type: string
        publicUrl:
          type: string
        buildKey:
          type: string
      required:
        - uploadUrl
        - publicUrl
        - buildKey
      additionalProperties: false
    CreateWorldPropertyPlotShowroomRequest:
      type: object
      properties:
        showroomId:
          type: string
      required:
        - showroomId
      additionalProperties: false
    CreateWorldPropertyPlotShowroomResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateShowroomPlacementResponseDataPlacements"
      required:
        - data
      additionalProperties: false
    CreateWorldPropertyTrespassedRequest:
      type: object
      properties:
        scope:
          type: string
          enum:
            - owner
            - place
        userId:
          type: string
          nullable: true
        handle:
          type: string
          nullable: true
        showroomId:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
      required:
        - scope
      additionalProperties: false
    CreateWorldRatingComputeRequest:
      type: object
      properties:
        answers:
          type: object
          additionalProperties: {}
      required:
        - answers
      additionalProperties: false
    CreateWorldRatingComputeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldRatingComputeResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldRatingComputeResponseData:
      type: object
      properties:
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
          nullable: true
          description: null = the answers include something never allowed on Crossly (see `refused`).
        reasons:
          type: array
          items:
            type: string
          description: Why the rating is what it is (each answer that raised it).
        refused:
          type: array
          items:
            type: string
          description: Answers that can never be published, at any rating.
        descriptors:
          type: array
          items:
            type: string
          description: Content descriptors shown on every surface next to the badge (IARC style).
        notices:
          type: array
          items:
            type: string
          description: Interactive elements shown next to the rating (IARC interactive elements).
        answers:
          $ref: "#/components/schemas/CreateWorldRatingComputeResponseDataAnswers"
      required:
        - reasons
        - refused
        - descriptors
        - notices
        - answers
      additionalProperties: false
    CreateWorldRatingComputeResponseDataAnswers:
      type: object
      properties:
        version:
          type: number
          nullable: true
          description: Present (2) on every answer set written since Mature; absent = version 1.
        violence:
          type: string
          enum:
            - none
            - cartoon
            - realistic
            - intense
            - gore
        blood:
          type: string
          enum:
            - none
            - strong
            - mild
          description: Blood shown when characters are hurt.
        fear:
          type: string
          enum:
            - none
            - strong
            - moderate
            - mild
        crudeHumour:
          type: string
          enum:
            - none
            - strong
            - moderate
            - mild
          description: Crude humour / innuendo (never sexual content).
        language:
          type: string
          enum:
            - none
            - strong
            - mild
          description: Strong language written into the experience (player chat is filtered separately).
        romance:
          type: string
          enum:
            - none
            - strong
            - mild
            - sexual
          description: Romantic themes. Sexual content and nudity are never allowed on Crossly.
        nudity:
          type: boolean
          description: Nudity of any kind (never allowed).
        substances:
          type: string
          enum:
            - none
            - use
            - references
          description: References to alcohol, tobacco or drugs.
        simulatedGambling:
          type: boolean
          description: Simulated gambling with no real-money value.
        realMoneyGambling:
          type: boolean
          description: Wagering anything bought with money, or prizes redeemable for money or goods (never allowed).
        userInteraction:
          type: boolean
          description: Players can chat or share user-made text / creations.
        purchases:
          type: boolean
          description: Real-world commerce happens (shop objects / purchases).
        randomItems:
          type: boolean
          description: Paid random items (loot boxes) are sold.
      required:
        - violence
        - blood
        - fear
        - crudeHumour
        - language
        - romance
        - nudity
        - substances
        - simulatedGambling
        - realMoneyGambling
        - userInteraction
        - purchases
        - randomItems
      additionalProperties: false
    CreateWorldReportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldReportResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldReportResponseData:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        status:
          type: string
        conformance:
          type: boolean
        message:
          type: string
        createdAt:
          type: string
      required:
        - id
        - experienceId
        - status
        - conformance
        - message
        - createdAt
      additionalProperties: false
    CreateWorldSpaceEventRequest:
      type: object
      properties:
        title:
          type: string
        kind:
          type: string
          enum:
            - live_sale
            - meetup
            - trade_night
            - tournament
            - show_and_tell
            - drive
            - slab_reveal
        startsAt:
          type: string
        endsAt:
          type: string
        about:
          type: string
        clubOnly:
          type: boolean
      required:
        - title
        - kind
        - startsAt
        - endsAt
      additionalProperties: false
    CreateWorldSpaceEventResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldSpaceEventResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldSpaceEventResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        kind:
          type: string
        title:
          type: string
        endsAt:
          type: string
          format: date-time
        cancelledAt:
          type: string
          format: date-time
          nullable: true
        startsAt:
          type: string
          format: date-time
        createdBy:
          type: string
          nullable: true
        about:
          type: string
          nullable: true
        spaceId:
          type: string
        remindedAt:
          type: string
          format: date-time
          nullable: true
        clubOnly:
          type: boolean
      required:
        - id
        - createdAt
        - kind
        - title
        - endsAt
        - startsAt
        - spaceId
        - clubOnly
      additionalProperties: false
    CreateWorldSpaceEventRsvpRequest:
      type: object
      properties:
        going:
          type: boolean
      required:
        - going
      additionalProperties: false
    CreateWorldSpaceEventRsvpResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldSpaceEventRsvpRequest"
      required:
        - data
      additionalProperties: false
    CreateWorldSpaceInviteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldSpaceInviteResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldSpaceInviteResponseData:
      type: object
      properties:
        invited:
          type: string
      required:
        - invited
      additionalProperties: false
    CreateWorldSpaceJoinResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/StatusResponse"
      required:
        - data
      additionalProperties: false
    CreateWorldSpaceRequest:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        venue:
          type: string
          enum:
            - stage
            - gallery
            - card_club
            - sneaker_meet
            - vintage_market
            - clubhouse
        membership:
          type: string
          enum:
            - open
            - request
            - invite
        about:
          type: string
      required:
        - slug
        - name
        - venue
      additionalProperties: false
    CreateWorldSpaceRequestByUserIdRequest:
      type: object
      properties:
        accept:
          type: boolean
      required:
        - accept
      additionalProperties: false
    CreateWorldSpaceRequestByUserIdResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldSpaceRequestByUserIdResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldSpaceRequestByUserIdResponseData:
      type: object
      properties:
        accepted:
          type: boolean
      required:
        - accepted
      additionalProperties: false
    CreateWorldSpaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldSpaceResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldSpaceResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        status:
          type: string
        slug:
          type: string
        about:
          type: string
          nullable: true
        venue:
          type: string
        hostUserId:
          type: string
        gateChain:
          type: string
          nullable: true
        gateContract:
          type: string
          nullable: true
        gateName:
          type: string
          nullable: true
        membership:
          type: string
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - status
        - slug
        - venue
        - hostUserId
        - membership
      additionalProperties: false
    CreateWorldSpaceRoleRequest:
      type: object
      properties:
        userId:
          type: string
        role:
          type: string
          enum:
            - member
            - cohost
      required:
        - userId
        - role
      additionalProperties: false
    CreateWorldSpaceRoleResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldSpaceRoleRequest"
      required:
        - data
      additionalProperties: false
    CreateWorldStaffApplicationDecideRequest:
      type: object
      properties:
        decision:
          type: string
          enum:
            - accept
            - decline
      required:
        - decision
      additionalProperties: false
    CreateWorldStaffApplicationDecideResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldStaffApplicationDecideResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldStaffApplicationDecideResponseData:
      type: object
      properties:
        status:
          type: string
        shifts:
          type: number
      required:
        - status
        - shifts
      additionalProperties: false
    CreateWorldStaffAssignmentRateWorkerRequest:
      type: object
      properties:
        reliability:
          type: number
        skill:
          type: number
        conduct:
          type: number
        comment:
          type: string
          nullable: true
      required:
        - reliability
        - skill
        - conduct
      additionalProperties: false
    CreateWorldStaffAssignmentRateWorkerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldStaffAssignmentRateWorkerResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldStaffAssignmentRateWorkerResponseData:
      type: object
      properties:
        rated:
          type: boolean
      required:
        - rated
      additionalProperties: false
    CreateWorldStaffPostingRequest:
      type: object
      properties:
        targetKind:
          type: string
          enum:
            - showroom
            - convention
            - stall
        targetId:
          type: string
        role:
          type: string
          enum:
            - host
            - stock
            - floor
            - appraiser
            - greeter
            - cashier
            - stylist
            - security
        title:
          type: string
        visibility:
          type: string
          enum:
            - public
            - private
        pay:
          $ref: "#/components/schemas/CreateWorldStaffPostingRequestPay"
        timezone:
          type: string
        recurrence:
          $ref: "#/components/schemas/CreateWorldStaffPostingRequestRecurrence"
        startsAt:
          type: string
        endsAt:
          type: string
        maxStaff:
          type: number
        description:
          type: string
          nullable: true
        whitelist:
          $ref: "#/components/schemas/CreateWorldStaffPostingRequestWhitelist"
        blacklist:
          type: array
          items:
            type: string
        minWorkerRep:
          type: number
          nullable: true
        requiredBadges:
          type: array
          items:
            type: string
        autoApprove:
          $ref: "#/components/schemas/CreateWorldStaffPostingRequestAutoApprove"
        breaks:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataBreaks"
        checkIn:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataCheckIn"
        noShow:
          $ref: "#/components/schemas/PenaltyRepStrikesToBlock"
        notes:
          type: string
          nullable: true
      required:
        - targetKind
        - targetId
        - role
        - title
        - visibility
        - pay
        - timezone
        - recurrence
        - startsAt
        - endsAt
        - maxStaff
      additionalProperties: false
    CreateWorldStaffPostingRequestAutoApprove:
      type: object
      properties:
        minRep:
          type: number
          nullable: true
        teamMembers:
          type: boolean
        previousWorkers:
          type: boolean
      additionalProperties: false
    CreateWorldStaffPostingRequestPay:
      type: object
      properties:
        rail:
          type: string
          enum:
            - cash
            - cbx
            - bucks
        basis:
          type: string
          enum:
            - shift
            - hour
            - commission
        cents:
          type: number
          nullable: true
        bps:
          type: number
      required:
        - rail
        - basis
      additionalProperties: false
    CreateWorldStaffPostingRequestRecurrence:
      type: object
      properties:
        freq:
          type: string
          enum:
            - none
            - weekly
        days:
          type: array
          items:
            type: number
        until:
          type: string
          nullable: true
        count:
          type: number
          nullable: true
      required:
        - freq
      additionalProperties: false
    CreateWorldStaffPostingRequestWhitelist:
      type: object
      properties:
        mode:
          type: string
          enum:
            - team
            - anyone
            - people
        userIds:
          type: array
          items:
            type: string
      required:
        - mode
      additionalProperties: false
    CreateWorldStaffPostingStatusRequest:
      type: object
      properties:
        status:
          type: string
          enum:
            - paused
            - open
            - closed
      required:
        - status
      additionalProperties: false
    CreateWorldStreetOwnedUpkeepPayRequest:
      type: object
      properties:
        weeks:
          type: number
        rail:
          type: string
          enum:
            - cash
            - cbx
          nullable: true
      required:
        - weeks
      additionalProperties: false
    CreateWorldStreetOwnedUpkeepPayResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldStreetOwnedUpkeepPayResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldVenueBookingCancelResponse:
      type: object
      properties:
        cancelled:
          type: boolean
        refundedCents:
          type: number
        fullRefundUntil:
          type: string
      required:
        - cancelled
        - refundedCents
        - fullRefundUntil
      additionalProperties: false
    CreateWorldWorkAssignmentRateEmployerRequest:
      type: object
      properties:
        paidOnTime:
          type: number
        accurate:
          type: number
        conduct:
          type: number
        comment:
          type: string
          nullable: true
      required:
        - paidOnTime
        - accurate
        - conduct
      additionalProperties: false
    CreateWorldWorkPostingApplyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldWorkPostingApplyResponseData"
      required:
        - data
      additionalProperties: false
    CreateWorldWorkPostingApplyResponseData:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        autoAccepted:
          type: boolean
        shifts:
          type: number
      required:
        - id
        - status
        - autoAccepted
        - shifts
      additionalProperties: false
    CreatorCardGameResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListCreatorCardGamesItem"
      required:
        - data
      additionalProperties: false
    CreatorCardSetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreatorCardSetResponseData"
      required:
        - data
      additionalProperties: false
    CreatorCardSetResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        updatedAt:
          type: string
        check:
          $ref: "#/components/schemas/CreatorCardSetResponseDataCheck"
        publishedAt:
          type: string
          nullable: true
        gameId:
          type: string
        setCode:
          type: string
        publishedVersion:
          type: number
          nullable: true
        publishedSemver:
          type: string
          nullable: true
        draft:
          $ref: "#/components/schemas/CreatorCardSetResponseDataDraft"
      required:
        - id
        - name
        - updatedAt
        - check
        - gameId
        - setCode
        - draft
      additionalProperties: false
    CreatorCardSetResponseDataCheck:
      type: object
      properties:
        ok:
          type: boolean
        issues:
          type: array
          items:
            $ref: "#/components/schemas/PathMessage"
        conformance:
          type: array
          items:
            type: string
          description: tcgStaticConformance problems (and bot-game problems when `games` > 0).
        starters:
          type: number
      required:
        - ok
        - issues
        - conformance
        - starters
      additionalProperties: false
    CreatorCardSetResponseDataDraft:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        rating:
          type: string
          enum:
            - everyone
            - teen
        cosm:
          $ref: "#/components/schemas/CreatorCardSetResponseDataDraftCosm"
        print:
          $ref: "#/components/schemas/CreatorCardSetResponseDataDraftPrint"
        cards:
          type: array
          items:
            $ref: "#/components/schemas/CreatorCardSetResponseDataDraftCards"
        gameId:
          type: string
        chainAutoUnlock:
          type: boolean
        minutes:
          type: number
        setCode:
          type: string
        frame:
          $ref: "#/components/schemas/CreatorCardSetResponseDataDraftFrame"
        setTitle:
          type: string
      required:
        - name
        - description
        - rating
        - cosm
        - print
        - cards
        - gameId
        - chainAutoUnlock
        - minutes
        - setCode
        - frame
        - setTitle
      additionalProperties: false
    CreatorCardSetResponseDataDraftCards:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        type:
          type: string
        rarity:
          type: string
          enum:
            - common
            - uncommon
            - rare
            - legendary
        text:
          type: array
          items:
            type: string
          description: Rules text, one line per paragraph (through the text filter on save).
        flavor:
          type: string
          nullable: true
        power:
          type: number
        draw:
          type: number
        guard:
          type: number
        art:
          type: object
          nullable: true
          description: |-
            Uploaded art (quarantined until the version is approved). Only the art upload sets it. On a draft SAVE:
            `art` absent = keep the stored art; `art: null` = clear it; a value = keep the stored art (a save can never point
            art at another file, so a value is read as "keep", which keeps clients that send the card as read working).
          additionalProperties: {}
      required:
        - slug
        - name
        - type
        - rarity
        - text
        - power
        - draw
        - guard
      additionalProperties: false
    CreatorCardSetResponseDataDraftCosm:
      type: object
      properties:
        pack:
          type: number
        singles:
          $ref: "#/components/schemas/CreatorCardSetResponseDataDraftCosmSingles"
        supply:
          $ref: "#/components/schemas/CreatorCardSetResponseDataDraftCosmSupply"
      required:
        - pack
        - singles
      additionalProperties: false
    CreatorCardSetResponseDataDraftCosmSingles:
      type: object
      properties:
        common:
          type: number
        uncommon:
          type: number
        rare:
          type: number
        legendary:
          type: number
      required:
        - common
        - uncommon
        - rare
        - legendary
      additionalProperties: false
    CreatorCardSetResponseDataDraftCosmSupply:
      type: object
      properties:
        common:
          type: number
          nullable: true
        uncommon:
          type: number
          nullable: true
        rare:
          type: number
          nullable: true
        legendary:
          type: number
          nullable: true
      additionalProperties: false
      nullable: true
    CreatorCardSetResponseDataDraftFrame:
      type: object
      properties:
        accent:
          type: string
        ink:
          type: string
      required:
        - accent
        - ink
      additionalProperties: false
    CreatorCardSetResponseDataDraftPrint:
      type: object
      properties:
        edition:
          type: number
        materialTier:
          type: string
          enum:
            - standard
            - premium
            - luxury
        complexity:
          type: string
          enum:
            - simple
            - moderate
            - complex
      required:
        - edition
        - materialTier
        - complexity
      additionalProperties: false
      description: The print run this set aims for once its NFT sales can pay for it (production cost model).
    CreatorItemModelResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListCreatorItemModelsItem"
      required:
        - data
      additionalProperties: false
    CreatorItemWearableResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListCreatorItemWearablesItem"
      required:
        - data
      additionalProperties: false
    CreatorReviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListCreatorCreationReviewsItem"
      required:
        - data
      additionalProperties: false
    DeckIdRequest:
      type: object
      properties:
        deckId:
          type: string
      required:
        - deckId
      additionalProperties: false
    DeleteAuthSessionResponse:
      type: object
      properties:
        revokedCount:
          type: number
      required:
        - revokedCount
      additionalProperties: false
    DeleteBrandingDropResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteBrandingDropResponseData"
      required:
        - data
      additionalProperties: false
    DeleteBrandingDropResponseData:
      type: object
      properties:
        deleted:
          type: boolean
        drop:
          $ref: "#/components/schemas/DeleteBrandingDropResponseDataDrop"
      required:
        - deleted
      additionalProperties: false
    DeleteBrandingDropResponseDataDrop:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        status:
          type: string
        phase:
          type: string
          enum:
            - live
            - paused
            - hidden
            - announced
            - countdown
            - over
        format:
          type: string
        placements:
          type: array
          items:
            type: string
        announceAt:
          type: string
          nullable: true
        countdownAt:
          type: string
          nullable: true
        dropAt:
          type: string
        endsAt:
          type: string
          nullable: true
        pausedAt:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        liveStreamId:
          type: string
          nullable: true
        eventId:
          type: string
          nullable: true
        spatialDropId:
          type: string
          nullable: true
        featuredStatus:
          type: string
          nullable: true
        partnerId:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        config:
          $ref: "#/components/schemas/CreateBrandingDropPublishResponseDataConfig"
        waves:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItemWaves"
        counts:
          $ref: "#/components/schemas/ListBrandingDropsItemCounts"
        unitsAvailable:
          type: number
          nullable: true
          description: Units on offer now (released waves, else the format's units), null = the listings' stock.
        currentPriceCents:
          type: number
          nullable: true
          description: The dutch price right now, else the configured price.
        href:
          type: string
        linkedGroupBuy:
          $ref: "#/components/schemas/ListBrandingDropsItemLinkedGroupBuy"
        restockListings:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItemRestockListings"
          nullable: true
          description: "E5: the drop's Crossly listings with their stock now; only set by getSellerDrop."
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - status
        - phase
        - format
        - placements
        - dropAt
        - config
        - waves
        - counts
        - href
        - createdAt
        - updatedAt
      additionalProperties: false
      nullable: true
    DeleteConnectionEmailResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteConnectionEmailResponseData"
        success:
          type: boolean
      required:
        - data
        - success
      additionalProperties: false
    DeleteConnectionEmailResponseData:
      type: object
      properties:
        id:
          type: string
        disconnected:
          type: boolean
      required:
        - id
        - disconnected
      additionalProperties: false
    DeleteConnectionOwnAppResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteConnectionOwnAppResponseData"
      required:
        - data
      additionalProperties: false
    DeleteConnectionOwnAppResponseData:
      type: object
      properties:
        connectionsEnded:
          type: number
      required:
        - connectionsEnded
      additionalProperties: false
    DeleteCosmHandleRequest:
      type: object
      properties:
        subjectId:
          type: string
        reason:
          type: string
      required:
        - subjectId
        - reason
      additionalProperties: false
    DeleteCosmHandleResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteCosmHandleResponseData"
      required:
        - data
      additionalProperties: false
    DeleteCosmHandleResponseData:
      type: object
      properties:
        released:
          type: boolean
        refundedBaseUnits:
          type: string
      required:
        - released
        - refundedBaseUnits
      additionalProperties: false
    DeleteCosmPegRequest:
      type: object
      properties:
        sellerUserId:
          type: string
      required:
        - sellerUserId
      additionalProperties: false
    DeleteCosmPegResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteCosmPegResponseData"
      required:
        - data
      additionalProperties: false
    DeleteCosmPegResponseData:
      type: object
      properties:
        disabled:
          type: boolean
      required:
        - disabled
      additionalProperties: false
    DeleteCreatorExperienceKeyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateCreatorExperienceKeyResponseN201DataKey"
    DeleteDaoProposalResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/WithdrawnObject"
      required:
        - data
      additionalProperties: false
    DeleteDeviceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteDeviceResponseData"
      required:
        - data
      additionalProperties: false
    DeleteDeviceResponseData:
      type: object
      properties:
        id:
          type: string
        unpaired:
          type: boolean
      required:
        - id
        - unpaired
      additionalProperties: false
    DeleteDropResponse:
      type: object
      properties:
        cancelled:
          type: boolean
      required:
        - cancelled
      additionalProperties: false
    DeleteEventResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteEventResponseData"
      required:
        - data
      additionalProperties: false
    DeleteEventResponseData:
      type: object
      properties:
        deleted:
          type: boolean
        event:
          $ref: "#/components/schemas/DeleteEventResponseDataEvent"
      required:
        - deleted
      additionalProperties: false
    DeleteEventResponseDataEvent:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        kind:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
          nullable: true
        locationType:
          type: string
        locationText:
          type: string
          nullable: true
        locationUrl:
          type: string
          nullable: true
        status:
          type: string
        phase:
          type: string
          enum:
            - live
            - ended
            - upcoming
        rsvpEnabled:
          type: boolean
        capacity:
          type: number
          nullable: true
        listingIds:
          type: array
          items:
            type: string
        liveStreamId:
          type: string
          nullable: true
        dropRef:
          $ref: "#/components/schemas/TypeId2"
        discountCodeId:
          type: string
          nullable: true
        featureOnStorefront:
          type: boolean
        notifyFollowers:
          type: boolean
        notifiedAt:
          type: string
          nullable: true
        viewCount:
          type: number
        goingCount:
          type: number
        interestedCount:
          type: number
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - slug
        - kind
        - title
        - startsAt
        - locationType
        - status
        - phase
        - rsvpEnabled
        - listingIds
        - featureOnStorefront
        - notifyFollowers
        - viewCount
        - goingCount
        - interestedCount
        - createdAt
        - updatedAt
      additionalProperties: false
      nullable: true
    DeleteFundingMemberResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteFundingMemberResponseData"
      required:
        - data
      additionalProperties: false
    DeleteFundingMemberResponseData:
      type: object
      properties:
        removed:
          type: boolean
        members:
          type: array
          items:
            $ref: "#/components/schemas/DeleteFundingMemberResponseDataMembers"
      required:
        - removed
        - members
      additionalProperties: false
    DeleteFundingMemberResponseDataMembers:
      type: object
      properties:
        id:
          type: string
        memberUserId:
          type: string
        limitCents:
          type: number
        period:
          type: string
          enum:
            - month
            - draw
        updatedAt:
          type: string
      required:
        - id
        - memberUserId
        - limitCents
        - period
        - updatedAt
      additionalProperties: false
    DeleteListingResponse:
      type: object
      properties:
        jobs:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingResponseJobs"
      required:
        - jobs
      additionalProperties: false
    DeleteMobilePushTokenResponse:
      type: object
      properties:
        ok:
          type: boolean
        removed:
          type: number
      required:
        - ok
        - removed
      additionalProperties: false
    DeletePolicyPresetResponse:
      type: object
      properties:
        ok:
          type: boolean
        reassignedListings:
          type: number
        promotedId:
          type: string
          nullable: true
      required:
        - ok
        - reassignedListings
      additionalProperties: false
    DeleteShowroomResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteShowroomResponseData"
      required:
        - data
      additionalProperties: false
    DeleteShowroomResponseData:
      type: object
      properties:
        archived:
          type: boolean
        showroomId:
          type: string
      required:
        - archived
        - showroomId
      additionalProperties: false
    DeleteSkuPresetResponse:
      type: object
      properties:
        id:
          type: string
        deleted:
          type: boolean
      required:
        - id
        - deleted
      additionalProperties: false
    DeleteSpatialSceneGrantResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteSpatialSceneGrantResponseData"
      required:
        - data
      additionalProperties: false
    DeleteSpatialSceneGrantResponseData:
      type: object
      properties:
        removed:
          type: boolean
      required:
        - removed
      additionalProperties: false
    DeleteSpatialSceneNodeRequest:
      type: object
      properties:
        nodeIds:
          type: array
          items:
            type: string
      required:
        - nodeIds
      additionalProperties: false
    DeleteSpatialSceneNodeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteSpatialSceneNodeResponseData"
      required:
        - data
      additionalProperties: false
    DeleteSpatialSceneNodeResponseData:
      type: object
      properties:
        removed:
          type: number
      required:
        - removed
      additionalProperties: false
    DeleteSpatialSceneWarehouseStockRequest:
      type: object
      properties:
        inventoryItemId:
          type: string
        inventoryUnitId:
          type: string
          nullable: true
      required:
        - inventoryItemId
      additionalProperties: false
    DeleteStoryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteSkuPresetResponse"
      required:
        - data
      additionalProperties: false
    DeleteVaultMarketAutoBuyResponse:
      type: object
      properties:
        explainer:
          type: string
        autoBuy:
          nullable: true
      required:
        - explainer
        - autoBuy
    DeleteVaultMarketFollowCopyWatchResponse:
      type: object
      properties:
        watching:
          type: boolean
        handle:
          type: string
      required:
        - watching
        - handle
      additionalProperties: false
    DeleteVaultMarketOpeningWaitlistResponse:
      type: object
      properties:
        left:
          type: boolean
      required:
        - left
      additionalProperties: false
    DeleteVaultMarketPriceWidgetResponse:
      type: object
      properties:
        id:
          type: string
        archived:
          type: boolean
      required:
        - id
        - archived
      additionalProperties: false
    DeleteVaultMarketProQuoteResponse:
      type: object
      properties:
        pulled:
          type: number
      required:
        - pulled
      additionalProperties: false
    DeleteVaultMarketSetGoalResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        basketCancelled:
          type: boolean
      required:
        - id
        - status
        - basketCancelled
      additionalProperties: false
    DeleteVaultMarketWidgetTokenByIdResponse:
      type: object
      properties:
        id:
          type: string
        revoked:
          type: boolean
      required:
        - id
        - revoked
      additionalProperties: false
    DeleteVaultMarketWidgetTokenResponse:
      type: object
      properties:
        revoked:
          type: number
      required:
        - revoked
      additionalProperties: false
    DeleteWholesaleCatalogAccessResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWholesaleCatalogAccessResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWholesaleCatalogAccessResponseData:
      type: object
      properties:
        grantId:
          type: string
        revoked:
          type: boolean
      required:
        - grantId
        - revoked
      additionalProperties: false
    DeleteWorkflowResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorkflowResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorkflowResponseData:
      type: object
      properties:
        id:
          type: string
        deleted:
          type: boolean
        cancelledRuns:
          type: number
      required:
        - id
        - deleted
        - cancelledRuns
      additionalProperties: false
    DeleteWorldBlockResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldBlockResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldBlockResponseData:
      type: object
      properties:
        unblocked:
          type: boolean
      required:
        - unblocked
      additionalProperties: false
    DeleteWorldExperienceBanResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldExperienceBanResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldExperienceBanResponseData:
      type: object
      properties:
        lifted:
          type: boolean
      required:
        - lifted
      additionalProperties: false
    DeleteWorldExperienceDatastoreEntryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldExperienceDatastoreEntryResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldExperienceDatastoreEntryResponseData:
      type: object
      properties:
        removed:
          type: boolean
        version:
          type: number
          nullable: true
      required:
        - removed
      additionalProperties: false
    DeleteWorldExperienceOrderedEntryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldExperienceOrderedEntryResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldExperienceOrderedEntryResponseData:
      type: object
      properties:
        removed:
          type: boolean
        previous:
          type: number
          nullable: true
      required:
        - removed
      additionalProperties: false
    DeleteWorldExperiencePlaceCollabScriptResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldExperiencePlaceCollabScriptResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldExperiencePlaceCollabScriptResponseData:
      type: object
      properties:
        discarded:
          type: boolean
      required:
        - discarded
      additionalProperties: false
    DeleteWorldExperienceRequest:
      type: object
      properties:
        confirmName:
          type: string
      required:
        - confirmName
      additionalProperties: false
    DeleteWorldExperienceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldExperienceResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldExperienceResponseData:
      type: object
      properties:
        experience:
          $ref: "#/components/schemas/ListWorldExperiencesItem"
        deletedAt:
          type: string
        restorableUntil:
          type: string
        subscriptionsStopped:
          type: number
      required:
        - experience
        - deletedAt
        - restorableUntil
        - subscriptionsStopped
      additionalProperties: false
    DeleteWorldGamePackageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldGamePackageResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldGamePackageResponseData:
      type: object
      properties:
        deletedAt:
          type: string
        restorableUntil:
          type: string
        deleted:
          type: boolean
      required:
        - deletedAt
        - restorableUntil
        - deleted
      additionalProperties: false
    DeleteWorldHomeGuestbookResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldHomeGuestbookResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldHomeGuestbookResponseData:
      type: object
      properties:
        hidden:
          type: boolean
      required:
        - hidden
      additionalProperties: false
    DeleteWorldInteractiveDesignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldInteractiveDesignResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldInteractiveDesignResponseData:
      type: object
      properties:
        deleted:
          type: boolean
        archived:
          type: boolean
        cancelledVersions:
          type: number
        delisted:
          type: boolean
      required:
        - deleted
        - archived
        - cancelledVersions
        - delisted
      additionalProperties: false
    DeleteWorldJobShiftResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteDropResponse"
      required:
        - data
      additionalProperties: false
    DeleteWorldMarketListingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldMarketListingResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldOutfitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldOutfitResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldOutfitResponseData:
      type: object
      properties:
        deleted:
          type: boolean
      required:
        - deleted
      additionalProperties: false
    DeleteWorldPackageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldPackagesItem"
      required:
        - data
      additionalProperties: false
    DeleteWorldPlaceBanResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldPlaceBanResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldPlaceBanResponseData:
      type: object
      properties:
        unbanned:
          type: boolean
      required:
        - unbanned
      additionalProperties: false
    DeleteWorldPropertyPlotShowroomResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldPropertyPlotShowroomResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldPropertyPlotShowroomResponseData:
      type: object
      properties:
        unassigned:
          type: boolean
        showroomId:
          type: string
          nullable: true
      required:
        - unassigned
      additionalProperties: false
    DeleteWorldSpaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteWorldSpaceResponseData"
      required:
        - data
      additionalProperties: false
    DeleteWorldSpaceResponseData:
      type: object
      properties:
        closed:
          type: boolean
      required:
        - closed
      additionalProperties: false
    DetectedEventEventResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DetectedEventEventResponseData"
      required:
        - data
      additionalProperties: false
    DetectedEventEventResponseData:
      type: object
      properties:
        event:
          $ref: "#/components/schemas/DetectedEventEventResponseDataEvent"
      required:
        - event
      additionalProperties: false
    DetectedEventEventResponseDataEvent:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - confirmed
            - dismissed
            - failed
            - acted
            - held
            - asked
            - ignored
            - undone
        ruleId:
          type: string
          nullable: true
        ruleName:
          type: string
          nullable: true
        reports:
          type: array
          items:
            type: object
            additionalProperties: {}
        guards:
          type: array
          items:
            type: object
            additionalProperties: {}
        plan:
          type: array
          items:
            type: object
            additionalProperties: {}
        actions:
          type: array
          items:
            type: object
            additionalProperties: {}
        canConfirm:
          type: boolean
        canUndo:
          type: boolean
        candidateTitles:
          type: object
          nullable: true
          additionalProperties: {}
        title:
          type: string
          nullable: true
        legacy:
          type: boolean
          nullable: true
          description: A legacy event_policy_decisions row shown in History (read-only, no actions).
        dismissedAt:
          type: string
          nullable: true
          description: Dismiss on an ask (status dismissed).
        orderId:
          type: string
          nullable: true
          description: orders.id the event is about (1460).
        listingId:
          type: string
          nullable: true
          description: "listings.id (the master listing, not the platform row) the event is about: the event page links to it."
        createdAt:
          type: string
      required:
        - id
        - status
        - reports
        - guards
        - plan
        - actions
        - canConfirm
        - canUndo
        - createdAt
      additionalProperties: false
    DeveloperAppCertificationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeveloperAppCertificationResponseData"
      required:
        - data
      additionalProperties: false
    DeveloperAppCertificationResponseData:
      type: object
      properties:
        id:
          type: string
        appId:
          type: string
        status:
          type: string
          enum:
            - draft
            - submitted
            - rejected
            - approved
            - revoked
        clientName:
          type: string
        platform:
          type: string
          enum:
            - other
            - web
            - windows
            - ios
            - android
            - macos
            - linux
            - godot
            - xr
            - console
            - bot
        clientVersion:
          type: string
        buildUrl:
          type: string
          nullable: true
        sourceUrl:
          type: string
          nullable: true
        description:
          type: string
        evidence:
          type: array
          items:
            $ref: "#/components/schemas/DeveloperAppCertificationResponseDataEvidence"
        passedRunId:
          type: string
          nullable: true
        certifiedVersion:
          type: string
          nullable: true
        readyToSubmit:
          type: boolean
          description: The latest passing run is for the version being applied for.
        blockers:
          type: array
          items:
            type: string
        lastRun:
          $ref: "#/components/schemas/DeveloperAppCertificationResponseDataLastRun"
        submittedAt:
          type: string
          nullable: true
        reviewedAt:
          type: string
          nullable: true
        reviewNotes:
          type: string
          nullable: true
        approvedAt:
          type: string
          nullable: true
        revokedAt:
          type: string
          nullable: true
        revokeReason:
          type: string
          nullable: true
        updatedAt:
          type: string
      required:
        - id
        - appId
        - status
        - clientName
        - platform
        - clientVersion
        - description
        - evidence
        - readyToSubmit
        - blockers
        - updatedAt
      additionalProperties: false
    DeveloperAppCertificationResponseDataEvidence:
      type: object
      properties:
        kind:
          type: string
          enum:
            - other
            - video
            - policy
            - report_menu
            - chat
        url:
          type: string
        note:
          type: string
      required:
        - kind
        - url
        - note
      additionalProperties: false
    DeveloperAppCertificationResponseDataLastRun:
      type: object
      properties:
        id:
          type: string
        phase:
          type: string
        finishedAt:
          type: string
          nullable: true
      required:
        - id
        - phase
      additionalProperties: false
      nullable: true
    DeveloperAppVerificationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeveloperAppVerificationResponseData"
      required:
        - data
      additionalProperties: false
    DeveloperAppVerificationResponseData:
      type: object
      properties:
        appId:
          type: string
        status:
          type: string
          enum:
            - draft
            - submitted
            - rejected
            - approved
            - revoked
        domain:
          type: string
          nullable: true
        txtRecord:
          $ref: "#/components/schemas/DeveloperAppVerificationResponseDataTxtRecord"
        domainVerifiedAt:
          type: string
          nullable: true
        requestedScopes:
          type: array
          items:
            type: string
        approvedScopes:
          type: array
          items:
            type: string
        scopeDecisions:
          type: object
          additionalProperties: {}
        justifications:
          type: object
          additionalProperties: {}
        privacyPolicyUrl:
          type: string
          nullable: true
        termsUrl:
          type: string
          nullable: true
        supportEmail:
          type: string
          nullable: true
        demoUrl:
          type: string
          nullable: true
        readyToSubmit:
          type: boolean
        blockers:
          type: array
          items:
            type: string
        submittedAt:
          type: string
          nullable: true
        reviewedAt:
          type: string
          nullable: true
        reviewNotes:
          type: string
          nullable: true
        revokedAt:
          type: string
          nullable: true
        revokeReason:
          type: string
          nullable: true
        updatedAt:
          type: string
      required:
        - appId
        - status
        - txtRecord
        - requestedScopes
        - approvedScopes
        - scopeDecisions
        - justifications
        - readyToSubmit
        - blockers
        - updatedAt
      additionalProperties: false
    DeveloperAppVerificationResponseDataTxtRecord:
      type: object
      properties:
        name:
          type: array
          items:
            type: string
        value:
          type: string
      required:
        - name
        - value
      additionalProperties: false
    DiscountCodeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DiscountCodeResponseData"
      required:
        - data
      additionalProperties: false
    DiscountCodeResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
          nullable: true
        status:
          type: string
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
          nullable: true
        batchId:
          type: string
          nullable: true
        sellerUserId:
          type: string
          nullable: true
        code:
          type: string
        startsAt:
          type: string
          format: date-time
          nullable: true
        discountType:
          type: string
        percentOffBps:
          type: number
          nullable: true
        fixedOffCents:
          type: number
          nullable: true
        minOrderCents:
          type: number
        platformListingIds:
          type: array
          items:
            type: string
          nullable: true
        maxRedemptions:
          type: number
          nullable: true
        redemptionCount:
          type: number
        rules:
          type: object
          nullable: true
          additionalProperties: {}
        givenCents:
          type: number
        parentCodeId:
          type: string
          nullable: true
        autoApply:
          type: boolean
      required:
        - id
        - active
        - createdAt
        - updatedAt
        - status
        - code
        - discountType
        - minOrderCents
        - redemptionCount
        - givenCents
        - autoApply
      additionalProperties: false
    EnabledRequest:
      type: object
      properties:
        enabled:
          type: boolean
      required:
        - enabled
      additionalProperties: false
    Error:
      type: object
      description: Every 4xx and 5xx from this API.
      properties:
        error:
          $ref: "#/components/schemas/ErrorError"
        correlationId:
          type: string
          description: Thread this back to server logs when reporting a problem.
      required:
        - error
    ErrorError:
      type: object
      properties:
        code:
          type: string
          description: Stable across versions — branch on this, not on the message.
        message:
          type: string
          description: Human-readable. May change.
        details:
          description: Optional structured context.
      required:
        - code
        - message
    EventResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListEventsItem"
      required:
        - data
      additionalProperties: false
    FromTo:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
      required:
        - from
        - to
      additionalProperties: false
      nullable: true
    FundingPoolResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/FundingPoolResponseData"
      required:
        - data
      additionalProperties: false
    FundingPoolResponseData:
      type: object
      properties:
        pool:
          $ref: "#/components/schemas/FundingPoolResponseDataPool"
        message:
          type: string
        disclosure:
          type: array
          items:
            type: string
          minItems: 4
          maxItems: 4
        apyBps:
          type: number
          nullable: true
        apyWindowDays:
          type: number
        lockupOptions:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        position:
          $ref: "#/components/schemas/FundingPoolResponseDataPosition"
        unstakeRequests:
          type: array
          items:
            $ref: "#/components/schemas/FundingPoolResponseDataUnstakeRequests"
        history:
          type: array
          items:
            $ref: "#/components/schemas/FundingPoolResponseDataHistory"
        waitlist:
          $ref: "#/components/schemas/FundingPoolResponseDataWaitlist"
      required:
        - pool
        - message
        - disclosure
        - apyWindowDays
        - lockupOptions
        - unstakeRequests
        - history
      additionalProperties: false
    FundingPoolResponseDataHistory:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - treasury_allocation
            - dao_allocation
            - allocation_release
            - draw_out
            - staker_deposit
            - staker_withdrawal
            - repayment_in
            - interest_in
            - default_loss
        deltaBaseUnits:
          type: string
        memo:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - kind
        - deltaBaseUnits
        - createdAt
      additionalProperties: false
    FundingPoolResponseDataPool:
      type: object
      properties:
        live:
          type: boolean
        reason:
          type: string
          enum:
            - no_mint
            - no_pool
            - no_price
            - no_capacity
          nullable: true
          description: Why it is not live; null when live.
        capacityCents:
          type: number
          description: What can be lent right now (cents at the 24h floor rate, net of the reserve and the utilisation cap).
        lineCapCents:
          type: number
          description: The most one line can be sized to (cents).
        poolValueCents:
          type: number
          description: "Pool value: the drawable tokens at the floor rate (cents)."
        outstandingCents:
          type: number
          description: Principal out on every line (cents, the engine's own ledger).
        utilisationBps:
          type: number
          description: outstanding / (outstanding + pool value), bps.
        reserveRatioBps:
          type: number
        maxUtilisationBps:
          type: number
        defaultReserveCents:
          type: number
          description: Provision against default on what is outstanding (cents, shown, never lent).
        sourceLabel:
          type: string
          description: Where the money comes from, in words.
        stakingOpen:
          type: boolean
          description: Staker deposits accepted (live AND an operator enabled staker shares).
        drawableBaseUnits:
          type: string
          description: The drawable base units, as a decimal string (bigint over JSON).
        stakedBaseUnits:
          type: string
          description: Staked base units held by the pool, as a decimal string.
        allowedUses:
          type: array
          items:
            type: string
          nullable: true
          description: Uses the pool allows platform-wide (null = all).
        supplierAllowlist:
          type: array
          items:
            type: string
          nullable: true
          description: Suppliers the pool allows (null = any that accepts funding).
        centsPerToken:
          type: number
          nullable: true
          description: The rate used (cents per whole token, the 24h floor); null without one.
        asOf:
          type: string
      required:
        - live
        - capacityCents
        - lineCapCents
        - poolValueCents
        - outstandingCents
        - utilisationBps
        - reserveRatioBps
        - maxUtilisationBps
        - defaultReserveCents
        - sourceLabel
        - stakingOpen
        - drawableBaseUnits
        - stakedBaseUnits
        - asOf
      additionalProperties: false
    FundingPoolResponseDataPosition:
      type: object
      properties:
        shares:
          type: string
        principalBaseUnits:
          type: string
        lockupDays:
          type: number
        lockedUntil:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - shares
        - principalBaseUnits
        - lockupDays
        - createdAt
      additionalProperties: false
      nullable: true
    FundingPoolResponseDataUnstakeRequests:
      type: object
      properties:
        id:
          type: string
        shares:
          type: string
        status:
          type: string
          enum:
            - cancelled
            - queued
            - paid
        requestedAt:
          type: string
        paidBaseUnits:
          type: string
          nullable: true
        paidAt:
          type: string
          nullable: true
      required:
        - id
        - shares
        - status
        - requestedAt
      additionalProperties: false
    FundingPoolResponseDataWaitlist:
      type: object
      properties:
        position:
          type: number
        joinedAt:
          type: string
      required:
        - position
        - joinedAt
      additionalProperties: false
      nullable: true
    GetAccountClosureChecklistResponse:
      type: object
      properties:
        liveListings:
          $ref: "#/components/schemas/GetAccountClosureChecklistResponseLiveListings"
        automations:
          $ref: "#/components/schemas/GetAccountClosureChecklistResponseAutomations"
        subscriptions:
          type: number
        blockers:
          type: array
          items:
            type: string
      required:
        - liveListings
        - automations
        - subscriptions
        - blockers
      additionalProperties: false
    GetAccountClosureChecklistResponseAutomations:
      type: object
      properties:
        rules:
          type: number
        workflows:
          type: number
        scheduledPublishes:
          type: number
      required:
        - rules
        - workflows
        - scheduledPublishes
      additionalProperties: false
    GetAccountClosureChecklistResponseLiveListings:
      type: object
      properties:
        listings:
          type: number
          description: Listings with at least one live marketplace copy.
        copies:
          type: number
          description: Live marketplace copies (one listing on three marketplaces is three).
        byPlatform:
          type: object
          additionalProperties: {}
        listingIds:
          type: array
          items:
            type: string
          description: The listings "Delist everywhere" would take down (capped).
      required:
        - listings
        - copies
        - byPlatform
        - listingIds
      additionalProperties: false
    GetAccountDeletionStatusResponse:
      type: object
      properties:
        pending:
          $ref: "#/components/schemas/GetAccountDeletionStatusResponsePending"
      additionalProperties: false
    GetAccountDeletionStatusResponsePending:
      type: object
      properties:
        id:
          type: string
        requestedAt:
          type: string
          format: date-time
        scheduledFor:
          type: string
          format: date-time
        pausedAt:
          type: string
          format: date-time
          nullable: true
          description: "Set when the account was found in use: it waits for a re-confirmation."
        pauseReason:
          type: string
          nullable: true
        listingCount:
          type: number
          description: What the cascade will take.
        inventoryCount:
          type: number
      required:
        - id
        - requestedAt
        - scheduledFor
        - listingCount
        - inventoryCount
      additionalProperties: false
      nullable: true
    GetAccountIdentityVerificationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAccountIdentityVerificationResponseData"
      required:
        - data
      additionalProperties: false
    GetAccountIdentityVerificationResponseData:
      type: object
      properties:
        status:
          type: string
          enum:
            - verified
            - processing
            - unverified
            - requires_input
            - canceled
        verified:
          type: boolean
        verifiedAt:
          type: string
          nullable: true
        verifiedName:
          type: string
          nullable: true
          description: The name on the verified ID, when the check reported one.
        ageVerified:
          type: boolean
          description: "The age-restricted checkout gate passes: the date of birth on the verified ID says 18+."
        message:
          type: string
          nullable: true
          description: Plain-language next step; null once verified.
        lastError:
          $ref: "#/components/schemas/GetAccountIdentityVerificationResponseDataLastError"
        attempts:
          type: number
          description: Failed tries of the open check so far (0 when none).
      required:
        - status
        - verified
        - ageVerified
        - attempts
      additionalProperties: false
    GetAccountIdentityVerificationResponseDataLastError:
      type: object
      properties:
        code:
          type: string
        reason:
          type: string
          nullable: true
          description: The service's reason in words (e.g. "The document was unreadable"), when it gave one.
      required:
        - code
      additionalProperties: false
      nullable: true
      description: "requires_input only: the last try failed and the person can try again on the same link. Null otherwise."
    GetAccountNotificationPreferenceResponse:
      type: object
      properties:
        channels:
          type: array
          items:
            $ref: "#/components/schemas/GetAccountNotificationPreferenceResponseChannelsItem"
        groups:
          type: array
          items:
            $ref: "#/components/schemas/GetAccountNotificationPreferenceResponseGroups"
      required:
        - channels
        - groups
      additionalProperties: false
    GetAccountNotificationPreferenceResponseGroups:
      type: object
      properties:
        events:
          type: array
          items:
            type: object
            additionalProperties: {}
        id:
          type: string
        label:
          type: string
        description:
          type: string
      required:
        - events
        - id
        - label
        - description
      additionalProperties: false
    GetAccountSignInIdentityResponse:
      type: object
      properties:
        available:
          type: boolean
        provider:
          type: string
        linkedProviders:
          type: array
          items:
            type: string
          description: Linked sign-in providers as display names ('Google', 'Apple', …).
        hasPassword:
          type: boolean
        passkeys:
          type: number
        twoStep:
          type: boolean
      required:
        - available
        - provider
        - linkedProviders
        - hasPassword
        - passkeys
        - twoStep
      additionalProperties: false
    GetActionLogExportDownloadResponse:
      type: object
      properties:
        locked:
          type: boolean
          description: |-
            The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.

            [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)
        cancel:
          type: object
          description: |-
            The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.

            [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)
          additionalProperties: {}
        getReader:
          type: object
          description: |-
            The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it.

            [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
          additionalProperties: {}
        pipeThrough:
          type: object
          description: |-
            The **`pipeThrough()`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.

            [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)
          additionalProperties: {}
        pipeTo:
          type: object
          description: |-
            The **`pipeTo()`** method of the ReadableStream interface pipes the current `ReadableStream` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.

            [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)
          additionalProperties: {}
        tee:
          type: object
          description: |-
            The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances.

            [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
          additionalProperties: {}
        values:
          type: object
          additionalProperties: {}
        __@asyncIterator@5986:
          type: object
          additionalProperties: {}
      required:
        - locked
        - cancel
        - getReader
        - pipeThrough
        - pipeTo
        - tee
        - values
        - __@asyncIterator@5986
      additionalProperties: false
    GetActionLogExportResponse:
      type: object
      properties:
        id:
          type: string
        state:
          type: string
        format:
          type: string
        report:
          type: string
        empty:
          type: boolean
        rows:
          type: number
          nullable: true
        error:
          type: string
          nullable: true
        createdAt:
          type: string
        expiresAt:
          type: string
          nullable: true
      required:
        - id
        - state
        - format
        - report
        - empty
        - createdAt
      additionalProperties: false
    GetActionLogFacetResponse:
      type: object
      properties:
        platforms:
          type: array
          items:
            type: string
          description: "Kept for older clients: distinct values of the last 90 days."
        actions:
          type: array
          items:
            type: string
        categories:
          type: array
          items:
            type: string
        areas:
          type: array
          items:
            $ref: "#/components/schemas/GetActionLogFacetResponseAreas"
          description: "The grouped action filter: every seller area with its registry actions and their 90-day counts."
        actors:
          type: array
          items:
            $ref: "#/components/schemas/GetActionLogFacetResponseActors"
          description: '"Done by" (team accounts): actors of the last 90 days.'
        outcomes:
          type: array
          items:
            $ref: "#/components/schemas/GetActionLogFacetResponseOutcomes"
        platformCounts:
          type: array
          items:
            $ref: "#/components/schemas/GetActionLogFacetResponsePlatformCounts"
      required:
        - platforms
        - actions
        - categories
        - areas
        - actors
        - outcomes
        - platformCounts
      additionalProperties: false
    GetActionLogFacetResponseActors:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        count:
          type: number
        removed:
          type: boolean
      required:
        - id
        - label
        - count
        - removed
      additionalProperties: false
    GetActionLogFacetResponseAreas:
      type: object
      properties:
        area:
          type: string
        label:
          type: string
        count:
          type: number
        actions:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - area
        - label
        - count
        - actions
      additionalProperties: false
    GetActionLogFacetResponseOutcomes:
      type: object
      properties:
        value:
          type: string
        count:
          type: number
      required:
        - value
        - count
      additionalProperties: false
    GetActionLogFacetResponsePlatformCounts:
      type: object
      properties:
        platform:
          type: string
        count:
          type: number
      required:
        - platform
        - count
      additionalProperties: false
    GetAdOffsiteEligibilityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAdOffsiteEligibilityResponseData"
      required:
        - data
      additionalProperties: false
    GetAdOffsiteEligibilityResponseData:
      type: object
      properties:
        eligible:
          type: boolean
        reason:
          type: string
          enum:
            - not_opted_in
            - auto_paused
            - network_not_allowed
            - category_not_allowlisted
            - no_adapter
            - no_budget
          nullable: true
      required:
        - eligible
      additionalProperties: false
    GetAdOffsiteReportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAdOffsiteReportResponseData"
      required:
        - data
      additionalProperties: false
    GetAdOffsiteReportResponseData:
      type: object
      properties:
        spendCents:
          type: number
        mediaCostCents:
          type: number
        managementFeeCents:
          type: number
        impressions:
          type: number
        clicks:
          type: number
        conversions:
          type: number
        attributedRevenueCents:
          type: number
        spilloverConversions:
          type: number
        spilloverRevenueCents:
          type: number
        returnBps:
          type: number
        enabled:
          type: boolean
        autoPausedAt:
          type: string
          nullable: true
        autoPausedReason:
          type: string
          nullable: true
      required:
        - spendCents
        - mediaCostCents
        - managementFeeCents
        - impressions
        - clicks
        - conversions
        - attributedRevenueCents
        - spilloverConversions
        - spilloverRevenueCents
        - returnBps
        - enabled
      additionalProperties: false
    GetAdOffsiteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAdOffsiteResponseData"
      required:
        - data
      additionalProperties: false
    GetAdOffsiteResponseData:
      type: object
      properties:
        enabled:
          type: boolean
        maxOffsiteShareBps:
          type: number
          nullable: true
        minReturnBps:
          type: number
          nullable: true
        returnWindowDays:
          type: number
          nullable: true
        allowedNetworks:
          type: array
          items:
            type: string
          nullable: true
        autoPausedAt:
          type: string
          nullable: true
        autoPausedReason:
          type: string
          nullable: true
        optedInAt:
          type: string
          nullable: true
        terms:
          $ref: "#/components/schemas/GetAdOffsiteResponseDataTerms"
        networkWired:
          type: boolean
      required:
        - enabled
        - terms
        - networkWired
      additionalProperties: false
    GetAdOffsiteResponseDataTerms:
      type: object
      properties:
        managementFeeBps:
          type: number
        networks:
          type: array
          items:
            type: string
          minItems: 5
          maxItems: 5
      required:
        - managementFeeBps
        - networks
      additionalProperties: false
    GetAiKeyResponse:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
        ownerKind:
          type: string
          enum:
            - store
            - personal
        keys:
          type: array
          items:
            $ref: "#/components/schemas/GetAiKeyResponseKeys"
      required:
        - ownerKind
        - keys
      additionalProperties: false
    GetAiKeyResponseKeys:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
        customConfig:
          $ref: "#/components/schemas/CreateAiKeyResponseKeyCustomConfig"
        lastTestError:
          type: string
          nullable: true
        createdAt:
          type: string
        id:
          type: string
        provider:
          type: string
        label:
          type: string
          nullable: true
        ownerKind:
          type: string
          enum:
            - store
            - personal
        last4:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - ok
            - failing
            - untested
        lastTestedAt:
          type: string
          nullable: true
        lastUsedAt:
          type: string
          nullable: true
        grants:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - createdAt
        - id
        - provider
        - ownerKind
        - status
        - grants
      additionalProperties: false
    GetAiProviderResponse:
      type: object
      properties:
        providers:
          type: array
          items:
            $ref: "#/components/schemas/GetAiProviderResponseProviders"
      required:
        - providers
      additionalProperties: false
    GetAiProviderResponseProviders:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        supportsVision:
          type: boolean
        supportsJsonMode:
          type: boolean
        defaultTextModel:
          type: string
        defaultVisionModel:
          type: string
          nullable: true
        supportsImage:
          type: boolean
        defaultImageModel:
          type: string
          nullable: true
      required:
        - id
        - label
        - supportsVision
        - supportsJsonMode
        - defaultTextModel
        - supportsImage
      additionalProperties: false
    GetAiRoutingResponse:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: "#/components/schemas/GetAiRoutingResponseGroups"
        image:
          $ref: "#/components/schemas/GetAiRoutingResponseImage"
        configured:
          type: boolean
          description: True when the store has at least one key.
        storefrontId:
          type: string
          nullable: true
        ownerKind:
          type: string
          enum:
            - store
            - personal
      required:
        - groups
        - image
        - configured
        - ownerKind
      additionalProperties: false
    GetAiRoutingResponseGroups:
      type: object
      properties:
        id:
          type: string
          enum:
            - listing
            - photo
            - magic
            - support
            - workflows
            - images
            - creator
            - marketing
        label:
          type: string
        scopes:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - id
        - label
        - scopes
      additionalProperties: false
    GetAiRoutingResponseImage:
      type: object
      properties:
        provider:
          type: string
          enum:
            - openai
            - google
            - xai
            - together
          nullable: true
          description: The explicit choice (grant or pin); null = automatic.
        model:
          type: string
          nullable: true
        resolvedProvider:
          type: string
          enum:
            - openai
            - google
            - xai
            - together
          nullable: true
        resolvedModel:
          type: string
          nullable: true
        supportedProviders:
          type: array
          items:
            $ref: "#/components/schemas/GetAiRoutingResponseImageSupportedProvidersItem"
        error:
          type: string
          nullable: true
      required:
        - supportedProviders
      additionalProperties: false
    GetAiStatusResponse:
      type: object
      properties:
        hasKey:
          type: boolean
        aiEnabled:
          type: boolean
        activeProvider:
          type: string
          enum:
            - custom
            - openai
            - anthropic
            - google
            - groq
            - openrouter
            - xai
            - together
          nullable: true
        capabilities:
          $ref: "#/components/schemas/GetAiStatusResponseOneOfCapabilities"
        actions: {}
        limited:
          type: boolean
        providers:
          type: object
          additionalProperties: {}
        customConfig:
          $ref: "#/components/schemas/CreateAiKeyResponseKeyCustomConfig"
        image:
          $ref: "#/components/schemas/GetAiRoutingResponseImage"
      required:
        - hasKey
        - aiEnabled
        - capabilities
        - actions
    GetAiStatusResponseOneOf1Actions:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        description:
          type: string
        capability:
          type: string
          enum:
            - text
            - vision
        section:
          type: string
          enum:
            - listing
            - photo
            - magic
            - support
        enabled:
          type: boolean
        primary:
          type: string
        fallbacks:
          type: array
          items:
            type: string
        resolvedProvider:
          type: string
          nullable: true
        tried:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - id
        - label
        - description
        - capability
        - section
        - enabled
        - primary
        - fallbacks
        - tried
      additionalProperties: false
    GetAiStatusResponseOneOfActions:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        description:
          type: string
        capability:
          type: string
          enum:
            - text
            - vision
        section:
          type: string
          enum:
            - listing
            - photo
            - magic
            - support
        enabled:
          type: boolean
        resolvedProvider:
          type: string
          nullable: true
      required:
        - id
        - label
        - description
        - capability
        - section
        - enabled
      additionalProperties: false
    GetAiStatusResponseOneOfCapabilities:
      type: object
      properties:
        vision:
          type: boolean
        jsonMode:
          type: boolean
      required:
        - vision
        - jsonMode
      additionalProperties: false
    GetAnalyticBookkeepingResponse:
      type: object
      properties:
        year:
          type: number
        monthlyPL:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticBookkeepingResponseMonthlyPL"
        annualTotals:
          $ref: "#/components/schemas/GetAnalyticBookkeepingResponseAnnualTotals"
        platformBreakdown:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticBookkeepingResponsePlatformBreakdown"
        pendingDetailsCount:
          type: number
          description: 'Sales of the year whose price and buyer are not known yet: in no line above. "N sales pending details".'
        tz:
          type: string
          description: The books timezone the year was cut in.
      required:
        - year
        - monthlyPL
        - annualTotals
        - platformBreakdown
        - pendingDetailsCount
        - tz
      additionalProperties: false
    GetAnalyticBookkeepingResponseAnnualTotals:
      type: object
      properties:
        grossSales:
          type: number
        refunds:
          type: number
        revenue:
          type: number
        cogs:
          type: number
        platformFees:
          type: number
        shippingCosts:
          type: number
        mileage:
          type: number
        otherExpenses:
          type: number
        netProfit:
          type: number
      required:
        - grossSales
        - refunds
        - revenue
        - cogs
        - platformFees
        - shippingCosts
        - mileage
        - otherExpenses
        - netProfit
      additionalProperties: false
    GetAnalyticBookkeepingResponseMonthlyPL:
      type: object
      properties:
        month:
          type: number
        revenue:
          type: number
        cogs:
          type: number
        platformFees:
          type: number
        shippingCosts:
          type: number
        otherExpenses:
          type: number
          description: Mileage and manual expenses.
        netProfit:
          type: number
      required:
        - month
        - revenue
        - cogs
        - platformFees
        - shippingCosts
        - otherExpenses
        - netProfit
      additionalProperties: false
    GetAnalyticBookkeepingResponsePlatformBreakdown:
      type: object
      properties:
        platform:
          type: string
        revenue:
          type: number
        count:
          type: number
        platformFees:
          type: number
        netProfit:
          type: number
        refunds:
          type: number
        taxCollected:
          type: number
      required:
        - platform
        - revenue
        - count
        - platformFees
        - netProfit
        - refunds
        - taxCollected
      additionalProperties: false
    GetAnalyticByPlatformResponse:
      type: object
      properties:
        days:
          type: number
        breakdown:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticByPlatformResponseBreakdown"
      required:
        - days
        - breakdown
      additionalProperties: false
    GetAnalyticByPlatformResponseBreakdown:
      type: object
      properties:
        platform:
          type: string
        sales:
          type: number
        revenue:
          type: number
        fees:
          type: number
        netProfit:
          type: number
        pendingDetailsCount:
          type: number
        netSalesCents:
          type: number
        feesCents:
          type: number
        netProfitCents:
          type: number
        share:
          type: number
      required:
        - platform
        - sales
        - revenue
        - fees
        - netProfit
        - pendingDetailsCount
        - netSalesCents
        - feesCents
        - netProfitCents
        - share
      additionalProperties: false
    GetAnalyticCompareResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticCompareResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticCompareResponseData:
      type: object
      properties:
        columns:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticCompareResponseDataColumns"
        curves:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticCompareResponseDataCurves"
        differences:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticCompareResponseDataDifferences"
        tests:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticCompareResponseDataTests"
        experimentIds:
          type: array
          items:
            type: string
      required:
        - columns
        - curves
        - differences
        - tests
        - experimentIds
      additionalProperties: false
    GetAnalyticCompareResponseDataColumns:
      type: object
      properties:
        listingId:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        status:
          type: string
        photoCount:
          type: number
        titleLength:
          type: number
        descriptionLength:
          type: number
        qualityScore:
          type: number
        channels:
          type: array
          items:
            type: string
        daysListed:
          type: number
          nullable: true
        views:
          type: number
          nullable: true
        favorites:
          type: number
          nullable: true
        offers:
          type: number
        favoriteRate:
          type: number
          nullable: true
        viewToOfferRate:
          type: number
          nullable: true
        sold:
          type: boolean
        daysToSell:
          type: number
          nullable: true
        netProfitCents:
          type: number
          nullable: true
        viewsPerDay:
          type: number
          nullable: true
      required:
        - listingId
        - title
        - status
        - photoCount
        - titleLength
        - descriptionLength
        - qualityScore
        - channels
        - offers
        - sold
      additionalProperties: false
    GetAnalyticCompareResponseDataCurves:
      type: object
      properties:
        listingId:
          type: string
        points:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - listingId
        - points
      additionalProperties: false
    GetAnalyticCompareResponseDataDifferences:
      type: object
      properties:
        field:
          type: string
          enum:
            - description
            - category
            - shipping
            - condition
            - title
            - price
            - photos
            - channels
        values:
          type: array
          items: {}
      required:
        - field
        - values
      additionalProperties: false
    GetAnalyticCompareResponseDataTests:
      type: object
      properties:
        metric:
          type: string
          enum:
            - favoriteRate
            - viewToOfferRate
            - viewsPerDay
        result:
          $ref: "#/components/schemas/AnalyticExperimentResponseDataPrimary"
      required:
        - metric
        - result
      additionalProperties: false
    GetAnalyticDashboardResponse:
      type: object
      properties:
        revenue:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseRevenue"
        profit:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseRevenue"
        soldItemsCount:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseRevenue"
        pendingDetailsCount:
          type: number
          description: '"N sales pending details": in the period, not in revenue/profit/avg.'
        cancelledCount:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseRevenue"
        cancelRate:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseCancelRate"
        refundedAmount:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseRevenue"
        refundedCount:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseRevenue"
        listedItemsCount:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseRevenue"
        avgSalePrice:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseRevenue"
        sellThroughRate:
          type: number
          nullable: true
          description: 0–100 (legacy unit). The full cohort is `sellThroughCohort`.
        sellThrough:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseSellThrough"
        sellThroughCohort:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseSellThroughCohort"
        avgDaysToSell:
          type: number
          nullable: true
        medianDaysToSell:
          type: number
          nullable: true
        salesByPlatform:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticDashboardResponseSalesByPlatform"
        avgSalePriceByPlatform:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticDashboardResponseAvgSalePriceByPlatform"
        revenueByDay:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticDashboardResponseRevenueByDay"
        topCategories:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticDashboardResponseTopCategories"
        topSubcategories:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticDashboardResponseTopCategories"
        topBrands:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticDashboardResponseTopCategories"
        top5ItemsByRevenue:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticDashboardResponseTop5ItemsByRevenue"
        recentSales:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticDashboardResponseRecentSales"
        availableLabels:
          type: array
          items:
            type: string
        period:
          $ref: "#/components/schemas/GetAnalyticDashboardResponsePeriod"
      required:
        - revenue
        - profit
        - soldItemsCount
        - pendingDetailsCount
        - cancelledCount
        - cancelRate
        - refundedAmount
        - refundedCount
        - listedItemsCount
        - avgSalePrice
        - sellThrough
        - sellThroughCohort
        - salesByPlatform
        - avgSalePriceByPlatform
        - revenueByDay
        - topCategories
        - topSubcategories
        - topBrands
        - top5ItemsByRevenue
        - recentSales
        - availableLabels
        - period
      additionalProperties: false
    GetAnalyticDashboardResponseAvgSalePriceByPlatform:
      type: object
      properties:
        platform:
          type: string
        avgPrice:
          type: number
        count:
          type: number
      required:
        - platform
        - avgPrice
        - count
      additionalProperties: false
    GetAnalyticDashboardResponseCancelRate:
      type: object
      properties:
        current:
          type: number
        previous:
          type: number
      required:
        - current
        - previous
      additionalProperties: false
    GetAnalyticDashboardResponsePeriod:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
        tz:
          type: string
        compare:
          $ref: "#/components/schemas/FromTo"
      required:
        - from
        - to
        - tz
      additionalProperties: false
      description: "The resolved period (new): from/to/tz the numbers above cover."
    GetAnalyticDashboardResponseRecentSales:
      type: object
      properties:
        saleId:
          type: string
        platform:
          type: string
        platformOrderId:
          type: string
          nullable: true
        detailsPending:
          type: boolean
        salePrice:
          type: number
          nullable: true
        platformFee:
          type: number
          nullable: true
        shippingCost:
          type: number
          nullable: true
        costOfGoods:
          type: number
          nullable: true
        netProfit:
          type: number
          nullable: true
        itemTitle:
          type: string
          nullable: true
        itemImage:
          type: string
          nullable: true
      required:
        - saleId
        - platform
        - detailsPending
      additionalProperties: false
    GetAnalyticDashboardResponseRevenue:
      type: object
      properties:
        current:
          type: number
        previous:
          type: number
        pctChange:
          type: number
          nullable: true
        delta:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSalesDelta"
      required:
        - current
        - previous
        - delta
      additionalProperties: false
    GetAnalyticDashboardResponseRevenueByDay:
      type: object
      properties:
        date:
          type: string
        revenue:
          type: number
        profit:
          type: number
        listings:
          type: number
      required:
        - date
        - revenue
        - profit
        - listings
      additionalProperties: false
    GetAnalyticDashboardResponseSalesByPlatform:
      type: object
      properties:
        platform:
          type: string
        count:
          type: number
        revenue:
          type: number
      required:
        - platform
        - count
        - revenue
      additionalProperties: false
    GetAnalyticDashboardResponseSellThrough:
      type: object
      properties:
        rate:
          type: number
          nullable: true
        cohortSize:
          type: number
        cohortSold:
          type: number
        maturityDays:
          type: number
        tooYoungToJudge:
          type: boolean
        immature:
          type: number
      required:
        - cohortSize
        - cohortSold
        - maturityDays
        - tooYoungToJudge
        - immature
      additionalProperties: false
    GetAnalyticDashboardResponseSellThroughCohort:
      type: object
      properties:
        window:
          $ref: "#/components/schemas/CreateListingTagRenameRequest"
        maturityDays:
          type: number
        rate:
          type: number
          nullable: true
        sold:
          type: number
        n:
          type: number
        immature:
          type: number
        prev:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseSellThroughCohortPrev"
        delta:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSalesDelta"
      required:
        - window
        - maturityDays
        - sold
        - n
        - immature
        - delta
      additionalProperties: false
    GetAnalyticDashboardResponseSellThroughCohortPrev:
      type: object
      properties:
        rate:
          type: number
          nullable: true
        n:
          type: number
      required:
        - n
      additionalProperties: false
      nullable: true
    GetAnalyticDashboardResponseTop5ItemsByRevenue:
      type: object
      properties:
        saleId:
          type: string
        platform:
          type: string
        salePrice:
          type: number
          nullable: true
        netProfit:
          type: number
          nullable: true
        revenue:
          type: number
        itemTitle:
          type: string
          nullable: true
        itemImage:
          type: string
          nullable: true
      required:
        - saleId
        - platform
        - revenue
      additionalProperties: false
    GetAnalyticDashboardResponseTopCategories:
      type: object
      properties:
        name:
          type: string
        count:
          type: number
        revenue:
          type: number
      required:
        - name
        - count
        - revenue
      additionalProperties: false
    GetAnalyticExperimentByIdResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticExperimentByIdResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticExperimentByIdResponseData:
      type: object
      properties:
        hypothesis:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        plannedEndAt:
          type: string
          nullable: true
        stoppedAt:
          type: string
          nullable: true
        conclusion:
          type: string
          nullable: true
        winnerArmId:
          type: string
          nullable: true
        caveat:
          type: string
          enum:
            - before_after
            - cross_marketplace
          nullable: true
        arms:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticExperimentByIdResponseDataArms"
        primary:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticExperimentByIdResponseDataPrimary"
        guardrails:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticExperimentByIdResponseDataPrimary"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/AnalyticExperimentResponseDataDaily"
        recommendation:
          $ref: "#/components/schemas/AnalyticExperimentResponseDataRecommendation"
        id:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - running
            - concluded
            - stopped
        kind:
          type: string
          enum:
            - split
            - sequential
        field:
          type: string
          enum:
            - description
            - category
            - shipping
            - title
            - price
            - photos
            - marketplace
            - other
        startedAt:
          type: string
          nullable: true
        verdict:
          type: string
          enum:
            - insufficient
            - b_better
            - a_better
            - no_difference
            - leading_b
            - leading_a
        primaryMetric:
          type: string
          enum:
            - sale
            - favorite_rate
            - view_to_offer_rate
            - views_per_day
            - favorites_per_day
            - offers_per_day
        daysRunning:
          type: number
        winnerLabel:
          type: string
          nullable: true
      required:
        - arms
        - primary
        - guardrails
        - daily
        - recommendation
        - id
        - name
        - status
        - kind
        - field
        - verdict
        - primaryMetric
        - daysRunning
      additionalProperties: false
    GetAnalyticExperimentByIdResponseDataArms:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        platform:
          type: string
          nullable: true
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        snapshot:
          type: object
          additionalProperties: {}
        window:
          $ref: "#/components/schemas/GetAnalyticExperimentByIdResponseDataArmsWindow"
        exposureDays:
          type: number
        views:
          type: number
          nullable: true
        favorites:
          type: number
          nullable: true
        offers:
          type: number
        sold:
          type: boolean
        daysToSale:
          type: number
          nullable: true
        rates:
          $ref: "#/components/schemas/GetAnalyticExperimentByIdResponseDataArmsRates"
      required:
        - id
        - label
        - title
        - snapshot
        - window
        - exposureDays
        - offers
        - sold
        - rates
      additionalProperties: false
    GetAnalyticExperimentByIdResponseDataArmsRates:
      type: object
      properties:
        sale:
          type: number
          nullable: true
        favorite_rate:
          type: number
          nullable: true
        view_to_offer_rate:
          type: number
          nullable: true
        views_per_day:
          type: number
          nullable: true
        favorites_per_day:
          type: number
          nullable: true
        offers_per_day:
          type: number
          nullable: true
      additionalProperties: false
    GetAnalyticExperimentByIdResponseDataArmsWindow:
      type: object
      properties:
        start:
          type: string
          nullable: true
        end:
          type: string
          nullable: true
      additionalProperties: false
    GetAnalyticExperimentByIdResponseDataPrimary:
      type: object
      properties:
        metric:
          type: string
        a:
          $ref: "#/components/schemas/GetAnalyticExperimentByIdResponseDataPrimaryA"
        b:
          $ref: "#/components/schemas/GetAnalyticExperimentByIdResponseDataPrimaryA"
        lift:
          type: number
          nullable: true
        ci95:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
          nullable: true
        pValue:
          type: number
          nullable: true
        verdict:
          type: string
          enum:
            - insufficient
            - b_better
            - a_better
            - no_difference
            - leading_b
            - leading_a
        reason:
          type: string
          nullable: true
        observational:
          type: boolean
      required:
        - metric
        - a
        - b
        - verdict
        - observational
      additionalProperties: false
    GetAnalyticExperimentByIdResponseDataPrimaryA:
      type: object
      properties:
        value:
          type: number
          nullable: true
        n:
          type: number
        events:
          type: number
      required:
        - n
        - events
      additionalProperties: false
    GetAnalyticExperimentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticExperimentResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticExperimentResponseData:
      type: object
      properties:
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticExperimentResponseDataRows"
        page:
          $ref: "#/components/schemas/GetAnalyticExperimentResponseDataPage"
      required:
        - rows
        - page
      additionalProperties: false
    GetAnalyticExperimentResponseDataPage:
      type: object
      properties:
        page:
          type: number
        size:
          type: number
        total:
          type: number
      required:
        - page
        - size
        - total
      additionalProperties: false
    GetAnalyticExperimentResponseDataRows:
      type: object
      properties:
        plannedEndAt:
          type: string
          nullable: true
        armThumbs:
          type: array
          items:
            type: object
            additionalProperties: {}
        id:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
            - split
            - sequential
        field:
          type: string
          enum:
            - description
            - category
            - shipping
            - title
            - price
            - photos
            - marketplace
            - other
        primaryMetric:
          type: string
          enum:
            - sale
            - favorite_rate
            - view_to_offer_rate
            - views_per_day
            - favorites_per_day
            - offers_per_day
        status:
          type: string
          enum:
            - draft
            - running
            - concluded
            - stopped
        startedAt:
          type: string
          nullable: true
        daysRunning:
          type: number
        arms:
          type: number
        verdict:
          type: string
          enum:
            - insufficient
            - b_better
            - a_better
            - no_difference
            - leading_b
            - leading_a
        winnerLabel:
          type: string
          nullable: true
      required:
        - armThumbs
        - id
        - name
        - kind
        - field
        - primaryMetric
        - status
        - daysRunning
        - arms
        - verdict
      additionalProperties: false
    GetAnalyticInventoryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticInventoryResponseData:
      type: object
      properties:
        aging:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataAging"
        worst:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticInventoryResponseDataWorst"
        shelf:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataShelf"
        sellThrough:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseSellThroughCohort"
        velocity:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataVelocity"
        health:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataHealth"
        period:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataPeriod"
      required:
        - aging
        - worst
        - shelf
        - sellThrough
        - velocity
        - health
        - period
      additionalProperties: false
    GetAnalyticInventoryResponseDataAging:
      type: object
      properties:
        buckets:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticInventoryResponseDataAgingBuckets"
        totals:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataAgingTotals"
        over90CostCents:
          type: number
        over90ListedValueCents:
          type: number
        attentionCostCents:
          type: number
        sizeBy:
          type: string
          enum:
            - value
            - cost
            - units
          x-enum-varnames:
            - valueOption
            - cost
            - units
      required:
        - buckets
        - totals
        - over90CostCents
        - over90ListedValueCents
        - attentionCostCents
        - sizeBy
      additionalProperties: false
    GetAnalyticInventoryResponseDataAgingBuckets:
      type: object
      properties:
        key:
          type: string
          enum:
            - unlisted
            - lt7
            - d7_30
            - d30_90
            - gt90
        items:
          type: number
        units:
          type: number
        costCents:
          type: number
        costKnownItems:
          type: number
        costUnknownItems:
          type: number
        listedValueCents:
          type: number
        marketValueCents:
          type: number
          nullable: true
      required:
        - key
        - items
        - units
        - costCents
        - costKnownItems
        - costUnknownItems
        - listedValueCents
      additionalProperties: false
    GetAnalyticInventoryResponseDataAgingTotals:
      type: object
      properties:
        items:
          type: number
        units:
          type: number
        costCents:
          type: number
        costKnownItems:
          type: number
        listedValueCents:
          type: number
        marketValueCents:
          type: number
          nullable: true
      required:
        - items
        - units
        - costCents
        - costKnownItems
        - listedValueCents
      additionalProperties: false
    GetAnalyticInventoryResponseDataHealth:
      type: object
      properties:
        detailsPendingSales:
          type: number
        costMissingSoldUnits:
          type: number
        estimatedFeeSales:
          type: number
        nonUsdSales:
          type: number
        statsCoverage:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticInventoryResponseDataHealthStatsCoverage"
      required:
        - detailsPendingSales
        - costMissingSoldUnits
        - estimatedFeeSales
        - nonUsdSales
        - statsCoverage
      additionalProperties: false
    GetAnalyticInventoryResponseDataHealthStatsCoverage:
      type: object
      properties:
        platform:
          type: string
        semantics:
          type: string
          enum:
            - none
            - lifetime
            - rolling7d
            - rolling30d
            - clicks
        listings:
          type: number
      required:
        - platform
        - semantics
        - listings
      additionalProperties: false
    GetAnalyticInventoryResponseDataPeriod:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
        tz:
          type: string
        granularity:
          type: string
          enum:
            - day
            - week
            - month
        compare:
          $ref: "#/components/schemas/FromTo"
      required:
        - from
        - to
        - tz
        - granularity
      additionalProperties: false
      description: The resolved window (its granularity buckets `velocity`).
    GetAnalyticInventoryResponseDataShelf:
      type: object
      properties:
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticInventoryResponseDataShelfPoints"
        since:
          type: string
          nullable: true
      required:
        - points
      additionalProperties: false
    GetAnalyticInventoryResponseDataShelfPoints:
      type: object
      properties:
        date:
          type: string
        items:
          type: number
        units:
          type: number
        costCents:
          type: number
        listedValueCents:
          type: number
        marketValueCents:
          type: number
          nullable: true
        costKnownShare:
          type: number
        reconstructed:
          type: boolean
      required:
        - date
        - items
        - units
        - costCents
        - listedValueCents
        - costKnownShare
        - reconstructed
      additionalProperties: false
    GetAnalyticInventoryResponseDataVelocity:
      type: object
      properties:
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticInventoryResponseDataVelocityPoints"
      required:
        - points
      additionalProperties: false
    GetAnalyticInventoryResponseDataVelocityPoints:
      type: object
      properties:
        date:
          type: string
        listed:
          type: number
        sold:
          type: number
      required:
        - date
        - listed
        - sold
      additionalProperties: false
    GetAnalyticInventoryResponseDataWorst:
      type: object
      properties:
        inventoryItemId:
          type: string
        listingId:
          type: string
          nullable: true
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        daysListed:
          type: number
          nullable: true
        costCents:
          type: number
          nullable: true
        listedPriceCents:
          type: number
          nullable: true
        views:
          type: number
          nullable: true
        favorites:
          type: number
          nullable: true
        bucket:
          type: string
          enum:
            - unlisted
            - lt7
            - d7_30
            - d30_90
            - gt90
      required:
        - inventoryItemId
        - title
        - bucket
      additionalProperties: false
    GetAnalyticItemByListingIdResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticItemByListingIdResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticItemByListingIdResponseData:
      type: object
      properties:
        redirectListingId:
          type: string
      required:
        - redirectListingId
      additionalProperties: false
    GetAnalyticItemResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticItemResponseItems"
        total:
          type: number
        page:
          type: number
        limit:
          type: number
      required:
        - items
        - total
        - page
        - limit
      additionalProperties: false
    GetAnalyticItemResponseItems:
      type: object
      properties:
        saleId:
          type: string
        inventoryItemId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        platform:
          type: string
        platformOrderId:
          type: string
          nullable: true
        itemTitle:
          type: string
          nullable: true
        itemBrand:
          type: string
          nullable: true
        itemSku:
          type: string
          nullable: true
        detailsPending:
          type: boolean
        salePrice:
          type: number
          nullable: true
        platformFee:
          type: number
          nullable: true
        shippingCost:
          type: number
          nullable: true
        costOfGoods:
          type: number
          nullable: true
        netProfit:
          type: number
          nullable: true
        marginPct:
          type: number
          nullable: true
        daysToSell:
          type: number
          nullable: true
        detectedAt:
          type: string
          format: date-time
      required:
        - saleId
        - platform
        - detailsPending
        - detectedAt
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseData:
      type: object
      properties:
        period:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataPeriod"
        platform:
          type: string
        row:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRow"
        series:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataSeries"
        feeBreakdown:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataFeeBreakdown"
        daysToSellHistogram:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataDaysToSellHistogram"
        priceRealization:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataPriceRealization"
        categories:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataCategories"
        topItems:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataTopItems"
        atRisk:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataAtRisk"
        heatmap:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataHeatmap"
        offers:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataOffers"
      required:
        - period
        - platform
        - row
        - series
        - feeBreakdown
        - daysToSellHistogram
        - priceRealization
        - categories
        - topItems
        - atRisk
        - heatmap
        - offers
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataAtRisk:
      type: object
      properties:
        listingId:
          type: string
        title:
          type: string
        daysLive:
          type: number
        views:
          type: number
          nullable: true
        favorites:
          type: number
          nullable: true
        priceCents:
          type: number
          nullable: true
      required:
        - listingId
        - title
        - daysLive
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataCategories:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        unitsSold:
          type: number
        netSalesCents:
          type: number
        netProfitCents:
          type: number
          nullable: true
      required:
        - key
        - label
        - unitsSold
        - netSalesCents
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataDaysToSellHistogram:
      type: object
      properties:
        bucket:
          type: string
          enum:
            - 0-3
            - 4-7
            - 8-14
            - 15-30
            - 31-60
            - 61-90
            - 90+
        count:
          type: number
      required:
        - bucket
        - count
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataFeeBreakdown:
      type: object
      properties:
        feesCents:
          type: number
        shippingCostCents:
          type: number
        shippingChargedCents:
          type: number
        refundsCents:
          type: number
        cogsCents:
          type: number
      required:
        - feesCents
        - shippingCostCents
        - shippingChargedCents
        - refundsCents
        - cogsCents
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataHeatmap:
      type: object
      properties:
        hour:
          type: number
        sales:
          type: number
      required:
        - hour
        - sales
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataOffers:
      type: object
      properties:
        received:
          type: number
        accepted:
          type: number
        declined:
          type: number
        countered:
          type: number
        avgPctOfAsk:
          type: number
          nullable: true
        medianResponseMinutes:
          type: number
          nullable: true
      required:
        - received
        - accepted
        - declined
        - countered
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataPriceRealization:
      type: object
      properties:
        bucket:
          type: string
          enum:
            - <70%
            - 70-80%
            - 80-90%
            - 90-100%
            - ">=100%"
        count:
          type: number
      required:
        - bucket
        - count
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataRow:
      type: object
      properties:
        platform:
          type: string
        connected:
          type: boolean
        activeListings:
          type: number
        staleListings:
          type: number
        feesCents:
          type: number
        metrics:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetrics"
        viewsSemantics:
          type: string
          enum:
            - none
            - lifetime
            - rolling7d
            - rolling30d
            - clicks
      required:
        - platform
        - connected
        - activeListings
        - staleListings
        - feesCents
        - metrics
        - viewsSemantics
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataRowMetrics:
      type: object
      properties:
        netSales:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        netProfit:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        unitsSold:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        asp:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        marginRate:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        sellThroughRate:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        medianDaysToSell:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        takeRate:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        shippingSubsidy:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        cancelRate:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        returnRate:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        offerAcceptRate:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        avgOfferPctOfAsk:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        favoriteRate:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
        viewsPerListingDay:
          $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales"
      required:
        - netSales
        - netProfit
        - unitsSold
        - asp
        - marginRate
        - sellThroughRate
        - medianDaysToSell
        - takeRate
        - shippingSubsidy
        - cancelRate
        - returnRate
        - offerAcceptRate
        - avgOfferPctOfAsk
        - favoriteRate
        - viewsPerListingDay
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataRowMetricsNetSales:
      type: object
      properties:
        value:
          type: number
          nullable: true
        n:
          type: number
          nullable: true
        delta:
          type: object
          additionalProperties: {}
      required:
        - delta
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataSeries:
      type: object
      properties:
        date:
          type: string
        netSalesCents:
          type: number
        netProfitCents:
          type: number
        unitsSold:
          type: number
        feesCents:
          type: number
      required:
        - date
        - netSalesCents
        - netProfitCents
        - unitsSold
        - feesCents
      additionalProperties: false
    GetAnalyticMarketplaceByPlatformResponseDataTopItems:
      type: object
      properties:
        listingId:
          type: string
          nullable: true
        saleId:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        platform:
          type: string
        netSalesCents:
          type: number
        netProfitCents:
          type: number
          nullable: true
        soldAt:
          type: string
      required:
        - saleId
        - title
        - platform
        - netSalesCents
        - soldAt
      additionalProperties: false
    GetAnalyticMarketplaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticMarketplaceResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticMarketplaceResponseData:
      type: object
      properties:
        period:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataPeriod"
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceResponseDataRows"
        headToHead:
          $ref: "#/components/schemas/GetAnalyticMarketplaceResponseDataHeadToHead"
        health:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataHealth"
        insights:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceResponseDataInsights"
      required:
        - period
        - rows
        - health
        - insights
      additionalProperties: false
    GetAnalyticMarketplaceResponseDataHeadToHead:
      type: object
      properties:
        platforms:
          type: array
          items:
            type: string
        sharedListings:
          type: number
        soldOn:
          type: object
          additionalProperties: {}
        realizedVsAsk:
          type: object
          additionalProperties: {}
        medianDaysToSell:
          type: object
          additionalProperties: {}
        netPerSaleCents:
          type: object
          additionalProperties: {}
      required:
        - platforms
        - sharedListings
        - soldOn
        - realizedVsAsk
        - medianDaysToSell
        - netPerSaleCents
      additionalProperties: false
      nullable: true
    GetAnalyticMarketplaceResponseDataInsights:
      type: object
      properties:
        id:
          type: string
        severity:
          type: string
          enum:
            - info
            - warn
            - opportunity
        title:
          type: string
        body:
          type: string
        metricId:
          type: string
          enum:
            - orders
            - netSales
            - netProfit
            - unitsSold
            - asp
            - marginRate
            - sellThroughRate
            - medianDaysToSell
            - activeListings
            - takeRate
            - grossSales
            - refunds
            - fees
            - shippingCost
            - shippingCharged
            - shippingSubsidy
            - cogs
            - roi
            - listedCount
            - p75DaysToSell
            - cancelRate
            - returnRate
            - offers
            - offerAcceptRate
            - avgOfferPctOfAsk
            - views
            - favorites
            - favoriteRate
            - viewToOfferRate
            - viewsPerListingDay
            - crosspostCoverage
            - staleShare
            - costCoverage
          nullable: true
        action:
          $ref: "#/components/schemas/GetAnalyticMarketplaceResponseDataInsightsAction"
      required:
        - id
        - severity
        - title
        - body
      additionalProperties: false
    GetAnalyticMarketplaceResponseDataInsightsAction:
      type: object
      properties:
        label:
          type: string
        href:
          type: string
      required:
        - label
        - href
      additionalProperties: false
      nullable: true
    GetAnalyticMarketplaceResponseDataRows:
      type: object
      properties:
        platform:
          type: string
        connected:
          type: boolean
        activeListings:
          type: number
        staleListings:
          type: number
        feesCents:
          type: number
        metrics:
          $ref: "#/components/schemas/GetAnalyticMarketplaceResponseDataRowsMetrics"
        viewsSemantics:
          type: string
          enum:
            - none
            - lifetime
            - rolling7d
            - rolling30d
            - clicks
      required:
        - platform
        - connected
        - activeListings
        - staleListings
        - feesCents
        - metrics
        - viewsSemantics
      additionalProperties: false
    GetAnalyticMarketplaceResponseDataRowsMetrics:
      type: object
      properties:
        netSales:
          type: object
          additionalProperties: {}
        netProfit:
          type: object
          additionalProperties: {}
        unitsSold:
          type: object
          additionalProperties: {}
        asp:
          type: object
          additionalProperties: {}
        marginRate:
          type: object
          additionalProperties: {}
        sellThroughRate:
          type: object
          additionalProperties: {}
        medianDaysToSell:
          type: object
          additionalProperties: {}
        takeRate:
          type: object
          additionalProperties: {}
        shippingSubsidy:
          type: object
          additionalProperties: {}
        cancelRate:
          type: object
          additionalProperties: {}
        returnRate:
          type: object
          additionalProperties: {}
        offerAcceptRate:
          type: object
          additionalProperties: {}
        avgOfferPctOfAsk:
          type: object
          additionalProperties: {}
        favoriteRate:
          type: object
          additionalProperties: {}
        viewsPerListingDay:
          type: object
          additionalProperties: {}
      required:
        - netSales
        - netProfit
        - unitsSold
        - asp
        - marginRate
        - sellThroughRate
        - medianDaysToSell
        - takeRate
        - shippingSubsidy
        - cancelRate
        - returnRate
        - offerAcceptRate
        - avgOfferPctOfAsk
        - favoriteRate
        - viewsPerListingDay
      additionalProperties: false
    GetAnalyticOverviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticOverviewResponseData:
      type: object
      properties:
        period:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataPeriod"
        kpis:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpis"
        series:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataSeries"
        byPlatform:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticOverviewResponseDataByPlatform"
        feesCents:
          type: number
        topCategories:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataCategories"
        topBrands:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataCategories"
        topItems:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataTopItems"
        byStore:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticOverviewResponseDataByStore"
          nullable: true
        sellThrough:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseSellThroughCohort"
        health:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataHealth"
        insights:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceResponseDataInsights"
      required:
        - period
        - kpis
        - series
        - byPlatform
        - feesCents
        - topCategories
        - topBrands
        - topItems
        - sellThrough
        - health
        - insights
      additionalProperties: false
    GetAnalyticOverviewResponseDataByPlatform:
      type: object
      properties:
        platform:
          type: string
        netSalesCents:
          type: number
        netProfitCents:
          type: number
        unitsSold:
          type: number
        aspCents:
          type: number
          nullable: true
        takeRate:
          type: number
          nullable: true
        medianDaysToSell:
          type: number
          nullable: true
        share:
          type: number
        feesCents:
          type: number
          description: "The platform's marketplace fees on completed sales, in cents: the real sum, not netSales x takeRate."
        pendingDetailsCount:
          type: number
          description: Sales on this platform still waiting on details (excluded from the money above, never shown as $0).
      required:
        - platform
        - netSalesCents
        - netProfitCents
        - unitsSold
        - share
        - feesCents
        - pendingDetailsCount
      additionalProperties: false
    GetAnalyticOverviewResponseDataByStore:
      type: object
      properties:
        storeId:
          type: string
        name:
          type: string
        orders:
          type: number
        netSalesCents:
          type: number
        netProfitCents:
          type: number
      required:
        - storeId
        - name
        - orders
        - netSalesCents
        - netProfitCents
      additionalProperties: false
    GetAnalyticOverviewResponseDataKpis:
      type: object
      properties:
        netSales:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        netProfit:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        unitsSold:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        asp:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        marginRate:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        sellThroughRate:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        medianDaysToSell:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        activeListings:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        takeRate:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
      required:
        - netSales
        - netProfit
        - unitsSold
        - asp
        - marginRate
        - sellThroughRate
        - medianDaysToSell
        - activeListings
        - takeRate
      additionalProperties: false
    GetAnalyticOverviewResponseDataKpisNetSales:
      type: object
      properties:
        value:
          type: number
          nullable: true
        n:
          type: number
          nullable: true
        delta:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSalesDelta"
      required:
        - delta
      additionalProperties: false
    GetAnalyticOverviewResponseDataKpisNetSalesDelta:
      type: object
      properties:
        state:
          type: string
          enum:
            - flat
            - none
            - up
            - down
            - new
            - insufficient
        pct:
          type: number
          nullable: true
        pp:
          type: number
          nullable: true
        prev:
          type: number
          nullable: true
        good:
          type: boolean
          nullable: true
      required:
        - state
      additionalProperties: false
    GetAnalyticOverviewResponseDataSeries:
      type: object
      properties:
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticOverviewResponseDataSeriesPoints"
        compare:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticOverviewResponseDataSeriesCompare"
          nullable: true
      required:
        - points
      additionalProperties: false
    GetAnalyticOverviewResponseDataSeriesCompare:
      type: object
      properties:
        date:
          type: string
        netSalesCents:
          type: number
        netProfitCents:
          type: number
      required:
        - date
        - netSalesCents
        - netProfitCents
      additionalProperties: false
    GetAnalyticOverviewResponseDataSeriesPoints:
      type: object
      properties:
        date:
          type: string
        netSalesCents:
          type: number
        netProfitCents:
          type: number
        unitsSold:
          type: number
        listedCount:
          type: number
      required:
        - date
        - netSalesCents
        - netProfitCents
        - unitsSold
        - listedCount
      additionalProperties: false
    GetAnalyticPerformanceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticPerformanceResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticPerformanceResponseData:
      type: object
      properties:
        period:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataPeriod"
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticPerformanceResponseDataRows"
        page:
          $ref: "#/components/schemas/GetAnalyticExperimentResponseDataPage"
        totals:
          $ref: "#/components/schemas/GetAnalyticPerformanceResponseDataTotals"
        unlinkedSales:
          $ref: "#/components/schemas/GetAnalyticPerformanceResponseDataUnlinkedSales"
        health:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataHealth"
      required:
        - period
        - rows
        - page
        - totals
        - unlinkedSales
        - health
      additionalProperties: false
    GetAnalyticPerformanceResponseDataRows:
      type: object
      properties:
        listingId:
          type: string
        inventoryItemIds:
          type: array
          items:
            type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        categoryMain:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        status:
          type: string
        priceCents:
          type: number
          nullable: true
        firstListedAt:
          type: string
          nullable: true
        daysListed:
          type: number
          nullable: true
        channels:
          type: array
          items:
            type: object
            additionalProperties: {}
        views:
          type: number
          nullable: true
        favorites:
          type: number
          nullable: true
        offers:
          type: number
        conversations:
          type: number
        unitsSold:
          type: number
        netSalesCents:
          type: number
        netProfitCents:
          type: number
          nullable: true
        marginRate:
          type: number
          nullable: true
        daysToSell:
          type: number
          nullable: true
        costKnown:
          type: boolean
        detailsPending:
          type: boolean
        lastActivityAt:
          type: string
          nullable: true
        healthScore:
          type: number
      required:
        - listingId
        - inventoryItemIds
        - title
        - status
        - channels
        - offers
        - conversations
        - unitsSold
        - netSalesCents
        - costKnown
        - detailsPending
        - healthScore
      additionalProperties: false
    GetAnalyticPerformanceResponseDataTotals:
      type: object
      properties:
        listings:
          type: number
        sold:
          type: number
        unitsSold:
          type: number
        netSalesCents:
          type: number
        netProfitCents:
          type: number
          nullable: true
      required:
        - listings
        - sold
        - unitsSold
        - netSalesCents
      additionalProperties: false
    GetAnalyticPerformanceResponseDataUnlinkedSales:
      type: object
      properties:
        count:
          type: number
        netSalesCents:
          type: number
      required:
        - count
        - netSalesCents
      additionalProperties: false
    GetAnalyticProgramResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticProgramResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticProgramResponseData:
      type: object
      properties:
        program:
          type: string
          enum:
            - worlds
            - wholesale
            - ads
            - rentals
            - funding
            - vault
            - discounts
            - branding
            - drops
            - events
            - market
            - team
            - referrals
            - developer-apps
        label:
          type: string
        range:
          $ref: "#/components/schemas/CreateListingTagRenameRequest"
        kpis:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticProgramResponseDataKpis"
        trend:
          $ref: "#/components/schemas/GetAnalyticProgramResponseDataTrend"
        breakdown:
          $ref: "#/components/schemas/GetAnalyticProgramResponseDataBreakdown"
        moreBreakdowns:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticProgramResponseDataMoreBreakdowns"
          nullable: true
          description: "Further tables after the main one (Wholesale: aging, top catalogs, top items). Absent = none."
        notes:
          type: array
          items:
            type: string
          description: Caveats a reader needs (a point-in-time figure, a window the source caps).
        dimension:
          $ref: "#/components/schemas/GetAnalyticProgramResponseDataDimension"
      required:
        - program
        - label
        - range
        - kpis
        - trend
        - breakdown
        - notes
      additionalProperties: false
    GetAnalyticProgramResponseDataBreakdown:
      type: object
      properties:
        title:
          type: string
        columns:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticProgramResponseDataBreakdownColumns"
        rows:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - title
        - columns
        - rows
      additionalProperties: false
    GetAnalyticProgramResponseDataBreakdownColumns:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        kind:
          type: string
          enum:
            - date
            - text
            - days
            - count
            - rate
            - cents
            - ratio
      required:
        - key
        - label
        - kind
      additionalProperties: false
    GetAnalyticProgramResponseDataDimension:
      type: object
      properties:
        param:
          type: string
        current:
          type: string
        options:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticProgramResponseDataDimensionOptions"
      required:
        - param
        - current
        - options
      additionalProperties: false
      nullable: true
    GetAnalyticProgramResponseDataDimensionOptions:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
      required:
        - id
        - label
      additionalProperties: false
    GetAnalyticProgramResponseDataKpis:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        value:
          type: number
          nullable: true
          description: null = not known (never 0 standing in for "no data").
        unit:
          type: string
          enum:
            - days
            - count
            - rate
            - cents
            - ratio
        note:
          type: string
          nullable: true
          description: One short line under the number.
      required:
        - id
        - label
        - unit
      additionalProperties: false
    GetAnalyticProgramResponseDataMoreBreakdowns:
      type: object
      properties:
        title:
          type: string
        columns:
          type: array
          items:
            type: object
            additionalProperties: {}
        rows:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - title
        - columns
        - rows
      additionalProperties: false
    GetAnalyticProgramResponseDataTrend:
      type: object
      properties:
        unit:
          type: string
          enum:
            - days
            - count
            - rate
            - cents
            - ratio
          description: "One unit per chart: two measures of different scale are two charts, so a trend carries one."
        series:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticProgramResponseDataTrendSeries"
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticProgramResponseDataTrendPoints"
          description: One point per UTC day in the range, zero-filled where zero is the truth.
      required:
        - unit
        - series
        - points
      additionalProperties: false
    GetAnalyticProgramResponseDataTrendPoints:
      type: object
      properties:
        day:
          type: string
        values:
          type: object
          additionalProperties: {}
      required:
        - day
        - values
      additionalProperties: false
    GetAnalyticProgramResponseDataTrendSeries:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
      required:
        - key
        - label
      additionalProperties: false
    GetAnalyticSegmentByKeyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticSegmentByKeyResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticSegmentByKeyResponseData:
      type: object
      properties:
        period:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataPeriod"
        dim:
          type: string
          enum:
            - brand
            - category
            - source
            - condition
            - size
            - department
            - subcategory
            - priceBand
            - ageBand
        key:
          type: string
        label:
          type: string
        row:
          $ref: "#/components/schemas/GetAnalyticSegmentByKeyResponseDataRow"
        series:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticSegmentByKeyResponseDataSeries"
        byPlatform:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticOverviewResponseDataByPlatform"
        daysToSellHistogram:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataDaysToSellHistogram"
        priceBands:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticSegmentByKeyResponseDataPriceBands"
        topItems:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponseDataTopItems"
        unsold:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticPerformanceResponseDataRows"
      required:
        - period
        - dim
        - key
        - label
        - row
        - series
        - byPlatform
        - daysToSellHistogram
        - priceBands
        - topItems
        - unsold
      additionalProperties: false
    GetAnalyticSegmentByKeyResponseDataPriceBands:
      type: object
      properties:
        band:
          type: string
        unitsSold:
          type: number
        sellThroughRate:
          type: number
          nullable: true
        n:
          type: number
      required:
        - band
        - unitsSold
        - n
      additionalProperties: false
    GetAnalyticSegmentByKeyResponseDataRow:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        listedCount:
          type: number
        activeCount:
          type: number
        unitsSold:
          type: number
        sellThrough:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseSellThroughCohort"
        medianDaysToSell:
          type: number
          nullable: true
        netSalesCents:
          type: number
        netProfitCents:
          type: number
          nullable: true
        marginRate:
          type: number
          nullable: true
        roi:
          type: number
          nullable: true
        aspCents:
          type: number
          nullable: true
        avgDiscountFromAskRate:
          type: number
          nullable: true
        share:
          type: number
        lowSample:
          type: boolean
      required:
        - key
        - label
        - listedCount
        - activeCount
        - unitsSold
        - sellThrough
        - netSalesCents
        - share
        - lowSample
      additionalProperties: false
    GetAnalyticSegmentByKeyResponseDataSeries:
      type: object
      properties:
        date:
          type: string
        netSalesCents:
          type: number
        unitsSold:
          type: number
        listedCount:
          type: number
      required:
        - date
        - netSalesCents
        - unitsSold
        - listedCount
      additionalProperties: false
    GetAnalyticSegmentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAnalyticSegmentResponseData"
      required:
        - data
      additionalProperties: false
    GetAnalyticSegmentResponseData:
      type: object
      properties:
        period:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataPeriod"
        dim:
          type: string
          enum:
            - brand
            - category
            - source
            - condition
            - size
            - department
            - subcategory
            - priceBand
            - ageBand
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticSegmentResponseDataRows"
        other:
          $ref: "#/components/schemas/GetAnalyticSegmentResponseDataOther"
        health:
          $ref: "#/components/schemas/GetAnalyticInventoryResponseDataHealth"
        insights:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticMarketplaceResponseDataInsights"
      required:
        - period
        - dim
        - rows
        - health
        - insights
      additionalProperties: false
    GetAnalyticSegmentResponseDataOther:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        listedCount:
          type: number
        activeCount:
          type: number
        unitsSold:
          type: number
        sellThrough:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseSellThroughCohort"
        medianDaysToSell:
          type: number
          nullable: true
        netSalesCents:
          type: number
        netProfitCents:
          type: number
          nullable: true
        marginRate:
          type: number
          nullable: true
        roi:
          type: number
          nullable: true
        aspCents:
          type: number
          nullable: true
        avgDiscountFromAskRate:
          type: number
          nullable: true
        share:
          type: number
        lowSample:
          type: boolean
      required:
        - key
        - label
        - listedCount
        - activeCount
        - unitsSold
        - sellThrough
        - netSalesCents
        - share
        - lowSample
      additionalProperties: false
      nullable: true
    GetAnalyticSegmentResponseDataRows:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        listedCount:
          type: number
        activeCount:
          type: number
        unitsSold:
          type: number
        sellThrough:
          $ref: "#/components/schemas/GetAnalyticSegmentResponseDataRowsSellThrough"
        medianDaysToSell:
          type: number
          nullable: true
        netSalesCents:
          type: number
        netProfitCents:
          type: number
          nullable: true
        marginRate:
          type: number
          nullable: true
        roi:
          type: number
          nullable: true
        aspCents:
          type: number
          nullable: true
        avgDiscountFromAskRate:
          type: number
          nullable: true
        share:
          type: number
        lowSample:
          type: boolean
      required:
        - key
        - label
        - listedCount
        - activeCount
        - unitsSold
        - sellThrough
        - netSalesCents
        - share
        - lowSample
      additionalProperties: false
    GetAnalyticSegmentResponseDataRowsSellThrough:
      type: object
      properties:
        window:
          type: object
          additionalProperties: {}
        maturityDays:
          type: number
        rate:
          type: number
          nullable: true
        sold:
          type: number
        n:
          type: number
        immature:
          type: number
        prev:
          type: object
          nullable: true
          additionalProperties: {}
        delta:
          type: object
          additionalProperties: {}
      required:
        - window
        - maturityDays
        - sold
        - n
        - immature
        - delta
      additionalProperties: false
    GetAnalyticSummaryResponse:
      type: object
      properties:
        days:
          type: number
        sales:
          type: number
        revenue:
          type: number
        fees:
          type: number
        pendingDetailsCount:
          type: number
        unitsSold:
          type: number
        netSalesCents:
          type: number
        feesCents:
          type: number
        netProfitCents:
          type: number
          nullable: true
      required:
        - days
        - sales
        - revenue
        - fees
        - pendingDetailsCount
        - unitsSold
        - netSalesCents
        - feesCents
      additionalProperties: false
    GetAnalyticTimeseryResponse:
      type: object
      properties:
        days:
          type: number
        granularity:
          type: string
          enum:
            - day
            - week
            - month
        series:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticTimeseryResponseSeries"
      required:
        - days
        - granularity
        - series
      additionalProperties: false
    GetAnalyticTimeseryResponseSeries:
      type: object
      properties:
        day:
          type: string
        sales:
          type: number
        revenue:
          type: number
        netSalesCents:
          type: number
        netProfitCents:
          type: number
      required:
        - day
        - sales
        - revenue
        - netSalesCents
        - netProfitCents
      additionalProperties: false
    GetAnalyticTodayResponse:
      type: object
      properties:
        checklist:
          $ref: "#/components/schemas/GetAnalyticTodayResponseChecklist"
        streak:
          $ref: "#/components/schemas/GetAnalyticTodayResponseStreak"
        activitySparkline:
          type: array
          items:
            type: number
        inbox:
          $ref: "#/components/schemas/GetAnalyticTodayResponseInbox"
      required:
        - checklist
        - streak
        - activitySparkline
        - inbox
      additionalProperties: false
    GetAnalyticTodayResponseChecklist:
      type: object
      properties:
        ordersToShip:
          type: number
        unreadMessages:
          type: number
        listingsStaleEnoughToRelist:
          type: number
        draftsWaiting:
          type: number
      required:
        - ordersToShip
        - unreadMessages
        - listingsStaleEnoughToRelist
        - draftsWaiting
      additionalProperties: false
    GetAnalyticTodayResponseInbox:
      type: object
      properties:
        unread:
          type: number
          description: Unread conversations + unopened offers — the Unread tab's rows (services/inbox/attention.ts).
        awaitingReply:
          type: number
          description: Threads and offers waiting on the seller — the Needs reply tab's rows.
        medianResponseHours:
          type: number
          nullable: true
          description: Median hours from a buyer's question to the seller's reply, last 90 days; null below MIN_ANSWERED.
        answered:
          type: number
          description: Questions answered in the window (the median's sample).
      required:
        - unread
        - awaitingReply
        - answered
      additionalProperties: false
    GetAnalyticTodayResponseStreak:
      type: object
      properties:
        current:
          type: number
        longest:
          type: number
        lastActiveDate:
          type: string
          nullable: true
      required:
        - current
        - longest
      additionalProperties: false
    GetAppEarningResponse:
      type: object
      properties:
        summary:
          $ref: "#/components/schemas/GetAppEarningResponseSummary"
        ledger:
          type: array
          items:
            $ref: "#/components/schemas/GetAppEarningResponseLedger"
        store:
          $ref: "#/components/schemas/IdName2"
        held:
          type: boolean
          description: "True while the app has no store: earnings keep accruing and wait here, never lost."
      required:
        - summary
        - ledger
        - held
      additionalProperties: false
    GetAppEarningResponseLedger:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        amountCents:
          type: number
        basisCents:
          type: number
          nullable: true
        bps:
          type: number
          nullable: true
        status:
          type: string
        saleId:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
          description: The store the row belongs to (drizzle/1320); null while the app waits for a store.
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - kind
        - amountCents
        - status
        - createdAt
      additionalProperties: false
    GetAppEarningResponseSummary:
      type: object
      properties:
        availableCents:
          type: number
        pendingCents:
          type: number
        paidCents:
          type: number
        lifetimeCents:
          type: number
      required:
        - availableCents
        - pendingCents
        - paidCents
        - lifetimeCents
      additionalProperties: false
    GetAppListingAllowanceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetAppListingAllowanceResponseData"
      required:
        - data
      additionalProperties: false
    GetAppListingAllowanceResponseData:
      type: object
      properties:
        granted:
          type: boolean
        enabled:
          type: boolean
        limitMode:
          type: string
          enum:
            - separate
            - shared
          description: "'separate' = own pool; 'shared' = counts toward the seller's plan. Staff-set, read-only here."
        limitPeriod:
          type: string
          enum:
            - monthly
            - total
          description: "Separate mode: 'total' live managed listings, or 'monthly' admitted this month."
        perSellerListingLimit:
          type: number
        platforms:
          type: array
          items:
            type: string
        note:
          type: string
          nullable: true
        trustedForShopSpace:
          type: boolean
          description: "Staff marked the app trusted for Crossly Shop space: its listings sit on top of the seller's selling limit."
      required:
        - granted
        - enabled
        - limitMode
        - limitPeriod
        - perSellerListingLimit
        - platforms
        - trustedForShopSpace
      additionalProperties: false
    GetAssigneeResponse:
      type: object
      properties:
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetAssigneeResponseMembers"
      required:
        - members
      additionalProperties: false
    GetAssigneeResponseMembers:
      type: object
      properties:
        memberId:
          type: string
          description: "team_members.id: what an assignment stores."
        userId:
          type: string
        name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        role:
          type: string
        isMe:
          type: boolean
          description: The caller's own seat.
      required:
        - memberId
        - userId
        - role
        - isMe
      additionalProperties: false
    GetAutomationCatalogResponse:
      type: object
      properties:
        triggerTypes:
          type: array
          items:
            $ref: "#/components/schemas/GetAutomationCatalogResponseTriggerTypes"
        actionTypes:
          type: array
          items:
            $ref: "#/components/schemas/GetAutomationCatalogResponseTriggerTypes"
        conditionTypes:
          type: array
          items:
            $ref: "#/components/schemas/GetAutomationCatalogResponseTriggerTypes"
      required:
        - triggerTypes
        - actionTypes
        - conditionTypes
      additionalProperties: false
    GetAutomationCatalogResponseTriggerTypes:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        description:
          type: string
        configSchema:
          type: object
          description: JSON schema for the trigger/action/condition `*Config` field.
          additionalProperties: {}
      required:
        - id
        - label
        - description
        - configSchema
      additionalProperties: false
    GetAutomationRuleExportByIdResponse:
      type: object
      properties:
        schemaVersion:
          type: number
        name:
          type: string
        trigger:
          $ref: "#/components/schemas/GetAutomationRuleExportByIdResponseTrigger"
        action:
          $ref: "#/components/schemas/GetAutomationRuleExportByIdResponseTrigger"
        $schema:
          type: string
          nullable: true
          description: Optional reference to the public schema URL — purely cosmetic.
        description:
          type: string
          nullable: true
        condition:
          $ref: "#/components/schemas/GetAutomationRuleExportByIdResponseCondition"
        platforms:
          type: array
          items:
            type: string
          nullable: true
        metadata:
          $ref: "#/components/schemas/GetAutomationRuleExportByIdResponseMetadata"
      required:
        - schemaVersion
        - name
        - trigger
        - action
      additionalProperties: false
    GetAutomationRuleExportByIdResponseCondition:
      type: object
      properties:
        type:
          type: string
        config:
          type: object
          additionalProperties: {}
      required:
        - type
        - config
      additionalProperties: false
      nullable: true
      description: "Omit or set `type: 'none'` to fire on every match."
    GetAutomationRuleExportByIdResponseMetadata:
      type: object
      properties:
        author:
          type: string
          nullable: true
        sourceUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          nullable: true
      additionalProperties: false
      nullable: true
      description: Community-library metadata. Server ignores; UI may render.
    GetAutomationRuleExportByIdResponseTrigger:
      type: object
      properties:
        type:
          type: string
        config:
          type: object
          additionalProperties: {}
      required:
        - type
        - config
      additionalProperties: false
    GetAutomationRuleExportResponse:
      type: object
      properties:
        $schema:
          type: string
        schemaVersion:
          type: number
        exportedAt:
          type: string
        recipes:
          type: array
          items:
            $ref: "#/components/schemas/GetAutomationRuleExportByIdResponse"
      required:
        - $schema
        - schemaVersion
        - exportedAt
        - recipes
      additionalProperties: false
    GetAutomationRuleResponse:
      type: object
      properties:
        rule:
          $ref: "#/components/schemas/ListAutomationRulesItem"
      required:
        - rule
      additionalProperties: false
    GetBillingUsageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBillingUsageResponseData"
    GetBillingUsageResponseData:
      type: object
      properties:
        storefrontId:
          type: string
          format: uuid
        tier:
          type: string
          enum:
            - free
            - starter
            - pro
            - business
            - scale
        status:
          type: string
        interval:
          type: string
          enum:
            - month
            - year
          nullable: true
        grandfathered:
          type: boolean
        pooled:
          type: boolean
        coveredStoreCount:
          type: integer
        currentPeriodEnd:
          type: string
          nullable: true
          format: date-time
        cancelAtPeriodEnd:
          type: boolean
        limits:
          type: array
          items:
            $ref: "#/components/schemas/GetBillingUsageResponseDataLimits"
    GetBillingUsageResponseDataLimits:
      type: object
      properties:
        key:
          type: string
          enum:
            - itemsPerMonth
            - crosspostsPerMonth
            - automationRules
            - aiEnhancements
            - visionCallsPerMonth
            - accounts
        label:
          type: string
        used:
          type: integer
        limit:
          type: integer
          nullable: true
        atLimit:
          type: boolean
        overLimit:
          type: boolean
        upgradeTier:
          type: string
          nullable: true
        resetsAt:
          type: string
          nullable: true
          format: date-time
    GetBook1099kResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBook1099kResponseData"
      required:
        - data
      additionalProperties: false
    GetBook1099kResponseData:
      type: object
      properties:
        year:
          type: number
        state:
          type: string
          nullable: true
        federal:
          $ref: "#/components/schemas/GetBook1099kResponseDataFederal"
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetBook1099kResponseDataRows"
      required:
        - year
        - federal
        - rows
      additionalProperties: false
    GetBook1099kResponseDataFederal:
      type: object
      properties:
        grossCents:
          type: number
        transactions:
          type: number
      required:
        - grossCents
        - transactions
      additionalProperties: false
    GetBook1099kResponseDataRows:
      type: object
      properties:
        platform:
          type: string
        year:
          type: number
        booksGrossCents:
          type: number
        booksRefundsCents:
          type: number
        transactions:
          type: number
        expected:
          type: boolean
        expectedBasis:
          type: string
          enum:
            - state
            - federal
          nullable: true
        reportedGrossCents:
          type: number
          nullable: true
        transactionsReported:
          type: number
          nullable: true
        differenceCents:
          type: number
          nullable: true
        notes:
          type: string
          nullable: true
      required:
        - platform
        - year
        - booksGrossCents
        - booksRefundsCents
        - transactions
        - expected
      additionalProperties: false
    GetBookExpenseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBookExpenseResponseData"
      required:
        - data
      additionalProperties: false
    GetBookExpenseResponseData:
      type: object
      properties:
        page:
          $ref: "#/components/schemas/GetAnalyticExperimentResponseDataPage"
        range:
          $ref: "#/components/schemas/GetBookExpenseResponseDataRange"
        totalCents:
          type: number
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetBookExpenseResponseDataRows"
      required:
        - page
        - range
        - totalCents
        - rows
      additionalProperties: false
    GetBookExpenseResponseDataRange:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
        tz:
          type: string
      required:
        - from
        - to
        - tz
      additionalProperties: false
    GetBookExpenseResponseDataRows:
      type: object
      properties:
        occurrences:
          type: number
        amountInRangeCents:
          type: number
        id:
          type: string
        date:
          type: string
        amountCents:
          type: number
        category:
          type: string
        categoryLabel:
          type: string
        scheduleCLine:
          type: string
        vendor:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        receiptUrl:
          type: string
          nullable: true
        recurring:
          type: string
          enum:
            - monthly
            - yearly
          nullable: true
        recurringUntil:
          type: string
          nullable: true
        source:
          type: string
        sourceRef:
          type: string
          nullable: true
          description: The charge it came from (a billing charge, an interest movement, a grading order); null for manual rows.
        sourceLabel:
          type: string
          description: Where it came from in words ("Crossly ads", "Entered by you").
        crossly:
          type: boolean
          description: "Posted by Crossly for its own charge (audit4 D4): read-only, shown with a Crossly badge."
        possibleDuplicateOf:
          $ref: "#/components/schemas/CreateBookExpenseResponseDataPossibleDuplicateOf"
        createdAt:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
      required:
        - occurrences
        - amountInRangeCents
        - id
        - date
        - amountCents
        - category
        - categoryLabel
        - scheduleCLine
        - source
        - sourceLabel
        - crossly
      additionalProperties: false
    GetBookResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBookResponseData"
      required:
        - data
      additionalProperties: false
    GetBookResponseData:
      type: object
      properties:
        year:
          type: number
        firstSaleYear:
          type: number
          nullable: true
          description: |-
            The year of the seller's earliest visible sale (archived included), so the year picker spans first sale to now;
            null with no sales (readers then offer the current year and four back).
        period:
          type: string
          enum:
            - fy
            - ytd
            - q1
            - q2
            - q3
            - q4
            - m01
            - m02
            - m03
            - m04
            - m05
            - m06
            - m07
            - m08
            - m09
            - m10
            - m11
            - m12
        range:
          $ref: "#/components/schemas/GetBookExpenseResponseDataRange"
        prevRange:
          $ref: "#/components/schemas/CreateListingTagRenameRequest"
        kpis:
          $ref: "#/components/schemas/GetBookResponseDataKpis"
        pnl:
          $ref: "#/components/schemas/GetBookResponseDataPnl"
        monthly:
          type: array
          items:
            $ref: "#/components/schemas/GetBookResponseDataMonthly"
        byMarketplace:
          type: array
          items:
            $ref: "#/components/schemas/GetBookResponseDataByMarketplace"
        cogsDetail:
          $ref: "#/components/schemas/GetBookResponseDataCogsDetail"
        mileage:
          $ref: "#/components/schemas/GetBookResponseDataMileage"
        expensesTotals:
          type: array
          items:
            $ref: "#/components/schemas/GetBookResponseDataExpensesTotals"
        estimatedTax:
          $ref: "#/components/schemas/GetBookResponseDataEstimatedTax"
        salesTax:
          $ref: "#/components/schemas/GetBookResponseDataSalesTax"
        health:
          $ref: "#/components/schemas/GetBookResponseDataHealth"
      required:
        - year
        - period
        - range
        - prevRange
        - kpis
        - pnl
        - monthly
        - byMarketplace
        - cogsDetail
        - mileage
        - expensesTotals
        - estimatedTax
        - salesTax
        - health
      additionalProperties: false
    GetBookResponseDataByMarketplace:
      type: object
      properties:
        platform:
          type: string
        sales:
          type: number
        grossCents:
          type: number
        refundsCents:
          type: number
        feesCents:
          type: number
        effectiveFeeRate:
          type: number
          nullable: true
        shippingCents:
          type: number
        cogsCents:
          type: number
        netCents:
          type: number
        marginRate:
          type: number
          nullable: true
        taxCollectedCents:
          type: number
        form1099k:
          $ref: "#/components/schemas/GetBookResponseDataByMarketplaceForm1099k"
      required:
        - platform
        - sales
        - grossCents
        - refundsCents
        - feesCents
        - shippingCents
        - cogsCents
        - netCents
        - taxCollectedCents
        - form1099k
      additionalProperties: false
    GetBookResponseDataByMarketplaceForm1099k:
      type: object
      properties:
        expected:
          type: boolean
        reportedGrossCents:
          type: number
          nullable: true
        differenceCents:
          type: number
          nullable: true
        transactions:
          type: number
      required:
        - expected
        - transactions
      additionalProperties: false
    GetBookResponseDataCogsDetail:
      type: object
      properties:
        beginningInventoryCents:
          type: number
          nullable: true
        purchasesCents:
          type: number
        endingInventoryCents:
          type: number
          nullable: true
        derivedCogsCents:
          type: number
          nullable: true
        soldCogsCents:
          type: number
        soldWithoutCost:
          type: number
        snapshotCoverage:
          $ref: "#/components/schemas/GetBookResponseDataCogsDetailSnapshotCoverage"
      required:
        - purchasesCents
        - soldCogsCents
        - soldWithoutCost
        - snapshotCoverage
      additionalProperties: false
    GetBookResponseDataCogsDetailSnapshotCoverage:
      type: object
      properties:
        beginning:
          type: string
          nullable: true
        ending:
          type: string
          nullable: true
      additionalProperties: false
    GetBookResponseDataEstimatedTax:
      type: object
      properties:
        seTaxCents:
          type: number
        incomeTaxCents:
          type: number
          nullable: true
        setAsideCents:
          type: number
        quarters:
          type: array
          items:
            $ref: "#/components/schemas/GetBookResponseDataEstimatedTaxQuarters"
        disclaimer:
          type: string
      required:
        - seTaxCents
        - setAsideCents
        - quarters
        - disclaimer
      additionalProperties: false
    GetBookResponseDataEstimatedTaxQuarters:
      type: object
      properties:
        due:
          type: string
        profitCents:
          type: number
        suggestedPaymentCents:
          type: number
      required:
        - due
        - profitCents
        - suggestedPaymentCents
      additionalProperties: false
    GetBookResponseDataExpensesTotals:
      type: object
      properties:
        category:
          type: string
        label:
          type: string
        scheduleCLine:
          type: string
        cents:
          type: number
        count:
          type: number
      required:
        - category
        - label
        - scheduleCLine
        - cents
        - count
      additionalProperties: false
    GetBookResponseDataHealth:
      type: object
      properties:
        detailsPendingSales:
          type: number
        costMissingSoldUnits:
          type: number
        estimatedFeeSales:
          type: number
        nonUsdSales:
          type: number
        statsCoverage:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticInventoryResponseDataHealthStatsCoverage"
        businessInfoMissing:
          type: boolean
        taxProfileMissing:
          type: boolean
      required:
        - detailsPendingSales
        - costMissingSoldUnits
        - estimatedFeeSales
        - nonUsdSales
        - statsCoverage
        - businessInfoMissing
        - taxProfileMissing
      additionalProperties: false
    GetBookResponseDataKpis:
      type: object
      properties:
        netSales:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        netProfit:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        marginRate:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        grossSales:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        refunds:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        grossProfit:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
        setAside:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSales"
      required:
        - netSales
        - netProfit
        - marginRate
        - grossSales
        - refunds
        - grossProfit
        - setAside
      additionalProperties: false
    GetBookResponseDataMileage:
      type: object
      properties:
        miles:
          type: number
        ratePerMile:
          type: number
        deductionCents:
          type: number
        trips:
          type: number
      required:
        - miles
        - ratePerMile
        - deductionCents
        - trips
      additionalProperties: false
    GetBookResponseDataMonthly:
      type: object
      properties:
        month:
          type: string
        netSalesCents:
          type: number
        cogsCents:
          type: number
        feesCents:
          type: number
        shippingCents:
          type: number
        otherExpensesCents:
          type: number
        netProfitCents:
          type: number
      required:
        - month
        - netSalesCents
        - cogsCents
        - feesCents
        - shippingCents
        - otherExpensesCents
        - netProfitCents
      additionalProperties: false
    GetBookResponseDataPnl:
      type: object
      properties:
        income:
          type: array
          items:
            $ref: "#/components/schemas/GetBookResponseDataPnlIncome"
        cogs:
          type: array
          items:
            $ref: "#/components/schemas/GetBookResponseDataPnlIncome"
        grossProfit:
          type: number
        expenses:
          type: array
          items:
            $ref: "#/components/schemas/GetBookResponseDataPnlIncome"
        totalExpenses:
          type: number
        netProfit:
          type: number
      required:
        - income
        - cogs
        - grossProfit
        - expenses
        - totalExpenses
        - netProfit
      additionalProperties: false
    GetBookResponseDataPnlIncome:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        scheduleCLine:
          type: string
          nullable: true
        cents:
          type: number
        drill:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - key
        - label
        - cents
      additionalProperties: false
    GetBookResponseDataSalesTax:
      type: object
      properties:
        marketplaceCollected:
          type: array
          items:
            $ref: "#/components/schemas/GetBookResponseDataSalesTaxMarketplaceCollected"
        crosslyNotCollected:
          $ref: "#/components/schemas/GetBookResponseDataSalesTaxCrosslyNotCollected"
      required:
        - marketplaceCollected
        - crosslyNotCollected
      additionalProperties: false
    GetBookResponseDataSalesTaxCrosslyNotCollected:
      type: object
      properties:
        href:
          type: string
      required:
        - href
      additionalProperties: false
    GetBookResponseDataSalesTaxMarketplaceCollected:
      type: object
      properties:
        platform:
          type: string
        cents:
          type: number
      required:
        - platform
        - cents
      additionalProperties: false
    GetBookTaxProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBookTaxProfileResponseData"
      required:
        - data
      additionalProperties: false
    GetBookTaxProfileResponseData:
      type: object
      properties:
        exists:
          type: boolean
        timezone:
          type: string
        filingStatus:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        setAsideRateBps:
          type: number
        federalRateBps:
          type: number
          nullable: true
        stateRateBps:
          type: number
          nullable: true
        accountingMethod:
          type: string
        businessName:
          type: string
          nullable: true
        ein:
          type: string
          nullable: true
        address:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
      required:
        - exists
        - timezone
        - setAsideRateBps
        - accountingMethod
      additionalProperties: false
    GetBookTransactionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBookTransactionResponseData"
      required:
        - data
      additionalProperties: false
    GetBookTransactionResponseData:
      type: object
      properties:
        page:
          $ref: "#/components/schemas/GetAnalyticExperimentResponseDataPage"
        range:
          $ref: "#/components/schemas/GetBookExpenseResponseDataRange"
        totals:
          $ref: "#/components/schemas/GetBookTransactionResponseDataTotals"
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetBookTransactionResponseDataRows"
      required:
        - page
        - range
        - totals
        - rows
      additionalProperties: false
    GetBookTransactionResponseDataRows:
      type: object
      properties:
        id:
          type: string
        date:
          type: string
        platform:
          type: string
        orderId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - pending
            - completed
            - cancelled
            - refunded
        money:
          type: boolean
          description: True when the row carries money (completed or refunded).
        grossCents:
          type: number
        refundedCents:
          type: number
        keptCents:
          type: number
        feeCents:
          type: number
        feeSource:
          type: string
          nullable: true
        shippingCostCents:
          type: number
        shippingChargedCents:
          type: number
        cogsCents:
          type: number
        cogsKnown:
          type: boolean
          description: cost_of_goods was recorded (null means unknown, not 0).
        fullyRefunded:
          type: boolean
        appShareCents:
          type: number
        taxCollectedCents:
          type: number
        currency:
          type: string
        netCents:
          type: number
      required:
        - id
        - date
        - platform
        - status
        - money
        - grossCents
        - refundedCents
        - keptCents
        - feeCents
        - shippingCostCents
        - shippingChargedCents
        - cogsCents
        - cogsKnown
        - fullyRefunded
        - appShareCents
        - taxCollectedCents
        - currency
        - netCents
      additionalProperties: false
    GetBookTransactionResponseDataTotals:
      type: object
      properties:
        grossCents:
          type: number
        refundedCents:
          type: number
        feeCents:
          type: number
        cogsCents:
          type: number
        netCents:
          type: number
      required:
        - grossCents
        - refundedCents
        - feeCents
        - cogsCents
        - netCents
      additionalProperties: false
      description: Sums over every matching row, not just this page.
    GetBrandDropPartnerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBrandDropPartnerResponseData"
      required:
        - data
      additionalProperties: false
    GetBrandDropPartnerResponseData:
      type: object
      properties:
        partner:
          $ref: "#/components/schemas/GetBrandDropPartnerResponseDataPartner"
        usage:
          $ref: "#/components/schemas/GetBrandDropPartnerResponseDataUsage"
      additionalProperties: false
    GetBrandDropPartnerResponseDataPartner:
      type: object
      properties:
        id:
          type: string
        sellerUserId:
          type: string
        brandName:
          type: string
        kind:
          type: string
        status:
          type: string
        feeBps:
          type: number
          nullable: true
          description: NULL means "use the standard market fee" — NOT zero. See below.
        promoFeeBps:
          type: number
        feeWindowDays:
          type: number
        feeUnitCap:
          type: number
          nullable: true
        promoTier:
          type: string
        maxDropsPerMonth:
          type: number
        maxUnitsPerDrop:
          type: number
          nullable: true
        canSelfPublish:
          type: boolean
        canPreBid:
          type: boolean
        canGateBuyerApi:
          type: boolean
      required:
        - id
        - sellerUserId
        - brandName
        - kind
        - status
        - promoFeeBps
        - feeWindowDays
        - promoTier
        - maxDropsPerMonth
        - canSelfPublish
        - canPreBid
        - canGateBuyerApi
      additionalProperties: false
      nullable: true
    GetBrandDropPartnerResponseDataUsage:
      type: object
      properties:
        usedThisMonth:
          type: number
        maxDropsPerMonth:
          type: number
      required:
        - usedThisMonth
        - maxDropsPerMonth
      additionalProperties: false
      nullable: true
    GetBrandResponse:
      type: object
      properties:
        brands:
          type: array
          items:
            type: string
      required:
        - brands
      additionalProperties: false
    GetBrandingBrandResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBrandingBrandResponseData"
      required:
        - data
      additionalProperties: false
    GetBrandingBrandResponseData:
      type: object
      properties:
        brandName:
          type: string
        brandSlug:
          type: string
          nullable: true
        logoUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
        story:
          type: string
          nullable: true
        links:
          type: array
          items:
            $ref: "#/components/schemas/LabelUrl"
        verifiedAt:
          type: string
          nullable: true
          description: "The verified badge: set by Crossly staff in the admin portal."
      required:
        - brandName
        - links
      additionalProperties: false
    GetBrandingBrandTermResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBrandingBrandTermResponseData"
      required:
        - data
      additionalProperties: false
    GetBrandingBrandTermResponseData:
      type: object
      properties:
        current:
          $ref: "#/components/schemas/GetBrandingBrandTermResponseDataCurrent"
        usage:
          $ref: "#/components/schemas/GetBrandingBrandTermResponseDataUsage"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetBrandingBrandTermResponseDataHistory"
      required:
        - current
        - usage
        - history
      additionalProperties: false
    GetBrandingBrandTermResponseDataCurrent:
      type: object
      properties:
        kind:
          type: string
        feeBps:
          type: number
          nullable: true
        maxDropsPerMonth:
          type: number
        maxUnitsPerDrop:
          type: number
          nullable: true
        canSelfPublish:
          type: boolean
        canPreBid:
          type: boolean
        promoTier:
          type: string
      required:
        - kind
        - maxDropsPerMonth
        - canSelfPublish
        - canPreBid
        - promoTier
      additionalProperties: false
    GetBrandingBrandTermResponseDataHistory:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        version:
          type: number
        partnerId:
          type: string
        terms:
          type: object
          additionalProperties: {}
        changedBy:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - version
        - partnerId
        - terms
      additionalProperties: false
    GetBrandingBrandTermResponseDataUsage:
      type: object
      properties:
        usedThisMonth:
          type: number
        maxDropsPerMonth:
          type: number
      required:
        - usedThisMonth
        - maxDropsPerMonth
      additionalProperties: false
      description: This month's drop allowance (the same count write.ts assertQuota refuses on).
    GetBrandingBusinessVerificationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBrandingBusinessVerificationResponseData"
      required:
        - data
      additionalProperties: false
    GetBrandingBusinessVerificationResponseData:
      type: object
      properties:
        verified:
          type: boolean
        businessType:
          type: string
          nullable: true
          description: "Stripe's business type: company | non_profit | individual | government_entity | null (no account)."
        taxIdVerified:
          type: boolean
        payoutsEnabled:
          type: boolean
        reasons:
          type: array
          items:
            type: string
          description: One sentence per thing missing, in the order to fix them.
        fixUrl:
          type: string
          description: Where the seller fixes it (the Payouts page, which opens Stripe onboarding).
        legalName:
          type: string
          nullable: true
          description: Legal name on the Stripe account, when it has one.
      required:
        - verified
        - taxIdVerified
        - payoutsEnabled
        - reasons
        - fixUrl
      additionalProperties: false
    GetBrandingDropResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListBrandingDropsItem"
      required:
        - data
      additionalProperties: false
    GetBrandingEventResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBrandingEventResponseData"
      required:
        - data
      additionalProperties: false
    GetBrandingEventResponseDataOneOfGroups:
      type: object
      properties:
        group:
          type: string
          enum:
            - today
            - this_week
            - later
        events:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - group
        - events
      additionalProperties: false
    GetBrandingSettingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBrandingSettingResponseData"
      required:
        - data
      additionalProperties: false
    GetBrandingSettingResponseData:
      type: object
      properties:
        timezone:
          type: string
          nullable: true
          description: IANA zone drops and events are scheduled in; null = the seller's browser zone.
        notifyFollowers:
          type: boolean
        botQueue:
          type: boolean
        botCaptcha:
          type: boolean
        cartHoldMinutes:
          type: number
        leftovers:
          type: string
          enum:
            - close
            - relist
            - waitlist_next
      required:
        - notifyFollowers
        - botQueue
        - botCaptcha
        - cartHoldMinutes
        - leftovers
      additionalProperties: false
    GetBreakResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetBreakResponseData"
      required:
        - data
      additionalProperties: false
    GetBreakResponseData:
      type: object
      properties:
        spots:
          type: array
          items:
            $ref: "#/components/schemas/GetBreakResponseDataSpots"
        id:
          type: string
        title:
          type: string
        product:
          type: string
          nullable: true
        format:
          type: string
        status:
          type: string
        slug:
          type: string
          nullable: true
        priceCents:
          type: number
        streamId:
          type: string
          nullable: true
        seller:
          $ref: "#/components/schemas/GetBreakResponseDataSeller"
        spotsLeft:
          type: number
        seedCommit:
          type: string
          description: sha256(seed), published when the break opened.
        seed:
          type: string
          nullable: true
          description: Revealed at the draw (random breaks only).
        draw:
          type: array
          items:
            $ref: "#/components/schemas/GetBreakResponseDataDraw"
          nullable: true
          description: "For checking the draw: the k-th paid entry → the spot position it got."
        createdAt:
          type: string
        assignedAt:
          type: string
          nullable: true
      required:
        - spots
        - id
        - title
        - format
        - status
        - priceCents
        - seller
        - spotsLeft
        - seedCommit
        - createdAt
      additionalProperties: false
    GetBreakResponseDataDraw:
      type: object
      properties:
        entry:
          type: number
        position:
          type: number
      required:
        - entry
        - position
      additionalProperties: false
    GetBreakResponseDataSeller:
      type: object
      properties:
        username:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
      additionalProperties: false
    GetBreakResponseDataSpots:
      type: object
      properties:
        buyer:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        id:
          type: string
        position:
          type: number
        label:
          type: string
        taken:
          type: boolean
        mine:
          type: boolean
        heldByMe:
          type: boolean
        heldByOther:
          type: boolean
        heldUntil:
          type: string
          nullable: true
        hits:
          type: string
          nullable: true
      required:
        - id
        - position
        - label
        - taken
        - mine
        - heldByMe
        - heldByOther
      additionalProperties: false
    GetBulkBatchResponse:
      type: object
      properties:
        batch:
          $ref: "#/components/schemas/ListBulkBatchesItem"
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateBulkBatchItemResponse"
        skus:
          type: array
          items:
            $ref: "#/components/schemas/GetBulkBatchResponseSkus"
      required:
        - batch
        - items
        - skus
      additionalProperties: false
    GetBulkBatchResponseSkus:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        brand:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - id
        - name
      additionalProperties: false
    GetCatalogLookupResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCatalogLookupResponseData"
        meta:
          $ref: "#/components/schemas/GetCatalogLookupResponseMeta"
      required:
        - data
        - meta
      additionalProperties: false
    GetCatalogLookupResponseData:
      type: object
      properties:
        identifier:
          $ref: "#/components/schemas/CreateMagicScanResponsePhotoIdentifierIdentifier"
        offers:
          type: array
          items:
            $ref: "#/components/schemas/GetCatalogLookupResponseDataOffers"
      required:
        - identifier
        - offers
      additionalProperties: false
    GetCatalogLookupResponseDataOffers:
      type: object
      properties:
        kind:
          type: string
          enum:
            - listing
            - ask
        priceCents:
          type: number
        currency:
          type: string
        condition:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        url:
          type: string
        listingSlug:
          type: string
          nullable: true
          description: Null on an order-book ask, which is a price rather than a purchasable listing.
        available:
          type: number
          nullable: true
        catalog:
          $ref: "#/components/schemas/GetCatalogLookupResponseDataOffersCatalog"
      required:
        - kind
        - priceCents
        - currency
        - url
      additionalProperties: false
    GetCatalogLookupResponseDataOffersCatalog:
      type: object
      properties:
        skuId:
          type: string
        name:
          type: string
        brand:
          type: string
          nullable: true
      required:
        - skuId
        - name
      additionalProperties: false
      nullable: true
    GetCatalogLookupResponseMeta:
      type: object
      properties:
        count:
          type: number
        truncatedAt:
          type: number
          description: Cheapest first, and capped — say so rather than let a caller infer this is everything Crossly holds.
        identifiersAccepted:
          type: number
      required:
        - count
        - truncatedAt
        - identifiersAccepted
      additionalProperties: false
    GetCategoryByIdResponse:
      type: object
      properties:
        id:
          type: string
        path:
          type: string
          description: Root-first, ' > '-joined.
        label:
          type: string
        breadcrumb:
          type: array
          items:
            type: string
        marketplaces:
          type: object
          additionalProperties: {}
      required:
        - id
        - path
        - label
        - breadcrumb
        - marketplaces
      additionalProperties: false
    GetCategoryResponse:
      type: object
      properties:
        main:
          type: array
          items:
            type: string
          minItems: 32
          maxItems: 32
        sub:
          type: object
          additionalProperties: {}
      required:
        - main
        - sub
      additionalProperties: false
    GetCbxAdCreditResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxAdCreditResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxAdCreditResponseData:
      type: object
      properties:
        balanceCents:
          type: number
        poolShareBps:
          type: number
      required:
        - balanceCents
        - poolShareBps
      additionalProperties: false
    GetCbxClaimResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxClaimResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxClaimResponseData:
      type: object
      properties:
        claimId:
          type: string
        status:
          type: string
        requestedBaseUnits:
          type: string
        netBaseUnits:
          type: string
        txSig:
          type: string
          nullable: true
        failureReason:
          type: string
          nullable: true
        attempts:
          type: number
        createdAt:
          type: string
          format: date-time
        confirmedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - claimId
        - status
        - requestedBaseUnits
        - netBaseUnits
        - attempts
        - createdAt
      additionalProperties: false
    GetCbxCreditResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxCreditResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxCreditResponseData:
      type: object
      properties:
        totalLimitCents:
          type: number
        drawnCents:
          type: number
        availableCents:
          type: number
        rateBps:
          type: number
        termDays:
          type: number
        status:
          type: string
      required:
        - totalLimitCents
        - drawnCents
        - availableCents
        - rateBps
        - termDays
        - status
      additionalProperties: false
    GetCbxMeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxMeResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxMeResponseData:
      type: object
      properties:
        merchantId:
          type: string
        slug:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        scopes:
          type: array
          items:
            $ref: "#/components/schemas/GetCbxMeResponseDataScopesItem"
        terms:
          $ref: "#/components/schemas/GetCbxMeResponseDataTerms"
      required:
        - merchantId
        - scopes
        - terms
      additionalProperties: false
    GetCbxMeResponseDataTerms:
      type: object
      properties:
        earnRateBps:
          type: number
        purchaseMaturationDays:
          type: number
        claimMinCents:
          type: number
        withdrawalFeeBps:
          type: number
        withdrawalFeeMinCents:
          type: number
        withdrawalFeeMaxCents:
          type: number
        inactivityExpiryDays:
          type: number
        claimsEnabled:
          type: boolean
      required:
        - earnRateBps
        - purchaseMaturationDays
        - claimMinCents
        - withdrawalFeeBps
        - withdrawalFeeMinCents
        - withdrawalFeeMaxCents
        - inactivityExpiryDays
        - claimsEnabled
      additionalProperties: false
    GetCbxPoolResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxPoolResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxPoolResponseData:
      type: object
      properties:
        poolBaseUnits:
          type: string
      required:
        - poolBaseUnits
      additionalProperties: false
    GetCbxRevenueResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxRevenueResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxRevenueResponseData:
      type: object
      properties:
        accruedBaseUnits:
          type: string
      required:
        - accruedBaseUnits
      additionalProperties: false
    GetCbxSubjectBalanceBySubjectIdResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxSubjectBalanceBySubjectIdResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxSubjectBalanceBySubjectIdResponseData:
      type: object
      properties:
        grantedBaseUnits:
          type: string
        fundingRestrictedBaseUnits:
          type: string
        earnedBaseUnits:
          type: string
        stakedBaseUnits:
          type: string
        earnedAvailableBaseUnits:
          type: string
        connectedAvailableBaseUnits:
          type: string
        totalSpendableBaseUnits:
          type: string
      required:
        - grantedBaseUnits
        - fundingRestrictedBaseUnits
        - earnedBaseUnits
        - stakedBaseUnits
        - earnedAvailableBaseUnits
        - connectedAvailableBaseUnits
        - totalSpendableBaseUnits
      additionalProperties: false
    GetCbxSubjectBalanceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxSubjectBalanceResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxSubjectBalanceResponseData:
      type: object
      properties:
        subjectId:
          type: string
        availableBaseUnits:
          type: string
        pendingCents:
          type: number
      required:
        - subjectId
        - availableBaseUnits
        - pendingCents
      additionalProperties: false
    GetCbxSubjectSpentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxSubjectSpentResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxSubjectSpentResponseData:
      type: object
      properties:
        spentBaseUnits:
          type: string
      required:
        - spentBaseUnits
      additionalProperties: false
    GetCbxSubjectStakeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxSubjectStakeResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxSubjectStakeResponseData:
      type: object
      properties:
        balanceBaseUnits:
          type: string
        stakedBaseUnits:
          type: string
        availableBaseUnits:
          type: string
        tierSlug:
          type: string
          nullable: true
        feeDiscountBps:
          type: number
        earnBoostBps:
          type: number
        status:
          type: string
          nullable: true
        unlocksAt:
          type: string
          nullable: true
      required:
        - balanceBaseUnits
        - stakedBaseUnits
        - availableBaseUnits
        - feeDiscountBps
        - earnBoostBps
      additionalProperties: false
    GetCbxSubjectWalletResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxSubjectWalletResponseData"
      additionalProperties: false
    GetCbxSubjectWalletResponseData:
      type: object
      properties:
        walletId:
          type: string
        address:
          type: string
        chain:
          type: string
        verifiedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - walletId
        - address
        - chain
      additionalProperties: false
      nullable: true
    GetCbxTreasuryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCbxTreasuryResponseData"
      required:
        - data
      additionalProperties: false
    GetCbxTreasuryResponseData:
      type: object
      properties:
        takenAt:
          type: string
          format: date-time
        coverageBps:
          type: number
        ok:
          type: boolean
        reserveBaseUnits:
          type: string
        outstandingBaseUnits:
          type: string
        inFlightClaimBaseUnits:
          type: string
        notes:
          type: string
          nullable: true
      required:
        - takenAt
        - coverageBps
        - ok
        - reserveBaseUnits
        - outstandingBaseUnits
        - inFlightClaimBaseUnits
      additionalProperties: false
    GetChannelAccountHistoryImportResponse:
      type: object
      properties:
        accountId:
          type: string
        track:
          type: string
          enum:
            - api
            - cookie
        platform:
          type: string
        accountSlot:
          type: number
        label:
          type: string
          nullable: true
        days:
          type: number
          nullable: true
          description: "The effective window: null = All time (or never chosen, see `chosen`), 0 = None, N = the last N days."
        chosen:
          type: boolean
          description: "false = never chosen for this account (and no legacy global value): nothing imports until the seller picks."
        source:
          type: string
          enum:
            - account
            - user_default
            - inherited
            - unset
        setAt:
          type: string
          nullable: true
          description: When the account's own choice was saved; null = it has none (source is the fallback or unset).
        backfillPending:
          type: boolean
          description: "True while this account's one-time backfill has not run: saving a window now runs it."
      required:
        - accountId
        - track
        - platform
        - accountSlot
        - chosen
        - source
        - backfillPending
      additionalProperties: false
    GetConnectionEmailResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetConnectionEmailResponseData"
      required:
        - data
      additionalProperties: false
    GetConnectionEmailResponseData:
      type: object
      properties:
        mailbox:
          $ref: "#/components/schemas/ListConnectionEmailItem"
        stats:
          $ref: "#/components/schemas/GetConnectionEmailResponseDataStats"
      required:
        - mailbox
        - stats
      additionalProperties: false
    GetConnectionEmailResponseDataStats:
      type: object
      properties:
        last7d:
          type: number
          description: Marketplace emails picked up in the last 7 days.
        matched7d:
          type: number
          description: Of those, recognised by a template.
        waiting:
          type: number
          description: Waiting on the seller's confirmation, any age.
        lastEmailAt:
          type: string
          nullable: true
      required:
        - last7d
        - matched7d
        - waiting
      additionalProperties: false
    GetConnectionExtensionOnlineResponse:
      type: object
      properties:
        online:
          type: boolean
      required:
        - online
      additionalProperties: false
    GetConnectionHealthResponse:
      type: object
      properties:
        extension:
          $ref: "#/components/schemas/GetConnectionHealthResponseExtension"
        accounts:
          type: array
          items:
            $ref: "#/components/schemas/GetConnectionHealthResponseAccounts"
        generatedAt:
          type: string
      required:
        - extension
        - accounts
        - generatedAt
      additionalProperties: false
    GetConnectionHealthResponseAccounts:
      type: object
      properties:
        platformName:
          type: string
        accountId:
          type: string
          nullable: true
        accountSlot:
          type: number
          nullable: true
        label:
          type: string
          nullable: true
        platformUsername:
          type: string
          nullable: true
        accountStatus:
          type: string
          enum:
            - active
            - archived
            - needs_reauth
          nullable: true
          description: |-
            The row's own status (null = never connected). The CN1 alert sweep reads it: only an `active` account
            alerts here, a needs_reauth one is connection_incidents'.
        summary:
          type: string
          description: Plain-English "what is true" + "what to do". Never empty.
        action:
          type: string
        liveness:
          $ref: "#/components/schemas/GetConnectionHealthResponseAccountsLiveness"
        browser:
          $ref: "#/components/schemas/GetConnectionHealthResponseAccountsBrowser"
        platform:
          type: string
        state:
          type: string
          enum:
            - unknown
            - unmonitored
            - disconnected
            - healthy
            - stale
            - partial_blank
            - blank_credential
            - signed_out
            - anchor_drift
            - no_cookies
        severity:
          type: string
          enum:
            - unknown
            - info
            - ok
            - error
            - warn
        audience:
          type: string
          enum:
            - crossly
            - seller
            - nobody
        anchors:
          $ref: "#/components/schemas/GetConnectionHealthResponseAccountsAnchors"
        notes:
          type: array
          items:
            type: string
          description: |-
            Secondary observations that do not change the verdict but change the
            debugging. Always safe to show; never the only thing shown.
      required:
        - platformName
        - summary
        - action
        - liveness
        - platform
        - state
        - severity
        - audience
        - notes
      additionalProperties: false
    GetConnectionHealthResponseAccountsAnchors:
      type: object
      properties:
        expected:
          type: array
          items:
            type: string
          description: What we were looking for. Empty ⇒ this platform is unmonitored.
        observations:
          type: array
          items:
            type: object
            additionalProperties: {}
        present:
          type: array
          items:
            type: string
          description: Name found carrying a non-empty value — the only honest "logged in".
        empty:
          type: array
          items:
            type: string
          description: Name found, value is the empty string. The Whatnot class.
        missing:
          type: array
          items:
            type: string
          description: Name not in the jar at all.
        cookieCount:
          type: number
        observedCookieNames:
          type: array
          items:
            type: string
          description: |-
            Cookie names actually in the jar, truncated. This is the payload that turns
            "anchors missing" into a diagnosis: if the jar holds 30 cookies and none
            are ours, a rename is the likely story; if it holds three device cookies,
            the browser is signed out. NAMES ONLY — never values.
      required:
        - expected
        - observations
        - present
        - empty
        - missing
        - cookieCount
        - observedCookieNames
      additionalProperties: false
      nullable: true
    GetConnectionHealthResponseAccountsBrowser:
      type: object
      properties:
        observations:
          type: array
          items:
            type: object
            additionalProperties: {}
        cookieCount:
          type: number
        extensionVersion:
          type: string
          nullable: true
        observedAt:
          type: string
        observedAgo:
          type: string
      required:
        - observations
        - cookieCount
        - observedAt
        - observedAgo
      additionalProperties: false
      nullable: true
      description: What the browser itself last reported, when it has reported at all.
    GetConnectionHealthResponseAccountsLiveness:
      type: object
      properties:
        lastBrowserPushAt:
          type: string
          nullable: true
          description: The clean "the browser pushed cookies" signal.
        lastBrowserPushAgo:
          type: string
        lastSyncedAt:
          type: string
          nullable: true
          description: |-
            Also stamped by the executor on any successful server-side call, so it
            is NOT evidence the extension is alive. Exposed for debugging only.
        lastUsedAt:
          type: string
          nullable: true
          description: Last server-exec attempt, success or fail.
        lastUsedAgo:
          type: string
        authFailureStreak:
          type: number
      required:
        - lastBrowserPushAgo
        - lastUsedAgo
        - authFailureStreak
      additionalProperties: false
    GetConnectionHealthResponseExtension:
      type: object
      properties:
        online:
          type: boolean
          description: |-
            Heartbeat within the last 15 minutes. False is NOT proof of breakage —
            a closed browser looks the same — so it is always paired with the
            durable timestamp below.
        lastBrowserPushAt:
          type: string
          nullable: true
          description: |-
            Newest browser push across every account. The durable answer to "when
            did the extension last do anything", surviving a Redis flush.
        lastBrowserPushAgo:
          type: string
        reportedVersion:
          type: string
          nullable: true
          description: |-
            Highest version any platform's browser report carried, or null when the
            extension has never told us (it does not send one today — see the
            service README notes in routes/extension-health.ts).
      required:
        - online
        - lastBrowserPushAgo
      additionalProperties: false
    GetConnectionPolicyManagementOptionItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        detail:
          type: string
          nullable: true
          description: Free-form hints the platform reports (payment policy, rate limits…), shown under the name.
      required:
        - id
        - name
      additionalProperties: false
    GetConnectionPolicyManagementOptionResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetConnectionPolicyManagementOptionItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    GetConnectionStoreResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetConnectionStoreResponseData"
      required:
        - data
      additionalProperties: false
    GetConnectionStoreResponseData:
      type: object
      properties:
        stores:
          type: array
          items:
            $ref: "#/components/schemas/GetConnectionStoreResponseDataStores"
        attachments:
          type: array
          items:
            $ref: "#/components/schemas/GetConnectionStoreResponseDataAttachments"
      required:
        - stores
        - attachments
      additionalProperties: false
    GetConnectionStoreResponseDataAttachments:
      type: object
      properties:
        storefrontId:
          type: string
        kind:
          type: string
          enum:
            - api
            - cookie
        connectionId:
          type: string
        platform:
          type: string
        isDefault:
          type: boolean
        isHome:
          type: boolean
      required:
        - storefrontId
        - kind
        - connectionId
        - platform
        - isDefault
        - isHome
      additionalProperties: false
    GetConnectionStoreResponseDataStores:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        isDefault:
          type: boolean
      required:
        - id
        - name
        - isDefault
      additionalProperties: false
    GetCosmAttestationProofResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmAttestationProofResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmAttestationProofResponseData:
      type: object
      properties:
        included:
          type: boolean
        reason:
          type: string
      required:
        - included
        - reason
      additionalProperties: false
    GetCosmAuctionQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmAuctionQuoteResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmAuctionQuoteResponseData:
      type: object
      properties:
        askBaseUnits:
          type: string
        feeBaseUnits:
          type: string
        netBaseUnits:
          type: string
        decimals:
          type: number
      required:
        - askBaseUnits
        - feeBaseUnits
        - netBaseUnits
        - decimals
      additionalProperties: false
    GetCosmBalanceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmBalanceResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmBalanceResponseData:
      type: object
      properties:
        subjectId:
          type: string
        baseUnits:
          type: string
        decimals:
          type: number
        taper:
          $ref: "#/components/schemas/GetCosmBalanceResponseDataTaper"
      required:
        - subjectId
        - baseUnits
        - decimals
        - taper
      additionalProperties: false
    GetCosmBalanceResponseDataTaper:
      type: object
      properties:
        rateMultiplierBps:
          type: number
        label:
          type: string
      required:
        - rateMultiplierBps
        - label
      additionalProperties: false
    GetCosmDesignerCopyStateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmDesignerCopyStateResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmDesignerCopyStateResponseData:
      type: object
      properties:
        state:
          type: string
          enum:
            - held
            - minting
            - materialised
      required:
        - state
      additionalProperties: false
    GetCosmDesignerEarningResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmDesignerEarningResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmDesignerEarningResponseData:
      type: object
      properties:
        cosmRoyaltyBaseUnits:
          type: string
        cashOwedCents:
          type: number
        cashPaidCents:
          type: number
        cashLifetimeCents:
          type: number
      required:
        - cosmRoyaltyBaseUnits
        - cashOwedCents
        - cashPaidCents
        - cashLifetimeCents
      additionalProperties: false
    GetCosmDesignerTermResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmDesignerTermResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmDesignerTermResponseData:
      type: object
      properties:
        policy:
          $ref: "#/components/schemas/GetCosmDesignerTermResponseDataPolicy"
        chainUnlocked:
          type: boolean
        rates:
          $ref: "#/components/schemas/GetCosmDesignerTermResponseDataRates"
      required:
        - chainUnlocked
        - rates
      additionalProperties: false
    GetCosmDesignerTermResponseDataPolicy:
      type: object
      properties:
        version:
          type: number
        resaleAllowed:
          type: boolean
        maxResaleBaseUnits:
          type: string
          nullable: true
        minResaleBaseUnits:
          type: string
          nullable: true
        secondaryRoyaltyBps:
          type: number
        chainEnforceable:
          type: boolean
        frozen:
          type: boolean
      required:
        - version
        - resaleAllowed
        - secondaryRoyaltyBps
        - chainEnforceable
        - frozen
      additionalProperties: false
      nullable: true
    GetCosmDesignerTermResponseDataRates:
      type: object
      properties:
        primaryCosmShareBps:
          type: number
        primaryCashShareBps:
          type: number
        maxSecondaryRoyaltyBps:
          type: number
        chainUnlockFeeBaseUnits:
          type: string
      required:
        - primaryCosmShareBps
        - primaryCashShareBps
        - maxSecondaryRoyaltyBps
        - chainUnlockFeeBaseUnits
      additionalProperties: false
    GetCosmEmployeeFeeQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmEmployeeFeeQuoteResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmEmployeeFeeQuoteResponseData:
      type: object
      properties:
        totalCents:
          type: number
        totalBaseUnits:
          type: string
        burnBaseUnits:
          type: string
        poolBaseUnits:
          type: string
      required:
        - totalCents
        - totalBaseUnits
        - burnBaseUnits
        - poolBaseUnits
      additionalProperties: false
    GetCosmHandleResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmHandleResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmHandleResponseData:
      type: object
      properties:
        handle:
          type: string
        available:
          type: boolean
        reason:
          type: string
          nullable: true
        priceBaseUnits:
          type: string
        decimals:
          type: number
      required:
        - handle
        - available
        - priceBaseUnits
        - decimals
      additionalProperties: false
    GetCosmStakeTenureResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmStakeTenureResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmStakeTenureResponseData:
      type: object
      properties:
        tenureDays:
          type: number
      required:
        - tenureDays
      additionalProperties: false
    GetCosmSupplyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCosmSupplyResponseData"
      required:
        - data
      additionalProperties: false
    GetCosmSupplyResponseData:
      type: object
      properties:
        decimals:
          type: number
        cumulativeMinted:
          type: string
          description: Lifetime minted. Monotonic; the taper reads this.
        cumulativeBurned:
          type: string
          description: Lifetime destroyed.
        cumulativeReversed:
          type: string
          description: Lifetime reversed by refund or chargeback.
        circulating:
          type: string
          description: minted − burned − reversed. What subjects hold, in total.
        taper:
          $ref: "#/components/schemas/GetCosmBalanceResponseDataTaper"
        trailingBurn:
          type: string
          description: Burn over the trailing window that sets the epoch backstop.
        transfersBalance:
          type: boolean
          description: Whether auction debits and credits cancel. False means a bug.
        reconciles:
          type: boolean
          description: Whether the mint/burn identity holds. False means a bug, loudly.
      required:
        - decimals
        - cumulativeMinted
        - cumulativeBurned
        - cumulativeReversed
        - circulating
        - taper
        - trailingBurn
        - transfersBalance
        - reconciles
      additionalProperties: false
    GetCreatorCardSetProgressResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorCardSetProgressResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorCardSetProgressResponseData:
      type: object
      properties:
        gameId:
          type: string
        live:
          type: boolean
        steps:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCardSetProgressResponseDataSteps"
        stage:
          type: string
          enum:
            - cosm
            - nft
            - print
            - printed
        popularity:
          $ref: "#/components/schemas/GetCreatorCardSetProgressResponseDataPopularity"
        fundingCents:
          type: number
        printRun:
          $ref: "#/components/schemas/GetCreatorCardSetProgressResponseDataPrintRun"
        production:
          $ref: "#/components/schemas/GetCreatorCardSetProgressResponseDataProduction"
      required:
        - gameId
        - live
        - steps
        - stage
        - popularity
        - fundingCents
        - printRun
      additionalProperties: false
    GetCreatorCardSetProgressResponseDataPopularity:
      type: object
      properties:
        holders:
          type: number
        packsOpened:
          type: number
        resales:
          type: number
      required:
        - holders
        - packsOpened
        - resales
      additionalProperties: false
    GetCreatorCardSetProgressResponseDataPrintRun:
      type: object
      properties:
        edition:
          type: number
        landedCents:
          type: number
        unitLandedCents:
          type: number
        minMoq:
          type: number
      required:
        - edition
        - landedCents
        - unitLandedCents
        - minMoq
      additionalProperties: false
    GetCreatorCardSetProgressResponseDataProduction:
      type: object
      properties:
        candidateId:
          type: string
        status:
          type: string
      required:
        - candidateId
        - status
      additionalProperties: false
      nullable: true
      description: A trading_cards production candidate for this set, when one exists (the print run itself).
    GetCreatorCardSetProgressResponseDataSteps:
      type: object
      properties:
        key:
          type: string
          enum:
            - cosm
            - nft
            - print
        label:
          type: string
        progress:
          type: number
          description: 0..1
        done:
          type: boolean
        detail:
          type: string
      required:
        - key
        - label
        - progress
        - done
        - detail
      additionalProperties: false
    GetCreatorCollectionPerkResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorCollectionPerkResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorCollectionPerkResponseData:
      type: object
      properties:
        collectionId:
          type: string
        launchId:
          type: string
          nullable: true
        perks:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionPerkResponseDataPerksItem"
        editable:
          type: boolean
          description: False when there is no launch to keep them on (see `reason`).
        reason:
          type: string
          nullable: true
        notices:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionPerkResponseDataNotices"
          description: Stored perks that no longer apply (a deleted loyalty tier), left out of `perks`.
      required:
        - collectionId
        - perks
        - editable
        - notices
      additionalProperties: false
    GetCreatorCollectionPerkResponseDataNotices:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      additionalProperties: false
    GetCreatorCollectionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorCollectionResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorCollectionResponseData:
      type: object
      properties:
        kind:
          type: string
          enum:
            - card_set
            - launch
            - claim
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        chain:
          type: string
          nullable: true
        contract:
          type: string
          nullable: true
        launchId:
          type: string
          nullable: true
        cardSetId:
          type: string
          nullable: true
        stage:
          type: string
          enum:
            - live
            - eligible
            - designed
            - drafted
            - deploying
            - ended
        steps:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataSteps"
        launch:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataLaunch"
        launchStats:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataLaunchStats"
        dashboard:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataDashboard"
        cardSet:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataCardSet"
        creations:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataCreations"
          description: "The creations in it: a card set's cards, or the creations a launch mints."
        earnings:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCreationsItemEarnings"
          description: Earnings of those creations, summed per unit (COSM/cash sales; on-chain mint revenue is `dashboard.mint`).
        holderPerks:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataHolderPerks"
        actions:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataActions"
        problems:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataProblems"
          description: Parts that could not be read, with why (the page shows each as a status line).
      required:
        - kind
        - name
        - stage
        - steps
        - creations
        - earnings
        - holderPerks
        - actions
        - problems
      additionalProperties: false
    GetCreatorCollectionResponseDataActions:
      type: object
      properties:
        deploy:
          type: boolean
        withdraw:
          type: boolean
        deleteDraft:
          type: boolean
        removeClaim:
          type: boolean
        editDraft:
          type: boolean
        tools:
          type: boolean
        startLaunch:
          type: boolean
        publicPage:
          type: boolean
      required:
        - deploy
        - withdraw
        - deleteDraft
        - removeClaim
        - editDraft
        - tools
        - startLaunch
        - publicPage
      additionalProperties: false
      description: Which header actions apply.
    GetCreatorCollectionResponseDataCardSet:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        setCode:
          type: string
        gameId:
          type: string
        progress:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataCardSetProgress"
      required:
        - id
        - name
        - setCode
        - gameId
      additionalProperties: false
      nullable: true
    GetCreatorCollectionResponseDataCardSetProgress:
      type: object
      properties:
        gameId:
          type: string
        live:
          type: boolean
        steps:
          type: array
          items:
            type: object
            additionalProperties: {}
        stage:
          type: string
          enum:
            - cosm
            - nft
            - print
            - printed
        popularity:
          $ref: "#/components/schemas/GetCreatorCardSetProgressResponseDataPopularity"
        fundingCents:
          type: number
        printRun:
          $ref: "#/components/schemas/GetCreatorCardSetProgressResponseDataPrintRun"
        production:
          $ref: "#/components/schemas/GetCreatorCardSetProgressResponseDataProduction"
      required:
        - gameId
        - live
        - steps
        - stage
        - popularity
        - fundingCents
        - printRun
      additionalProperties: false
      nullable: true
    GetCreatorCollectionResponseDataCreations:
      type: object
      properties:
        ref:
          type: string
        format:
          type: string
          enum:
            - wearable
            - model
            - decor
            - interactive
            - card
            - classic_game
            - card_game
        kind:
          type: string
          enum:
            - item
            - decor
            - interactive
            - card
            - game
        id:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - live
            - paused
            - in_review
            - changes_requested
            - rejected
            - retired
        collection:
          $ref: "#/components/schemas/NameObject2"
        rail:
          type: string
          enum:
            - cosm
            - cash
          nullable: true
        priceCents:
          type: number
          nullable: true
        priceBaseUnits:
          type: string
          nullable: true
        previewImageUrl:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        earnings:
          type: array
          items:
            type: object
            additionalProperties: {}
        rating:
          $ref: "#/components/schemas/ListCreatorCreationsItemRating"
        mint:
          $ref: "#/components/schemas/ListCreatorCreationsItemMint"
        canPause:
          type: boolean
          description: The source has an active flag (wearable / decor cosmetics), so it can be paused and resumed.
        listingId:
          type: string
          nullable: true
          description: The buyer-side catalogue id when it differs from `id` (a template wearable's on-sale colourway).
      required:
        - ref
        - format
        - kind
        - id
        - name
        - status
        - createdAt
        - updatedAt
        - earnings
        - mint
        - canPause
      additionalProperties: false
    GetCreatorCollectionResponseDataDashboard:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        name:
          type: string
          nullable: true
        currency:
          type: string
        royaltyBps:
          type: number
          nullable: true
        royaltyEstimateWei:
          type: string
        sales:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataDashboardSales"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataDashboardDaily"
        recent:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataDashboardRecent"
        holders:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataDashboardHolders"
        mint:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataDashboardMint"
      required:
        - chain
        - contract
        - currency
        - royaltyEstimateWei
        - sales
        - daily
        - recent
      additionalProperties: false
      nullable: true
    GetCreatorCollectionResponseDataDashboardDaily:
      type: object
      properties:
        day:
          type: string
        sales:
          type: number
        volumeWei:
          type: string
      required:
        - day
        - sales
        - volumeWei
      additionalProperties: false
    GetCreatorCollectionResponseDataDashboardHolders:
      type: object
      properties:
        owners:
          type: number
          nullable: true
        top:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - top
      additionalProperties: false
      nullable: true
    GetCreatorCollectionResponseDataDashboardMint:
      type: object
      properties:
        minted:
          type: number
        maxSupply:
          type: number
        revenueWei:
          type: string
        withdrawableWei:
          type: string
        platformBps:
          type: number
      required:
        - minted
        - maxSupply
        - revenueWei
        - withdrawableWei
        - platformBps
      additionalProperties: false
      nullable: true
    GetCreatorCollectionResponseDataDashboardRecent:
      type: object
      properties:
        tokenId:
          type: string
          nullable: true
        priceWei:
          type: string
          nullable: true
        marketplace:
          type: string
        at:
          type: string
        txHash:
          type: string
          nullable: true
      required:
        - marketplace
        - at
      additionalProperties: false
    GetCreatorCollectionResponseDataDashboardSales:
      type: object
      properties:
        count:
          type: number
        volumeWei:
          type: string
        byMarketplace:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - count
        - volumeWei
        - byMarketplace
      additionalProperties: false
    GetCreatorCollectionResponseDataHolderPerks:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          description: e.g. percent_off, early_access, world_item, loyalty_tier
        label:
          type: string
        detail:
          type: string
          nullable: true
      required:
        - id
        - type
        - label
      additionalProperties: false
    GetCreatorCollectionResponseDataLaunch:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - draft
            - live
            - failed
            - deploying
        name:
          type: string
        symbol:
          type: string
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        maxSupply:
          type: number
        minted:
          type: number
        priceWei:
          type: string
        holderStart:
          type: string
          nullable: true
        publicStart:
          type: string
        endTime:
          type: string
          nullable: true
        holderGate:
          $ref: "#/components/schemas/ContractName"
        maxPerWallet:
          type: number
        royaltyBps:
          type: number
        platformBps:
          type: number
        phase:
          type: string
          enum:
            - public
            - ended
            - upcoming
            - holder
            - sold_out
        creator:
          $ref: "#/components/schemas/NameObject"
        card:
          type: boolean
          description: Card checkout (Crossmint) is set up and the collection is verified there.
        allowlist:
          type: boolean
          description: The creator set an early-phase allowlist (check a wallet with /launch/:id/allowlist/:address).
        revealed:
          type: boolean
          description: Per-token art has been revealed.
        cardSetId:
          type: string
          nullable: true
          description: "Creator Studio (migration 1163): the card set this collection takes on chain, and the creations it mints."
        creationRefs:
          type: array
          items:
            type: string
          nullable: true
        holderPerks:
          type: array
          items: {}
          nullable: true
          description: "Migration 1178 (R-studio-15): what holding a token gets you, decided at mint (shared/creator/holder-perks)."
      required:
        - id
        - chain
        - status
        - name
        - symbol
        - maxSupply
        - minted
        - priceWei
        - publicStart
        - maxPerWallet
        - royaltyBps
        - platformBps
        - phase
        - creator
        - card
        - allowlist
        - revealed
      additionalProperties: false
      nullable: true
    GetCreatorCollectionResponseDataLaunchStats:
      type: object
      properties:
        timeline:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataLaunchStatsTimeline"
        proceeds:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataLaunchStatsProceeds"
        progressPct:
          type: number
        allowlistCount:
          type: number
        artCount:
          type: number
        airdropped:
          type: number
        recentMints:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataLaunchStatsRecentMints"
      required:
        - timeline
        - proceeds
        - progressPct
        - allowlistCount
        - artCount
        - airdropped
        - recentMints
      additionalProperties: false
      nullable: true
    GetCreatorCollectionResponseDataLaunchStatsProceeds:
      type: object
      properties:
        paidMints:
          type: number
          description: Mints that were paid for (airdrops are free).
        grossWei:
          type: string
        platformWei:
          type: string
          description: Crossly's cut, taken by the contract inside each mint.
        creatorWei:
          type: string
          description: What reached (or waits in the contract for) the creator.
      required:
        - paidMints
        - grossWei
        - platformWei
        - creatorWei
      additionalProperties: false
    GetCreatorCollectionResponseDataLaunchStatsRecentMints:
      type: object
      properties:
        at:
          type: string
        to:
          type: string
        quantity:
          type: number
        airdrop:
          type: boolean
        tx:
          type: string
          nullable: true
      required:
        - at
        - to
        - quantity
        - airdrop
      additionalProperties: false
    GetCreatorCollectionResponseDataLaunchStatsTimeline:
      type: object
      properties:
        key:
          type: string
          enum:
            - draft
            - public
            - closed
            - holder
            - deployed
        label:
          type: string
        at:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - skipped
            - current
            - done
            - upcoming
      required:
        - key
        - label
        - state
      additionalProperties: false
    GetCreatorCollectionResponseDataProblems:
      type: object
      properties:
        part:
          type: string
          enum:
            - dashboard
            - launchStats
            - progress
            - perks
        message:
          type: string
      required:
        - part
        - message
      additionalProperties: false
    GetCreatorCollectionResponseDataSteps:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        state:
          type: string
          enum:
            - skipped
            - current
            - failed
            - done
            - upcoming
        at:
          type: string
          nullable: true
        detail:
          type: string
          nullable: true
        progress:
          type: number
          nullable: true
          description: 0..1, the current step only.
      required:
        - key
        - label
        - state
      additionalProperties: false
    GetCreatorCreationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorCreationResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorCreationResponseData:
      type: object
      properties:
        creation:
          $ref: "#/components/schemas/ListCreatorCreationsItem"
        timeline:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataSteps"
        history:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorReviewsItem"
        files:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCreationResponseDataFiles"
        soldIn:
          $ref: "#/components/schemas/GetCreatorCreationResponseDataSoldIn"
        sales:
          $ref: "#/components/schemas/GetCreatorCreationResponseDataSales"
        reviews:
          $ref: "#/components/schemas/GetCreatorCreationResponseDataReviews"
        mint:
          $ref: "#/components/schemas/GetCreatorCreationResponseDataMint"
      required:
        - creation
        - timeline
        - history
        - files
        - soldIn
        - sales
        - reviews
        - mint
      additionalProperties: false
    GetCreatorCreationResponseDataFiles:
      type: object
      properties:
        sha256:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - image
            - glb
            - png
            - wav
            - mml
        bytes:
          type: number
          nullable: true
        path:
          type: string
        reviewed:
          type: boolean
        copyPath:
          type: string
          nullable: true
          description: '"Copy path" for MML references (./assets/<file>).'
        createdAt:
          type: string
          nullable: true
      required:
        - kind
        - path
        - reviewed
      additionalProperties: false
    GetCreatorCreationResponseDataMint:
      type: object
      properties:
        eligible:
          type: boolean
        stage:
          type: string
          enum:
            - live
            - eligible
            - designed
            - drafted
            - deploying
            - ended
        steps:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataSteps"
        collectionId:
          type: string
          nullable: true
      required:
        - eligible
        - stage
        - steps
      additionalProperties: false
    GetCreatorCreationResponseDataReviews:
      type: object
      properties:
        summary:
          $ref: "#/components/schemas/GetCreatorCreationResponseDataReviewsSummary"
        recent:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCreationReviewsItem"
      required:
        - summary
        - recent
      additionalProperties: false
    GetCreatorCreationResponseDataReviewsSummary:
      type: object
      properties:
        average:
          type: number
          nullable: true
        count:
          type: number
        breakdown:
          type: array
          items:
            type: number
          minItems: 5
          maxItems: 5
          description: Count of 1..5 star reviews, index 0 = 1 star.
      required:
        - count
        - breakdown
      additionalProperties: false
    GetCreatorCreationResponseDataSales:
      type: object
      properties:
        count:
          type: number
        earnings:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCreationsItemEarnings"
        note:
          type: string
          nullable: true
          description: "Cards sold only in boosters earn at set level (risk §8.4): said here, never a fake zero."
      required:
        - count
        - earnings
      additionalProperties: false
    GetCreatorCreationResponseDataSoldIn:
      type: object
      properties:
        stores:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCreationResponseDataSoldInStores"
        worlds:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCreationResponseDataSoldInStores"
        packs:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCreationResponseDataSoldInStores"
        drops:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCreationResponseDataSoldInStores"
        loyaltyPerks:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCreationResponseDataSoldInStores"
      required:
        - stores
        - worlds
        - packs
        - drops
        - loyaltyPerks
      additionalProperties: false
    GetCreatorCreationResponseDataSoldInStores:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        href:
          type: string
      required:
        - id
        - name
        - href
      additionalProperties: false
    GetCreatorCreationStatusResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorCreationStatusResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorCreationStatusResponseData:
      type: object
      properties:
        ref:
          type: string
        status:
          type: string
        reviewNote:
          type: string
          nullable: true
        updatedAt:
          type: string
        timeline:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataSteps"
      required:
        - ref
        - status
        - updatedAt
        - timeline
      additionalProperties: false
    GetCreatorEarningReconcileResponse:
      type: object
      properties:
        ok:
          type: boolean
        checkedAt:
          type: string
        rails:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorEarningReconcileResponseRails"
        lines:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorEarningReconcileResponseLines"
      required:
        - ok
        - checkedAt
        - rails
        - lines
      additionalProperties: false
    GetCreatorEarningReconcileResponseLines:
      type: object
      properties:
        source:
          type: string
          enum:
            - item_sale
            - classic_store
            - vault_creator_code
            - item_royalty
            - card_sale
            - resale_royalty
            - production_royalty
            - world_pass
            - world_product
            - world_subscription
            - world_private_server
            - world_paid_access
            - world_commerce_affiliate
            - toolbox_asset
            - creator_rewards
            - world_ads
        rail:
          type: string
          enum:
            - cosm
            - cash
            - cbx
        unit:
          type: string
          enum:
            - cbx_base_units
            - usd_cents
            - cosm_base_units
        ledger:
          type: string
        viewNet:
          type: string
        ledgerNet:
          type: string
        viewCount:
          type: number
        ledgerCount:
          type: number
        matches:
          type: boolean
      required:
        - source
        - rail
        - unit
        - ledger
        - viewNet
        - ledgerNet
        - viewCount
        - ledgerCount
        - matches
      additionalProperties: false
    GetCreatorEarningReconcileResponseRails:
      type: object
      properties:
        rail:
          type: string
          enum:
            - cosm
            - cash
            - cbx
        unit:
          type: string
          enum:
            - cbx_base_units
            - usd_cents
            - cosm_base_units
        available:
          type: string
        paid:
          type: string
        reversed:
          type: string
        net:
          type: string
        count:
          type: number
      required:
        - rail
        - unit
        - available
        - paid
        - reversed
        - net
        - count
      additionalProperties: false
    GetCreatorEntitlementResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorEntitlementResponseData"
    GetCreatorEntitlementResponseData:
      type: object
      properties:
        tier:
          type: string
        requiredTier:
          type: string
        canAuthor:
          type: boolean
        grandfathered:
          type: boolean
        canReadAndGetPaid:
          type: boolean
        toolboxPaidAssets:
          type: boolean
        limits:
          $ref: "#/components/schemas/GetCreatorEntitlementResponseDataLimits"
        upgradeTier:
          type: string
          nullable: true
        upgradeUrl:
          type: string
    GetCreatorEntitlementResponseDataLimits:
      type: object
      properties:
        liveItems:
          $ref: "#/components/schemas/GetCreatorEntitlementResponseDataLimitsLiveItems"
        experiences:
          $ref: "#/components/schemas/GetCreatorEntitlementResponseDataLimitsLiveItems"
        cardGames:
          $ref: "#/components/schemas/GetCreatorEntitlementResponseDataLimitsLiveItems"
        collaboratorsPerExperience:
          $ref: "#/components/schemas/GetCreatorEntitlementResponseDataLimitsLiveItems"
        testServerMinutesPerMonth:
          $ref: "#/components/schemas/GetCreatorEntitlementResponseDataLimitsLiveItems"
    GetCreatorEntitlementResponseDataLimitsLiveItems:
      type: object
      properties:
        limit:
          type: number
          nullable: true
          description: null = unlimited
        used:
          type: number
        remaining:
          type: number
          nullable: true
          description: null = unlimited
    GetCreatorImportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorImportResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorImportResponseData:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        result:
          $ref: "#/components/schemas/GetCreatorImportResponseDataResult"
        createdRefs:
          type: array
          items:
            type: string
        expiresAt:
          type: string
      required:
        - id
        - status
        - result
        - createdRefs
        - expiresAt
      additionalProperties: false
    GetCreatorImportResponseDataResult:
      type: object
      properties:
        ok:
          type: boolean
        format:
          type: string
          enum:
            - card_set
            - wearable
            - model
            - decor
            - interactive
            - card_game
          nullable: true
        issues:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorImportResponseDataResultIssues"
        preview:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorImportResponseDataResultPreview"
      required:
        - ok
        - issues
        - preview
      additionalProperties: false
    GetCreatorImportResponseDataResultIssues:
      type: object
      properties:
        file:
          type: string
        line:
          type: number
          nullable: true
          description: 1-based (a CSV row counts its header; JSON lines from the position-tracking parse).
        column:
          type: string
          nullable: true
        path:
          type: string
          nullable: true
          description: '"items[3].colourways[0].colors.body"'
        code:
          type: string
          enum:
            - format
            - enum
            - plan
            - budget
            - required
            - duplicate
            - too_large
            - missing_file
            - moderation
        message:
          type: string
        severity:
          type: string
          enum:
            - warning
            - error
      required:
        - file
        - code
        - message
        - severity
      additionalProperties: false
    GetCreatorImportResponseDataResultPreview:
      type: object
      properties:
        index:
          type: number
        name:
          type: string
        format:
          type: string
          enum:
            - card_set
            - wearable
            - model
            - decor
            - interactive
            - card_game
        priceCosm:
          type: number
          nullable: true
          description: Whole COSM, when priced.
        thumb:
          type: string
          nullable: true
          description: A file inside the upload to show as a thumbnail.
        issues:
          type: number
      required:
        - index
        - name
        - format
        - issues
      additionalProperties: false
    GetCreatorItemTemplateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorItemTemplateResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorItemTemplateResponseData:
      type: object
      properties:
        templates:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorItemTemplateResponseDataTemplates"
        budget:
          $ref: "#/components/schemas/GetCreatorItemTemplateResponseDataBudget"
      required:
        - templates
        - budget
      additionalProperties: false
    GetCreatorItemTemplateResponseDataBudget:
      type: object
      properties:
        phone:
          $ref: "#/components/schemas/GetCreatorItemTemplateResponseDataBudgetPhone"
        desktop:
          $ref: "#/components/schemas/GetCreatorItemTemplateResponseDataBudgetPhone"
        joints:
          type: number
          description: HUMANOID_BONES (22) + a few Spring* bones for dangly parts.
        bytes:
          type: number
          description: world-kit ASSET_MAX_BYTES.glb.
        colourways:
          type: number
          description: Colourways one wearable may ship with.
      required:
        - phone
        - desktop
        - joints
        - bytes
        - colourways
      additionalProperties: false
    GetCreatorItemTemplateResponseDataBudgetPhone:
      type: object
      properties:
        triangles:
          type: number
        drawCalls:
          type: number
      required:
        - triangles
        - drawCalls
      additionalProperties: false
    GetCreatorItemTemplateResponseDataTemplates:
      type: object
      properties:
        key:
          type: string
        name:
          type: string
        model:
          type: string
        meshProfile:
          type: string
        slot:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
        panels:
          type: array
          items:
            type: string
          description: "Recolourable panels: the model's material names, in the order the editor lists them."
        defaults:
          type: object
          description: Default colour per panel (the template's own look).
          additionalProperties: {}
        triangles:
          type: number
          description: Measured cost of the full-detail model.
        drawCalls:
          type: number
        joints:
          type: number
        bytes:
          type: number
        lodTriangles:
          type: number
          nullable: true
          description: Triangles of the `_lod` copy phones draw, when the model has one.
        pair:
          type: boolean
          nullable: true
          description: Footwear is drawn twice (one per foot).
      required:
        - key
        - name
        - model
        - meshProfile
        - slot
        - panels
        - defaults
        - triangles
        - drawCalls
        - joints
        - bytes
      additionalProperties: false
    GetCreatorMintingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorMintingResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorMintingResponseData:
      type: object
      properties:
        gettingReady:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorMintingResponseDataGettingReady"
        launched:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorMintingResponseDataGettingReady"
      required:
        - gettingReady
        - launched
      additionalProperties: false
    GetCreatorMintingResponseDataGettingReady:
      type: object
      properties:
        source:
          type: string
          enum:
            - card_set
            - launch
            - claim
            - contract
            - creation
            - game_item
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        chain:
          type: string
          nullable: true
        contract:
          type: string
          nullable: true
        stage:
          type: string
          enum:
            - live
            - eligible
            - designed
            - drafted
            - deploying
            - ended
        steps:
          type: array
          items:
            type: object
            additionalProperties: {}
        summary:
          type: string
          description: "\"12 of 500 minted\" or the card set's road, as words (never a stat tile)."
        launchId:
          type: string
          nullable: true
        cardSetId:
          type: string
          nullable: true
        sourceRef:
          type: string
          nullable: true
          description: 'A live creation with no collection: "Start a collection from this" goes to /minting/new/<sourceRef>.'
        href:
          type: string
          nullable: true
          description: "Where the row opens when it is neither a collection nor a creation (a game item: the game's Monetize page)."
        gameId:
          type: string
          nullable: true
          description: A game item's 3D world (the seller app opens its Monetize screen).
      required:
        - source
        - name
        - stage
        - steps
        - summary
      additionalProperties: false
    GetCreatorOverviewResponse:
      type: object
      properties:
        earnings:
          $ref: "#/components/schemas/GetCreatorOverviewResponseEarnings"
        live:
          $ref: "#/components/schemas/GetCreatorOverviewResponseLive"
        items:
          $ref: "#/components/schemas/GetCreatorOverviewResponseItems"
        reviews:
          $ref: "#/components/schemas/GetCreatorOverviewResponseReviews"
        lock:
          $ref: "#/components/schemas/GetCreatorOverviewResponseLock"
        checklist:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorOverviewResponseChecklist"
      required:
        - earnings
        - live
        - items
        - reviews
        - lock
        - checklist
      additionalProperties: false
    GetCreatorOverviewResponseChecklist:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        done:
          type: boolean
        href:
          type: string
      required:
        - key
        - label
        - done
        - href
      additionalProperties: false
    GetCreatorOverviewResponseEarnings:
      type: object
      properties:
        thisMonth:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorEarningReconcileResponseRails"
        lastMonth:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorEarningReconcileResponseRails"
        allTime:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorEarningReconcileResponseRails"
      required:
        - thisMonth
        - lastMonth
        - allTime
      additionalProperties: false
    GetCreatorOverviewResponseItems:
      type: object
      properties:
        total:
          type: number
      required:
        - total
      additionalProperties: false
    GetCreatorOverviewResponseLive:
      type: object
      properties:
        total:
          type: number
        byKind:
          type: object
          additionalProperties: {}
      required:
        - total
        - byKind
      additionalProperties: false
    GetCreatorOverviewResponseLock:
      type: object
      properties:
        level:
          type: string
          enum:
            - warning
            - none
            - lock_7d
            - lock_30d
            - removed
        activeStrikes:
          type: number
        lockedUntil:
          type: string
          nullable: true
          description: "When authoring unlocks again (null: not locked, or locked until strikes expire)."
        locked:
          type: boolean
      required:
        - level
        - activeStrikes
        - locked
      additionalProperties: false
    GetCreatorOverviewResponseReviews:
      type: object
      properties:
        inReview:
          type: number
        changesRequested:
          type: number
        rejected:
          type: number
        oldestWaitingSince:
          type: string
          nullable: true
      required:
        - inReview
        - changesRequested
        - rejected
      additionalProperties: false
    GetCreatorRewardFormulaResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorRewardFormulaResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorRewardFormulaResponseData:
      type: object
      properties:
        formula:
          $ref: "#/components/schemas/GetCreatorRewardFormulaResponseDataFormula"
        poolShareBps:
          type: number
        termsVersion:
          type: number
        noticeDays:
          type: number
        scheduled:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorRewardFormulaResponseDataScheduled"
        rules:
          $ref: "#/components/schemas/GetCreatorRewardFormulaResponseDataRules"
      required:
        - formula
        - poolShareBps
        - termsVersion
        - noticeDays
        - scheduled
        - rules
      additionalProperties: false
    GetCreatorRewardFormulaResponseDataFormula:
      type: object
      properties:
        retentionBonusBps:
          type: number
        newPlayerBonusBps:
          type: number
        weight:
          type: string
        retained:
          type: string
        newPlayer:
          type: string
        eligibility:
          type: string
      required:
        - retentionBonusBps
        - newPlayerBonusBps
        - weight
        - retained
        - newPlayer
        - eligibility
      additionalProperties: false
    GetCreatorRewardFormulaResponseDataRules:
      type: object
      properties:
        sessionCapMinutes:
          type: number
        playerPerExperienceCapMinutes:
          type: number
        minAccountAgeDays:
          type: number
        minCountedPlayers:
          type: number
        minCountedMinutes:
          type: number
        notCounted:
          type: array
          items:
            type: string
        timing:
          type: string
        funding:
          type: string
      required:
        - sessionCapMinutes
        - playerPerExperienceCapMinutes
        - minAccountAgeDays
        - minCountedPlayers
        - minCountedMinutes
        - notCounted
        - timing
        - funding
      additionalProperties: false
    GetCreatorRewardFormulaResponseDataScheduled:
      type: object
      properties:
        version:
          type: number
        poolShareBps:
          type: number
        formula:
          $ref: "#/components/schemas/GetCreatorRewardFormulaResponseDataScheduledFormula"
        announcedAt:
          type: string
        effectiveAt:
          type: string
        summary:
          type: string
      required:
        - version
        - poolShareBps
        - formula
        - announcedAt
        - effectiveAt
        - summary
      additionalProperties: false
    GetCreatorRewardFormulaResponseDataScheduledFormula:
      type: object
      properties:
        retentionBonusBps:
          type: number
        newPlayerBonusBps:
          type: number
      required:
        - retentionBonusBps
        - newPlayerBonusBps
      additionalProperties: false
    GetCreatorRewardMeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorRewardMeResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorRewardMeResponseDataOneOfExperiences:
      type: object
      properties:
        experienceId:
          type: string
        name:
          type: string
        owner:
          type: boolean
        countedMinutes:
          type: number
        countedPlayers:
          type: number
        excluded:
          type: object
          additionalProperties: {}
        retainedPlayers:
          type: number
        newPlayers:
          type: number
        weightedMinutes:
          type: number
        eligible:
          type: boolean
        ineligibleReason:
          type: string
          nullable: true
        amountCents:
          type: number
        poolSharePct:
          type: number
        yourCents:
          type: number
      required:
        - experienceId
        - name
        - owner
        - countedMinutes
        - countedPlayers
        - excluded
        - retainedPlayers
        - newPlayers
        - weightedMinutes
        - eligible
        - amountCents
        - poolSharePct
        - yourCents
      additionalProperties: false
    GetCreatorTemplateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetCreatorTemplateResponseData"
      required:
        - data
      additionalProperties: false
    GetCreatorTemplateResponseData:
      type: object
      properties:
        format:
          type: string
          enum:
            - card_set
            - wearable
            - model
            - decor
            - interactive
            - card_game
        files:
          type: array
          items:
            $ref: "#/components/schemas/PathText"
      required:
        - format
        - files
      additionalProperties: false
    GetCustomerNoteResponse:
      type: object
      properties:
        notes:
          type: string
        updatedAt:
          type: string
          format: date-time
          nullable: true
    GetCustomerResponse:
      type: object
      properties:
        normalizedHandle:
          type: string
        platforms:
          type: array
          items:
            type: string
        totalOrders:
          type: number
        totalSpent:
          type: number
        orders:
          type: array
          items:
            $ref: "#/components/schemas/GetCustomerResponseOrders"
        contact:
          $ref: "#/components/schemas/GetCustomerResponseContact"
        profiles:
          type: array
          items:
            $ref: "#/components/schemas/GetCustomerResponseProfiles"
        stats:
          $ref: "#/components/schemas/GetCustomerResponseStats"
        notes:
          type: string
        notesUpdatedAt:
          type: string
          nullable: true
      required:
        - normalizedHandle
        - platforms
        - totalOrders
        - totalSpent
        - orders
        - contact
        - profiles
        - stats
        - notes
      additionalProperties: false
    GetCustomerResponseContact:
      type: object
      properties:
        email:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
        address:
          $ref: "#/components/schemas/GetCustomerResponseContactAddress"
        addressPlatform:
          type: string
          nullable: true
          description: Where the address came from, so the UI can say.
      additionalProperties: false
    GetCustomerResponseContactAddress:
      type: object
      properties:
        line1:
          type: string
          nullable: true
        line2:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        zip:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
    GetCustomerResponseOrders:
      type: object
      properties:
        id:
          type: string
        platform:
          type: string
        platformOrderId:
          type: string
          nullable: true
        buyerUsername:
          type: string
          nullable: true
        status:
          type: string
        salePrice:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - platform
        - status
        - createdAt
      additionalProperties: false
    GetCustomerResponseProfiles:
      type: object
      properties:
        platform:
          type: string
        handle:
          type: string
        platformUserId:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
        avatarUrl:
          type: string
          nullable: true
          description: Always a Crossly CDN url — buyer avatars are rehosted, never hotlinked.
        profileUrl:
          type: string
          nullable: true
        rating:
          type: number
          nullable: true
          description: Star rating normalised to 0–5, only where the marketplace has stars.
        ratingCount:
          type: number
          nullable: true
        feedbackScore:
          type: number
          nullable: true
          description: eBay-style net feedback score.
        positivePercent:
          type: number
          nullable: true
          description: 0–100.
        memberSince:
          type: string
          nullable: true
          description: ISO timestamp.
        location:
          type: string
          nullable: true
        followersCount:
          type: number
          nullable: true
        followingCount:
          type: number
          nullable: true
        listingsCount:
          type: number
          nullable: true
        soldCount:
          type: number
          nullable: true
        purchasesCount:
          type: number
          nullable: true
        verified:
          type: boolean
          nullable: true
        badges:
          type: array
          items:
            type: string
        source:
          type: string
          enum:
            - crossly
            - order
            - profile_fetch
        fetchedAt:
          type: string
          nullable: true
          description: ISO timestamp of the last enrichment attempt.
        fetchStatus:
          type: string
          enum:
            - ok
            - error
            - unsupported
            - not_found
      required:
        - platform
        - handle
        - badges
        - source
        - fetchStatus
      additionalProperties: false
    GetCustomerResponseStats:
      type: object
      properties:
        totalOrders:
          type: number
        totalSpent:
          type: number
        avgOrderValue:
          type: number
          nullable: true
        firstOrderAt:
          type: string
          nullable: true
        lastOrderAt:
          type: string
          nullable: true
        daysSinceLastOrder:
          type: number
          nullable: true
        platformsCount:
          type: number
        cancelledCount:
          type: number
          description: Orders in status cancelled/refunded or with a cancellation stamp.
        returnsCount:
          type: number
          description: Physical-return records opened against this buyer's orders.
        disputesCount:
          type: number
          description: Orders flagged disputed (platform case or seller-flagged).
        messagesCount:
          type: number
          description: Messages in inbox threads with this buyer handle (both directions).
        offersCount:
          type: number
          description: Distinct marketplace offers this buyer handle sent.
        repeatBuyer:
          type: boolean
      required:
        - totalOrders
        - totalSpent
        - platformsCount
        - cancelledCount
        - returnsCount
        - disputesCount
        - messagesCount
        - offersCount
        - repeatBuyer
      additionalProperties: false
    GetDaoProposalTallyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDaoProposalTallyResponseData"
      required:
        - data
      additionalProperties: false
    GetDaoProposalTallyResponseData:
      type: object
      properties:
        powerFor:
          type: string
        powerAgainst:
          type: string
        powerAbstain:
          type: string
        totalVotingPower:
          type: string
        turnoutBps:
          type: number
        approvalBps:
          type: number
        quorumMet:
          type: boolean
        passed:
          type: boolean
      required:
        - powerFor
        - powerAgainst
        - powerAbstain
        - totalVotingPower
        - turnoutBps
        - approvalBps
        - quorumMet
        - passed
      additionalProperties: false
    GetDaoSubjectParticipationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDaoSubjectParticipationResponseData"
      required:
        - data
      additionalProperties: false
    GetDaoSubjectParticipationResponseData:
      type: object
      properties:
        summary:
          $ref: "#/components/schemas/GetDaoSubjectParticipationResponseDataSummary"
        votes:
          type: array
          items:
            $ref: "#/components/schemas/GetDaoSubjectParticipationResponseDataVotes"
        power:
          type: array
          items:
            $ref: "#/components/schemas/GetDaoSubjectParticipationResponseDataPower"
      required:
        - summary
        - votes
        - power
      additionalProperties: false
    GetDaoSubjectParticipationResponseDataPower:
      type: object
      properties:
        proposalId:
          type: string
        title:
          type: string
        at:
          type: string
          description: "When the snapshot froze: the proposal's open (its row's creation as a fallback)."
        weight:
          type: string
        totalVotingPower:
          type: string
        shareBps:
          type: number
          nullable: true
          description: weight / total in bps; null when the total is 0.
      required:
        - proposalId
        - title
        - at
        - weight
        - totalVotingPower
      additionalProperties: false
    GetDaoSubjectParticipationResponseDataSummary:
      type: object
      properties:
        eligibleProposals:
          type: number
        votedProposals:
          type: number
        turnoutBps:
          type: number
          nullable: true
          description: voted / eligible in bps; null with nothing eligible.
        liveWeight:
          type: string
        shareBps:
          type: number
          nullable: true
          description: The latest snapshot's share of the frozen total, in bps; null before any snapshot.
        for:
          type: number
        against:
          type: number
        abstain:
          type: number
      required:
        - eligibleProposals
        - votedProposals
        - liveWeight
        - for
        - against
        - abstain
      additionalProperties: false
    GetDaoSubjectParticipationResponseDataVotes:
      type: object
      properties:
        proposalId:
          type: string
        title:
          type: string
        status:
          type: string
        choice:
          type: string
          enum:
            - for
            - against
            - abstain
        weight:
          type: string
        votedAt:
          type: string
      required:
        - proposalId
        - title
        - status
        - choice
        - weight
        - votedAt
      additionalProperties: false
    GetDepartmentResponse:
      type: object
      properties:
        departments:
          type: array
          items:
            type: string
      required:
        - departments
      additionalProperties: false
    GetDesignToolResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDesignToolResponseData"
      required:
        - data
      additionalProperties: false
    GetDesignToolResponseData:
      type: object
      properties:
        connected:
          type: boolean
        accountLabel:
          type: string
          nullable: true
        ready:
          type: boolean
          nullable: true
          description: "Canva: signed in (has a refresh token), not just the app saved."
        id:
          type: string
          nullable: true
        connectedAt:
          type: string
          format: date-time
          nullable: true
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
        storefrontId:
          type: string
          nullable: true
        tool:
          type: string
          enum:
            - figma
            - canva
      required:
        - connected
        - tool
      additionalProperties: false
    GetDetectedEventEventResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListDetectedEventEventsItem"
      required:
        - data
      additionalProperties: false
    GetDetectedEventOverviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDetectedEventOverviewResponseData"
      required:
        - data
      additionalProperties: false
    GetDetectedEventOverviewResponseData:
      type: object
      properties:
        situations:
          type: array
          items:
            $ref: "#/components/schemas/GetDetectedEventOverviewResponseDataSituations"
        headlines:
          $ref: "#/components/schemas/GetDetectedEventOverviewResponseDataHeadlines"
        startingPoint:
          type: string
          enum:
            - custom
            - hands_on
            - balanced
            - hands_off
        ownRules:
          type: number
          description: The store's own (non-default) rules.
        needsYou:
          type: number
          description: Events waiting on the seller (asked, not answered).
        tuned:
          type: number
          description: Defaults Crossly re-tuned in the last default upgrade (30 days; the Overview's "We tuned N defaults" line).
      required:
        - situations
        - headlines
        - startingPoint
        - ownRules
        - needsYou
        - tuned
      additionalProperties: false
    GetDetectedEventOverviewResponseDataHeadlines:
      type: object
      properties:
        listings:
          type: array
          items:
            type: string
        orders:
          type: array
          items:
            type: string
        account:
          type: array
          items:
            type: string
        sales:
          type: array
          items:
            type: string
        buyers:
          type: array
          items:
            type: string
      required:
        - listings
        - orders
        - account
        - sales
        - buyers
      additionalProperties: false
      description: Headline keys per topic card, in order.
    GetDetectedEventOverviewResponseDataSituations:
      type: object
      properties:
        key:
          type: string
        topic:
          type: string
          enum:
            - listings
            - orders
            - account
            - sales
            - buyers
        title:
          type: string
        common:
          type: boolean
          description: A headline row of its Overview card.
        readOnly:
          type: boolean
        sentence:
          type: string
          description: What happens, in words (the deciding rule's actions).
        ruleRef:
          type: string
          description: The rule page this row opens (stored id, or default.<key>).
        changed:
          type: boolean
          description: The deciding rule is not the shipped default (a seller rule, or an edited copy).
        overrides:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Narrower rules (one marketplace / account / app / tag / item) that decide this situation there.
      required:
        - key
        - topic
        - title
        - common
        - readOnly
        - sentence
        - ruleRef
        - changed
        - overrides
      additionalProperties: false
    GetDetectedEventRuleResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDetectedEventRuleResponseData"
      required:
        - data
      additionalProperties: false
    GetDetectedEventRuleResponseData:
      type: object
      properties:
        rule:
          $ref: "#/components/schemas/CreateDetectedEventRuleResponseData"
        ref:
          type: string
        situation:
          $ref: "#/components/schemas/GetDetectedEventRuleResponseDataSituation"
        choice:
          type: string
          description: The choice card the rule's body is, 'custom' when none (or the rule has no situation).
      required:
        - rule
        - ref
        - choice
      additionalProperties: false
    GetDetectedEventRuleResponseDataSituation:
      type: object
      properties:
        key:
          type: string
        topic:
          type: string
        topicLabel:
          type: string
        title:
          type: string
        common:
          type: boolean
        readOnly:
          type: boolean
        why:
          type: string
          nullable: true
        ruleRef:
          type: string
        choices:
          type: array
          items:
            $ref: "#/components/schemas/GetDetectedEventRuleResponseDataSituationChoices"
      required:
        - key
        - topic
        - topicLabel
        - title
        - common
        - readOnly
        - ruleRef
        - choices
      additionalProperties: false
      nullable: true
      description: The situation the rule decides (its default key, else the first one it covers); null for none.
    GetDetectedEventRuleResponseDataSituationChoices:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        description:
          type: string
        recommended:
          type: boolean
        body:
          type: object
          additionalProperties: {}
      required:
        - id
        - label
        - description
        - recommended
        - body
      additionalProperties: false
    GetDetectedEventStartingPointResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDetectedEventStartingPointResponseData"
      required:
        - data
      additionalProperties: false
    GetDetectedEventStartingPointResponseData:
      type: object
      properties:
        startingPoint:
          type: string
          enum:
            - custom
            - hands_on
            - balanced
            - hands_off
      required:
        - startingPoint
      additionalProperties: false
    GetDeveloperAppCertificationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDeveloperAppCertificationResponseData"
      additionalProperties: false
    GetDeveloperAppCertificationResponseData:
      type: object
      properties:
        id:
          type: string
        appId:
          type: string
        status:
          type: string
          enum:
            - draft
            - submitted
            - rejected
            - approved
            - revoked
        clientName:
          type: string
        platform:
          type: string
          enum:
            - other
            - web
            - windows
            - ios
            - android
            - macos
            - linux
            - godot
            - xr
            - console
            - bot
        clientVersion:
          type: string
        buildUrl:
          type: string
          nullable: true
        sourceUrl:
          type: string
          nullable: true
        description:
          type: string
        evidence:
          type: array
          items:
            $ref: "#/components/schemas/DeveloperAppCertificationResponseDataEvidence"
        passedRunId:
          type: string
          nullable: true
        certifiedVersion:
          type: string
          nullable: true
        readyToSubmit:
          type: boolean
          description: The latest passing run is for the version being applied for.
        blockers:
          type: array
          items:
            type: string
        lastRun:
          $ref: "#/components/schemas/DeveloperAppCertificationResponseDataLastRun"
        submittedAt:
          type: string
          nullable: true
        reviewedAt:
          type: string
          nullable: true
        reviewNotes:
          type: string
          nullable: true
        approvedAt:
          type: string
          nullable: true
        revokedAt:
          type: string
          nullable: true
        revokeReason:
          type: string
          nullable: true
        updatedAt:
          type: string
      required:
        - id
        - appId
        - status
        - clientName
        - platform
        - clientVersion
        - description
        - evidence
        - readyToSubmit
        - blockers
        - updatedAt
      additionalProperties: false
      nullable: true
    GetDeveloperAppClientVersionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListDeveloperAppClientVersionsItem"
      required:
        - data
      additionalProperties: false
    GetDeveloperAppConformanceRunResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListDeveloperAppConformanceRunsItem"
      required:
        - data
      additionalProperties: false
    GetDeveloperAppHealthResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDeveloperAppHealthResponseData"
      required:
        - data
      additionalProperties: false
    GetDeveloperAppHealthResponseData:
      type: object
      properties:
        appId:
          type: string
        generatedAt:
          type: string
        coverage:
          type: string
          description: What the numbers count (write requests; reads are not recorded per request).
        last24h:
          $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataLast24h"
        last7d:
          $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataLast24h"
        topErrors:
          type: array
          items:
            $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataTopErrors"
        retryStorm:
          $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataRetryStorm"
        recentFailures:
          type: array
          items:
            $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataRecentFailures"
        atlas:
          $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataAtlas"
        atlasNote:
          type: string
          nullable: true
        privacy:
          type: string
      required:
        - appId
        - generatedAt
        - coverage
        - last24h
        - last7d
        - topErrors
        - recentFailures
        - privacy
      additionalProperties: false
    GetDeveloperAppHealthResponseDataAtlas:
      type: object
      properties:
        consents:
          $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataAtlasConsents"
        tokenEndpoint:
          $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataAtlasTokenEndpoint"
      additionalProperties: false
      nullable: true
      description: |-
        What Atlas (the authorization server) knows that the request audit cannot see: who authorized the app
        (counts and scopes, never who) and the token endpoint's OAuth errors by code (atlas.ts). Null with
        `atlasNote` when the app is not on Atlas or Atlas could not be read.
    GetDeveloperAppHealthResponseDataAtlasConsents:
      type: object
      properties:
        total:
          type: number
          description: People who ever authorized the app (active + revoked), within what was read.
        active:
          type: number
          description: Still authorized.
        activeLast7d:
          type: number
          description: Active consents used in the last 7 days.
        scopes:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: "Per scope: how many active consents include it, most granted first. A count, never who."
        lastUsedAt:
          type: string
          nullable: true
          description: The latest time any consent was used, or null.
        truncated:
          type: boolean
          description: "More consents exist than were read (CONSENT_PAGES_MAX pages): the counts are a floor."
      required:
        - total
        - active
        - activeLast7d
        - scopes
        - truncated
      additionalProperties: false
      nullable: true
    GetDeveloperAppHealthResponseDataAtlasTokenEndpoint:
      type: object
      properties:
        days:
          type: number
        calls:
          type: number
        tokenIssuances:
          type: number
        errors:
          type: number
        rateLimited:
          type: number
        errorsByCode:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: OAuth errors by code over the window, most frequent first (older errors without a code are `unknown`).
        latestError:
          $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataAtlasTokenEndpointLatestError"
        daily:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: "Day by day (UTC, oldest first, as Atlas reports it): requests, errors and the errors by code that day."
      required:
        - days
        - calls
        - tokenIssuances
        - errors
        - rateLimited
        - errorsByCode
        - daily
      additionalProperties: false
      nullable: true
    GetDeveloperAppHealthResponseDataAtlasTokenEndpointLatestError:
      type: object
      properties:
        code:
          type: string
        endpoint:
          type: string
        at:
          type: string
      required:
        - code
        - endpoint
        - at
      additionalProperties: false
      nullable: true
    GetDeveloperAppHealthResponseDataLast24h:
      type: object
      properties:
        total:
          type: number
        byClass:
          $ref: "#/components/schemas/GetDeveloperAppHealthResponseDataLast24hByClass"
        failed:
          type: number
          description: Failures (4xx + 5xx).
        errorRate:
          type: number
          description: failed / total, 0..1, 0 when there were none.
        rateLimited:
          type: number
          description: 429s, including Crossly's `retry_storm` refusals.
        planLimited:
          type: number
          description: "402s: a seller at a plan limit (`plan_limit_reached`)."
      required:
        - total
        - byClass
        - failed
        - errorRate
        - rateLimited
        - planLimited
      additionalProperties: false
    GetDeveloperAppHealthResponseDataLast24hByClass:
      type: object
      properties:
        2xx:
          type: number
        3xx:
          type: number
        5xx:
          type: number
        4xx:
          type: number
      required:
        - 2xx
        - 3xx
        - 5xx
        - 4xx
      additionalProperties: false
    GetDeveloperAppHealthResponseDataRecentFailures:
      type: object
      properties:
        at:
          type: string
        route:
          type: string
        httpStatus:
          type: number
        code:
          type: string
        yours:
          type: boolean
          description: "True when you were the acting user: only then are message and correlation id shown."
        correlationId:
          type: string
          nullable: true
        message:
          type: string
          nullable: true
      required:
        - at
        - route
        - httpStatus
        - code
        - yours
      additionalProperties: false
    GetDeveloperAppHealthResponseDataRetryStorm:
      type: object
      properties:
        code:
          type: string
        route:
          type: string
        httpStatus:
          type: number
        countLastHour:
          type: number
        perMinute:
          type: number
        bucketsHit:
          type: number
          description: 5-minute buckets of the last hour it appeared in (of `bucketsTotal`).
        bucketsTotal:
          type: number
        firstSeenAt:
          type: string
        lastSeenAt:
          type: string
        advice:
          type: string
      required:
        - code
        - route
        - httpStatus
        - countLastHour
        - perMinute
        - bucketsHit
        - bucketsTotal
        - firstSeenAt
        - lastSeenAt
        - advice
      additionalProperties: false
      nullable: true
      description: The worst storm in the last hour, or null.
    GetDeveloperAppHealthResponseDataTopErrors:
      type: object
      properties:
        code:
          type: string
        httpStatus:
          type: number
        count7d:
          type: number
        count24h:
          type: number
        lastSeenAt:
          type: string
        sampleRoute:
          type: string
          description: The route template of the latest occurrence, e.g. `POST /api/v1/inventory`.
        latestMessage:
          type: string
          nullable: true
        messageSource:
          type: string
          enum:
            - shared
            - yours
          nullable: true
          description: "yours: verbatim, from your own requests. shared: a redacted template several sellers got. null: hidden."
        affectedInstalls:
          type: number
          description: Distinct installs (sellers) that hit it in 7 days. A count, never who.
        advice:
          type: string
          description: What to do about it, from the status.
      required:
        - code
        - httpStatus
        - count7d
        - count24h
        - lastSeenAt
        - sampleRoute
        - affectedInstalls
        - advice
      additionalProperties: false
    GetDeveloperAppProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDeveloperAppProfileResponseData"
      required:
        - data
      additionalProperties: false
    GetDeveloperAppProfileResponseData:
      type: object
      properties:
        appId:
          type: string
        listingStatus:
          type: string
        pendingReviewChanges:
          type: array
          items:
            type: string
          description: Material fields that differ from what Crossly approved — re-listing them needs review.
        audience:
          type: string
          enum:
            - seller
            - both
            - buyer
        audienceOverride:
          type: string
          enum:
            - seller
            - both
            - buyer
          nullable: true
        inferredAudience:
          type: string
          enum:
            - seller
            - both
            - buyer
          description: What the scopes alone imply (shown as "Automatic (…)").
        preview:
          $ref: "#/components/schemas/ListAppsItem"
      required:
        - appId
        - listingStatus
        - pendingReviewChanges
        - audience
        - inferredAudience
        - preview
      additionalProperties: false
    GetDeveloperAppResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListDeveloperAppsItem"
        meta:
          $ref: "#/components/schemas/GetDeveloperAppResponseMeta"
      required:
        - data
        - meta
      additionalProperties: false
    GetDeveloperAppResponseMeta:
      type: object
      properties:
        stores:
          type: array
          items:
            $ref: "#/components/schemas/GetDeveloperAppResponseMetaStores"
      required:
        - stores
      additionalProperties: false
    GetDeveloperAppResponseMetaStores:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        isDefault:
          type: boolean
      required:
        - id
        - name
        - slug
        - isDefault
      additionalProperties: false
    GetDeveloperAppReviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDeveloperAppReviewResponseData"
      required:
        - data
      additionalProperties: false
    GetDeveloperAppReviewResponseData:
      type: object
      properties:
        certification:
          $ref: "#/components/schemas/GetDeveloperAppCertificationResponseData"
        verification:
          $ref: "#/components/schemas/GetDeveloperAppReviewResponseDataVerification"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetDeveloperAppReviewResponseDataHistory"
      required:
        - history
      additionalProperties: false
    GetDeveloperAppReviewResponseDataHistory:
      type: object
      properties:
        id:
          type: string
        subject:
          type: string
          enum:
            - verification
            - certification
            - conformance_run
        action:
          type: string
        byCrossly:
          type: boolean
        notes:
          type: string
          nullable: true
        metadata:
          type: object
          additionalProperties: {}
        createdAt:
          type: string
      required:
        - id
        - subject
        - action
        - byCrossly
        - metadata
        - createdAt
      additionalProperties: false
    GetDeveloperAppReviewResponseDataVerification:
      type: object
      properties:
        appId:
          type: string
        status:
          type: string
          enum:
            - draft
            - submitted
            - rejected
            - approved
            - revoked
        domain:
          type: string
          nullable: true
        txtRecord:
          $ref: "#/components/schemas/DeveloperAppVerificationResponseDataTxtRecord"
        domainVerifiedAt:
          type: string
          nullable: true
        requestedScopes:
          type: array
          items:
            type: string
        approvedScopes:
          type: array
          items:
            type: string
        scopeDecisions:
          type: object
          additionalProperties: {}
        justifications:
          type: object
          additionalProperties: {}
        privacyPolicyUrl:
          type: string
          nullable: true
        termsUrl:
          type: string
          nullable: true
        supportEmail:
          type: string
          nullable: true
        demoUrl:
          type: string
          nullable: true
        readyToSubmit:
          type: boolean
        blockers:
          type: array
          items:
            type: string
        submittedAt:
          type: string
          nullable: true
        reviewedAt:
          type: string
          nullable: true
        reviewNotes:
          type: string
          nullable: true
        revokedAt:
          type: string
          nullable: true
        revokeReason:
          type: string
          nullable: true
        updatedAt:
          type: string
      required:
        - appId
        - status
        - txtRecord
        - requestedScopes
        - approvedScopes
        - scopeDecisions
        - justifications
        - readyToSubmit
        - blockers
        - updatedAt
      additionalProperties: false
      nullable: true
    GetDeveloperAppVerificationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDeveloperAppReviewResponseDataVerification"
      additionalProperties: false
    GetDeviceScaleResponse:
      type: object
      properties:
        ok:
          type: boolean
        weightOz:
          type: number
        stable:
          type: boolean
        raw:
          $ref: "#/components/schemas/GetDeviceScaleResponseOneOfRaw"
        reason:
          type: string
          enum:
            - failed
            - timeout
            - no_agent
            - offline
            - not_capable
        message:
          type: string
      required:
        - ok
    GetDeviceScaleResponseOneOfRaw:
      type: object
      properties:
        value:
          type: number
        unit:
          type: string
          enum:
            - g
            - kg
            - oz
            - lb
      required:
        - value
        - unit
      additionalProperties: false
    GetDiscountCodeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListDiscountCodesItem"
      required:
        - data
      additionalProperties: false
    GetDiscountCodeShareResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDiscountCodeShareResponseData"
      required:
        - data
      additionalProperties: false
    GetDiscountCodeShareResponseData:
      type: object
      properties:
        code:
          type: string
        url:
          type: string
        storeSlug:
          type: string
          nullable: true
        qrDataUrl:
          type: string
      required:
        - code
        - url
        - qrDataUrl
      additionalProperties: false
    GetDiscountHolderResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetDiscountHolderResponseData"
      required:
        - data
      additionalProperties: false
    GetDiscountHolderResponseData:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        name:
          type: string
        kind:
          type: string
        holder:
          $ref: "#/components/schemas/ListDiscountHoldersItemHolder"
        percentBps:
          type: number
        appliesTo:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemAppliesTo"
        exclusions:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemExclusions"
        channels:
          type: array
          items:
            $ref: "#/components/schemas/GetDiscountHolderResponseDataChannelsItem"
        schedule:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemSchedule"
        stacking:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemStacking"
        limits:
          $ref: "#/components/schemas/ListDiscountHoldersItemLimits"
        active:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
        usage:
          $ref: "#/components/schemas/GetDiscountHolderResponseDataUsage"
      required:
        - id
        - name
        - kind
        - holder
        - percentBps
        - appliesTo
        - exclusions
        - channels
        - schedule
        - stacking
        - limits
        - active
        - createdAt
        - updatedAt
        - usage
      additionalProperties: false
    GetDiscountHolderResponseDataUsage:
      type: object
      properties:
        uses:
          type: number
        givenCents:
          type: number
      required:
        - uses
        - givenCents
      additionalProperties: false
    GetDropResponse:
      type: object
      properties:
        drop:
          $ref: "#/components/schemas/GetDropResponseDrop"
      required:
        - drop
      additionalProperties: false
    GetDropResponseDrop:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        status:
          type: string
          enum:
            - cancelled
            - scheduled
            - closed
            - line_open
            - released
        units:
          type: number
        eligibility:
          type: string
          enum:
            - verified
            - signed_in
        opensLineAt:
          type: string
        releaseAt:
          type: string
        seedHash:
          type: string
          nullable: true
          description: sha256(seed), hex; null until the line opens.
        seed:
          type: string
          nullable: true
          description: Revealed at release.
        drawVersion:
          type: string
        entries:
          type: number
        entryIds:
          type: array
          items:
            type: string
          nullable: true
          description: Sorted entry ids and the draw order, after release (capped; `truncated` says so).
        order:
          type: array
          items:
            type: string
          nullable: true
        truncated:
          type: boolean
        claimed:
          type: number
        seller:
          $ref: "#/components/schemas/ListDropMineItemSeller"
        listings:
          type: array
          items:
            $ref: "#/components/schemas/ListDropMineItemListings"
        street:
          $ref: "#/components/schemas/ListDropMineItemStreet"
      required:
        - id
        - title
        - status
        - units
        - eligibility
        - opensLineAt
        - releaseAt
        - drawVersion
        - entries
        - truncated
        - claimed
        - seller
        - listings
      additionalProperties: false
    GetEmailEventPreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetEmailEventPreviewResponseData"
      required:
        - data
      additionalProperties: false
    GetEmailEventPreviewResponseData:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
          nullable: true
        subject:
          type: string
        date:
          type: string
          nullable: true
        text:
          type: string
        truncated:
          type: boolean
        links:
          type: array
          items:
            $ref: "#/components/schemas/GetEmailEventPreviewResponseDataLinks"
        attachments:
          type: array
          items:
            $ref: "#/components/schemas/GetEmailEventPreviewResponseDataAttachments"
        redactions:
          type: number
          description: How many address lines, email addresses and phone numbers were hidden.
      required:
        - from
        - subject
        - text
        - truncated
        - links
        - attachments
        - redactions
      additionalProperties: false
    GetEmailEventPreviewResponseDataAttachments:
      type: object
      properties:
        filename:
          type: string
        contentType:
          type: string
        size:
          type: number
      required:
        - filename
        - contentType
        - size
      additionalProperties: false
    GetEmailEventPreviewResponseDataLinks:
      type: object
      properties:
        host:
          type: string
        url:
          type: string
      required:
        - host
        - url
      additionalProperties: false
    GetEmailEventResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetEmailEventResponseData"
      required:
        - data
      additionalProperties: false
    GetEmailEventResponseData:
      type: object
      properties:
        fields:
          type: object
          additionalProperties: {}
        mailbox:
          $ref: "#/components/schemas/GetEmailEventResponseDataMailbox"
        receiver:
          type: string
        id:
          type: string
        subject:
          type: string
        fromDomain:
          type: string
          nullable: true
        platform:
          type: string
          nullable: true
        event:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - label
            - sale
            - message
            - delist
            - offer
            - shipped
            - notice
            - cancel
            - payout
          nullable: true
        status:
          type: string
        matched:
          type: boolean
        outcome:
          $ref: "#/components/schemas/GetEmailEventResponseDataOutcome"
        title:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        price:
          $ref: "#/components/schemas/AmountCurrency"
        receivedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        reprocessCount:
          type: number
        reprocessedAt:
          type: string
          nullable: true
        previewAvailable:
          type: boolean
        canReprocess:
          type: boolean
      required:
        - fields
        - receiver
        - id
        - subject
        - status
        - matched
        - outcome
        - createdAt
        - reprocessCount
        - previewAvailable
        - canReprocess
      additionalProperties: false
    GetEmailEventResponseDataMailbox:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
        email:
          type: string
        label:
          type: string
          nullable: true
        host:
          type: string
          nullable: true
        port:
          type: number
          nullable: true
        imapPreset:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        isActive:
          type: boolean
        paused:
          type: boolean
        pausedAt:
          type: string
          nullable: true
        watchedPlatforms:
          type: array
          items:
            type: string
          nullable: true
          description: null = every marketplace Crossly reads email from.
        health:
          type: string
          enum:
            - paused
            - ok
            - trouble
            - needs_reconnect
        healthMessage:
          type: string
          nullable: true
          description: A sentence of ours (never the server's text), null when healthy.
        needsReconnect:
          type: boolean
        push:
          type: boolean
          description: Push notifications live (Gmail Pub/Sub, Outlook Graph); else polled every 10 minutes.
        lastSyncedAt:
          type: string
          nullable: true
        lastScanAt:
          type: string
          nullable: true
        lastScanFound:
          type: number
          nullable: true
        lastErrorAt:
          type: string
          nullable: true
        createdAt:
          type: string
          nullable: true
      required:
        - id
        - provider
        - email
        - isActive
        - paused
        - health
        - needsReconnect
        - push
      additionalProperties: false
      nullable: true
    GetEmailEventResponseDataOutcome:
      type: object
      properties:
        kind:
          type: string
          enum:
            - dismissed
            - failed
            - matched
            - acted
            - ignored
            - waiting
            - told_you
            - logged
            - not_recognised
            - processing
        label:
          type: string
        reason:
          type: string
          nullable: true
        ref:
          $ref: "#/components/schemas/GetEmailEventResponseDataOutcomeRef"
      required:
        - kind
        - label
      additionalProperties: false
    GetEmailEventResponseDataOutcomeRef:
      type: object
      properties:
        type:
          type: string
        id:
          type: string
      required:
        - type
        - id
      additionalProperties: false
      nullable: true
    GetEventAnalyticResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetEventAnalyticResponseData"
      required:
        - data
      additionalProperties: false
    GetEventAnalyticResponseData:
      type: object
      properties:
        views:
          type: number
        going:
          type: number
        interested:
          type: number
        rsvpRate:
          type: number
        linkedListings:
          type: number
        orders:
          type: number
        units:
          type: number
        revenueCents:
          type: number
      required:
        - views
        - going
        - interested
        - rsvpRate
        - linkedListings
        - orders
        - units
        - revenueCents
      additionalProperties: false
    GetEventPolicyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetEventPolicyResponseData"
      required:
        - data
      additionalProperties: false
    GetEventPolicyResponseData:
      type: object
      properties:
        matrix:
          type: array
          items:
            $ref: "#/components/schemas/GetEventPolicyResponseDataMatrix"
        rules:
          type: array
          items:
            $ref: "#/components/schemas/GetEventPolicyResponseDataRules"
        platforms:
          type: array
          items:
            $ref: "#/components/schemas/GetEventPolicyResponseDataPlatforms"
        apps:
          type: array
          items:
            $ref: "#/components/schemas/IdName"
      required:
        - matrix
        - rules
        - platforms
        - apps
      additionalProperties: false
    GetEventPolicyResponseDataMatrix:
      type: object
      properties:
        event:
          type: string
          enum:
            - sale
            - message
            - refunded
            - offer
            - order_cancelled
            - return_opened
            - label_ready
            - shipped
            - delivered
            - payout_sent
            - listing_ended
        ownership:
          type: string
          enum:
            - crossly
            - imported
            - other_tool
            - app_managed
            - untracked
        allowed:
          type: array
          items:
            $ref: "#/components/schemas/GetEventPolicyResponseDataMatrixAllowedItem"
        effective:
          $ref: "#/components/schemas/GetEventPolicyResponseDataMatrixEffective"
      required:
        - event
        - ownership
        - allowed
        - effective
      additionalProperties: false
    GetEventPolicyResponseDataMatrixEffective:
      type: object
      properties:
        action:
          type: string
          enum:
            - record
            - ignore
            - review
            - mark_ended
            - notify
            - record_and_delist
            - import_and_record
            - mark_ended_and_delist
            - import
            - apply
            - apply_and_restock
          description: After capability fallback (import_and_record → record when !canImportSingle).
        requested:
          type: string
          enum:
            - record
            - ignore
            - review
            - mark_ended
            - notify
            - record_and_delist
            - import_and_record
            - mark_ended_and_delist
            - import
            - apply
            - apply_and_restock
          description: What the rule / default said.
        scope:
          type: string
          enum:
            - default
            - app
            - platform
            - global
        ruleId:
          type: string
          nullable: true
        fallbackReason:
          type: string
          nullable: true
      required:
        - action
        - requested
        - scope
      additionalProperties: false
    GetEventPolicyResponseDataPlatforms:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
            - api
            - cookie
            - crossly
        canImportSingle:
          type: boolean
      required:
        - id
        - name
        - kind
        - canImportSingle
      additionalProperties: false
    GetEventPolicyResponseDataRules:
      type: object
      properties:
        id:
          type: string
        scope:
          type: string
          enum:
            - app
            - platform
            - global
        scopeValue:
          type: string
          nullable: true
          description: Platform id (scope `platform`) or OAuth app id (scope `app`); null for `global`.
        event:
          type: string
          enum:
            - sale
            - message
            - refunded
            - offer
            - order_cancelled
            - return_opened
            - label_ready
            - shipped
            - delivered
            - payout_sent
            - listing_ended
        ownership:
          type: string
          enum:
            - crossly
            - imported
            - other_tool
            - app_managed
            - untracked
        action:
          type: string
          enum:
            - record
            - ignore
            - review
            - mark_ended
            - notify
            - record_and_delist
            - import_and_record
            - mark_ended_and_delist
            - import
            - apply
            - apply_and_restock
        updatedAt:
          type: string
      required:
        - id
        - scope
        - event
        - ownership
        - action
        - updatedAt
      additionalProperties: false
    GetFundingControlResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetFundingControlResponseData"
      required:
        - data
      additionalProperties: false
    GetFundingControlResponseData:
      type: object
      properties:
        policy:
          $ref: "#/components/schemas/GetFundingControlResponseDataPolicy"
        members:
          type: array
          items:
            $ref: "#/components/schemas/DeleteFundingMemberResponseDataMembers"
        effectiveUses:
          type: array
          items:
            $ref: "#/components/schemas/GetFundingControlResponseDataEffectiveUsesItem"
        uses:
          type: array
          items:
            $ref: "#/components/schemas/GetFundingControlResponseDataUses"
        pool:
          $ref: "#/components/schemas/GetFundingControlResponseDataPool"
      required:
        - policy
        - members
        - effectiveUses
        - uses
        - pool
      additionalProperties: false
    GetFundingControlResponseDataPolicy:
      type: object
      properties:
        allowedUses:
          type: array
          items:
            $ref: "#/components/schemas/GetFundingControlResponseDataPolicyAllowedUsesItem"
          nullable: true
        allowedCounterpartyIds:
          type: array
          items:
            type: string
        blockedCounterpartyIds:
          type: array
          items:
            type: string
        approvalThresholdCents:
          type: number
          nullable: true
        twoPersonRule:
          type: boolean
        updatedAt:
          type: string
          nullable: true
      required:
        - allowedCounterpartyIds
        - blockedCounterpartyIds
        - twoPersonRule
      additionalProperties: false
    GetFundingControlResponseDataPool:
      type: object
      properties:
        live:
          type: boolean
        reason:
          type: string
          enum:
            - no_mint
            - no_pool
            - no_price
            - no_capacity
          nullable: true
        allowedUses:
          type: array
          items:
            type: string
          nullable: true
      required:
        - live
      additionalProperties: false
    GetFundingControlResponseDataUses:
      type: object
      properties:
        id:
          type: string
          enum:
            - ads
            - wholesale_on_crossly
            - verified_wholesaler
            - shipping_labels
            - crossly_fees
            - vault_fees
        label:
          type: string
        description:
          type: string
          description: One line for the form and the "Where it can be spent" card.
        channel:
          type: string
          enum:
            - wholesale_lot
            - platform_services
        operatorCounterparty:
          type: boolean
          description: Crossly is the counterparty (the grant is spent to the operator).
        kind:
          type: string
          enum:
            - inventory
            - working_capital
          description: Inventory (the underwritten use) or working capital.
      required:
        - id
        - label
        - description
        - channel
        - operatorCounterparty
        - kind
      additionalProperties: false
    GetFundingDrawInvoiceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetFundingDrawInvoiceResponseData"
      required:
        - data
      additionalProperties: false
    GetFundingDrawInvoiceResponseData:
      type: object
      properties:
        file:
          $ref: "#/components/schemas/CreateFundingInvoiceFileResponseDataFile"
        url:
          type: string
        expiresInSeconds:
          type: number
      required:
        - file
        - url
        - expiresInSeconds
      additionalProperties: false
    GetFundingDrawResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListFundingDrawsItem"
      required:
        - data
      additionalProperties: false
    GetFundingInvoiceAdvanceEligibilityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetFundingInvoiceAdvanceEligibilityResponseData"
      required:
        - data
      additionalProperties: false
    GetFundingInvoiceAdvanceEligibilityResponseData:
      type: object
      properties:
        rateBps:
          type: number
        line:
          $ref: "#/components/schemas/GetFundingInvoiceAdvanceEligibilityResponseDataLine"
        totalAdvanceCents:
          type: number
          description: The sum the line could advance across the open invoices now.
        totalPotentialCents:
          type: number
          description: The sum at the rate, ignoring the line (what a line with room would cover).
        invoices:
          type: array
          items:
            $ref: "#/components/schemas/GetFundingInvoiceAdvanceEligibilityResponseDataInvoices"
        drawsAvailable:
          type: boolean
          description: "False: this is eligibility only; an advance cannot be drawn against an invoice yet."
      required:
        - rateBps
        - totalAdvanceCents
        - totalPotentialCents
        - invoices
        - drawsAvailable
      additionalProperties: false
    GetFundingInvoiceAdvanceEligibilityResponseDataInvoices:
      type: object
      properties:
        invoiceId:
          type: string
        invoiceNumber:
          type: string
        buyerUserId:
          type: string
          nullable: true
        balanceDueCents:
          type: number
        dueAt:
          type: string
          nullable: true
        potentialCents:
          type: number
          description: What this invoice could advance at the rate, before the line's headroom.
        advanceCents:
          type: number
          description: What the line can advance on it now (0 when not eligible).
        reason:
          type: string
          enum:
            - eligible
            - overdue
            - no_line
            - line_unavailable
            - over_headroom
      required:
        - invoiceId
        - invoiceNumber
        - balanceDueCents
        - potentialCents
        - advanceCents
        - reason
      additionalProperties: false
    GetFundingInvoiceAdvanceEligibilityResponseDataLine:
      type: object
      properties:
        status:
          type: string
        availableCents:
          type: number
      required:
        - status
        - availableCents
      additionalProperties: false
      nullable: true
    GetFundingLineResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetFundingLineResponseData"
      required:
        - data
      additionalProperties: false
    GetFundingLineResponseData:
      type: object
      properties:
        merchantId:
          type: string
        line:
          $ref: "#/components/schemas/GetFundingLineResponseDataLine"
        outstandingCents:
          type: number
        principalOutstandingCents:
          type: number
        interestOutstandingCents:
          type: number
        accruedInterestCents:
          type: number
          description: Interest accrued since the last posting, not yet on the ledger.
        payoffCents:
          type: number
          description: "Outstanding + accrued: what paying off today costs."
        utilizationBps:
          type: number
        nextDue:
          $ref: "#/components/schemas/GetFundingLineResponseDataNextDue"
        overdue:
          $ref: "#/components/schemas/GetFundingLineResponseDataOverdue"
        schedule:
          type: array
          items:
            $ref: "#/components/schemas/GetFundingLineResponseDataSchedule"
        autorepayPct:
          type: number
        lateRules:
          $ref: "#/components/schemas/GetFundingLineResponseDataLateRules"
      required:
        - merchantId
        - outstandingCents
        - principalOutstandingCents
        - interestOutstandingCents
        - accruedInterestCents
        - payoffCents
        - utilizationBps
        - schedule
        - autorepayPct
        - lateRules
      additionalProperties: false
    GetFundingLineResponseDataLateRules:
      type: object
      properties:
        graceDays:
          type: number
        reminderDays:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
        freezesNewDraws:
          type: boolean
        liftsWhenCaughtUp:
          type: boolean
        collectionsAfterDays:
          type: number
        lateFee:
          type: boolean
        penaltyRate:
          type: boolean
        accelerated:
          type: boolean
      required:
        - graceDays
        - reminderDays
        - freezesNewDraws
        - liftsWhenCaughtUp
        - collectionsAfterDays
        - lateFee
        - penaltyRate
        - accelerated
      additionalProperties: false
      description: The late/grace rules (constants.ts FUNDING_LATE_RULES), shown on Repayments.
    GetFundingLineResponseDataLine:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        frozenReason:
          type: string
          nullable: true
        limitCents:
          type: number
        earnedLimitCents:
          type: number
        stakeBonusCents:
          type: number
        availableCents:
          type: number
        rateBps:
          type: number
        termDays:
          type: number
        limitComputedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - status
        - limitCents
        - earnedLimitCents
        - stakeBonusCents
        - availableCents
        - rateBps
        - termDays
        - createdAt
      additionalProperties: false
      nullable: true
    GetFundingLineResponseDataNextDue:
      type: object
      properties:
        dueAt:
          type: string
        cents:
          type: number
      required:
        - dueAt
        - cents
      additionalProperties: false
      nullable: true
    GetFundingLineResponseDataOverdue:
      type: object
      properties:
        oldestDueAt:
          type: string
        cents:
          type: number
        daysOverdue:
          type: number
      required:
        - oldestDueAt
        - cents
        - daysOverdue
      additionalProperties: false
      nullable: true
    GetFundingLineResponseDataSchedule:
      type: object
      properties:
        movementId:
          type: string
        kind:
          type: string
          enum:
            - interest
            - draw
        amountCents:
          type: number
        remainingCents:
          type: number
        createdAt:
          type: string
        dueAt:
          type: string
        memo:
          type: string
          nullable: true
      required:
        - movementId
        - kind
        - amountCents
        - remainingCents
        - createdAt
        - dueAt
      additionalProperties: false
    GetFundingOfferResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetFundingOfferResponseData"
      required:
        - data
      additionalProperties: false
    GetFundingOfferResponseData:
      type: object
      properties:
        hasLine:
          type: boolean
        lineStatus:
          type: string
          nullable: true
        latestApplication:
          $ref: "#/components/schemas/GetFundingOfferResponseDataLatestApplication"
        waitlist:
          $ref: "#/components/schemas/FundingPoolResponseDataWaitlist"
        termsVersion:
          type: string
        criteria:
          type: array
          items:
            $ref: "#/components/schemas/GetFundingOfferResponseDataCriteria"
        decision:
          type: string
          enum:
            - declined
            - approved
            - needs_review
            - waitlisted
        reasons:
          type: array
          items:
            type: string
          description: Plain-language reasons for anything not passing.
        previewLimitCents:
          type: number
        previewRateBps:
          type: number
        taxIdOnFile:
          type: boolean
          description: '"EIN on file with Stripe" (never the number).'
      required:
        - hasLine
        - termsVersion
        - criteria
        - decision
        - reasons
        - previewLimitCents
        - previewRateBps
        - taxIdOnFile
      additionalProperties: false
    GetFundingOfferResponseDataCriteria:
      type: object
      properties:
        id:
          type: string
          enum:
            - business
            - sales
            - standing
            - account_age
            - tax_id
            - payouts_enabled
            - disputes
            - volume
            - pool
        label:
          type: string
        status:
          type: string
          enum:
            - review
            - pass
            - fail
        detail:
          type: string
          description: "What the seller sees: where they are, and what to do if it fails."
        href:
          type: string
          nullable: true
          description: Where to fix it, when there is a place.
      required:
        - id
        - label
        - status
        - detail
      additionalProperties: false
    GetFundingOfferResponseDataLatestApplication:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        requestedCents:
          type: number
        intendedUse:
          type: string
        uses:
          type: array
          items:
            type: string
        useBreakdown:
          type: array
          items:
            $ref: "#/components/schemas/CreateFundingApplyResponseDataUseBreakdown"
        legalName:
          type: string
          nullable: true
        entityType:
          type: string
          nullable: true
        yearsOperating:
          type: number
          nullable: true
        termDays:
          type: number
          nullable: true
        autorepayPct:
          type: number
          nullable: true
        documentFileIds:
          type: array
          items:
            type: string
        attestedAt:
          type: string
          nullable: true
        termsVersion:
          type: string
          nullable: true
        previewLimitCents:
          type: number
        decisionReasons:
          type: array
          items:
            type: string
        creditLineId:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        decidedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - status
        - requestedCents
        - intendedUse
        - uses
        - useBreakdown
        - documentFileIds
        - previewLimitCents
        - decisionReasons
        - createdAt
      additionalProperties: false
      nullable: true
    GetFundingPoolResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/FundingPoolResponseDataPool"
      required:
        - data
      additionalProperties: false
    GetFundingSpendableResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetFundingSpendableResponseData"
      required:
        - data
      additionalProperties: false
    GetFundingSpendableResponseData:
      type: object
      properties:
        uses:
          type: array
          items:
            $ref: "#/components/schemas/GetFundingSpendableResponseDataUses"
        asOf:
          type: string
      required:
        - uses
        - asOf
      additionalProperties: false
    GetFundingSpendableResponseDataUses:
      type: object
      properties:
        use:
          type: string
          enum:
            - ads
            - wholesale_on_crossly
            - verified_wholesaler
            - shipping_labels
            - crossly_fees
            - vault_fees
        label:
          type: string
        spendableCents:
          type: number
      required:
        - use
        - label
        - spendableCents
      additionalProperties: false
    GetFundingStatementResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetFundingStatementResponseData"
      required:
        - data
      additionalProperties: false
    GetFundingStatementResponseDataOneOf1Line:
      type: object
      properties:
        limitCents:
          type: number
        rateBps:
          type: number
        termDays:
          type: number
        status:
          type: string
        outstandingCents:
          type: number
      required:
        - limitCents
        - rateBps
        - termDays
        - status
        - outstandingCents
      additionalProperties: false
    GetFundingStatementResponseDataOneOf1Statement:
      type: object
      properties:
        month:
          type: string
        periodStart:
          type: string
        periodEnd:
          type: string
        openingBalanceCents:
          type: number
        drawsCents:
          type: number
        interestCents:
          type: number
        paymentsCents:
          type: number
        creditsCents:
          type: number
        closingBalanceCents:
          type: number
        movements:
          type: array
          items:
            $ref: "#/components/schemas/GetFundingStatementResponseDataOneOf1StatementMovements"
      required:
        - month
        - periodStart
        - periodEnd
        - openingBalanceCents
        - drawsCents
        - interestCents
        - paymentsCents
        - creditsCents
        - closingBalanceCents
        - movements
      additionalProperties: false
    GetFundingStatementResponseDataOneOf1StatementMovements:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        label:
          type: string
        deltaCents:
          type: number
        memo:
          type: string
          nullable: true
        dueAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - kind
        - label
        - deltaCents
        - createdAt
      additionalProperties: false
    GetGameEventSummaryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetGameEventSummaryResponseData"
      required:
        - data
      additionalProperties: false
    GetGameEventSummaryResponseDataOneOfPlace:
      type: object
      properties:
        kind:
          type: string
          enum:
            - showroom
            - plot
            - convention
        name:
          type: string
        slug:
          type: string
          nullable: true
      required:
        - kind
        - name
      additionalProperties: false
    GetGameEventSummaryResponseDataOneOfRewards:
      type: object
      properties:
        kind:
          type: string
          enum:
            - world_item
            - discount_code
            - bucks
            - loyalty_points
        paid:
          type: number
        failed:
          type: number
      required:
        - kind
        - paid
        - failed
      additionalProperties: false
    GetGameEventSummaryResponseDataOneOfRules:
      type: object
      properties:
        days:
          type: number
        timeLimitMinutes:
          type: number
          nullable: true
        hints:
          type: boolean
        winners:
          type: number
        ordered:
          type: boolean
      required:
        - days
        - hints
        - winners
        - ordered
      additionalProperties: false
    GetGameEventSummaryResponseDataOneOfWinners:
      type: object
      properties:
        place:
          type: number
        name:
          type: string
        finishedAt:
          type: string
      required:
        - place
        - name
        - finishedAt
      additionalProperties: false
    GetGameHuntBuildResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetGameHuntBuildResponseData"
      required:
        - data
      additionalProperties: false
    GetGameHuntBuildResponseData:
      type: object
      properties:
        huntId:
          type: string
        title:
          type: string
        status:
          type: string
          enum:
            - draft
            - live
            - ended
        place:
          $ref: "#/components/schemas/GetGameHuntBuildResponseDataPlace"
        rules:
          $ref: "#/components/schemas/GetGameEventSummaryResponseDataOneOfRules"
        rewards:
          type: array
          items:
            $ref: "#/components/schemas/GetGameHuntBuildResponseDataRewardsItem"
        doc:
          $ref: "#/components/schemas/GetGameHuntBuildResponseDataDoc"
        problems:
          type: array
          items:
            $ref: "#/components/schemas/GetGameHuntBuildResponseDataProblemsItem"
          description: What stops publishing right now (empty when it can go live).
        buildLink:
          type: string
      required:
        - huntId
        - title
        - status
        - place
        - rules
        - rewards
        - doc
        - problems
        - buildLink
      additionalProperties: false
    GetGameHuntBuildResponseDataDoc:
      type: object
      properties:
        target:
          type: string
        version:
          type: string
          description: "Optimistic concurrency: the version the builder loaded (game_hunts.build_version)."
        objects:
          type: array
          items:
            $ref: "#/components/schemas/GetGameHuntBuildResponseDataDocObjects"
      required:
        - target
        - version
        - objects
      additionalProperties: false
    GetGameHuntBuildResponseDataDocObjects:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - coin
            - clue
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        rotationY:
          type: number
        props:
          type: object
          additionalProperties: {}
      required:
        - id
        - kind
        - position
        - rotationY
        - props
      additionalProperties: false
    GetGameHuntBuildResponseDataPlace:
      type: object
      properties:
        kind:
          type: string
        name:
          type: string
        slug:
          type: string
          nullable: true
        sceneId:
          type: string
      required:
        - kind
        - name
        - sceneId
      additionalProperties: false
    GetGameLeaderboardResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetGameLeaderboardResponseData"
      required:
        - data
      additionalProperties: false
    GetGameLeaderboardResponseData:
      type: object
      properties:
        week:
          type: array
          items:
            $ref: "#/components/schemas/GetGameLeaderboardResponseDataWeek"
        all:
          type: array
          items:
            $ref: "#/components/schemas/GetGameLeaderboardResponseDataWeek"
        weekStartsAt:
          type: string
          description: ISO start of the current week (Monday 00:00 UTC).
      required:
        - week
        - all
        - weekStartsAt
      additionalProperties: false
    GetGameLeaderboardResponseDataWeek:
      type: object
      properties:
        game:
          type: string
          enum:
            - price_guess
            - hunt
            - speed_trade
        period:
          type: string
          enum:
            - all
            - week
        label:
          type: string
        unit:
          type: string
        rows:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - game
        - period
        - label
        - unit
        - rows
      additionalProperties: false
    GetGenderResponse:
      type: object
      properties:
        genders:
          type: array
          items:
            type: string
      required:
        - genders
      additionalProperties: false
    GetGradingPriceBookResponse:
      type: object
      properties:
        graders:
          type: array
          items:
            $ref: "#/components/schemas/GetGradingPriceBookResponseGraders"
        handlingCents:
          type: number
          description: "Always 0: Crossly adds nothing to the grader's price. Kept so older apps and SDKs that read it still work."
        currency:
          type: string
      required:
        - graders
        - handlingCents
        - currency
      additionalProperties: false
    GetGradingPriceBookResponseGraders:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        tiers:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Cheapest first.
        addOns:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: The add-ons this grader takes right now (priced ones only).
      required:
        - slug
        - name
        - tiers
        - addOns
      additionalProperties: false
    GetGradingSettingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetGradingSettingResponseData"
      required:
        - data
      additionalProperties: false
    GetGradingSettingResponseData:
      type: object
      properties:
        defaultGrader:
          type: string
          nullable: true
        defaultReturnMode:
          type: string
          description: "Always 'vault': a graded card goes into the vault (p5-23 / p5-70). Kept in the shape for old clients."
        defaultMissMode:
          type: string
          enum:
            - release
            - roll_over
        defaultPrescreen:
          type: boolean
      required:
        - defaultReturnMode
        - defaultMissMode
        - defaultPrescreen
      additionalProperties: false
    GetGradingWorthResponse:
      type: object
      properties:
        worth:
          $ref: "#/components/schemas/GetGradingWorthResponseWorth"
      required:
        - worth
      additionalProperties: false
    GetGradingWorthResponseWorth:
      type: object
      properties:
        inventoryItemId:
          type: string
        title:
          type: string
        matched:
          type: boolean
          description: No catalog match = no market values; the seller still sees costs.
        graders:
          type: array
          items:
            $ref: "#/components/schemas/GetGradingWorthResponseWorthGraders"
      required:
        - inventoryItemId
        - title
        - matched
        - graders
      additionalProperties: false
    GetGradingWorthResponseWorthGraders:
      type: object
      properties:
        rawCents:
          type: number
          nullable: true
        costCents:
          type: number
        outcomes:
          type: array
          items:
            type: object
            additionalProperties: {}
        breakEvenGradeKey:
          type: string
          nullable: true
        graderSlug:
          type: string
        graderName:
          type: string
        via:
          type: string
          enum:
            - single
            - run
        runId:
          type: string
          nullable: true
      required:
        - costCents
        - outcomes
        - graderSlug
        - graderName
        - via
      additionalProperties: false
    GetGroupBuyParticipants.csvResponse:
      type: string
    GetGroupBuyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetGroupBuyResponseData"
      required:
        - data
      additionalProperties: false
    GetGroupBuyResponseData:
      type: object
      properties:
        revenueAtCurrentCents:
          type: number
        revenueAtGoalCents:
          type: number
        linkToken:
          type: string
          nullable: true
        participants:
          type: array
          items:
            $ref: "#/components/schemas/GetGroupBuyResponseDataParticipants"
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetGroupBuyResponseDataEvents"
        id:
          type: string
        slug:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        listingTitle:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        status:
          type: string
        closedReason:
          type: string
          nullable: true
        createdAt:
          type: string
        endsAt:
          type: string
        msLeft:
          type: number
        opensToAllAt:
          type: string
          nullable: true
        basePriceCents:
          type: number
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/MinQtyPriceCents"
        progress:
          type: array
          items:
            $ref: "#/components/schemas/GetGroupBuyResponseDataProgress"
        goalQty:
          type: number
        minQtyToProceed:
          type: number
        perBuyerMax:
          type: number
        maxQty:
          type: number
        paymentMode:
          type: string
        goalMiss:
          type: string
        extendDays:
          type: number
        extended:
          type: boolean
        visibility:
          type: string
        visibilityTierId:
          type: string
          nullable: true
        placement:
          $ref: "#/components/schemas/GetGroupBuyResponseDataPlacement"
        shareCopy:
          type: string
          nullable: true
        shareImageUrl:
          type: string
          nullable: true
        committedQty:
          type: number
        buyers:
          type: number
        currentPriceCents:
          type: number
        finalPriceCents:
          type: number
          nullable: true
        next:
          $ref: "#/components/schemas/GetGroupBuyResponseDataNext"
        minimumMet:
          type: boolean
      required:
        - revenueAtCurrentCents
        - revenueAtGoalCents
        - participants
        - events
        - id
        - status
        - createdAt
        - endsAt
        - msLeft
        - basePriceCents
        - tiers
        - progress
        - goalQty
        - minQtyToProceed
        - perBuyerMax
        - maxQty
        - paymentMode
        - goalMiss
        - extendDays
        - extended
        - visibility
        - placement
        - committedQty
        - buyers
        - currentPriceCents
        - minimumMet
      additionalProperties: false
    GetGroupBuyResponseDataEvents:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        data:
          type: object
          additionalProperties: {}
        createdAt:
          type: string
      required:
        - id
        - kind
        - data
        - createdAt
      additionalProperties: false
    GetGroupBuyResponseDataNext:
      type: object
      properties:
        qtyNeeded:
          type: number
        priceCents:
          type: number
      required:
        - qtyNeeded
        - priceCents
      additionalProperties: false
      nullable: true
    GetGroupBuyResponseDataParticipants:
      type: object
      properties:
        id:
          type: string
        buyer:
          type: string
        quantity:
          type: number
        status:
          type: string
        joinedAt:
          type: string
        refundedCents:
          type: number
        paidItemCents:
          type: number
          nullable: true
      required:
        - id
        - buyer
        - quantity
        - status
        - joinedAt
        - refundedCents
      additionalProperties: false
    GetGroupBuyResponseDataPlacement:
      type: object
      properties:
        storefront:
          type: boolean
        site:
          type: boolean
        marketplace:
          type: boolean
        pinned:
          type: boolean
      required:
        - storefront
        - site
        - marketplace
        - pinned
      additionalProperties: false
    GetGroupBuyResponseDataProgress:
      type: object
      properties:
        minQty:
          type: number
        priceCents:
          type: number
        reached:
          type: boolean
        remaining:
          type: number
        pct:
          type: number
      required:
        - minQty
        - priceCents
        - reached
        - remaining
        - pct
      additionalProperties: false
    GetHomeResponse:
      type: object
      properties:
        slug:
          type: string
        presenceSlug:
          type: string
        owner:
          $ref: "#/components/schemas/UserIdName"
        privacy:
          type: string
          enum:
            - open
            - friends
            - locked
        theme:
          type: string
          enum:
            - studio
            - noir
            - daylight
            - vitrine
            - storybook
        decor:
          $ref: "#/components/schemas/GetHomeResponseDecor"
        isOwner:
          type: boolean
        canBuild:
          type: boolean
          description: "The viewer may open build mode here: the owner, or a co-builder who is still a friend (builders.ts)."
        room:
          $ref: "#/components/schemas/GetHomeResponseRoom"
        layout:
          type: array
          items:
            $ref: "#/components/schemas/GetHomeResponseLayout"
        guestbook:
          type: array
          items:
            $ref: "#/components/schemas/GetHomeResponseGuestbook"
        giftShelf:
          $ref: "#/components/schemas/GetHomeResponseGiftShelf"
        pullsShelf:
          $ref: "#/components/schemas/GetHomeResponsePullsShelf"
        pinCase:
          type: array
          items:
            $ref: "#/components/schemas/GetHomeResponsePinCase"
          nullable: true
          description: The owner's earned pins, rarest first, when a pin case stands here (pin-case.ts).
        vaultWall:
          $ref: "#/components/schemas/GetHomeResponseVaultWall"
        setWall:
          $ref: "#/components/schemas/GetHomeResponseSetWall"
        here:
          type: number
          description: People in the home right now, every copy together.
        updatedAt:
          type: string
      required:
        - slug
        - presenceSlug
        - owner
        - privacy
        - theme
        - decor
        - isOwner
        - canBuild
        - room
        - layout
        - guestbook
        - here
        - updatedAt
      additionalProperties: false
    GetHomeResponseDecor:
      type: object
      properties:
        wall:
          type: string
          nullable: true
        floor:
          type: string
          nullable: true
        mood:
          type: string
          nullable: true
          description: A home_theme value; `default` = the home's own free lighting choice.
        view:
          type: string
          nullable: true
          description: "A home_view value (home-views.ts): what is across the way from the window."
      additionalProperties: false
      description: Wallpaper, flooring and theme decor (shared home-decor.ts); empty = the free look.
    GetHomeResponseGiftShelf:
      type: object
      properties:
        token:
          type: string
        kind:
          type: string
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetHomeResponseGiftShelfItems"
      required:
        - token
        - kind
        - items
      additionalProperties: false
      nullable: true
      description: The owner's registry pieces on their gift shelf, when one stands here (gift-shelf.ts).
    GetHomeResponseGiftShelfItems:
      type: object
      properties:
        slug:
          type: string
          nullable: true
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        priceCents:
          type: number
        remaining:
          type: number
      required:
        - title
        - priceCents
        - remaining
      additionalProperties: false
    GetHomeResponseGuestbook:
      type: object
      properties:
        id:
          type: string
        author:
          $ref: "#/components/schemas/GetHomeResponseGuestbookAuthor"
        body:
          type: string
        createdAt:
          type: string
        mine:
          type: boolean
          description: You wrote it (so you are not offered "report" on your own words).
        hidden:
          type: boolean
          nullable: true
          description: "Owner only: hidden from visitors."
      required:
        - id
        - author
        - body
        - createdAt
        - mine
      additionalProperties: false
    GetHomeResponseGuestbookAuthor:
      type: object
      properties:
        name:
          type: string
      required:
        - name
      additionalProperties: false
    GetHomeResponseLayout:
      type: object
      properties:
        kind:
          type: string
          enum:
            - display
            - prop
        model:
          type: string
        ref:
          $ref: "#/components/schemas/GetHomeResponseLayoutRef"
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        rotationY:
          type: number
          description: Radians, a multiple of PI/2.
        slot:
          type: number
          nullable: true
          description: "Shelf displays: which slot on the shelf."
        set:
          type: string
          nullable: true
          description: "A set wall: which set it shows, \"category/brand/model\" (HOME_SET_KEY). Absent: the owner's most complete."
        tint:
          type: string
          enum:
            - oat
            - sage
            - forest
            - navy
            - clay
            - mustard
            - blush
            - charcoal
          nullable: true
          description: "A furniture piece's colour (HOME_TINTS key): its fabric and finish take it. Absent: as made."
        item:
          $ref: "#/components/schemas/GetHomeResponseLayoutItem"
      required:
        - kind
        - model
        - position
        - rotationY
      additionalProperties: false
    GetHomeResponseLayoutItem:
      type: object
      properties:
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
          description: '"PSA 10" and the like, when graded.'
        listingSlug:
          type: string
          nullable: true
          description: "Its live Crossly listing, when the owner has it up: /shop/<slug>?offer=1 makes an offer."
        model:
          type: string
          nullable: true
          description: "A purchase: the furniture mesh it stands as (re-derived, never trusted from the layout)."
        crossly:
          type: boolean
          nullable: true
          description: "Bought through Crossly (an `nft` ref): the clients draw its frame in gold."
        space:
          type: string
          nullable: true
          description: "A `portal` ref: the Space slug a click takes the visitor to."
        found:
          type: string
          nullable: true
          description: "A purchase found in the world (Wave 8.6, provenance.ts): \"Found at Amber's stall, Night Market, Oct 2026\"."
        object:
          type: string
          nullable: true
          description: "The thing ITSELF as a 3D object in a case or on a shelf (shared listing-space.ts): never a flat photo. Not for NFTs."
        market:
          type: string
          nullable: true
          description: "A `vault` ref: the unit's market (a book key), so a click opens /trading/<market>."
        visitors:
          type: boolean
          nullable: true
          description: "A `vault` ref, to its OWNER only: visitors may see it (vm_home_display.visitors)."
        tradePostId:
          type: string
          nullable: true
          description: "The owner's open Trade Block post for this same product (trade-posts.ts): \"Offer a trade\" opens it."
      required:
        - title
      additionalProperties: false
      nullable: true
    GetHomeResponseLayoutRef:
      type: object
      properties:
        kind:
          type: string
          enum:
            - inventory
            - vault
            - portal
            - token
            - purchase
            - nft
            - portfolio
        id:
          type: string
      required:
        - kind
        - id
      additionalProperties: false
      nullable: true
    GetHomeResponsePinCase:
      type: object
      properties:
        pin:
          type: string
        colour:
          type: string
        rarityPct:
          type: number
      required:
        - pin
        - colour
        - rarityPct
      additionalProperties: false
    GetHomeResponsePullsShelf:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetHomeResponsePullsShelfItems"
      required:
        - items
      additionalProperties: false
      nullable: true
      description: The owner's newest pulls (won lots, break hits) on their pulls shelf, when one stands here (pulls-shelf.ts).
    GetHomeResponsePullsShelfItems:
      type: object
      properties:
        kind:
          type: string
          enum:
            - lot
            - hit
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        at:
          type: string
        from:
          type: string
          nullable: true
      required:
        - kind
        - title
        - at
      additionalProperties: false
    GetHomeResponseRoom:
      type: object
      properties:
        floor:
          $ref: "#/components/schemas/GetHomeResponseRoomFloor"
        ceiling:
          type: number
        spawn:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          description: Where you arrive (by the door, front wall), and what you look at.
        target:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        doorClear:
          type: number
          description: Kept clear of furniture so nobody arrives inside a sofa.
      required:
        - floor
        - ceiling
        - spawn
        - target
        - doorClear
      additionalProperties: false
    GetHomeResponseRoomFloor:
      type: object
      properties:
        minX:
          type: number
        maxX:
          type: number
        minZ:
          type: number
        maxZ:
          type: number
      required:
        - minX
        - maxX
        - minZ
        - maxZ
      additionalProperties: false
    GetHomeResponseSetWall:
      type: object
      properties:
        title:
          type: string
        owned:
          type: number
        total:
          type: number
        pieces:
          type: array
          items:
            $ref: "#/components/schemas/GetHomeResponseSetWallPieces"
          description: In the set's order.
        key:
          type: string
          description: 'The set it shows, "category/brand/model": what a choice writes back to the piece.'
        choices:
          type: array
          items:
            $ref: "#/components/schemas/GetHomeResponseSetWallChoices"
          nullable: true
          description: "The owner only: every set they collect, to choose from."
      required:
        - title
        - owned
        - total
        - pieces
        - key
      additionalProperties: false
      nullable: true
      description: Your most complete set, filling in (set-wall.ts), when a set wall stands here.
    GetHomeResponseSetWallChoices:
      type: object
      properties:
        key:
          type: string
        title:
          type: string
        owned:
          type: number
        total:
          type: number
      required:
        - key
        - title
        - owned
        - total
      additionalProperties: false
    GetHomeResponseSetWallPieces:
      type: object
      properties:
        number:
          type: number
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        owned:
          type: boolean
      required:
        - number
        - title
        - owned
      additionalProperties: false
    GetHomeResponseVaultWall:
      type: object
      properties:
        showValues:
          type: boolean
          description: Visitors see marks (the owner's switch). The owner reads it to show the switch's state.
        valuesShown:
          type: boolean
          description: "This viewer sees marks: the owner, or anyone when showValues is on."
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetHomeResponseVaultWallUnits"
        more:
          type: number
          description: Pieces beyond the ones listed.
      required:
        - showValues
        - valuesShown
        - units
        - more
      additionalProperties: false
      nullable: true
      description: The owner's vault units on their trophy wall, when one stands here (vault-wall.ts); marks only as allowed.
    GetHomeResponseVaultWallUnits:
      type: object
      properties:
        title:
          type: string
        label:
          type: string
          nullable: true
          description: The variant / grade line ("Size 10 - PSA 10"), or null.
        imageUrl:
          type: string
          nullable: true
        units:
          type: number
        bookKey:
          type: string
          nullable: true
          description: The book key, for a click through to its market (/trading/<bookKey>).
        markCents:
          type: number
          nullable: true
          description: One unit's mark, cents -- only when the viewer may see values (else absent).
      required:
        - title
        - units
      additionalProperties: false
    GetHubSetupResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetHubSetupResponseData"
      required:
        - data
      additionalProperties: false
    GetHubSetupResponseData:
      type: object
      properties:
        section:
          type: string
          enum:
            - storefront
            - wholesale
            - ads
            - rentals
            - funding
            - world
            - vault
            - discounts
            - branding
            - drops
            - events
            - market
            - payouts
        steps:
          type: array
          items:
            $ref: "#/components/schemas/GetHubSetupResponseDataSteps"
        complete:
          type: boolean
          description: "Every step is done: the Overview shows only its page cards."
      required:
        - section
        - steps
        - complete
      additionalProperties: false
    GetHubSetupResponseDataSteps:
      type: object
      properties:
        id:
          type: string
          description: Stable within the section (`catalog`, `campaign`, `connect`).
        label:
          type: string
        done:
          type: boolean
        href:
          type: string
          description: The web page that completes it (a Hub or Settings path).
      required:
        - id
        - label
        - done
        - href
      additionalProperties: false
    GetImportSiteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetImportSiteResponseData"
      required:
        - data
      additionalProperties: false
    GetImportSiteResponseData:
      type: object
      properties:
        platform:
          type: string
        home:
          type: string
          nullable: true
          description: The account's own site — the picker's default.
        sites:
          type: array
          items:
            $ref: "#/components/schemas/GetImportSiteResponseDataSites"
        source:
          type: string
          enum:
            - none
            - imported
            - sample
          description: Where the counts came from.
      required:
        - platform
        - sites
        - source
      additionalProperties: false
    GetImportSiteResponseDataSites:
      type: object
      properties:
        marketplaceId:
          type: string
        name:
          type: string
        domain:
          type: string
        count:
          type: number
          description: Listings seen on this site (all of them when imported, a sample's count when live).
      required:
        - marketplaceId
        - name
        - domain
        - count
      additionalProperties: false
    GetInboxCannedResponseResponse:
      type: object
      properties:
        cannedResponses:
          type: array
          items:
            $ref: "#/components/schemas/CreateInboxCannedResponseResponseCannedResponse"
      required:
        - cannedResponses
      additionalProperties: false
    GetInboxConversationMessageResponse:
      type: object
      properties:
        messages:
          type: array
          items:
            $ref: "#/components/schemas/GetInboxConversationMessageResponseMessages"
      required:
        - messages
      additionalProperties: false
    GetInboxConversationMessageResponseMessages:
      type: object
      properties:
        id:
          type: string
        conversationId:
          type: string
        platformMessageId:
          type: string
          nullable: true
        sender:
          type: string
        body:
          type: string
          nullable: true
        attachments:
          type: array
          items:
            type: string
          nullable: true
        sentAt:
          type: string
          format: date-time
        syncedAt:
          type: string
          format: date-time
          nullable: true
        aiIntent:
          type: string
          nullable: true
        aiUrgency:
          type: string
          nullable: true
        aiScamScore:
          type: number
          nullable: true
        aiSuggestedReply:
          type: string
          nullable: true
        aiTriagedAt:
          type: string
          format: date-time
          nullable: true
        offerAmount:
          type: string
          nullable: true
        offerStatus:
          type: string
          enum:
            - expired
            - pending
            - accepted
            - declined
            - voided
          nullable: true
      required:
        - id
        - conversationId
        - sender
        - sentAt
      additionalProperties: false
    GetInboxCountResponse:
      type: object
      properties:
        unread:
          $ref: "#/components/schemas/GetInboxCountResponseUnread"
        needsReply:
          $ref: "#/components/schemas/GetInboxCountResponseNeedsReply"
        openOffers:
          type: number
          description: Live offers (open, not past their deadline).
      required:
        - unread
        - needsReply
        - openOffers
      additionalProperties: false
    GetInboxCountResponseNeedsReply:
      type: object
      properties:
        conversations:
          type: number
        offers:
          type: number
        total:
          type: number
        windowDays:
          type: number
      required:
        - conversations
        - offers
        - total
        - windowDays
      additionalProperties: false
    GetInboxCountResponseUnread:
      type: object
      properties:
        conversations:
          type: number
        offers:
          type: number
        total:
          type: number
      required:
        - conversations
        - offers
        - total
      additionalProperties: false
    GetInboxResponse:
      type: object
      properties:
        messages:
          type: array
          items:
            $ref: "#/components/schemas/CreateInboxSendOfferResponseMessage"
        listingId:
          type: string
          nullable: true
        itemTitle:
          type: string
          nullable: true
        itemThumbnail:
          type: string
          nullable: true
        itemUrl:
          type: string
          nullable: true
        crosslyListingSlug:
          type: string
          nullable: true
        itemPrice:
          type: number
          nullable: true
        itemCurrency:
          type: string
          nullable: true
        canSendOffer:
          type: boolean
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
        status:
          type: string
        source:
          type: string
          nullable: true
        labels:
          type: array
          items:
            type: string
        inventoryItemId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        buyerUsername:
          type: string
          nullable: true
        platformConversationId:
          type: string
        buyerPlatformId:
          type: string
          nullable: true
        buyerAvatarUrl:
          type: string
          nullable: true
        subject:
          type: string
          nullable: true
        isRead:
          type: boolean
        isHidden:
          type: boolean
        hasOffer:
          type: boolean
        offerAmount:
          type: string
          nullable: true
        offerStatus:
          type: string
          nullable: true
        platformConversationUrl:
          type: string
          nullable: true
        lastMessageAt:
          type: string
          format: date-time
          nullable: true
        supersededAt:
          type: string
          format: date-time
          nullable: true
        isStarred:
          type: boolean
      required:
        - messages
        - canSendOffer
        - id
        - createdAt
        - userId
        - platform
        - accountSlot
        - status
        - labels
        - platformConversationId
        - isRead
        - isHidden
        - hasOffer
        - isStarred
      additionalProperties: false
    GetIntegrationResponse:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
        groups:
          type: array
          items:
            $ref: "#/components/schemas/GetIntegrationResponseGroups"
      required:
        - groups
      additionalProperties: false
    GetIntegrationResponseGroups:
      type: object
      properties:
        kind:
          type: string
          enum:
            - email
            - ai
            - crm
            - design
        rows:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - kind
        - rows
      additionalProperties: false
    GetInventoryAgingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetInventoryAgingResponseData"
      required:
        - data
      additionalProperties: false
    GetInventoryAgingResponseData:
      type: object
      properties:
        buckets:
          type: array
          items:
            $ref: "#/components/schemas/GetInventoryAgingResponseDataBuckets"
        worst:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticInventoryResponseDataWorst"
        stuckCapitalCents:
          type: number
          description: |-
            Cost of stock 30+ days listed or unlisted (30-90 + 90+ + unlisted): the same number as attentionCostCents.
            Not "older than three months"; that is over90CostCents.
        attentionCostCents:
          type: number
        over90CostCents:
          type: number
        over90ListedValueCents:
          type: number
        totalItems:
          type: number
        totalUnits:
          type: number
        costKnownItems:
          type: number
        costUnknownItems:
          type: number
        listedValueCents:
          type: number
        marketValueCents:
          type: number
          nullable: true
        sizeBy:
          type: string
          enum:
            - value
            - cost
            - units
          x-enum-varnames:
            - valueOption
            - cost
            - units
      required:
        - buckets
        - worst
        - stuckCapitalCents
        - attentionCostCents
        - over90CostCents
        - over90ListedValueCents
        - totalItems
        - totalUnits
        - costKnownItems
        - costUnknownItems
        - listedValueCents
        - sizeBy
      additionalProperties: false
    GetInventoryAgingResponseDataBuckets:
      type: object
      properties:
        bucket:
          type: string
          enum:
            - unlisted
            - 90+
            - 0-7
            - 7-30
            - 30-90
        itemCount:
          type: number
        unitCount:
          type: number
        retailCents:
          type: number
          description: Old name for listedValueCents.
        recommendation:
          type: string
        key:
          type: string
          enum:
            - unlisted
            - lt7
            - d7_30
            - d30_90
            - gt90
        items:
          type: number
        units:
          type: number
        costCents:
          type: number
          description: Σ unit cost × units over the items whose cost is known.
        costKnownItems:
          type: number
        costUnknownItems:
          type: number
        listedValueCents:
          type: number
          description: Σ ask × units; items with no ask add nothing.
        marketValueCents:
          type: number
          nullable: true
          description: Σ market × units over the marked items; null when none in the bucket are marked.
      required:
        - bucket
        - itemCount
        - unitCount
        - retailCents
        - recommendation
        - key
        - items
        - units
        - costCents
        - costKnownItems
        - costUnknownItems
        - listedValueCents
      additionalProperties: false
    GetInventoryCatalogMatchResponse:
      type: object
      properties:
        inventoryItemId:
          type: string
          format: uuid
        boundMarketSkuId:
          type: string
          format: uuid
          nullable: true
        bound:
          type: object
          nullable: true
          additionalProperties: true
        suggestions:
          type: array
          items:
            $ref: "#/components/schemas/GetInventoryCatalogMatchResponseSuggestions"
    GetInventoryCatalogMatchResponseSuggestions:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          format: uuid
        inventoryItemId:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - pending
            - confirmed
            - dismissed
            - superseded
        source:
          type: string
          enum:
            - identifier
            - similarity
        score:
          type: number
        imageCosine:
          type: number
          nullable: true
        titleScore:
          type: number
          nullable: true
        reasons:
          type: array
          items:
            type: string
        rank:
          type: integer
        createdAt:
          type: string
          format: date-time
        item:
          type: object
          additionalProperties: true
        product:
          type: object
          additionalProperties: true
    GetInventoryLabelResponse:
      type: object
      properties:
        labels:
          type: array
          items:
            type: string
      required:
        - labels
      additionalProperties: false
    GetInventoryLabelStatResponse:
      type: object
      properties:
        labels:
          type: array
          items:
            $ref: "#/components/schemas/GetInventoryLabelStatResponseLabels"
      required:
        - labels
      additionalProperties: false
    GetInventoryLabelStatResponseLabels:
      type: object
      properties:
        label:
          type: string
        itemCount:
          type: number
        color:
          type: string
          nullable: true
      required:
        - label
        - itemCount
      additionalProperties: false
    GetInventoryResponse:
      type: object
      properties:
        platformListings:
          type: array
          items:
            $ref: "#/components/schemas/GetInventoryResponsePlatformListings"
        category:
          $ref: "#/components/schemas/MainSub"
      required:
        - platformListings
      additionalProperties: false
    GetInventoryResponsePlatformListings:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
        status:
          type: string
        marketplaceId:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        platformConnectionId:
          type: string
          nullable: true
        origin:
          type: string
          enum:
            - unknown
            - published
            - imported
            - external_stub
            - app_linked
        views:
          type: number
        favorites:
          type: number
        quantity:
          type: number
        inventoryItemId:
          type: string
          nullable: true
        delistedAt:
          type: string
          format: date-time
          nullable: true
        soldAt:
          type: string
          format: date-time
          nullable: true
        listingId:
          type: string
        platformListingId:
          type: string
        platformListingUrl:
          type: string
          nullable: true
        stockLocation:
          type: string
        listedAt:
          type: string
          format: date-time
          nullable: true
        sharedAt:
          type: string
          format: date-time
          nullable: true
        delistReason:
          type: string
          nullable: true
        lastCheckedAt:
          type: string
          format: date-time
          nullable: true
        commentsCount:
          type: number
        impressions:
          type: number
          nullable: true
        ctrBps:
          type: number
          nullable: true
        viewsSemantics:
          type: string
          enum:
            - lifetime
            - rolling7d
            - rolling30d
            - clicks
          nullable: true
        lastStatsSyncedAt:
          type: string
          format: date-time
          nullable: true
        errorMessage:
          type: string
          nullable: true
        delistRequestedAt:
          type: string
          format: date-time
          nullable: true
        delistRequestedReason:
          type: string
          nullable: true
        delistFailedAt:
          type: string
          format: date-time
          nullable: true
        delistError:
          type: string
          nullable: true
        delistErrorCode:
          type: string
          nullable: true
        listedPrice:
          type: string
          nullable: true
        crosslyPriceUsdCents:
          type: number
          nullable: true
        crosslyPriceFxAsOf:
          type: string
          nullable: true
        bundlePromo:
          $ref: "#/components/schemas/GetInventoryResponsePlatformListingsBundlePromo"
        hashtags:
          type: array
          items:
            type: string
          nullable: true
        isDraft:
          type: boolean
        scheduledPublishAt:
          type: string
          format: date-time
          nullable: true
        isDutchAuction:
          type: boolean
        dutchStartCents:
          type: number
          nullable: true
        dutchFloorCents:
          type: number
          nullable: true
        dutchEndsAt:
          type: string
          format: date-time
          nullable: true
        isPreOrder:
          type: boolean
        expectedShipBy:
          type: string
          nullable: true
        preorderDepositPercentBps:
          type: number
          nullable: true
        boostedAt:
          type: string
          format: date-time
          nullable: true
        imageCaption:
          type: string
          nullable: true
        durationDays:
          type: number
          nullable: true
        endsAt:
          type: string
          format: date-time
          nullable: true
        bestOfferEnabled:
          type: boolean
        bestOfferAutoAcceptCents:
          type: number
          nullable: true
        bestOfferAutoDeclineCents:
          type: number
          nullable: true
        aestheticTags:
          type: array
          items:
            type: string
          nullable: true
        personalization:
          $ref: "#/components/schemas/GetInventoryResponsePlatformListingsPersonalization"
        tryDays:
          type: number
          nullable: true
        tryFeeCents:
          type: number
          nullable: true
        subscribeDiscountBps:
          type: number
          nullable: true
        measurements:
          $ref: "#/components/schemas/GetInventoryResponsePlatformListingsMeasurements"
        allowsLocalPickup:
          type: boolean
        pickupRadiusMiles:
          type: number
          nullable: true
        pickupLat:
          type: string
          nullable: true
        pickupLng:
          type: string
          nullable: true
        refurbishedTier:
          type: string
          nullable: true
        refurbWarrantyMonths:
          type: number
          nullable: true
        refurbBatteryPct:
          type: number
          nullable: true
        charitySlug:
          type: string
          nullable: true
        charityPercentBps:
          type: number
          nullable: true
        crosslyReturnPolicyId:
          type: string
          nullable: true
        crosslyShippingPolicyId:
          type: string
          nullable: true
        crosslyPaymentPolicyId:
          type: string
          nullable: true
        retailPriceCents:
          type: number
          nullable: true
        restrictedCountries:
          type: array
          items:
            type: string
          nullable: true
        auctionExtendSeconds:
          type: number
          nullable: true
        authenticationProviderSlug:
          type: string
          nullable: true
        authenticationRequired:
          type: boolean
        hasVariants:
          type: boolean
        charityId:
          type: string
          nullable: true
        minOrderQuantity:
          type: number
        wholesaleUnitPriceCents:
          type: number
          nullable: true
        wholesaleMinQuantity:
          type: number
          nullable: true
        auctionReserveCents:
          type: number
          nullable: true
        isGtc:
          type: boolean
        handlingTimeDays:
          type: number
        itemLocation:
          type: string
          nullable: true
        itemLocationZip:
          type: string
          nullable: true
        itemLocationCountry:
          type: string
          nullable: true
        declaredShippingCost:
          type: string
          nullable: true
        returnPolicyText:
          type: string
          nullable: true
        lastDriftCheckedAt:
          type: string
          format: date-time
          nullable: true
        web3OrderId:
          type: string
          nullable: true
      required:
        - id
        - userId
        - platform
        - accountSlot
        - status
        - origin
        - views
        - favorites
        - quantity
        - listingId
        - platformListingId
        - stockLocation
        - commentsCount
        - isDraft
        - isDutchAuction
        - isPreOrder
        - bestOfferEnabled
        - allowsLocalPickup
        - authenticationRequired
        - hasVariants
        - minOrderQuantity
        - isGtc
        - handlingTimeDays
      additionalProperties: false
    GetInventoryResponsePlatformListingsBundlePromo:
      type: object
      properties:
        itemsRequired:
          type: number
        percentOff:
          type: number
        mode:
          type: string
          enum:
            - native
            - synthetic
        basePriceCents:
          type: number
          nullable: true
        promoPriceCents:
          type: number
          nullable: true
        workflowId:
          type: string
          nullable: true
        workflowRunId:
          type: string
          nullable: true
        appliedAt:
          type: string
      required:
        - itemsRequired
        - percentOff
        - mode
        - appliedAt
      additionalProperties: false
      nullable: true
    GetInventoryResponsePlatformListingsMeasurements:
      type: object
      properties:
        kind:
          type: string
        values:
          type: object
          additionalProperties: {}
      required:
        - kind
        - values
      additionalProperties: false
      nullable: true
    GetInventoryResponsePlatformListingsPersonalization:
      type: object
      properties:
        enabled:
          type: boolean
        prompt:
          type: string
        required:
          type: boolean
        maxLength:
          type: number
      required:
        - enabled
        - prompt
        - required
        - maxLength
      additionalProperties: false
      nullable: true
    GetInventorySellThroughResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetInventorySellThroughResponseData"
      required:
        - data
      additionalProperties: false
    GetInventorySellThroughResponseData:
      type: object
      properties:
        current:
          $ref: "#/components/schemas/GetInventorySellThroughResponseDataCurrent"
        previous:
          $ref: "#/components/schemas/GetInventorySellThroughResponseDataCurrent"
        comparison:
          $ref: "#/components/schemas/GetInventorySellThroughResponseDataComparison"
        window:
          $ref: "#/components/schemas/StartEnd"
        cohort:
          $ref: "#/components/schemas/GetAnalyticDashboardResponseSellThroughCohort"
      required:
        - current
        - previous
        - comparison
        - window
        - cohort
      additionalProperties: false
    GetInventorySellThroughResponseDataComparison:
      type: object
      properties:
        pctChange:
          description: "Always null: a relative change of a rate is not reported. Read `pp`."
          nullable: true
        pp:
          type: number
          nullable: true
          description: Percentage points, null when not comparable.
        comparable:
          type: boolean
        reason:
          type: string
          nullable: true
        delta:
          $ref: "#/components/schemas/GetAnalyticOverviewResponseDataKpisNetSalesDelta"
      required:
        - pctChange
        - comparable
        - delta
      additionalProperties: false
    GetInventorySellThroughResponseDataCurrent:
      type: object
      properties:
        rate:
          type: number
          nullable: true
        cohortSize:
          type: number
        cohortSold:
          type: number
        maturityDays:
          type: number
          description: Days the cohort was given to sell (the maturity it is measured at).
        tooYoungToJudge:
          type: boolean
          description: True when no item in the window is mature yet.
        n:
          type: number
        immature:
          type: number
      required:
        - cohortSize
        - cohortSold
        - maturityDays
        - tooYoungToJudge
        - n
        - immature
      additionalProperties: false
    GetInventoryValueHistoryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetInventoryValueHistoryResponseData"
      required:
        - data
      additionalProperties: false
    GetInventoryValueHistoryResponseData:
      type: object
      properties:
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetInventoryValueHistoryResponseDataPoints"
        collectingSince:
          type: string
          nullable: true
      required:
        - points
      additionalProperties: false
    GetInventoryValueHistoryResponseDataPoints:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        snapshotDate:
          type: string
        itemCount:
          type: number
        unitCount:
          type: number
        costCents:
          type: number
        retailCents:
          type: number
        marketCents:
          type: number
          nullable: true
        stuckCostCents:
          type: number
        over90CostCents:
          type: number
          nullable: true
        costKnownItems:
          type: number
          nullable: true
        reconstructed:
          type: boolean
      required:
        - id
        - createdAt
        - userId
        - snapshotDate
        - itemCount
        - unitCount
        - costCents
        - retailCents
        - stuckCostCents
        - reconstructed
      additionalProperties: false
    GetListingAdListingItem:
      type: object
      properties:
        platform:
          type: string
        platformListingId:
          type: string
        program:
          type: string
        status:
          type: string
          enum:
            - live
            - paused
            - pending
            - failed
            - ended
            - rejected
            - removed
            - not_promoted
            - needs_capture
        campaignId:
          type: string
          nullable: true
        campaignName:
          type: string
          nullable: true
        ratePct:
          type: number
          nullable: true
        bidCents:
          type: number
          nullable: true
        error:
          type: string
          nullable: true
        lastSyncedAt:
          type: string
          nullable: true
      required:
        - platform
        - platformListingId
        - program
        - status
      additionalProperties: false
    GetListingAdListingResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetListingAdListingItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    GetListingFacetResponse:
      type: object
      properties:
        brands:
          type: array
          items:
            type: string
        categories:
          type: array
          items:
            type: string
      required:
        - brands
        - categories
      additionalProperties: false
    GetListingManagementResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetListingManagementResponseData"
      additionalProperties: false
    GetListingManagementResponseData:
      type: object
      properties:
        origin:
          type: string
          enum:
            - linked
            - created
        managingApp:
          $ref: "#/components/schemas/CreateListingLinkResponseManagementManagingApp"
        platform:
          type: string
          nullable: true
        externalId:
          type: string
          nullable: true
        channel:
          type: string
          enum:
            - direct
            - relayed
          nullable: true
        verification:
          type: string
          enum:
            - verified
            - attested
            - mismatch
          nullable: true
        linkedAt:
          type: string
          nullable: true
        crosslyShopFeeBps:
          type: number
          description: |-
            Charged ONLY on sales made on Crossly Shop; sales on eBay or any other
            marketplace never carry an app fee. The seller's agreed revenue share on this
            app's install (oauth_grants.agreed_rev_share_bps); 0 = none (free app, revoked grant).
        openCommands:
          type: number
          description: Commands the app has not completed yet (delist/update/relist).
        attention:
          $ref: "#/components/schemas/CreateListingLinkResponseManagementAttention"
      required:
        - origin
        - managingApp
        - crosslyShopFeeBps
        - openCommands
      additionalProperties: false
      nullable: true
    GetListingOfferFloorResponse:
      type: object
      properties:
        grossCents:
          type: number
          nullable: true
          description: The lowest gross price an offer may be accepted or countered at here, or null for none.
        origin:
          type: string
          enum:
            - listing
            - item
            - break_even
          nullable: true
        rawCents:
          type: number
          nullable: true
          description: As the seller entered it (a take-home figure for a net floor; the cost for break-even).
        isNet:
          type: boolean
        text:
          type: string
          nullable: true
          description: Plain words for the reason line and the UI hint.
        assumptions:
          type: array
          items:
            type: string
          description: "What a net conversion had to assume (no weight: shipping not deducted)."
        floorCents:
          type: number
          nullable: true
          description: "The same floor under the names a decision uses (decideOffer floorSource): grossCents, origin."
        floorSource:
          type: string
          enum:
            - listing
            - item
            - break_even
          nullable: true
      required:
        - isNet
        - assumptions
      additionalProperties: false
    GetListingPlatformRecloneResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetListingPlatformRecloneResponseData"
      additionalProperties: false
    GetListingPlatformRecloneResponseData:
      type: object
      properties:
        id:
          type: string
        listingId:
          type: string
        platform:
          type: string
        oldExternalId:
          type: string
        newExternalId:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - completed
            - cancelled
            - failed
            - ending
            - awaiting_seller
            - confirming_end
            - publishing
        endMethod:
          type: string
          enum:
            - seller
            - direct
            - relay
        message:
          type: string
          nullable: true
          description: Seller-facing line for awaiting_seller / failed.
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - listingId
        - platform
        - oldExternalId
        - state
        - endMethod
        - createdAt
        - updatedAt
      additionalProperties: false
      nullable: true
    GetListingResponse:
      type: object
      properties:
        aiMedia:
          type: boolean
        aiMediaDetected:
          type: boolean
        platformListings:
          type: array
          items:
            $ref: "#/components/schemas/GetListingResponsePlatformListings"
        id:
          type: string
        brand:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
        currency:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        source:
          type: string
        images:
          type: array
          items:
            type: string
          nullable: true
        sku:
          type: string
          nullable: true
        quantity:
          type: number
        quantityAvailable:
          type: number
        condition:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        material:
          type: string
          nullable: true
        style:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        department:
          type: string
          nullable: true
        gender:
          type: string
          nullable: true
        itemType:
          type: string
          nullable: true
        sizeSystem:
          type: string
          nullable: true
        color:
          type: array
          items:
            type: string
        videoUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        gradeKey:
          type: string
          nullable: true
        grading:
          $ref: "#/components/schemas/CreateBulkBatchItemResponseGrading"
        priceFloorCents:
          type: number
          nullable: true
        floorIsNet:
          type: boolean
        weightLb:
          type: string
          nullable: true
        weightOz:
          type: string
          nullable: true
        dimensionLIn:
          type: string
          nullable: true
        dimensionWIn:
          type: string
          nullable: true
        dimensionHIn:
          type: string
          nullable: true
        assigneeMemberId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        descriptionHtml:
          type: string
          nullable: true
        price:
          type: string
          nullable: true
        aiMediaUrls:
          type: array
          items:
            type: string
        aiMediaDeclared:
          type: boolean
        aiMediaDetectedUrls:
          type: array
          items:
            type: string
        isDigital:
          type: boolean
        publishAt:
          type: string
          format: date-time
          nullable: true
        scheduledPlatforms:
          type: array
          items:
            type: string
          nullable: true
        parentListingId:
          type: string
          nullable: true
        groupKind:
          type: string
          enum:
            - bundle
            - variation
            - group
          nullable: true
        isBundle:
          type: boolean
        automationAssignedRuleIds:
          type: array
          items:
            type: string
        automationBlockedRuleIds:
          type: array
          items:
            type: string
        automationAssignedChainIds:
          type: array
          items:
            type: string
        automationBlockedChainIds:
          type: array
          items:
            type: string
        workflowBlockedIds:
          type: array
          items:
            type: string
        workflowAssignedIds:
          type: array
          items:
            type: string
        hsCode:
          type: string
          nullable: true
        countryOfOrigin:
          type: string
          nullable: true
        delistedAt:
          type: string
          format: date-time
          nullable: true
        soldAt:
          type: string
          format: date-time
          nullable: true
        ebayAttributesEnrichedAt:
          type: string
          format: date-time
          nullable: true
        duplicateOfListingId:
          type: string
          nullable: true
        clientDraftId:
          type: string
          nullable: true
        attributedOauthAppId:
          type: string
          nullable: true
        attributedGrantId:
          type: string
          nullable: true
        quotaBucket:
          type: string
          nullable: true
      required:
        - aiMedia
        - aiMediaDetected
        - platformListings
        - id
        - createdAt
        - updatedAt
        - userId
        - status
        - source
        - quantity
        - quantityAvailable
        - color
        - tags
        - floorIsNet
        - aiMediaUrls
        - aiMediaDeclared
        - aiMediaDetectedUrls
        - isDigital
        - isBundle
        - automationAssignedRuleIds
        - automationBlockedRuleIds
        - automationAssignedChainIds
        - automationBlockedChainIds
        - workflowBlockedIds
        - workflowAssignedIds
      additionalProperties: false
    GetListingResponsePlatformListings:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
        status:
          type: string
        marketplaceId:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        platformConnectionId:
          type: string
          nullable: true
        origin:
          type: string
          enum:
            - unknown
            - published
            - imported
            - external_stub
            - app_linked
        views:
          type: number
        favorites:
          type: number
        quantity:
          type: number
        inventoryItemId:
          type: string
          nullable: true
        delistedAt:
          type: string
          format: date-time
          nullable: true
        soldAt:
          type: string
          format: date-time
          nullable: true
        listingId:
          type: string
        platformListingId:
          type: string
        platformListingUrl:
          type: string
          nullable: true
        stockLocation:
          type: string
        listedAt:
          type: string
          format: date-time
          nullable: true
        sharedAt:
          type: string
          format: date-time
          nullable: true
        delistReason:
          type: string
          nullable: true
        lastCheckedAt:
          type: string
          format: date-time
          nullable: true
        commentsCount:
          type: number
        impressions:
          type: number
          nullable: true
        ctrBps:
          type: number
          nullable: true
        viewsSemantics:
          type: string
          enum:
            - lifetime
            - rolling7d
            - rolling30d
            - clicks
          nullable: true
        lastStatsSyncedAt:
          type: string
          format: date-time
          nullable: true
        errorMessage:
          type: string
          nullable: true
        delistRequestedAt:
          type: string
          format: date-time
          nullable: true
        delistRequestedReason:
          type: string
          nullable: true
        delistFailedAt:
          type: string
          format: date-time
          nullable: true
        delistError:
          type: string
          nullable: true
        delistErrorCode:
          type: string
          nullable: true
        listedPrice:
          type: string
          nullable: true
        crosslyPriceUsdCents:
          type: number
          nullable: true
        crosslyPriceFxAsOf:
          type: string
          nullable: true
        bundlePromo:
          $ref: "#/components/schemas/GetInventoryResponsePlatformListingsBundlePromo"
        hashtags:
          type: array
          items:
            type: string
          nullable: true
        isDraft:
          type: boolean
        scheduledPublishAt:
          type: string
          format: date-time
          nullable: true
        isDutchAuction:
          type: boolean
        dutchStartCents:
          type: number
          nullable: true
        dutchFloorCents:
          type: number
          nullable: true
        dutchEndsAt:
          type: string
          format: date-time
          nullable: true
        isPreOrder:
          type: boolean
        expectedShipBy:
          type: string
          nullable: true
        preorderDepositPercentBps:
          type: number
          nullable: true
        boostedAt:
          type: string
          format: date-time
          nullable: true
        imageCaption:
          type: string
          nullable: true
        durationDays:
          type: number
          nullable: true
        endsAt:
          type: string
          format: date-time
          nullable: true
        bestOfferEnabled:
          type: boolean
        bestOfferAutoAcceptCents:
          type: number
          nullable: true
        bestOfferAutoDeclineCents:
          type: number
          nullable: true
        aestheticTags:
          type: array
          items:
            type: string
          nullable: true
        personalization:
          $ref: "#/components/schemas/GetInventoryResponsePlatformListingsPersonalization"
        tryDays:
          type: number
          nullable: true
        tryFeeCents:
          type: number
          nullable: true
        subscribeDiscountBps:
          type: number
          nullable: true
        measurements:
          $ref: "#/components/schemas/GetInventoryResponsePlatformListingsMeasurements"
        allowsLocalPickup:
          type: boolean
        pickupRadiusMiles:
          type: number
          nullable: true
        pickupLat:
          type: string
          nullable: true
        pickupLng:
          type: string
          nullable: true
        refurbishedTier:
          type: string
          nullable: true
        refurbWarrantyMonths:
          type: number
          nullable: true
        refurbBatteryPct:
          type: number
          nullable: true
        charitySlug:
          type: string
          nullable: true
        charityPercentBps:
          type: number
          nullable: true
        crosslyReturnPolicyId:
          type: string
          nullable: true
        crosslyShippingPolicyId:
          type: string
          nullable: true
        crosslyPaymentPolicyId:
          type: string
          nullable: true
        retailPriceCents:
          type: number
          nullable: true
        restrictedCountries:
          type: array
          items:
            type: string
          nullable: true
        auctionExtendSeconds:
          type: number
          nullable: true
        authenticationProviderSlug:
          type: string
          nullable: true
        authenticationRequired:
          type: boolean
        hasVariants:
          type: boolean
        charityId:
          type: string
          nullable: true
        minOrderQuantity:
          type: number
        wholesaleUnitPriceCents:
          type: number
          nullable: true
        wholesaleMinQuantity:
          type: number
          nullable: true
        auctionReserveCents:
          type: number
          nullable: true
        isGtc:
          type: boolean
        handlingTimeDays:
          type: number
        itemLocation:
          type: string
          nullable: true
        itemLocationZip:
          type: string
          nullable: true
        itemLocationCountry:
          type: string
          nullable: true
        declaredShippingCost:
          type: string
          nullable: true
        returnPolicyText:
          type: string
          nullable: true
        lastDriftCheckedAt:
          type: string
          format: date-time
          nullable: true
        web3OrderId:
          type: string
          nullable: true
        verificationFailed:
          type: boolean
        detailsPending:
          type: boolean
        publishedOverrides:
          type: object
          nullable: true
          additionalProperties: {}
        delistState:
          type: string
          enum:
            - pending
            - failed
          nullable: true
        unmatchedSale:
          $ref: "#/components/schemas/GetListingResponsePlatformListingsUnmatchedSale"
      required:
        - id
        - userId
        - platform
        - accountSlot
        - status
        - origin
        - views
        - favorites
        - quantity
        - listingId
        - platformListingId
        - stockLocation
        - commentsCount
        - isDraft
        - isDutchAuction
        - isPreOrder
        - bestOfferEnabled
        - allowsLocalPickup
        - authenticationRequired
        - hasVariants
        - minOrderQuantity
        - isGtc
        - handlingTimeDays
        - verificationFailed
        - detailsPending
      additionalProperties: false
    GetListingResponsePlatformListingsUnmatchedSale:
      type: object
      properties:
        reason:
          type: string
          enum:
            - unknown_listing
            - no_identifier_match
            - ambiguous
        at:
          type: string
        platformOrderId:
          type: string
          nullable: true
        candidateCount:
          type: number
          nullable: true
          description: How many of the seller's listings matched equally (ambiguous only).
      required:
        - reason
        - at
      additionalProperties: false
      nullable: true
    GetListingSkuExistResponse:
      type: object
      properties:
        exists:
          type: boolean
      required:
        - exists
      additionalProperties: false
    GetListingVariationGroupResponse:
      type: object
      properties:
        group:
          $ref: "#/components/schemas/GetListingVariationGroupResponseGroup"
      additionalProperties: false
    GetListingVariationGroupResponseGroup:
      type: object
      properties:
        groupListingId:
          type: string
        axisValue:
          type: string
          nullable: true
      required:
        - groupListingId
      additionalProperties: false
      nullable: true
    GetLiveStreamRecapResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetLiveStreamRecapResponseData"
      required:
        - data
      additionalProperties: false
    GetLiveStreamRecapResponseData:
      type: object
      properties:
        streamId:
          type: string
        title:
          type: string
        status:
          type: string
        startedAt:
          type: string
          nullable: true
        endedAt:
          type: string
          nullable: true
        durationSeconds:
          type: number
        peakViewers:
          type: number
        itemsSold:
          type: number
        grossCents:
          type: number
        tipsCents:
          type: number
        tipsCount:
          type: number
        chatMessages:
          type: number
        auctionsRun:
          type: number
        lineupCount:
          type: number
        replayUrl:
          type: string
          nullable: true
      required:
        - streamId
        - title
        - status
        - durationSeconds
        - peakViewers
        - itemsSold
        - grossCents
        - tipsCents
        - tipsCount
        - chatMessages
        - auctionsRun
        - lineupCount
      additionalProperties: false
    GetLookbookDesignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetLookbookDesignResponseData"
      required:
        - data
      additionalProperties: false
    GetLookbookDesignResponseData:
      type: object
      properties:
        lookbook:
          $ref: "#/components/schemas/CreateLookbookResponseDataLookbook"
        version:
          type: number
        latestVersion:
          type: number
        design:
          $ref: "#/components/schemas/GetLookbookDesignResponseDataDesign"
        listings:
          type: object
          additionalProperties: {}
        brand:
          $ref: "#/components/schemas/CreateLookbookResponseDataBrand"
        renders:
          type: object
          additionalProperties: {}
      required:
        - lookbook
        - version
        - latestVersion
        - listings
        - brand
        - renders
      additionalProperties: false
    GetLookbookDesignResponseDataDesign:
      type: object
      properties:
        schema:
          type: number
        size:
          $ref: "#/components/schemas/WH"
        pages:
          type: array
          items:
            $ref: "#/components/schemas/GetLookbookDesignResponseDataDesignPages"
        brand:
          $ref: "#/components/schemas/CreateLookbookResponseDataDesignBrand"
      required:
        - schema
        - size
        - pages
      additionalProperties: false
      nullable: true
    GetLookbookDesignResponseDataDesignPages:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        elements:
          type: array
          items: {}
      required:
        - id
        - name
        - elements
      additionalProperties: false
    GetLoyaltyClubResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetLoyaltyClubResponseData"
      additionalProperties: false
    GetLoyaltyClubResponseData:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        name:
          type: string
        description:
          type: string
          nullable: true
        active:
          type: boolean
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetLoyaltyClubResponseDataTiers"
        memberCount:
          type: number
      required:
        - id
        - name
        - active
        - tiers
        - memberCount
      additionalProperties: false
      nullable: true
    GetLoyaltyClubResponseDataTiers:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        minSpendCents:
          type: number
        discountBps:
          type: number
        perks:
          type: string
          nullable: true
        members:
          type: number
      required:
        - id
        - name
        - minSpendCents
        - discountBps
        - members
      additionalProperties: false
    GetLoyaltyProgramMemberResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetLoyaltyProgramMemberResponseData"
      required:
        - data
      additionalProperties: false
    GetLoyaltyProgramMemberResponseData:
      type: object
      properties:
        id:
          type: string
        buyerUserId:
          type: string
        joinedAt:
          type: string
        standing:
          $ref: "#/components/schemas/GetLoyaltyProgramMemberResponseDataStanding"
        tier:
          $ref: "#/components/schemas/GetLoyaltyProgramMemberResponseDataTier"
        next:
          $ref: "#/components/schemas/GetLoyaltyProgramMemberResponseDataNext"
        graceUntil:
          type: string
          nullable: true
        override:
          $ref: "#/components/schemas/GetLoyaltyProgramMemberResponseDataOverride"
        grants:
          type: array
          items:
            $ref: "#/components/schemas/GetLoyaltyProgramMemberResponseDataGrants"
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetLoyaltyProgramMemberResponseDataEvents"
      required:
        - id
        - buyerUserId
        - joinedAt
        - standing
        - grants
        - events
      additionalProperties: false
    GetLoyaltyProgramMemberResponseDataEvents:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        data:
          type: object
          additionalProperties: {}
        at:
          type: string
      required:
        - id
        - kind
        - data
        - at
      additionalProperties: false
    GetLoyaltyProgramMemberResponseDataGrants:
      type: object
      properties:
        id:
          type: string
        perkType:
          type: string
        perkId:
          type: string
        status:
          type: string
        note:
          type: string
          nullable: true
        grantedAt:
          type: string
      required:
        - id
        - perkType
        - perkId
        - status
        - grantedAt
      additionalProperties: false
    GetLoyaltyProgramMemberResponseDataNext:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        toNext:
          type: number
          nullable: true
      required:
        - id
        - name
      additionalProperties: false
      nullable: true
    GetLoyaltyProgramMemberResponseDataOverride:
      type: object
      properties:
        tierId:
          type: string
        reason:
          type: string
          nullable: true
      required:
        - tierId
      additionalProperties: false
      nullable: true
    GetLoyaltyProgramMemberResponseDataStanding:
      type: object
      properties:
        spendCents:
          type: number
        orders:
          type: number
        points:
          type: number
        balance:
          type: number
      required:
        - spendCents
        - orders
        - points
        - balance
      additionalProperties: false
    GetLoyaltyProgramMemberResponseDataTier:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        color:
          type: string
        badge:
          type: string
        minSpendCents:
          type: number
        minOrders:
          type: number
        minPoints:
          type: number
        perks:
          type: array
          items: {}
        sort:
          type: number
      required:
        - id
        - name
        - color
        - badge
        - minSpendCents
        - minOrders
        - minPoints
        - perks
        - sort
      additionalProperties: false
      nullable: true
    GetLoyaltyProgramResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetLoyaltyProgramResponseData"
      additionalProperties: false
    GetLoyaltyProgramResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        active:
          type: boolean
        qualification:
          type: string
          enum:
            - orders
            - points
            - spend
        window:
          type: string
        pointsPerDollar:
          type: number
        joinMode:
          type: string
        downgrade:
          type: string
        graceDays:
          type: number
        paidMembership:
          $ref: "#/components/schemas/GetLoyaltyProgramResponseDataPaidMembership"
        earnRules:
          $ref: "#/components/schemas/GetLoyaltyProgramResponseDataEarnRules"
        rewards:
          type: array
          items:
            $ref: "#/components/schemas/GetLoyaltyProgramResponseDataRewards"
          description: "E3: the rewards shelf (edited on its own page, saved by ./rewards.ts)."
        evaluatedAt:
          type: string
          nullable: true
        memberCount:
          type: number
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetLoyaltyProgramResponseDataTiers"
      required:
        - id
        - name
        - active
        - qualification
        - window
        - pointsPerDollar
        - joinMode
        - downgrade
        - graceDays
        - paidMembership
        - earnRules
        - rewards
        - memberCount
        - tiers
      additionalProperties: false
      nullable: true
    GetLoyaltyProgramResponseDataEarnRules:
      type: object
      properties:
        checkIn:
          type: number
          description: Points for checking in at one of the seller's events (once per ticket).
        photoReview:
          type: number
          description: Points for a verified purchase review with at least one photo (once per purchase).
        groupBuyCapture:
          type: number
          description: Points for each captured group-buy commitment (once per commitment).
        huntEnabled:
          type: boolean
          description: Scavenger hunts may pay their prizes in this club's points.
      required:
        - checkIn
        - photoReview
        - groupBuyCapture
        - huntEnabled
      additionalProperties: false
      description: "E2: points outside checkout."
    GetLoyaltyProgramResponseDataPaidMembership:
      type: object
      properties:
        enabled:
          type: boolean
        monthlyCents:
          type: number
          nullable: true
      required:
        - enabled
      additionalProperties: false
    GetLoyaltyProgramResponseDataRewards:
      type: object
      properties:
        id:
          type: string
        pointsCost:
          type: number
        perMemberLimit:
          type: number
          nullable: true
          description: How many times one member may redeem it (null = no limit).
        stock:
          type: number
          nullable: true
          description: How many are left across every member (null = unlimited).
        active:
          type: boolean
      required:
        - id
        - pointsCost
        - active
      additionalProperties: false
    GetLoyaltyProgramResponseDataTiers:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        color:
          type: string
        badge:
          type: string
        minSpendCents:
          type: number
        minOrders:
          type: number
        minPoints:
          type: number
        perks:
          type: array
          items: {}
        sort:
          type: number
      required:
        - id
        - name
        - color
        - badge
        - minSpendCents
        - minOrders
        - minPoints
        - perks
        - sort
      additionalProperties: false
    GetMagicAutoSettingResponse:
      type: object
      properties:
        mode:
          type: string
          enum:
            - auto
            - off
            - review_all
      required:
        - mode
      additionalProperties: false
    GetMagicDraftResponse:
      type: object
      properties:
        draft:
          $ref: "#/components/schemas/GetMagicDraftResponseDraft"
      required:
        - draft
      additionalProperties: false
    GetMagicDraftResponseDraft:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        listingId:
          type: string
          nullable: true
        runId:
          type: string
        selectedMatchKeys:
          type: array
          items:
            type: string
          nullable: true
        chosenPriceCents:
          type: number
          nullable: true
        chosenQuantity:
          type: number
          nullable: true
        chosenCondition:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - runId
      additionalProperties: false
    GetMainStageResponse:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        capacity:
          type: number
        here:
          type: number
          description: People on the stage right now, across copies.
        live:
          $ref: "#/components/schemas/GetMainStageResponseLive"
        upcoming:
          type: array
          items:
            $ref: "#/components/schemas/GetMainStageResponseUpcoming"
        stream:
          $ref: "#/components/schemas/GetMainStageResponseStream"
        house:
          $ref: "#/components/schemas/GetMainStageResponseHouse"
      required:
        - slug
        - name
        - capacity
        - here
        - upcoming
        - house
      additionalProperties: false
    GetMainStageResponseHouse:
      type: object
      properties:
        now:
          $ref: "#/components/schemas/GetMainStageResponseHouseNow"
        next:
          type: array
          items:
            $ref: "#/components/schemas/GetMainStageResponseHouseNext"
      required:
        - next
      additionalProperties: false
      description: |-
        The house programme (house-programme.ts): what the stage shows while nobody
        has booked it, and the blocks after. `now` is null while a booked event is live.
    GetMainStageResponseHouseNext:
      type: object
      properties:
        kind:
          type: string
          enum:
            - music_set
            - replay
            - drop_watch
            - contest
        house:
          type: boolean
          description: "Always true: the stage and boards mark these as the house's, never a booking."
        title:
          type: string
        about:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        href:
          type: string
          nullable: true
          description: Where a tap goes (a drop, the arcade's contests), or null.
        playbackUrl:
          type: string
          nullable: true
          description: A replay's playable URL for the big screen, or null.
        coverImageUrl:
          type: string
          nullable: true
      required:
        - kind
        - house
        - title
        - about
        - startsAt
        - endsAt
      additionalProperties: false
    GetMainStageResponseHouseNow:
      type: object
      properties:
        kind:
          type: string
          enum:
            - music_set
            - replay
            - drop_watch
            - contest
        house:
          type: boolean
          description: "Always true: the stage and boards mark these as the house's, never a booking."
        title:
          type: string
        about:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        href:
          type: string
          nullable: true
          description: Where a tap goes (a drop, the arcade's contests), or null.
        playbackUrl:
          type: string
          nullable: true
          description: A replay's playable URL for the big screen, or null.
        coverImageUrl:
          type: string
          nullable: true
      required:
        - kind
        - house
        - title
        - about
        - startsAt
        - endsAt
      additionalProperties: false
      nullable: true
    GetMainStageResponseLive:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        kind:
          type: string
          enum:
            - brand_launch
            - creator_meetup
            - festival
            - talk
            - live_sale
        about:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
        cancelledAt:
          type: string
          nullable: true
        lineup:
          type: array
          items:
            $ref: "#/components/schemas/GetMainStageResponseLiveLineup"
        festivalId:
          type: string
          nullable: true
          description: The festival this show is part of, if any.
      required:
        - id
        - title
        - kind
        - startsAt
        - endsAt
        - lineup
      additionalProperties: false
      nullable: true
    GetMainStageResponseLiveLineup:
      type: object
      properties:
        name:
          type: string
        role:
          type: string
        profile:
          type: string
          nullable: true
      required:
        - name
        - role
      additionalProperties: false
    GetMainStageResponseStream:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        playbackUrl:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        host:
          type: string
          nullable: true
        lot:
          $ref: "#/components/schemas/GetMainStageResponseStreamLot"
      required:
        - id
        - title
      additionalProperties: false
      nullable: true
      description: "The live event's screen: a lineup host's stream while they are on air."
    GetMainStageResponseStreamLot:
      type: object
      properties:
        id:
          type: string
        sessionId:
          type: string
        lotNumber:
          type: number
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        currentBidCents:
          type: number
          description: Integer cents; 0 until somebody bids.
        minimumNextBidCents:
          type: number
          description: What the bid transaction will demand next -- the api's own figure.
      required:
        - id
        - sessionId
        - lotNumber
        - title
        - currentBidCents
        - minimumNextBidCents
      additionalProperties: false
      nullable: true
    GetMainStageResponseUpcoming:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        kind:
          type: string
          enum:
            - brand_launch
            - creator_meetup
            - festival
            - talk
            - live_sale
        about:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
        cancelledAt:
          type: string
          nullable: true
        lineup:
          type: array
          items:
            type: object
            additionalProperties: {}
        festivalId:
          type: string
          nullable: true
          description: The festival this show is part of, if any.
      required:
        - id
        - title
        - kind
        - startsAt
        - endsAt
        - lineup
      additionalProperties: false
    GetMarketMetalSpotHistoryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetMarketMetalSpotHistoryResponseData"
      required:
        - data
      additionalProperties: false
    GetMarketMetalSpotHistoryResponseData:
      type: object
      properties:
        metal:
          type: string
          enum:
            - gold
            - silver
            - platinum
            - palladium
        range:
          type: string
          enum:
            - 7d
            - 30d
            - 1d
            - 1y
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketMetalSpotHistoryResponseDataPoints"
      required:
        - metal
        - range
        - points
      additionalProperties: false
    GetMarketMetalSpotHistoryResponseDataPoints:
      type: object
      properties:
        at:
          type: string
        priceCents:
          type: number
      required:
        - at
        - priceCents
      additionalProperties: false
    GetMarketProductRelatedResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetMarketProductRelatedResponseData"
      required:
        - data
      additionalProperties: false
    GetMarketProductRelatedResponseData:
      type: object
      properties:
        skuId:
          type: string
        breadcrumb:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketProductRelatedResponseDataBreadcrumb"
          description: Market › department › category › brand › model › product.
        rails:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketProductRelatedResponseDataRails"
        explore:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketProductRelatedResponseDataExplore"
        searches:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketProductRelatedResponseDataSearches"
      required:
        - skuId
        - breadcrumb
        - rails
        - explore
        - searches
      additionalProperties: false
    GetMarketProductRelatedResponseDataBreadcrumb:
      type: object
      properties:
        name:
          type: string
        path:
          type: string
      required:
        - name
        - path
      additionalProperties: false
    GetMarketProductRelatedResponseDataExplore:
      type: object
      properties:
        heading:
          type: string
        links:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - heading
        - links
      additionalProperties: false
    GetMarketProductRelatedResponseDataRails:
      type: object
      properties:
        key:
          type: string
          enum:
            - brand
            - category
            - similar
            - also_viewed
            - looks_like
        heading:
          type: string
        seeAllPath:
          type: string
          nullable: true
          description: The directory page the rail is a preview of, or null (co-views have none).
        items:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - key
        - heading
        - items
      additionalProperties: false
    GetMarketProductRelatedResponseDataSearches:
      type: object
      properties:
        label:
          type: string
        path:
          type: string
      required:
        - label
        - path
      additionalProperties: false
    GetMarketProductResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetMarketProductResponseData"
      required:
        - data
      additionalProperties: false
    GetMarketProductResponseData:
      type: object
      properties:
        product:
          $ref: "#/components/schemas/GetMarketProductResponseDataProduct"
        variants:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketProductResponseDataVariants"
        metal:
          $ref: "#/components/schemas/GetMarketProductResponseDataMetal"
      required:
        - product
        - variants
      additionalProperties: false
    GetMarketProductResponseDataMetal:
      type: object
      properties:
        metal:
          type: string
          enum:
            - gold
            - silver
            - platinum
            - palladium
        form:
          type: string
          nullable: true
        grossWeightMg:
          type: number
          nullable: true
        finenessPpm:
          type: number
          nullable: true
        fineTroyOz:
          type: number
          nullable: true
          description: Null when purity is unknown — no melt is shown, never a guessed one.
        meltCents:
          type: number
          nullable: true
        spotCentsPerOz:
          type: number
          nullable: true
        spotAt:
          type: string
          nullable: true
        spotStale:
          type: boolean
      required:
        - metal
        - spotStale
      additionalProperties: false
      nullable: true
    GetMarketProductResponseDataProduct:
      type: object
      properties:
        images:
          $ref: "#/components/schemas/GetMarketProductResponseDataProductImages"
        id:
          type: string
        brand:
          type: string
          nullable: true
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        retailCents:
          type: number
          nullable: true
        imageUrl:
          type: string
          nullable: true
        categorySlug:
          type: string
        approvedByUserId:
          type: string
          nullable: true
        approvedAt:
          type: string
          format: date-time
          nullable: true
        externalId:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
        colorway:
          type: string
          nullable: true
        styleCode:
          type: string
          nullable: true
        releaseDate:
          type: string
          nullable: true
        submittedByUserId:
          type: string
          nullable: true
        rejectionReason:
          type: string
          nullable: true
        proposedVariants:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketProductResponseDataProductProposedVariants"
        verification:
          type: object
          additionalProperties: {}
        aiVerdict:
          type: object
          nullable: true
          additionalProperties: {}
        submissionSource:
          type: string
          nullable: true
        duplicateOfSkuId:
          type: string
          nullable: true
        preferredProviderSlug:
          type: string
          nullable: true
        allowPreBid:
          type: boolean
        preBidOpensAt:
          type: string
          format: date-time
          nullable: true
        featured:
          type: boolean
        externalSource:
          type: string
          nullable: true
        externalSyncedAt:
          type: string
          format: date-time
          nullable: true
        gradedGradeKeys:
          type: array
          items:
            type: string
        lowestAskCents:
          type: number
          nullable: true
        highestBidCents:
          type: number
          nullable: true
        lastSaleCents:
          type: number
          nullable: true
        tradesCount:
          type: number
        popularity:
          type: number
        colorFamily:
          type: array
          items:
            type: string
        metal:
          type: string
          nullable: true
        grossWeightMg:
          type: number
          nullable: true
        finenessPpm:
          type: number
          nullable: true
        metalForm:
          type: string
          nullable: true
      required:
        - images
        - id
        - name
        - createdAt
        - status
        - categorySlug
        - proposedVariants
        - verification
        - allowPreBid
        - featured
        - gradedGradeKeys
        - tradesCount
        - popularity
        - colorFamily
      additionalProperties: false
    GetMarketProductResponseDataProductImages:
      type: object
      properties:
        photos:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Still angles, hero first. Empty when the product has only its hero.
        spin:
          type: array
          items:
            type: string
          description: 360 frames in rotation order; empty when the product has no spin.
      required:
        - photos
        - spin
      additionalProperties: false
    GetMarketProductResponseDataProductProposedVariants:
      type: object
      properties:
        label:
          type: string
        sortKey:
          type: number
          nullable: true
      required:
        - label
      additionalProperties: false
    GetMarketProductResponseDataVariants:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        sortKey:
          type: number
        skuId:
          type: string
        externalId:
          type: string
          nullable: true
        externalSource:
          type: string
          nullable: true
        externalSyncedAt:
          type: string
          format: date-time
          nullable: true
        lastSaleCents:
          type: number
          nullable: true
        tradesCount:
          type: number
        lastSaleAt:
          type: string
          format: date-time
          nullable: true
        bestBidCents:
          type: number
          nullable: true
        bestAskCents:
          type: number
          nullable: true
      required:
        - id
        - label
        - sortKey
        - skuId
        - tradesCount
      additionalProperties: false
    GetMarketScrapQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetMarketScrapQuoteResponseData"
      required:
        - data
      additionalProperties: false
    GetMarketScrapQuoteResponseData:
      type: object
      properties:
        metal:
          type: string
          enum:
            - gold
            - silver
            - platinum
            - palladium
        finenessPpm:
          type: number
        grossWeightMg:
          type: number
        fineTroyOz:
          type: number
        spotCentsPerOz:
          type: number
        spotStale:
          type: boolean
        meltCents:
          type: number
        offer:
          $ref: "#/components/schemas/GetMarketScrapQuoteResponseDataOffer"
      required:
        - metal
        - finenessPpm
        - grossWeightMg
        - fineTroyOz
        - spotCentsPerOz
        - spotStale
        - meltCents
      additionalProperties: false
    GetMarketScrapQuoteResponseDataOffer:
      type: object
      properties:
        offerBps:
          type: number
        buyer:
          type: string
        grossCents:
          type: number
        feeCents:
          type: number
        payoutCents:
          type: number
      required:
        - offerBps
        - buyer
        - grossCents
        - feeCents
        - payoutCents
      additionalProperties: false
      nullable: true
    GetMarketVariantBookResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetMarketVariantBookResponseData"
      required:
        - data
      additionalProperties: false
    GetMarketVariantBookResponseData:
      type: object
      properties:
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketVariantBookResponseDataBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketVariantBookResponseDataBids"
      required:
        - condition
        - bids
        - asks
      additionalProperties: false
    GetMarketVariantBookResponseDataBids:
      type: object
      properties:
        priceCents:
          type: number
        count:
          type: number
      required:
        - priceCents
        - count
      additionalProperties: false
    GetMeResponse:
      type: object
      properties:
        userId:
          type: string
        email:
          type: string
        displayName:
          type: string
          nullable: true
        subscriptionTier:
          type: string
        subscriptionStatus:
          type: string
          nullable: true
        patPrefix:
          type: string
        scopes:
          type: array
          items:
            type: string
    GetMeTemplateSuggestResponse:
      type: object
      properties:
        template:
          nullable: true
      required:
        - template
      additionalProperties: false
    GetMembershipResponse:
      type: object
      properties:
        tier:
          type: string
          enum:
            - pro
            - classic
          nullable: true
        active:
          type: boolean
        startedAt:
          type: string
          format: date-time
          nullable: true
        endsAt:
          type: string
          format: date-time
          nullable: true
        benefits:
          $ref: "#/components/schemas/GetMembershipResponseBenefits"
      required:
        - active
      additionalProperties: false
    GetMileageSummaryResponse:
      type: object
      properties:
        year:
          type: number
        ratePerMile:
          type: number
        rates:
          type: array
          items:
            $ref: "#/components/schemas/GetMileageSummaryResponseRates"
        totalMiles:
          type: number
        deduction:
          type: number
        deductionCents:
          type: number
        entryCount:
          type: number
      required:
        - year
        - ratePerMile
        - rates
        - totalMiles
        - deduction
        - deductionCents
        - entryCount
      additionalProperties: false
    GetMileageSummaryResponseRates:
      type: object
      properties:
        from:
          type: string
          description: First day the rate applies, YYYY-MM-DD.
        ratePerMile:
          type: number
      required:
        - from
        - ratePerMile
      additionalProperties: false
    GetNeighbourhoodResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListNeighbourhoodsItem"
      required:
        - data
      additionalProperties: false
    GetNetworkPoolResponse:
      type: object
      properties:
        member:
          $ref: "#/components/schemas/GetNetworkPoolResponseMember"
      additionalProperties: false
    GetNetworkPoolResponseMember:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        joinedAt:
          type: string
          format: date-time
        platforms:
          type: string
        shareEnabled:
          type: boolean
        followEnabled:
          type: boolean
        likeEnabled:
          type: boolean
        lastEngagementAt:
          type: string
          format: date-time
          nullable: true
        engagementsPerformed:
          type: number
        engagementsReceived:
          type: number
        flaggedUntil:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - userId
        - joinedAt
        - platforms
        - shareEnabled
        - followEnabled
        - likeEnabled
        - engagementsPerformed
        - engagementsReceived
      additionalProperties: false
      nullable: true
    GetNetworkPoolSizeResponse:
      type: object
      properties:
        size:
          type: number
      required:
        - size
      additionalProperties: false
    GetNftMarketListingResponse:
      type: object
      properties:
        listings:
          type: array
          items:
            $ref: "#/components/schemas/GetNftMarketListingResponseListings"
      required:
        - listings
      additionalProperties: false
    GetNftMarketListingResponseListings:
      type: object
      properties:
        id:
          type: string
        cosmeticId:
          type: string
        cosmeticName:
          type: string
        previewImageUrl:
          type: string
          nullable: true
        priceCents:
          type: number
        sellerUserId:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - cosmeticId
        - cosmeticName
        - priceCents
        - createdAt
      additionalProperties: false
    GetOauthInitResponse:
      type: object
      properties:
        url:
          type: string
        oneShot:
          type: boolean
        status:
          type: string
        connectWith:
          type: string
          description: "Where the keys go: a v1 route (cardnexus) or the dashboard's connect dialog."
        docsUrl:
          type: string
        message:
          type: string
    GetOfferResponse:
      type: object
      properties:
        offers:
          type: array
          items:
            $ref: "#/components/schemas/GetOfferResponseOffers"
      required:
        - offers
      additionalProperties: false
    GetOfferResponseOffers:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        amountCents:
          type: number
        listedTotalCents:
          type: number
          nullable: true
          description: Asking total when the offer was made — what the buyer responded to.
        isBundle:
          type: boolean
        items:
          type: array
          items:
            type: object
            additionalProperties: {}
        message:
          type: string
          nullable: true
        parentOfferId:
          type: string
          nullable: true
        expiresAt:
          type: string
          format: date-time
        decidedAt:
          type: string
          format: date-time
          nullable: true
        consumedAt:
          type: string
          format: date-time
          nullable: true
          description: Set once an accepted offer has actually been paid for.
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - status
        - amountCents
        - isBundle
        - items
        - expiresAt
        - createdAt
      additionalProperties: false
    GetOrderCancelEligibilityResponse:
      type: object
      properties:
        eligible:
          type: boolean
        eligibleCancelReason:
          type: array
          items: {}
        failureReason:
          type: array
          items: {}
        source:
          type: string
      required:
        - eligible
        - eligibleCancelReason
        - failureReason
        - source
      additionalProperties: false
    GetOrderDeliveryPhotoResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetOrderDeliveryPhotoResponseData"
      required:
        - data
      additionalProperties: false
    GetOrderDeliveryPhotoResponseData:
      type: object
      properties:
        orderId:
          type: string
        state:
          type: string
          enum:
            - none
            - found
            - not_delivered
        photoUrl:
          type: string
          nullable: true
        source:
          type: string
          nullable: true
          description: The stored source string (above), or null.
        sourceLabel:
          type: string
          nullable: true
          description: '"From UPS", "From Trackified", "From eBay", "Added by you" — null when there is no photo.'
        thirdParty:
          type: boolean
          description: True when the photo came from a third party (carrier, aggregator, marketplace), not the seller.
        checked:
          type: array
          items:
            type: string
          description: Who was asked, for the quiet empty line ("UPS", "Trackified"). Empty when nothing could be asked.
      required:
        - orderId
        - state
        - thirdParty
        - checked
      additionalProperties: false
    GetOrderEvidenceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetOrderEvidenceResponseData"
      required:
        - data
      additionalProperties: false
    GetOrderEvidenceResponseData:
      type: object
      properties:
        grade:
          $ref: "#/components/schemas/GetOrderEvidenceResponseDataGrade"
        captures:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderEvidenceResponseDataCaptures"
        seal:
          $ref: "#/components/schemas/GetOrderEvidenceResponseDataSeal"
        packing:
          $ref: "#/components/schemas/GetOrderEvidenceResponseDataPacking"
        arrival:
          $ref: "#/components/schemas/GetOrderEvidenceResponseDataArrival"
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderEvidenceResponseDataUnits"
      required:
        - grade
        - captures
        - seal
        - arrival
        - units
      additionalProperties: false
    GetOrderEvidenceResponseDataArrival:
      type: object
      properties:
        state:
          type: string
          enum:
            - declined
            - submitted
            - not_requested
            - awaiting
            - window_closed
        windowHours:
          type: number
        requestedAt:
          type: string
          format: date-time
          nullable: true
        closesAt:
          type: string
          format: date-time
          nullable: true
          description: When the window shuts. Null when nothing was ever asked.
        detail:
          type: string
        photos:
          type: array
          items:
            type: string
      required:
        - state
        - windowHours
        - detail
        - photos
      additionalProperties: false
    GetOrderEvidenceResponseDataCaptures:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        status:
          type: string
        verdict:
          type: string
          nullable: true
        videoUrl:
          type: string
          nullable: true
        durationMs:
          type: number
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - kind
        - status
        - createdAt
      additionalProperties: false
    GetOrderEvidenceResponseDataGrade:
      type: object
      properties:
        grade:
          type: string
          enum:
            - none
            - basic
            - strong
            - conclusive
        points:
          type: number
        signals:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderEvidenceResponseDataGradeSignals"
        nextStep:
          type: string
          nullable: true
          description: |-
            The single most valuable thing not yet done, phrased as an action.

            One, not a checklist. A seller given six things to fix does none of
            them; a seller given the one worth the most does that one.
      required:
        - grade
        - points
        - signals
      additionalProperties: false
    GetOrderEvidenceResponseDataGradeSignals:
      type: object
      properties:
        key:
          type: string
          enum:
            - packing_capture
            - continuous_take
            - seal_verified
            - serial_pre_recorded
            - serial_seen_on_frame
            - arrival_condition
        points:
          type: number
        detail:
          type: string
          description: Shown to the seller verbatim. Must read as a fact, not a verdict.
      required:
        - key
        - points
        - detail
      additionalProperties: false
    GetOrderEvidenceResponseDataPacking:
      type: object
      properties:
        verdict:
          type: string
          enum:
            - partial
            - attested
            - discrepancy
            - unusable
        clips:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderEvidenceResponseDataPackingClips"
        boundaries:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderEvidenceResponseDataPackingBoundaries"
        headline:
          type: string
      required:
        - verdict
        - clips
        - boundaries
        - headline
      additionalProperties: false
      nullable: true
      description: The packing video as a whole — one clip or several, and every break between them.
    GetOrderEvidenceResponseDataPackingBoundaries:
      type: object
      properties:
        after:
          type: number
          description: Between clip `after` and clip `after + 1` (1-based clip numbers).
        gapMs:
          type: number
          nullable: true
          description: Camera-off time by the server's clock, ms (null when it cannot be known).
        state:
          type: string
          enum:
            - open
            - discrepancy
            - sealed
        seals:
          type: array
          items:
            type: object
            additionalProperties: {}
        detail:
          type: string
      required:
        - after
        - state
        - seals
        - detail
      additionalProperties: false
    GetOrderEvidenceResponseDataPackingClips:
      type: object
      properties:
        index:
          type: number
        captureId:
          type: string
        verdict:
          type: string
          enum:
            - partial
            - attested
            - unusable
          nullable: true
        durationMs:
          type: number
          nullable: true
        fileBinding:
          type: string
          nullable: true
        videoUrl:
          type: string
          nullable: true
      required:
        - index
        - captureId
      additionalProperties: false
    GetOrderEvidenceResponseDataSeal:
      type: object
      properties:
        assessment:
          $ref: "#/components/schemas/GetOrderEvidenceResponseDataSealAssessment"
        dispatchSearchedFrames:
          type: number
          nullable: true
          description: |-
            How many packing frames were searched to find the dispatch frame shot
            closest to the arrival angle. Null when the dispatch reading was simply
            the frame the recorder ended on.

            Surfaced rather than kept internal: "the best of eighteen frames
            matched" is a weaker claim than "the frame we took matched", and a
            reviewer has to be able to tell them apart. See frame-match.ts.
        hasDispatch:
          type: boolean
        hasArrival:
          type: boolean
        arrivalSource:
          type: string
          enum:
            - buyer
            - courier
          nullable: true
          description: Which frame the arrival side of the comparison came from.
        hasCourierPhoto:
          type: boolean
          description: A courier photo exists, even if the seal was not legible in it.
        total:
          type: number
          description: How many seals the parcel carries (one per way in).
        seals:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderEvidenceResponseDataSealSeals"
          description: Each seal's own comparison, by position.
        foreignSeals:
          type: number
          description: Arrival-side photos of a seal that is none of this order's.
      required:
        - assessment
        - hasDispatch
        - hasArrival
        - hasCourierPhoto
        - total
        - seals
        - foreignSeals
      additionalProperties: false
    GetOrderEvidenceResponseDataSealAssessment:
      type: object
      properties:
        verdict:
          type: string
          enum:
            - unknown
            - opened
            - intact
            - suspect
        reasons:
          type: array
          items:
            type: object
            additionalProperties: {}
        headline:
          type: string
          description: One sentence for a human who will read nothing else.
      required:
        - verdict
        - reasons
        - headline
      additionalProperties: false
      description: The PARCEL's verdict — on a multi-seal parcel, every seal folded together.
    GetOrderEvidenceResponseDataSealSeals:
      type: object
      properties:
        position:
          type: number
        spot:
          type: string
          nullable: true
        hasDispatch:
          type: boolean
        hasArrival:
          type: boolean
        arrivalSource:
          type: string
          enum:
            - buyer
            - courier
          nullable: true
        assessment:
          type: object
          additionalProperties: {}
      required:
        - position
        - hasDispatch
        - hasArrival
        - assessment
      additionalProperties: false
    GetOrderEvidenceResponseDataUnits:
      type: object
      properties:
        unitId:
          type: string
        identifiers:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - unitId
        - identifiers
      additionalProperties: false
    GetOrderOrderChatResponse:
      type: object
      properties:
        orderId:
          type: string
          description: The Crossly order id.
        platform:
          type: string
        messages:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderOrderChatResponseMessages"
        canSend:
          type: boolean
          description: Whether the order screen can send into this thread (the platform's `sendFromOrder` capability).
      required:
        - orderId
        - platform
        - messages
        - canSend
      additionalProperties: false
    GetOrderOrderChatResponseMessages:
      type: object
      properties:
        id:
          type: string
          description: Stable per message (re-reads return the same id; it is the inbox row's platform message id).
        sender:
          type: string
          enum:
            - platform
            - seller
            - buyer
        body:
          type: string
        sentAt:
          type: string
          description: ISO 8601.
        attachments:
          type: array
          items:
            type: string
          nullable: true
          description: Image URLs on the marketplace's CDN; absent when the message has none.
      required:
        - id
        - sender
        - body
        - sentAt
      additionalProperties: false
    GetOrderPickListResponse:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderPickListResponseGroups"
        orderCount:
          type: number
        itemCount:
          type: number
      required:
        - groups
        - orderCount
        - itemCount
      additionalProperties: false
    GetOrderPickListResponseGroups:
      type: object
      properties:
        bin:
          type: string
          nullable: true
          description: The bin code; null = items with no bin recorded.
        lines:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - lines
      additionalProperties: false
    GetOrderPlatformLabelOptionResponse:
      type: object
      properties:
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderPlatformLabelOptionResponseOneOfTiers"
        emailConnected:
          type: boolean
        services:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderPlatformLabelOptionResponseOneOf1Services"
        customsRequired:
          type: boolean
          nullable: true
    GetOrderPlatformLabelOptionResponseOneOf1Services:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        carrier:
          type: string
          nullable: true
      required:
        - id
        - name
      additionalProperties: false
    GetOrderPlatformLabelOptionResponseOneOfTiers:
      type: object
      properties:
        oz:
          type: number
        label:
          type: string
        chargeUsd:
          type: number
      required:
        - oz
        - label
        - chargeUsd
      additionalProperties: false
    GetOrderProofOfDeliveryResponse:
      type: object
      properties:
        orderId:
          type: string
        platform:
          type: string
        platformOrderId:
          type: string
          nullable: true
        itemTitle:
          type: string
          nullable: true
        buyerUsername:
          type: string
          nullable: true
        shipToPostalCode:
          type: string
          nullable: true
          description: The ZIP we shipped to, for comparison against the delivery scan.
        shipToCityState:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        trackingNumber:
          type: string
          nullable: true
        trackingUrl:
          type: string
          nullable: true
        shippedAt:
          type: string
          nullable: true
        deliveredAt:
          type: string
          nullable: true
        deliveryLocation:
          type: string
          nullable: true
        signature:
          type: string
          nullable: true
          description: Null means the carrier captured none — NOT that delivery is unproven.
        deliveryPhotoUrl:
          type: string
          nullable: true
          description: |-
            The carrier's own artefacts, rehosted on our CDN (7C,
            services/dispute/delivery-evidence.ts): UPS's photo of the parcel at the
            door and the signature image, and the carrier's proof-of-delivery
            document (UPS letter, FedEx signed POD). Null when the carrier has none.
        signatureImageUrl:
          type: string
          nullable: true
        carrierDocumentUrl:
          type: string
          nullable: true
        receivedBy:
          type: string
          nullable: true
        scans:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderProofOfDeliveryResponseScans"
        postalCodeMatches:
          type: boolean
          nullable: true
          description: |-
            Does the delivery scan's location contain the ZIP we shipped to?

            `null` when either side is missing, which is different from `false`. A
            false says the carrier delivered somewhere else — a serious claim — and
            it must never be produced by a missing field.
        gaps:
          type: array
          items:
            type: string
          description: |-
            Why this document is weak, stated plainly so the seller isn't surprised
            by the marketplace's response.
      required:
        - orderId
        - platform
        - scans
        - gaps
      additionalProperties: false
    GetOrderProofOfDeliveryResponseScans:
      type: object
      properties:
        status:
          type: string
        detail:
          type: string
          nullable: true
        date:
          type: string
          nullable: true
        location:
          type: string
          nullable: true
      required:
        - status
      additionalProperties: false
    GetOrderRefundOptionResponse:
      type: object
      properties:
        orderId:
          type: string
        platform:
          type: string
        supported:
          type: boolean
        full:
          type: boolean
        partial:
          type: boolean
        partialCap:
          type: string
          enum:
            - item
            - total
          nullable: true
        beforeShipment:
          type: boolean
        reasons:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticProgramResponseDataTrendSeries"
          nullable: true
        comment:
          type: boolean
        cancelsSale:
          type: boolean
        untilCompleted:
          type: boolean
        windowClosed:
          type: boolean
        note:
          type: string
          nullable: true
      required:
        - orderId
        - platform
        - supported
        - full
        - partial
        - beforeShipment
        - comment
        - cancelsSale
        - untilCompleted
        - windowClosed
      additionalProperties: false
    GetOrderResponse:
      type: object
      properties:
        appShare:
          $ref: "#/components/schemas/GetOrderResponseAppShare"
        carrierTracking:
          type: string
          enum:
            - platform
            - crossly
            - none
            - off
            - crossly_label
        trade:
          $ref: "#/components/schemas/GetOrderResponseTrade"
        buyerCompany:
          $ref: "#/components/schemas/GetOrderResponseBuyerCompany"
        salePrice:
          type: number
          nullable: true
          description: DOLLARS (numbers, as order.created sends them). null = not known (no sale row, or details pending).
        platformFee:
          type: number
          nullable: true
        taxCollected:
          type: number
          nullable: true
        shippingCharged:
          type: number
          nullable: true
        feeSource:
          type: string
          nullable: true
          description: "'exact' (the marketplace's charged fee) | 'estimated'."
        detailsPending:
          type: boolean
        sku:
          type: string
          nullable: true
          description: The listing's SKU (order.created `sku`).
        quantity:
          type: number
          description: Units on the order (order.created `quantity`).
        lineItems:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderResponseLineItems"
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
        status:
          type: string
        notes:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        source:
          type: string
          nullable: true
        assigneeMemberId:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        handlingTimeDays:
          type: number
          nullable: true
        platformOrderId:
          type: string
          nullable: true
        orderNumber:
          type: string
          nullable: true
        reportedByAppId:
          type: string
          nullable: true
        buyerUsername:
          type: string
          nullable: true
        pickupPoint:
          type: object
          nullable: true
          additionalProperties: {}
        consolidationId:
          type: string
          nullable: true
        dutiesCents:
          type: number
        dutiesRefundedAt:
          type: string
          format: date-time
          nullable: true
        salesChannel:
          type: string
        channelLocationId:
          type: string
          nullable: true
        channel:
          type: string
        invoiceId:
          type: string
          nullable: true
        buyerCompanyId:
          type: string
          nullable: true
        packagePresetId:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        service:
          type: string
          nullable: true
        trackingNumber:
          type: string
          nullable: true
        easypostShipmentId:
          type: string
          nullable: true
        easypostTrackerId:
          type: string
          nullable: true
        easypostRateId:
          type: string
          nullable: true
        shippingLabelUrl:
          type: string
          nullable: true
        labelPurchasedAt:
          type: string
          format: date-time
          nullable: true
        shippedAt:
          type: string
          format: date-time
          nullable: true
        estimatedDelivery:
          type: string
          nullable: true
        deliveredAt:
          type: string
          format: date-time
          nullable: true
        carrierStatus:
          type: string
          nullable: true
        carrierStatusDetail:
          type: string
          nullable: true
        trackingHistory:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderResponseTrackingHistory"
          nullable: true
        deliveryLocation:
          type: string
          nullable: true
        deliverySignature:
          type: string
          nullable: true
        trackingSubmittedAt:
          type: string
          format: date-time
          nullable: true
        trackingSubmitStatus:
          type: string
          nullable: true
        labelCost:
          type: string
          nullable: true
        costOfGoods:
          type: string
          nullable: true
        requestedCarrier:
          type: string
          nullable: true
        requestedService:
          type: string
          nullable: true
        shipByAt:
          type: string
          format: date-time
          nullable: true
        shipByAlertedAt:
          type: string
          format: date-time
          nullable: true
        oversoldBy:
          type: number
        lastStatusCheckAt:
          type: string
          format: date-time
          nullable: true
        lastChatCheckAt:
          type: string
          format: date-time
          nullable: true
        lastTrackingCheckAt:
          type: string
          format: date-time
          nullable: true
        isDisputed:
          type: boolean
        disputeReason:
          type: string
          nullable: true
        disputePlatformCaseId:
          type: string
          nullable: true
        disputeResolvedAt:
          type: string
          format: date-time
          nullable: true
        refundAmount:
          type: string
          nullable: true
        refundReason:
          type: string
          nullable: true
        refundPlatformId:
          type: string
          nullable: true
        refundedAt:
          type: string
          format: date-time
          nullable: true
        cancelledAt:
          type: string
          format: date-time
          nullable: true
        cancellationReason:
          type: string
          nullable: true
        arrivalConditionRequestedAt:
          type: string
          format: date-time
          nullable: true
        arrivalConditionSubmittedAt:
          type: string
          format: date-time
          nullable: true
        arrivalConditionDeclinedAt:
          type: string
          format: date-time
          nullable: true
        deliveryPhotoUrl:
          type: string
          nullable: true
        deliveryPhotoSource:
          type: string
          nullable: true
        purchaseOrderRef:
          type: string
          nullable: true
        arrivalConditionPhotos:
          type: array
          items:
            type: string
        buyerEmail:
          type: string
          nullable: true
        fulfillmentMethod:
          type: string
        platformConfirmedAt:
          type: string
          format: date-time
          nullable: true
        deletedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - carrierTracking
        - detailsPending
        - quantity
        - lineItems
        - id
        - createdAt
        - updatedAt
        - userId
        - platform
        - status
        - dutiesCents
        - salesChannel
        - channel
        - oversoldBy
        - isDisputed
        - arrivalConditionPhotos
        - fulfillmentMethod
      additionalProperties: false
    GetOrderResponseAppShare:
      type: object
      properties:
        appName:
          type: string
        amount:
          type: number
        estimated:
          type: boolean
          description: "True when no ledger row exists yet: the expected cut, not the taken one."
      required:
        - appName
        - amount
        - estimated
      additionalProperties: false
      nullable: true
    GetOrderResponseBuyerCompany:
      type: object
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
      required:
        - name
      additionalProperties: false
      nullable: true
    GetOrderResponseLineItems:
      type: object
      properties:
        lineKey:
          type: string
          nullable: true
        listingId:
          type: string
        inventoryItemId:
          type: string
          nullable: true
        platformListingId:
          type: string
          description: The MARKETPLACE's listing id (eBay item id, Poshmark listing id, ...), not Crossly's.
        sku:
          type: string
          nullable: true
          description: The variant SKU the marketplace reported, else the listing's SKU.
        variantId:
          type: string
          nullable: true
        quantity:
          type: number
        unitPrice:
          type: number
          description: DOLLARS per unit (salePrice / quantity, rounded to the cent).
        total:
          type: number
          description: "DOLLARS for the line: the sale price."
      required:
        - listingId
        - platformListingId
        - quantity
        - unitPrice
        - total
      additionalProperties: false
    GetOrderResponseTrackingHistory:
      type: object
      properties:
        status:
          type: string
        statusDetails:
          type: string
          nullable: true
        statusDate:
          type: string
          nullable: true
        location:
          type: string
          nullable: true
      required:
        - status
      additionalProperties: false
    GetOrderResponseTrade:
      type: object
      properties:
        invoiceId:
          type: string
        invoiceNumber:
          type: string
        invoiceStatus:
          type: string
          enum:
            - partial
            - open
            - void
            - paid
            - overdue
        netDays:
          type: number
          nullable: true
          description: Net days on the invoice; null = due on receipt.
        dueAt:
          type: string
          nullable: true
        totalCents:
          type: number
        amountPaidCents:
          type: number
        balanceCents:
          type: number
      required:
        - invoiceId
        - invoiceNumber
        - invoiceStatus
        - totalCents
        - amountPaidCents
        - balanceCents
      additionalProperties: false
      nullable: true
    GetOrderSalesTaxResponse:
      type: object
      properties:
        orderId:
          type: string
        collectedBy:
          type: string
          enum:
            - crossly
            - not_collected
        reason:
          type: string
          enum:
            - unavailable
            - not_registered
            - exempt
            - not_taxable
            - cross_border
          nullable: true
        country:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        source:
          type: string
          enum:
            - ship_to
            - pickup
        jurisdiction:
          type: string
          nullable: true
        taxCents:
          type: number
        mayOwe:
          type: boolean
        notice:
          type: string
        crosslyCollectsThereNow:
          type: boolean
          description: Crossly collects in this jurisdiction TODAY (it may not have at the time of this sale).
        helpPath:
          type: string
      required:
        - orderId
        - collectedBy
        - source
        - taxCents
        - mayOwe
        - notice
        - crosslyCollectsThereNow
        - helpPath
      additionalProperties: false
    GetOrderScanFormResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListOrderScanFormsItem"
      required:
        - data
      additionalProperties: false
    GetOrderShipmentResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderShipmentResponseData"
        totalLabelCostCents:
          type: number
      required:
        - data
        - totalLabelCostCents
      additionalProperties: false
    GetOrderShipmentResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        source:
          type: string
        weightOz:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        service:
          type: string
          nullable: true
        trackingNumber:
          type: string
          nullable: true
        orderId:
          type: string
        lengthIn:
          type: string
          nullable: true
        widthIn:
          type: string
          nullable: true
        heightIn:
          type: string
          nullable: true
        labelUrl:
          type: string
          nullable: true
        labelQrUrl:
          type: string
          nullable: true
        labelCostCents:
          type: number
          nullable: true
        shippoShipmentId:
          type: string
          nullable: true
        trackingRegisteredAt:
          type: string
          format: date-time
          nullable: true
        voidedAt:
          type: string
          format: date-time
          nullable: true
        presetId:
          type: string
          nullable: true
        labelPrintedAt:
          type: string
          format: date-time
          nullable: true
        labelPrintJobId:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - source
        - orderId
      additionalProperties: false
    GetOrderSuggestedParcelResponse:
      type: object
      properties:
        source:
          type: string
          enum:
            - none
            - item
            - learned
            - box
          description: |-
            How we arrived at the suggestion — drives the modal's default view. 'learned' = what this item shipped in its
            last shipments (audit4 D7: median weight, most-used box, at least 3 shipments).
        sampleSize:
          type: number
          nullable: true
          description: "With source 'learned': how many shipments it came from (\"From your last N shipments\")."
        presetId:
          type: string
          nullable: true
        presetName:
          type: string
          nullable: true
        lengthIn:
          type: number
          nullable: true
        widthIn:
          type: number
          nullable: true
        heightIn:
          type: number
          nullable: true
        weightOz:
          type: number
          nullable: true
          description: Parcel weight incl. box tare (box) or the item's own weight (item).
      required:
        - source
      additionalProperties: false
    GetOrderWhatnotShipmentResponse:
      type: object
      properties:
        shipment:
          $ref: "#/components/schemas/GetOrderWhatnotShipmentResponseShipment"
        recorded:
          type: boolean
      required:
        - shipment
        - recorded
      additionalProperties: false
    GetOrderWhatnotShipmentResponseShipment:
      type: object
      properties:
        shipmentId:
          type: string
        status:
          type: string
          nullable: true
        labelUrl:
          type: string
          nullable: true
        trackingNumber:
          type: string
          nullable: true
        trackingUrl:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        service:
          type: string
          nullable: true
        canGenerateLabel:
          type: boolean
        requiresFlatRateBoxSelection:
          type: boolean
        weightOz:
          type: number
          nullable: true
        dimensionsIn:
          $ref: "#/components/schemas/GetOrderWhatnotShipmentResponseShipmentDimensionsIn"
      required:
        - shipmentId
        - canGenerateLabel
        - requiresFlatRateBoxSelection
      additionalProperties: false
    GetOrderWhatnotShipmentResponseShipmentDimensionsIn:
      type: object
      properties:
        length:
          type: number
        width:
          type: number
        height:
          type: number
      required:
        - length
        - width
        - height
      additionalProperties: false
      nullable: true
    GetPassportPrintResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPassportPrintResponseData"
      required:
        - data
      additionalProperties: false
    GetPassportPrintResponseData:
      type: object
      properties:
        jobId:
          type: string
        status:
          type: string
        error:
          type: string
          nullable: true
        completedAt:
          type: string
          nullable: true
      required:
        - jobId
        - status
      additionalProperties: false
    GetPassportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPassportResponseData"
      required:
        - data
      additionalProperties: false
    GetPassportResponseData:
      type: object
      properties:
        passport:
          $ref: "#/components/schemas/ListPassportsItem"
        item:
          $ref: "#/components/schemas/GetPassportResponseDataItem"
        listings:
          type: array
          items:
            $ref: "#/components/schemas/GetPassportResponseDataListings"
        events:
          type: array
          items:
            $ref: "#/components/schemas/ListPassportEventsItem"
        scans:
          type: array
          items:
            $ref: "#/components/schemas/GetPassportResponseDataScans"
          description: The last 30 days, newest first.
        owners:
          type: number
        sold:
          type: boolean
      required:
        - passport
        - item
        - listings
        - events
        - scans
        - owners
        - sold
      additionalProperties: false
    GetPassportResponseDataItem:
      type: object
      properties:
        id:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
      additionalProperties: false
    GetPassportResponseDataListings:
      type: object
      properties:
        id:
          type: string
        listingId:
          type: string
        platform:
          type: string
        status:
          type: string
        slug:
          type: string
          nullable: true
      required:
        - id
        - listingId
        - platform
        - status
      additionalProperties: false
    GetPassportResponseDataScans:
      type: object
      properties:
        day:
          type: string
        nfc:
          type: number
        qr:
          type: number
      required:
        - day
        - nfc
        - qr
      additionalProperties: false
    GetPatScopeResponse:
      type: object
      properties:
        scopes:
          type: array
          items:
            $ref: "#/components/schemas/ListAppsItemCapabilities"
      required:
        - scopes
      additionalProperties: false
    GetPatternResponse:
      type: object
      properties:
        patterns:
          type: array
          items:
            type: string
      required:
        - patterns
      additionalProperties: false
    GetPayoutConnectResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPayoutConnectResponseData"
      required:
        - data
      additionalProperties: false
    GetPayoutEstimateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListPayoutCompareItem"
      required:
        - data
      additionalProperties: false
    GetPayoutGrossForNetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPayoutGrossForNetResponseData"
      required:
        - data
      additionalProperties: false
    GetPayoutGrossForNetResponseData:
      type: object
      properties:
        grossCents:
          type: number
        estimate:
          $ref: "#/components/schemas/ListPayoutCompareItem"
      required:
        - grossCents
        - estimate
      additionalProperties: false
    GetPayoutIdentityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPayoutIdentityResponseData"
      required:
        - data
      additionalProperties: false
    GetPayoutIdentityResponseData:
      type: object
      properties:
        status:
          type: string
          enum:
            - pending
            - verified
            - not_started
            - restricted
            - action_required
        hasAccount:
          type: boolean
        accountSource:
          type: string
          enum:
            - store
            - owner
          nullable: true
          description: "Whose Connect account this is: the store's own, or the owner's (the default store, or a store not set up)."
        detailsSubmitted:
          type: boolean
        payoutsEnabled:
          type: boolean
        chargesEnabled:
          type: boolean
        dueNow:
          type: array
          items:
            $ref: "#/components/schemas/GetPayoutIdentityResponseDataDueNow"
          description: "Due now (past due first): payouts stop or stay off until Stripe has them."
        dueLater:
          type: array
          items:
            $ref: "#/components/schemas/GetPayoutIdentityResponseDataDueNow"
          description: Stripe will ask later (at a volume threshold); the link collects them up front.
        inReview:
          type: array
          items:
            $ref: "#/components/schemas/GetPayoutIdentityResponseDataDueNow"
          description: Sent, and Stripe is checking them.
        pastDue:
          type: array
          items:
            type: string
        currentlyDue:
          type: array
          items:
            type: string
        eventuallyDue:
          type: array
          items:
            type: string
        pendingVerification:
          type: array
          items:
            type: string
        errors:
          type: array
          items:
            $ref: "#/components/schemas/GetPayoutIdentityResponseDataErrors"
        disabledReason:
          type: string
          nullable: true
        disabledReasonText:
          type: string
          nullable: true
        currentDeadline:
          type: string
          nullable: true
        syncedAt:
          type: string
          nullable: true
      required:
        - status
        - hasAccount
        - detailsSubmitted
        - payoutsEnabled
        - chargesEnabled
        - dueNow
        - dueLater
        - inReview
        - pastDue
        - currentlyDue
        - eventuallyDue
        - pendingVerification
        - errors
      additionalProperties: false
    GetPayoutIdentityResponseDataDueNow:
      type: object
      properties:
        keys:
          type: array
          items:
            type: string
          description: Every Stripe key this line stands for (a date of birth is three).
        label:
          type: string
      required:
        - keys
        - label
      additionalProperties: false
    GetPayoutIdentityResponseDataErrors:
      type: object
      properties:
        requirement:
          type: string
        label:
          type: string
        code:
          type: string
        reason:
          type: string
      required:
        - requirement
        - label
        - code
        - reason
      additionalProperties: false
    GetPayoutWalletResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPayoutWalletResponseData"
      required:
        - data
      additionalProperties: false
    GetPayoutWalletResponseDataOneOf1Balance:
      type: object
      properties:
        availableCents:
          type: number
        pendingCents:
          type: number
        instantAvailableCents:
          type: number
        currency:
          type: string
      required:
        - availableCents
        - pendingCents
        - instantAvailableCents
        - currency
      additionalProperties: false
    GetPayoutWalletResponseDataOneOf1Instant:
      type: object
      properties:
        available:
          type: boolean
          description: "Instant payouts possible right now: account active, USD, an eligible destination, money to move."
        reason:
          type: string
          nullable: true
          description: Why not, in words; null when available.
        maxCents:
          type: number
        feeCents:
          type: number
        feeLabel:
          type: string
          description: The rate in words, e.g. "1.5% (min $0.50)".
        netCents:
          type: number
      required:
        - available
        - maxCents
        - feeCents
        - feeLabel
        - netCents
      additionalProperties: false
    GetPayoutWalletResponseDataOneOf1Methods:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - card
            - bank_account
        label:
          type: string
          description: '"Chase •••• 6789" / "Visa debit •••• 4242".'
        last4:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
        isDefault:
          type: boolean
        instantEligible:
          type: boolean
          description: "Stripe says this destination accepts `method: instant`."
      required:
        - id
        - kind
        - label
        - isDefault
        - instantEligible
      additionalProperties: false
    GetPayoutWalletResponseDataOneOf1NextPayout:
      type: object
      properties:
        date:
          type: string
        source:
          type: string
          enum:
            - scheduled
            - estimated
          description: "`scheduled` = a payout Stripe already created; `estimated` = from the schedule."
        amountCents:
          type: number
          nullable: true
      required:
        - date
        - source
      additionalProperties: false
      nullable: true
    GetPayoutWalletResponseDataOneOf1Schedule:
      type: object
      properties:
        interval:
          type: string
          enum:
            - manual
            - monthly
            - daily
            - weekly
        delayDays:
          type: number
          nullable: true
          description: Days a charge waits before it becomes available (Stripe's rolling delay).
        weeklyAnchor:
          type: string
          enum:
            - monday
            - tuesday
            - wednesday
            - thursday
            - friday
            - saturday
            - sunday
          nullable: true
        monthlyAnchor:
          type: number
          nullable: true
      required:
        - interval
      additionalProperties: false
    GetPayoutWalletResponseDataOneOf1Status:
      type: object
      properties:
        status:
          type: string
          enum:
            - active
            - pending
            - restricted
            - payouts_unavailable
        payoutsEnabled:
          type: boolean
        chargesEnabled:
          type: boolean
        transfersActive:
          type: boolean
          description: "`capabilities.transfers === 'active'` — the capability every Crossly payout uses."
        detailsSubmitted:
          type: boolean
        taxReporting1099kReady:
          type: boolean
        country:
          type: string
          nullable: true
          description: ISO 3166-1 alpha-2, upper case.
        agreement:
          type: string
          enum:
            - full
            - recipient
        defaultCurrency:
          type: string
          nullable: true
          description: Settlement currency, upper case (USD, GBP, EUR…).
      required:
        - status
        - payoutsEnabled
        - chargesEnabled
        - transfersActive
        - detailsSubmitted
        - taxReporting1099kReady
        - agreement
      additionalProperties: false
    GetPayoutWalletResponseDataOneOf1Transactions:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          description: "Stripe balance-transaction type: charge, payment, transfer, payout, refund, adjustment, stripe_fee…"
        description:
          type: string
          nullable: true
        amountCents:
          type: number
        feeCents:
          type: number
        netCents:
          type: number
        currency:
          type: string
        status:
          type: string
          description: "`available` or `pending`."
        createdAt:
          type: string
        availableOn:
          type: string
      required:
        - id
        - type
        - amountCents
        - feeCents
        - netCents
        - currency
        - status
        - createdAt
        - availableOn
      additionalProperties: false
    GetPetMineResponse:
      type: object
      properties:
        pets:
          type: array
          items:
            $ref: "#/components/schemas/GetPetMineResponsePets"
        active:
          type: string
          enum:
            - cat
            - dog
            - slab_bot
          nullable: true
        shopPet:
          type: string
          enum:
            - cat
            - dog
            - slab_bot
          nullable: true
          description: The pet greeting visitors at your shop door, if you have a shop.
        hasShop:
          type: boolean
      required:
        - pets
        - hasShop
      additionalProperties: false
    GetPetMineResponsePets:
      type: object
      properties:
        kind:
          type: string
          enum:
            - cat
            - dog
            - slab_bot
        name:
          type: string
        blurb:
          type: string
        owned:
          type: boolean
        earnedAt:
          type: string
          nullable: true
        howToEarn:
          type: string
          description: How to earn it, in words, and which ways are already done.
        ways:
          type: array
          items:
            type: object
            additionalProperties: {}
        fromNft:
          type: boolean
          nullable: true
          description: Yours while you hold an NFT whose collection declares it (a `pet` capability) -- not earned, so it goes with the token.
      required:
        - kind
        - name
        - blurb
        - owned
        - howToEarn
        - ways
      additionalProperties: false
    GetPlatformLimitResponse:
      type: object
      properties:
        ebay:
          $ref: "#/components/schemas/GetPlatformLimitResponseEbay"
        etsy:
          $ref: "#/components/schemas/GetPlatformLimitResponseEtsy"
      additionalProperties: false
    GetPlatformLimitResponseEbay:
      type: object
      properties:
        platform:
          type: string
        used:
          type: number
        limit:
          type: number
        remaining:
          type: number
        tierConfigured:
          type: boolean
          description: |-
            False if the user hasn't picked a tier (we default to 250 but
            flag it so the UI can prompt).
        respectQuota:
          type: boolean
        periodStart:
          type: string
        perOverageFeeUsd:
          type: number
          description: Approximate cost if `used` overflows `limit` — informational.
        sellingCap:
          $ref: "#/components/schemas/GetPlatformLimitResponseEbaySellingCap"
      required:
        - platform
        - used
        - limit
        - remaining
        - tierConfigured
        - respectQuota
        - periodStart
        - perOverageFeeUsd
      additionalProperties: false
      nullable: true
    GetPlatformLimitResponseEbaySellingCap:
      type: object
      properties:
        amountLimit:
          type: number
          nullable: true
          description: Monthly $$ ceiling — null when seller has no $$ cap set.
        amountUsed:
          type: number
          nullable: true
        quantityLimit:
          type: number
          nullable: true
          description: Monthly item-count ceiling — null when seller has no qty cap.
        quantityUsed:
          type: number
          nullable: true
        currency:
          type: string
        fetchedAt:
          type: string
          description: ISO timestamp this was fetched (used for cache freshness display).
      required:
        - currency
        - fetchedAt
      additionalProperties: false
      nullable: true
      description: |-
        eBay-imposed monthly selling cap (quantity + $$) fetched from
        Trading API GetMyeBaySelling. These are HARD blocks — past them,
        `publishOffer` returns an error. Distinct from the free-tier
        `limit` (which is just a fee threshold). Null when seller has
        no caps (established accounts) or the Trading call failed.
    GetPlatformLimitResponseEtsy:
      type: object
      properties:
        platform:
          type: string
        listingsThisMonth:
          type: number
        costSoFarUsd:
          type: number
        perListingFeeUsd:
          type: number
        periodStart:
          type: string
      required:
        - platform
        - listingsThisMonth
        - costSoFarUsd
        - perListingFeeUsd
        - periodStart
      additionalProperties: false
      nullable: true
    GetPolicyGeneralResponse:
      type: object
      properties:
        vacation:
          $ref: "#/components/schemas/GetPolicyGeneralResponseVacation"
      required:
        - vacation
      additionalProperties: false
    GetPolicyGeneralResponseVacation:
      type: object
      properties:
        enabled:
          type: boolean
        message:
          type: string
          nullable: true
        startsAt:
          type: string
          nullable: true
          description: Scheduled start; null = from when it was turned on.
        endsAt:
          type: string
          nullable: true
        startedAt:
          type: string
          nullable: true
        scope:
          type: string
          enum:
            - all
            - accounts
        accounts:
          type: array
          items:
            $ref: "#/components/schemas/GetPolicyGeneralResponseVacationAccounts"
          description: "scope 'accounts': the accounts vacation reaches."
        actions:
          $ref: "#/components/schemas/GetPolicyGeneralResponseVacationActions"
        scheduled:
          type: boolean
      required:
        - enabled
        - scope
        - accounts
        - actions
        - scheduled
      additionalProperties: false
    GetPolicyGeneralResponseVacationAccounts:
      type: object
      properties:
        platform:
          type: string
        accountSlot:
          type: number
      required:
        - platform
        - accountSlot
      additionalProperties: false
    GetPolicyGeneralResponseVacationActions:
      type: object
      properties:
        closeShop:
          type: boolean
          description: "Close the Crossly shop: checkout refuses new orders and the store shows the message."
        pauseAutomations:
          type: boolean
          description: Pause scheduled automations while away.
        autoReply:
          type: boolean
          description: Reply to new buyer messages with the vacation message.
        pushToMarketplaces:
          type: boolean
          description: Turn on each marketplace's own vacation / away mode.
      required:
        - closeShop
        - pauseAutomations
        - autoReply
        - pushToMarketplaces
      additionalProperties: false
    GetPolicyPresetResponse:
      type: object
      properties:
        inherited:
          type: boolean
          nullable: true
        preset:
          $ref: "#/components/schemas/ListPolicyPresetsItem"
        kind:
          type: string
          enum:
            - shipping
            - pricing
            - return
            - payment
        listingCount:
          type: number
        applications:
          type: array
          items:
            $ref: "#/components/schemas/GetPolicyPresetResponseApplications"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetPolicyPresetResponseHistory"
      required:
        - preset
        - kind
        - listingCount
        - applications
        - history
      additionalProperties: false
    GetPolicyPresetResponseApplications:
      type: object
      properties:
        account:
          $ref: "#/components/schemas/ListPolicyPresetAccountsItem"
        row:
          $ref: "#/components/schemas/GetPolicyPresetResponseApplicationsRow"
        resolved:
          $ref: "#/components/schemas/GetPolicyPresetResponseApplicationsResolved"
        isDefault:
          type: boolean
          description: This preset is the account's "Default for this marketplace".
        otherDefaultId:
          type: string
          nullable: true
          description: Another preset is (its id), else null.
        translation:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - account
        - resolved
        - isDefault
        - translation
      additionalProperties: false
    GetPolicyPresetResponseApplicationsResolved:
      type: object
      properties:
        mode:
          type: string
          enum:
            - push
            - marketplace
            - off
        marketplacePolicyId:
          type: string
          nullable: true
        marketplacePolicyName:
          type: string
          nullable: true
        source:
          type: string
          enum:
            - none
            - preset
            - fallback
          description: "Which rule decided: the preset's own row, the account fallback, or none (the built-in answer)."
      required:
        - mode
        - source
      additionalProperties: false
      description: What happens now (row, else the built-in answer).
    GetPolicyPresetResponseApplicationsRow:
      type: object
      properties:
        id:
          type: string
          nullable: true
        presetId:
          type: string
          nullable: true
          description: Null = the account's fallback for every preset of `kind` without a row.
        kind:
          type: string
          enum:
            - shipping
            - pricing
            - return
            - payment
        platform:
          type: string
        accountSlot:
          type: number
          nullable: true
          description: A cookie-track account slot (or the slot an API listing publishes under); null with no connectionId = every account.
        connectionId:
          type: string
          nullable: true
          description: An API-track account (platform_connections.id).
        mode:
          type: string
          enum:
            - push
            - marketplace
            - off
        isDefault:
          type: boolean
        marketplacePolicyId:
          type: string
          nullable: true
        marketplacePolicyName:
          type: string
          nullable: true
      required:
        - kind
        - platform
        - mode
        - isDefault
      additionalProperties: false
      nullable: true
      description: The stored row for this preset + account, if any.
    GetPolicyPresetResponseHistory:
      type: object
      properties:
        id:
          type: string
        action:
          type: string
          enum:
            - default
            - imported
            - created
            - updated
            - renamed
            - applications
            - duplicated
        revision:
          type: number
        name:
          type: string
        policy:
          type: object
          additionalProperties: {}
        summary:
          type: string
          nullable: true
        actorUserId:
          type: string
          nullable: true
        at:
          type: string
      required:
        - id
        - action
        - revision
        - name
        - policy
        - at
      additionalProperties: false
    GetPolicyResponse:
      type: object
      properties:
        shipping:
          $ref: "#/components/schemas/GetPolicyResponseShipping"
        return:
          $ref: "#/components/schemas/GetPolicyResponseShipping"
        payment:
          $ref: "#/components/schemas/GetPolicyResponseShipping"
      required:
        - shipping
        - return
        - payment
      additionalProperties: false
    GetPolicyResponseShipping:
      type: object
      properties:
        defaultPresetId:
          type: string
          nullable: true
        presets:
          type: array
          items:
            $ref: "#/components/schemas/GetPolicyResponseShippingPresets"
      required:
        - presets
      additionalProperties: false
    GetPolicyResponseShippingPresets:
      type: object
      properties:
        summary:
          type: string
        incomplete:
          type: boolean
        listingCount:
          type: number
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        isDefault:
          type: boolean
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
        revision:
          type: number
        hasDomesticRules:
          type: boolean
        inherited:
          type: boolean
          nullable: true
      required:
        - summary
        - incomplete
        - listingCount
        - id
        - name
        - createdAt
        - updatedAt
        - userId
        - isDefault
        - kind
        - revision
        - hasDomesticRules
      additionalProperties: false
    GetPricingSettingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPricingSettingResponseData"
      required:
        - data
      additionalProperties: false
    GetPricingSettingResponseData:
      type: object
      properties:
        matchOwnPrices:
          type: boolean
        acceptsLayaway:
          type: boolean
      required:
        - matchOwnPrices
        - acceptsLayaway
      additionalProperties: false
    GetPricingSoldCompResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPricingSoldCompResponseData"
      required:
        - data
      additionalProperties: false
    GetPricingSoldCompResponseData:
      type: object
      properties:
        marketSkuId:
          nullable: true
        condition:
          nullable: true
        comps:
          nullable: true
        holdCode:
          type: string
          enum:
            - no_market_sku
            - mixed_inventory
      required:
        - marketSkuId
        - condition
        - comps
        - holdCode
      additionalProperties: false
    GetPrintMailEstimateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPrintMailEstimateResponseData"
      required:
        - data
      additionalProperties: false
    GetPrintMailEstimateResponseData:
      type: object
      properties:
        lookbookId:
          type: string
        pieces:
          type: number
        credential:
          $ref: "#/components/schemas/GetPrintMailEstimateResponseDataCredential"
        estimates:
          type: array
          items:
            $ref: "#/components/schemas/GetPrintMailEstimateResponseDataEstimates"
          description: One per format the account's provider prints (or the one asked for).
        basis:
          type: string
          description: Why the numbers are estimates, in one line.
      required:
        - lookbookId
        - pieces
        - estimates
        - basis
      additionalProperties: false
    GetPrintMailEstimateResponseDataCredential:
      type: object
      properties:
        id:
          type: string
        mode:
          type: string
        label:
          type: string
        provider:
          type: string
        providerLabel:
          type: string
      required:
        - id
        - mode
        - label
        - provider
        - providerLabel
      additionalProperties: false
      nullable: true
    GetPrintMailEstimateResponseDataEstimates:
      type: object
      properties:
        pieces:
          type: number
        perPieceCents:
          type: number
          nullable: true
        totalCents:
          type: number
          nullable: true
        basis:
          type: string
        providerQuote:
          type: boolean
        formatId:
          type: string
        formatLabel:
          type: string
      required:
        - pieces
        - basis
        - providerQuote
        - formatId
        - formatLabel
      additionalProperties: false
    GetProductFeedFetchResponse:
      type: object
      properties:
        fetches:
          type: array
          items:
            $ref: "#/components/schemas/GetProductFeedFetchResponseFetches"
        nextCursor:
          type: string
          nullable: true
        byFetcher:
          type: array
          items:
            $ref: "#/components/schemas/GetProductFeedFetchResponseByFetcher"
      required:
        - fetches
        - byFetcher
      additionalProperties: false
    GetProductFeedFetchResponseByFetcher:
      type: object
      properties:
        fetcher:
          type: string
          enum:
            - google
            - other
            - tiktok
            - meta
            - pinterest
            - bing
            - snapchat
            - feed_reader
            - browser
        label:
          type: string
        count:
          type: number
        lastAt:
          type: string
      required:
        - fetcher
        - label
        - count
        - lastAt
      additionalProperties: false
    GetProductFeedFetchResponseFetches:
      type: object
      properties:
        id:
          type: string
        fetchedAt:
          type: string
        fetcher:
          type: string
          enum:
            - google
            - other
            - tiktok
            - meta
            - pinterest
            - bing
            - snapchat
            - feed_reader
            - browser
        fetcherLabel:
          type: string
        userAgent:
          type: string
          nullable: true
        client:
          type: string
          nullable: true
          description: "Short hash: the same value = the same address."
        format:
          type: string
        status:
          type: number
        servedFrom:
          type: string
        tokenKind:
          type: string
        itemCount:
          type: number
          nullable: true
        bytes:
          type: number
          nullable: true
        durationMs:
          type: number
          nullable: true
      required:
        - id
        - fetchedAt
        - fetcher
        - fetcherLabel
        - format
        - status
        - servedFrom
        - tokenKind
      additionalProperties: false
    GetProductFeedIssueResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetProductFeedIssueResponseItems"
        nextCursor:
          type: string
          nullable: true
          description: Pass back as `after` for the next page; null = the end of the catalogue.
        scanned:
          type: number
      required:
        - items
        - scanned
      additionalProperties: false
    GetProductFeedIssueResponseItems:
      type: object
      properties:
        listingId:
          type: string
        itemId:
          type: string
        title:
          type: string
        link:
          type: string
        included:
          type: boolean
        issues:
          type: array
          items:
            type: object
            additionalProperties: {}
        overridden:
          type: boolean
          description: True when the seller set an override for this listing in this feed.
      required:
        - listingId
        - itemId
        - title
        - link
        - included
        - issues
        - overridden
      additionalProperties: false
    GetProductFeedItemResponse:
      type: object
      properties:
        overrides:
          type: array
          items:
            $ref: "#/components/schemas/GetProductFeedItemResponseOverrides"
      required:
        - overrides
      additionalProperties: false
    GetProductFeedItemResponseOverrides:
      type: object
      properties:
        listingId:
          type: string
        title:
          type: string
          nullable: true
        fields:
          $ref: "#/components/schemas/UpdateProductFeedItemRequest"
        updatedAt:
          type: string
      required:
        - listingId
        - fields
        - updatedAt
      additionalProperties: false
    GetProductFeedPreviewResponse:
      type: object
      properties:
        format:
          type: string
          enum:
            - json
            - csv
            - xml
            - tsv
            - atom
        columns:
          type: array
          items:
            type: string
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetProductFeedPreviewResponseRows"
        raw:
          type: string
          description: The included rows exactly as the channel receives them, in `format`.
        nextCursor:
          type: string
          nullable: true
      required:
        - format
        - columns
        - rows
        - raw
      additionalProperties: false
    GetProductFeedPreviewResponseRows:
      type: object
      properties:
        listingId:
          type: string
        included:
          type: boolean
        values:
          type: object
          additionalProperties: {}
        issues:
          type: array
          items:
            type: object
            additionalProperties: {}
        overridden:
          type: boolean
      required:
        - listingId
        - included
        - values
        - issues
        - overridden
      additionalProperties: false
    GetProductFeedReportResponse:
      type: object
      properties:
        stats:
          $ref: "#/components/schemas/GetProductFeedReportResponseStats"
        scanned:
          type: number
          description: Rows scanned; equals stats.items + stats.itemsWithErrors.
        truncated:
          type: boolean
          description: True when the catalogue is bigger than the scan cap and the counts cover only the first part.
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetProductFeedIssueResponseItems"
          description: Items with at least one issue (errors first), capped.
        sample:
          type: array
          items:
            $ref: "#/components/schemas/GetProductFeedReportResponseSample"
          description: The first few items exactly as the channel will receive them.
        store:
          $ref: "#/components/schemas/GetProductFeedReportResponseStore"
        currency:
          $ref: "#/components/schemas/GetProductFeedReportResponseCurrency"
      required:
        - stats
        - scanned
        - truncated
        - items
        - sample
        - store
        - currency
      additionalProperties: false
    GetProductFeedReportResponseCurrency:
      type: object
      properties:
        code:
          type: string
        rate:
          type: number
        asOf:
          type: string
          nullable: true
        fallbackFrom:
          type: string
          nullable: true
      required:
        - code
        - rate
      additionalProperties: false
      description: The currency prices go out in, and when it had to fall back to USD, the one asked for.
    GetProductFeedReportResponseSample:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        description:
          type: string
        link:
          type: string
        imageLink:
          type: string
          nullable: true
        additionalImageLinks:
          type: array
          items:
            type: string
        price:
          type: string
          nullable: true
          description: "\"12.50 USD\" (or the feed's currency)."
        salePrice:
          type: string
          nullable: true
        salePriceEffectiveDate:
          type: string
          nullable: true
          description: ISO 8601 interval "start/end" when a sale runs.
        availability:
          type: string
          enum:
            - in_stock
            - out_of_stock
        quantity:
          type: number
        condition:
          type: string
          enum:
            - new
            - refurbished
            - used
        brand:
          type: string
          nullable: true
        gtin:
          type: string
          nullable: true
        mpn:
          type: string
          nullable: true
        googleProductCategory:
          type: string
          nullable: true
          description: Google's taxonomy id when our category maps to one.
        productType:
          type: string
          nullable: true
          description: Our own category path, "Main > Sub > Leaf".
        itemGroupId:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        color:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        material:
          type: string
          nullable: true
        gender:
          type: string
          enum:
            - male
            - female
            - unisex
          nullable: true
        shippingWeight:
          type: string
          nullable: true
          description: '"1.5 lb".'
        identifierExists:
          type: boolean
        customLabels:
          type: array
          items:
            type: string
            nullable: true
          minItems: 5
          maxItems: 5
          description: custom_label_0..4 (mapping or per-item override).
        shipping:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Per-item shipping rates, already in the feed's currency ("4.95 USD").
        tags:
          type: array
          items:
            type: string
          description: The listing's tags and dates, for generic feeds.
        publishedAt:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
        extra:
          type: object
          description: Values a field mapping produced for columns that have no typed field (generic feeds).
          additionalProperties: {}
        issues:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - id
        - title
        - description
        - link
        - additionalImageLinks
        - availability
        - quantity
        - condition
        - identifierExists
        - customLabels
        - shipping
        - tags
        - extra
        - issues
      additionalProperties: false
    GetProductFeedReportResponseStats:
      type: object
      properties:
        items:
          type: number
        itemsWithErrors:
          type: number
          description: Items written with at least one error-severity issue (the channel will reject them).
        issues:
          $ref: "#/components/schemas/ListProductFeedsItemLastStatsIssues"
        generatedAt:
          type: string
      required:
        - items
        - itemsWithErrors
        - issues
        - generatedAt
      additionalProperties: false
    GetProductFeedReportResponseStore:
      type: object
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        domain:
          type: string
          nullable: true
        url:
          type: string
      required:
        - url
      additionalProperties: false
      description: The store the feed is built for and its domain.
    GetProductFeedResponse:
      type: object
      properties:
        store:
          $ref: "#/components/schemas/GetProductFeedResponseStore"
        snapshots:
          type: array
          items:
            $ref: "#/components/schemas/GetProductFeedResponseSnapshots"
        lastFetchedByLabel:
          type: string
          nullable: true
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        channel:
          type: string
          enum:
            - json
            - google
            - tiktok
            - meta
            - pinterest
            - bing
            - snapchat
            - rss
            - csv
        channelLabel:
          type: string
        kind:
          type: string
          enum:
            - marketplace
            - generic
        name:
          type: string
        format:
          type: string
          enum:
            - json
            - csv
            - xml
            - tsv
            - atom
        formats:
          type: array
          items:
            $ref: "#/components/schemas/GetProductFeedResponseFormatsItem"
        formatLabels:
          $ref: "#/components/schemas/ListProductFeedsItemFormatLabels"
        enabled:
          type: boolean
        url:
          type: string
        urls:
          $ref: "#/components/schemas/ListProductFeedsItemFormatLabels"
        destination:
          type: string
        recommendedSchedule:
          type: string
        filters:
          $ref: "#/components/schemas/ListProductFeedsItemFilters"
        settings:
          $ref: "#/components/schemas/ListProductFeedsItemSettings"
        tokenRotatedAt:
          type: string
          nullable: true
        previousUrlExpiresAt:
          type: string
          nullable: true
          description: While the previous URL still answers (a rotation's grace window), its end.
        lastFetchedAt:
          type: string
          nullable: true
        lastFetchedBy:
          type: string
          nullable: true
        fetchCount:
          type: number
        lastItemCount:
          type: number
          nullable: true
        lastStats:
          $ref: "#/components/schemas/ListProductFeedsItemLastStats"
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - store
        - snapshots
        - id
        - channel
        - channelLabel
        - kind
        - name
        - format
        - formats
        - formatLabels
        - enabled
        - url
        - urls
        - destination
        - recommendedSchedule
        - filters
        - settings
        - fetchCount
        - createdAt
        - updatedAt
      additionalProperties: false
    GetProductFeedResponseSnapshots:
      type: object
      properties:
        format:
          type: string
        generatedAt:
          type: string
        itemCount:
          type: number
        bytes:
          type: number
      required:
        - format
        - generatedAt
        - itemCount
        - bytes
      additionalProperties: false
    GetProductFeedResponseStore:
      type: object
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        isDefault:
          type: boolean
        domain:
          type: string
          nullable: true
        url:
          type: string
      required:
        - isDefault
        - url
      additionalProperties: false
    GetProductionBallotResponse:
      type: object
      properties:
        ballot:
          type: array
          items:
            $ref: "#/components/schemas/GetProductionBallotResponseBallot"
        canVote:
          type: boolean
      required:
        - ballot
        - canVote
      additionalProperties: false
    GetProductionBallotResponseBallot:
      type: object
      properties:
        candidateId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        status:
          type: string
        votes:
          type: number
        mine:
          type: boolean
          description: Whether the viewer backs it (false when signed out).
      required:
        - candidateId
        - name
        - status
        - votes
        - mine
      additionalProperties: false
    GetProductionCandidateResponse:
      type: object
      properties:
        candidates:
          type: array
          items:
            $ref: "#/components/schemas/GetProductionCandidateResponseCandidates"
      required:
        - candidates
      additionalProperties: false
    GetProductionCandidateResponseCandidates:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        status:
          type: string
        retailPriceCents:
          type: number
          nullable: true
        acceptedAt:
          type: string
          format: date-time
          nullable: true
        completedAt:
          type: string
          format: date-time
          nullable: true
        creatorUserId:
          type: string
          nullable: true
        cosmeticId:
          type: string
        merchantId:
          type: string
        creatorSubjectId:
          type: string
        editionSize:
          type: number
          nullable: true
        unitCostCents:
          type: number
          nullable: true
        runCostCents:
          type: number
          nullable: true
        designerRoyaltyBps:
          type: number
        fundingAtEligibleCents:
          type: number
        distinctHoldersAtEligible:
          type: number
        holderPriority:
          type: boolean
        holderPriceCents:
          type: number
          nullable: true
        designBrief:
          $ref: "#/components/schemas/GetProductionCandidateResponseCandidatesDesignBrief"
        spec:
          $ref: "#/components/schemas/CreateProductionDesignSpecResponsePrefsSpec"
        ipClearedAt:
          type: string
          format: date-time
          nullable: true
        greenlitAt:
          type: string
          format: date-time
          nullable: true
        declineReason:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - status
        - cosmeticId
        - merchantId
        - creatorSubjectId
        - designerRoyaltyBps
        - fundingAtEligibleCents
        - distinctHoldersAtEligible
        - holderPriority
      additionalProperties: false
    GetProductionCandidateResponseCandidatesDesignBrief:
      type: object
      properties:
        materials:
          type: string
          nullable: true
        finish:
          type: string
          nullable: true
        colorway:
          type: string
          nullable: true
        packaging:
          type: string
          nullable: true
          description: Free-text packaging note (kept for back-compat; prefer `box` for detail).
        dimensions:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        referenceImageUrls:
          type: array
          items:
            type: string
          nullable: true
        box:
          type: object
          nullable: true
          description: Full designer control of the box / presentation.
          additionalProperties: {}
      additionalProperties: false
      nullable: true
    GetProductionDesignPrefResponse:
      type: object
      properties:
        prefs:
          $ref: "#/components/schemas/GetProductionDesignPrefResponsePrefs"
      additionalProperties: false
    GetProductionDesignPrefResponsePrefs:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        cosmeticId:
          type: string
        merchantId:
          type: string
        creatorSubjectId:
          type: string
        spec:
          $ref: "#/components/schemas/CreateProductionDesignSpecResponsePrefsSpec"
        physicalOptOut:
          type: boolean
        brief:
          $ref: "#/components/schemas/CreateProductionDesignSpecResponsePrefsBrief"
        physicalLineAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - cosmeticId
        - merchantId
        - creatorSubjectId
        - physicalOptOut
      additionalProperties: false
      nullable: true
    GetProductionDropResponse:
      type: object
      properties:
        drops:
          type: array
          items:
            $ref: "#/components/schemas/GetProductionDropResponseDrops"
      required:
        - drops
      additionalProperties: false
    GetProductionDropResponseDrops:
      type: object
      properties:
        unitId:
          type: string
        editionNumber:
          type: number
        designerGrant:
          type: boolean
        fulfillmentStatus:
          type: string
        trackingCode:
          type: string
          nullable: true
        labelUrl:
          type: string
          nullable: true
        soldAt:
          type: string
          format: date-time
          nullable: true
        candidateId:
          type: string
        cosmeticName:
          type: string
        previewImageUrl:
          type: string
          nullable: true
      required:
        - unitId
        - editionNumber
        - designerGrant
        - fulfillmentStatus
        - candidateId
        - cosmeticName
      additionalProperties: false
    GetProductionEarningResponse:
      type: object
      properties:
        earnings:
          $ref: "#/components/schemas/GetProductionEarningResponseEarnings"
      required:
        - earnings
      additionalProperties: false
    GetProductionEarningResponseEarnings:
      type: object
      properties:
        decimals:
          type: number
          description: CBX token decimals — the web layer formats base units against this.
        balanceBaseUnits:
          type: string
          description: Current total CBX balance (earned + granted), base units as a string.
        royaltyTotalBaseUnits:
          type: string
          description: Lifetime production royalties paid to this designer, base units as a string.
        royaltyCount:
          type: number
          description: How many royalty credits have been paid.
        recent:
          type: array
          items:
            $ref: "#/components/schemas/GetProductionEarningResponseEarningsRecent"
          description: Most recent production royalty credits.
        lines:
          type: array
          items:
            $ref: "#/components/schemas/GetProductionEarningResponseEarningsLines"
          description: The production lines these royalties came from (candidate + run + inventory).
      required:
        - decimals
        - balanceBaseUnits
        - royaltyTotalBaseUnits
        - royaltyCount
        - recent
        - lines
      additionalProperties: false
    GetProductionEarningResponseEarningsLines:
      type: object
      properties:
        inventory:
          type: object
          additionalProperties: {}
        id:
          type: string
        cosmeticId:
          type: string
        cosmeticName:
          type: string
        previewImageUrl:
          type: string
          nullable: true
        status:
          type: string
        editionSize:
          type: number
          nullable: true
        unitCostCents:
          type: number
          nullable: true
        runCostCents:
          type: number
          nullable: true
        retailPriceCents:
          type: number
          nullable: true
        designerRoyaltyBps:
          type: number
        holderPriority:
          type: boolean
        holderPriceCents:
          type: number
          nullable: true
        designBrief:
          type: object
          nullable: true
          additionalProperties: {}
        fundingAtEligibleCents:
          type: number
        greenlitAt:
          type: string
          format: date-time
          nullable: true
        completedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - inventory
        - id
        - cosmeticId
        - cosmeticName
        - status
        - designerRoyaltyBps
        - holderPriority
        - fundingAtEligibleCents
        - createdAt
      additionalProperties: false
    GetProductionEarningResponseEarningsRecent:
      type: object
      properties:
        id:
          type: string
        deltaBaseUnits:
          type: string
        memo:
          type: string
          nullable: true
        unitId:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - deltaBaseUnits
        - createdAt
      additionalProperties: false
    GetProductionLineResponse:
      type: object
      properties:
        lines:
          type: array
          items:
            $ref: "#/components/schemas/GetProductionLineResponseLines"
      required:
        - lines
      additionalProperties: false
    GetProductionLineResponseLines:
      type: object
      properties:
        inventory:
          $ref: "#/components/schemas/GetProductionLineResponseLinesInventory"
        id:
          type: string
        cosmeticId:
          type: string
        cosmeticName:
          type: string
        previewImageUrl:
          type: string
          nullable: true
        status:
          type: string
        editionSize:
          type: number
          nullable: true
        unitCostCents:
          type: number
          nullable: true
        runCostCents:
          type: number
          nullable: true
        retailPriceCents:
          type: number
          nullable: true
        designerRoyaltyBps:
          type: number
        holderPriority:
          type: boolean
        holderPriceCents:
          type: number
          nullable: true
        designBrief:
          $ref: "#/components/schemas/GetProductionCandidateResponseCandidatesDesignBrief"
        fundingAtEligibleCents:
          type: number
        greenlitAt:
          type: string
          format: date-time
          nullable: true
        completedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - inventory
        - id
        - cosmeticId
        - cosmeticName
        - status
        - designerRoyaltyBps
        - holderPriority
        - fundingAtEligibleCents
        - createdAt
      additionalProperties: false
    GetProductionLineResponseLinesInventory:
      type: object
      properties:
        total:
          type: number
        sold:
          type: number
        available:
          type: number
        designerPair:
          type: number
      required:
        - total
        - sold
        - available
        - designerPair
      additionalProperties: false
    GetProductionPoReconcileResponse:
      type: object
      properties:
        reconciliation:
          $ref: "#/components/schemas/GetProductionPoReconcileResponseReconciliation"
      required:
        - reconciliation
      additionalProperties: false
    GetProductionPoReconcileResponseReconciliation:
      type: object
      properties:
        estimateLandedCents:
          type: number
          nullable: true
        actualLandedCents:
          type: number
          nullable: true
        varianceCents:
          type: number
          nullable: true
        variancePct:
          type: number
          nullable: true
        overCollected:
          type: boolean
          nullable: true
      additionalProperties: false
    GetProductionPoResponse:
      type: object
      properties:
        pos:
          type: array
          items:
            $ref: "#/components/schemas/UpdateProductionPoResponsePo"
      required:
        - pos
      additionalProperties: false
    GetProductionRunResponse:
      type: object
      properties:
        runs:
          type: array
          items:
            $ref: "#/components/schemas/GetProductionRunResponseRuns"
      required:
        - runs
      additionalProperties: false
    GetProductionRunResponseRuns:
      type: object
      properties:
        id:
          type: string
        cosmeticId:
          type: string
        cosmeticName:
          type: string
        previewImageUrl:
          type: string
          nullable: true
        editionSize:
          type: number
          nullable: true
        retailPriceCents:
          type: number
          nullable: true
        holderPriority:
          type: boolean
        holderPriceCents:
          type: number
          nullable: true
      required:
        - id
        - cosmeticId
        - cosmeticName
        - holderPriority
      additionalProperties: false
    GetProfileInsightResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetProfileInsightResponseData"
      required:
        - data
      additionalProperties: false
    GetProfileInsightResponseData:
      type: object
      properties:
        timeframe:
          type: string
          enum:
            - 7d
            - 30d
            - 90d
            - 12mo
        range:
          $ref: "#/components/schemas/CreateListingTagRenameRequest"
        totals:
          $ref: "#/components/schemas/GetProfileInsightResponseDataTotals"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/GetProfileInsightResponseDataDaily"
          description: One point per day, oldest first.
        topRefs:
          type: array
          items:
            $ref: "#/components/schemas/GetProfileInsightResponseDataTopRefs"
          description: The cards and pages people shared or opened most.
        unfurlsBy:
          type: array
          items:
            $ref: "#/components/schemas/GetProfileInsightResponseDataUnfurlsBy"
          description: Where the unfurls came from.
      required:
        - timeframe
        - range
        - totals
        - daily
        - topRefs
        - unfurlsBy
      additionalProperties: false
    GetProfileInsightResponseDataDaily:
      type: object
      properties:
        day:
          type: string
        views:
          type: number
        shares:
          type: number
        unfurls:
          type: number
      required:
        - day
        - views
        - shares
        - unfurls
      additionalProperties: false
    GetProfileInsightResponseDataTopRefs:
      type: object
      properties:
        ref:
          type: string
        views:
          type: number
        shares:
          type: number
        unfurls:
          type: number
      required:
        - ref
        - views
        - shares
        - unfurls
      additionalProperties: false
    GetProfileInsightResponseDataTotals:
      type: object
      properties:
        view:
          type: number
        share_click:
          type: number
        copy_link:
          type: number
        copy_stat_link:
          type: number
        copy_discord_text:
          type: number
        card_download:
          type: number
        native_share:
          type: number
        unfurl:
          type: number
      required:
        - view
        - share_click
        - copy_link
        - copy_stat_link
        - copy_discord_text
        - card_download
        - native_share
        - unfurl
      additionalProperties: false
    GetProfileInsightResponseDataUnfurlsBy:
      type: object
      properties:
        family:
          type: string
          enum:
            - facebook
            - other
            - discord
            - x
            - slack
            - imessage
            - telegram
            - whatsapp
        count:
          type: number
      required:
        - family
        - count
      additionalProperties: false
    GetProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetProfileResponseData"
      required:
        - data
      additionalProperties: false
    GetProfileResponseData:
      type: object
      properties:
        handle:
          type: string
        document:
          $ref: "#/components/schemas/CreateProfilePublishResponseDataDocument"
        draft:
          $ref: "#/components/schemas/GetProfileResponseDataDraft"
        publishedAt:
          type: string
          nullable: true
        draftUpdatedAt:
          type: string
          nullable: true
        hasUnpublishedChanges:
          type: boolean
      required:
        - handle
        - draft
        - hasUnpublishedChanges
      additionalProperties: false
    GetProfileResponseDataDraft:
      type: object
      properties:
        version:
          type: number
        theme:
          $ref: "#/components/schemas/GetProfileResponseDataDraftTheme"
        hero:
          $ref: "#/components/schemas/GetProfileResponseDataDraftHero"
        sections:
          type: array
          items: {}
          description: Ordered, ≤ 40 (sections.ts limits per kind).
        socials:
          type: array
          items:
            $ref: "#/components/schemas/GetProfileResponseDataDraftSocials"
          description: ≤ 20, ordered.
        contact:
          $ref: "#/components/schemas/GetProfileResponseDataDraftContact"
        sources:
          $ref: "#/components/schemas/GetProfileResponseDataDraftSources"
        share:
          $ref: "#/components/schemas/GetProfileResponseDataDraftShare"
        seo:
          $ref: "#/components/schemas/TitleDescription"
        privacy:
          $ref: "#/components/schemas/GetProfileResponseDataDraftPrivacy"
      required:
        - version
        - theme
        - hero
        - sections
        - socials
        - contact
        - sources
        - share
        - seo
        - privacy
      additionalProperties: false
    GetProfileResponseDataDraftContact:
      type: object
      properties:
        messageButton:
          type: boolean
        email:
          $ref: "#/components/schemas/GetProfileResponseDataDraftContactEmail"
      required:
        - messageButton
        - email
      additionalProperties: false
    GetProfileResponseDataDraftContactEmail:
      type: object
      properties:
        enabled:
          type: boolean
        address:
          type: string
          nullable: true
      required:
        - enabled
      additionalProperties: false
    GetProfileResponseDataDraftHero:
      type: object
      properties:
        layout:
          type: string
          enum:
            - split
            - card
            - banner
            - centered
            - minimal
        avatar:
          $ref: "#/components/schemas/GetProfileResponseDataDraftHeroAvatar"
        showHandle:
          type: boolean
        showMemberSince:
          type: boolean
        showVerifiedBadge:
          type: boolean
        headlineStats:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: The big numbers under the name. ≤ 4.
        buttons:
          type: array
          items:
            $ref: "#/components/schemas/GetProfileResponseDataDraftHeroButtonsItem"
      required:
        - layout
        - avatar
        - showHandle
        - showMemberSince
        - showVerifiedBadge
        - headlineStats
        - buttons
      additionalProperties: false
    GetProfileResponseDataDraftHeroAvatar:
      type: object
      properties:
        shape:
          type: string
          enum:
            - square
            - circle
            - rounded
        ring:
          type: boolean
      required:
        - shape
        - ring
      additionalProperties: false
      description: No avatar → initials on the accent.
    GetProfileResponseDataDraftPrivacy:
      type: object
      properties:
        basis:
          type: string
          enum:
            - all
            - verified
        hideZeroStats:
          type: boolean
        recentSalesShowPrice:
          type: boolean
          description: Sold comps; the buyer is NEVER shown.
      required:
        - basis
        - hideZeroStats
        - recentSalesShowPrice
      additionalProperties: false
    GetProfileResponseDataDraftShare:
      type: object
      properties:
        template:
          type: string
          enum:
            - minimal
            - spotlight
            - grid
            - leaderboard
        stats:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: ≤ 4; empty = the hero's headline stats.
        accent:
          type: string
          nullable: true
          description: null = the theme's primary.
        showVerified:
          type: boolean
          description: Drawn only when every stat on the card is verified.
        showPlatforms:
          type: boolean
        showTimeframe:
          type: boolean
        headline:
          type: string
          nullable: true
          description: ≤ 60.
      required:
        - template
        - stats
        - showVerified
        - showPlatforms
        - showTimeframe
      additionalProperties: false
    GetProfileResponseDataDraftSocials:
      type: object
      properties:
        id:
          type: string
          description: Stable id inside the document (reorder, remove).
        kind:
          type: string
          enum:
            - facebook
            - whatnot
            - website
            - x
            - telegram
            - instagram
            - tiktok
            - youtube
            - discord_user
            - discord_server
            - twitch
            - ebay_store
            - threads
            - bluesky
            - reddit
            - linktree
        handle:
          type: string
          description: The normalised handle ('kicksbyjo', '@chan', 'u/name', 'discord.gg/abc', 'example.com').
        href:
          type: string
          nullable: true
          description: Where it links; null for a Discord username (copy only).
      required:
        - id
        - kind
        - handle
      additionalProperties: false
    GetProfileResponseDataDraftSources:
      type: object
      properties:
        toggles:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: "One entry per (account, store-or-connection). Absent = default (own account: shown; team: hidden)."
      required:
        - toggles
      additionalProperties: false
    GetProfileResponseDataDraftTheme:
      type: object
      properties:
        preset:
          type: string
          description: The preset it started from (SITE_THEME_PRESETS), informational.
        colors:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftThemeColors"
        fonts:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftThemeFonts"
        radius:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftThemeRadius"
        buttonStyle:
          type: string
          enum:
            - solid
            - outline
            - pill
            - soft
            - underline
        density:
          type: string
          enum:
            - compact
            - comfortable
            - airy
          description: Vertical rhythm between sections.
        mode:
          type: string
          enum:
            - auto
            - light
            - dark
        cardStyle:
          type: string
          enum:
            - solid
            - outline
            - glass
            - elevated
      required:
        - preset
        - colors
        - fonts
        - radius
        - buttonStyle
        - density
        - mode
        - cardStyle
      additionalProperties: false
    GetPublicCreatorRewardReconciliationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetPublicCreatorRewardReconciliationResponseData"
      required:
        - data
      additionalProperties: false
    GetPublicCreatorRewardReconciliationResponseData:
      type: object
      properties:
        generatedAt:
          type: string
        inForce:
          $ref: "#/components/schemas/GetPublicCreatorRewardReconciliationResponseDataInForce"
        noticeDays:
          type: number
        scheduled:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorRewardFormulaResponseDataScheduled"
        totals:
          $ref: "#/components/schemas/GetPublicCreatorRewardReconciliationResponseDataTotals"
        months:
          type: array
          items:
            $ref: "#/components/schemas/GetPublicCreatorRewardReconciliationResponseDataMonths"
      required:
        - generatedAt
        - inForce
        - noticeDays
        - scheduled
        - totals
        - months
      additionalProperties: false
    GetPublicCreatorRewardReconciliationResponseDataInForce:
      type: object
      properties:
        termsVersion:
          type: number
        poolShareBps:
          type: number
        formula:
          $ref: "#/components/schemas/GetCreatorRewardFormulaResponseDataFormula"
      required:
        - termsVersion
        - poolShareBps
        - formula
      additionalProperties: false
    GetPublicCreatorRewardReconciliationResponseDataMonths:
      type: object
      properties:
        month:
          type: string
        termsVersion:
          type: number
        formula:
          $ref: "#/components/schemas/GetPublicCreatorRewardReconciliationResponseDataMonthsFormula"
        poolShareBps:
          type: number
        crosslyTakeCents:
          type: number
        fundedCents:
          type: number
        carriedInCents:
          type: number
        poolCents:
          type: number
        distributedCents:
          type: number
        paidCents:
          type: number
        carriedOverCents:
          type: number
        eligibleExperiences:
          type: number
        countedMinutes:
          type: number
        weightedMinutes:
          type: number
        calculatedAt:
          type: string
        reconciled:
          type: boolean
        checks:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - month
        - termsVersion
        - formula
        - poolShareBps
        - crosslyTakeCents
        - fundedCents
        - carriedInCents
        - poolCents
        - distributedCents
        - paidCents
        - carriedOverCents
        - eligibleExperiences
        - countedMinutes
        - weightedMinutes
        - calculatedAt
        - reconciled
        - checks
      additionalProperties: false
    GetPublicCreatorRewardReconciliationResponseDataMonthsFormula:
      type: object
      properties:
        version:
          type: number
        retentionBonusBps:
          type: number
        newPlayerBonusBps:
          type: number
      required:
        - version
        - retentionBonusBps
        - newPlayerBonusBps
      additionalProperties: false
    GetPublicCreatorRewardReconciliationResponseDataTotals:
      type: object
      properties:
        months:
          type: number
        fundedCents:
          type: number
        paidCents:
          type: number
        carriedOverCents:
          type: number
        allReconciled:
          type: boolean
      required:
        - months
        - fundedCents
        - paidCents
        - carriedOverCents
        - allReconciled
      additionalProperties: false
    GetPublicTemplateResponse:
      type: object
      properties:
        template:
          $ref: "#/components/schemas/GetPublicTemplateResponseTemplate"
      required:
        - template
      additionalProperties: false
    GetPublicTemplateResponseTemplate:
      type: object
      properties:
        id:
          type: string
        scope:
          type: string
        name:
          type: string
        notes:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        descriptionVariants:
          type: array
          items:
            type: string
          nullable: true
        title:
          type: string
          nullable: true
        titleVariants:
          type: array
          items:
            type: string
          nullable: true
        brand:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        color:
          type: string
          nullable: true
        material:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        sizeSystem:
          type: string
          nullable: true
        weightOz:
          type: number
          nullable: true
        department:
          type: string
          nullable: true
        gender:
          type: string
          nullable: true
        style:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        itemType:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - scope
        - name
        - createdAt
      additionalProperties: false
    GetReferencePostalResponse:
      type: object
      properties:
        country:
          type: string
          description: ISO alpha-2 after territory normalization (PR → US).
        postal:
          type: string
          description: The code in its country's canonical shape.
        valid:
          type: boolean
          description: True when the code fits the country's postal pattern (or the country has no pattern).
        state:
          type: string
          nullable: true
        countyFips:
          type: string
          nullable: true
          description: The county as a 5-digit FIPS code (US only).
        cbsa:
          type: string
          nullable: true
        cbsaTitle:
          type: string
          nullable: true
        csa:
          type: string
          nullable: true
        csaTitle:
          type: string
          nullable: true
        territory:
          type: string
          nullable: true
          description: Set for a US territory (PR, GU, VI, AS, MP, UM).
        metroStatus:
          type: string
          enum:
            - known
            - unmapped
            - no_zip
      required:
        - country
        - postal
        - valid
        - metroStatus
      additionalProperties: false
    GetRentalCalendarResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetRentalCalendarResponseData"
      required:
        - data
      additionalProperties: false
    GetRentalCalendarResponseData:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetRentalCalendarResponseDataItems"
      required:
        - from
        - to
        - items
      additionalProperties: false
    GetRentalCalendarResponseDataItems:
      type: object
      properties:
        platformListingId:
          type: string
        listingId:
          type: string
        slug:
          type: string
        title:
          type: string
        imageUrl:
          type: string
        active:
          type: boolean
        quantity:
          type: number
        blackouts:
          type: array
          items:
            type: object
            additionalProperties: {}
        bookings:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - platformListingId
        - listingId
        - slug
        - title
        - imageUrl
        - active
        - quantity
        - blackouts
        - bookings
      additionalProperties: false
    GetRentalInventoryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetRentalInventoryResponseData"
      required:
        - data
      additionalProperties: false
    GetRentalInventoryResponseData:
      type: object
      properties:
        inventoryItemId:
          type: string
        out:
          type: number
          description: Units with a renter now (counted in the item's Reserved).
        upcoming:
          type: number
          description: Booked (or asked for) and not out yet.
        back:
          type: number
          description: Back, waiting for inspection or a deposit claim.
        rentals:
          type: array
          items:
            $ref: "#/components/schemas/GetRentalInventoryResponseDataRentals"
      required:
        - inventoryItemId
        - out
        - upcoming
        - back
        - rentals
      additionalProperties: false
    GetRentalInventoryResponseDataRentals:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - expired
            - cancelled
            - declined
            - requested
            - out
            - pending_payment
            - closed
            - lost
            - delivered
            - claimed
            - reserved
            - returned
            - return_shipped
            - bought_out
        statusLabel:
          type: string
        startDate:
          type: string
        endDate:
          type: string
        unit:
          type: number
        away:
          type: boolean
          description: "With the renter now: this unit is reserved on the item."
      required:
        - id
        - status
        - statusLabel
        - startDate
        - endDate
        - unit
        - away
      additionalProperties: false
    GetRentalPolicyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetRentalPolicyResponseData"
      additionalProperties: false
    GetRentalPolicyResponseData:
      type: object
      properties:
        return:
          $ref: "#/components/schemas/GetRentalPolicyResponseDataReturn"
        payment:
          $ref: "#/components/schemas/GetRentalPolicyResponseDataPayment"
        returnPolicyOverride:
          type: string
          nullable: true
          description: "The offer's own return text, when the seller wrote one: it overrides the policy's return line."
        returnPolicyText:
          type: string
          nullable: true
          description: "What the renter reads as the return policy: the override, else the policy's line."
      required:
        - return
        - payment
      additionalProperties: false
      nullable: true
    GetRentalPolicyResponseDataPayment:
      type: object
      properties:
        presetId:
          type: string
          nullable: true
          description: The preset id, or null when nothing is set (the built-in default).
        presetName:
          type: string
          nullable: true
        level:
          type: string
          enum:
            - default
            - override
            - legacy
            - listing
            - store
            - seller_default
          description: Where in the cascade it came from (listing, store, seller default, …).
        summary:
          type: string
          nullable: true
          description: One line a renter reads ("30 days · seller pays").
        editPath:
          type: string
          description: The seller's editor for this policy (Settings › Policies), or the list to create one when none is set.
        acceptedMethods:
          type: array
          items:
            type: string
        depositRequiredBps:
          type: number
          nullable: true
          description: A deposit the payment policy requires, as basis points of the item's price; null = none.
      required:
        - level
        - editPath
        - acceptedMethods
      additionalProperties: false
    GetRentalPolicyResponseDataReturn:
      type: object
      properties:
        presetId:
          type: string
          nullable: true
          description: The preset id, or null when nothing is set (the built-in default).
        presetName:
          type: string
          nullable: true
        level:
          type: string
          enum:
            - default
            - override
            - legacy
            - listing
            - store
            - seller_default
          description: Where in the cascade it came from (listing, store, seller default, …).
        summary:
          type: string
          nullable: true
          description: One line a renter reads ("30 days · seller pays").
        editPath:
          type: string
          description: The seller's editor for this policy (Settings › Policies), or the list to create one when none is set.
        protections:
          type: array
          items:
            type: string
        arrivalPhotos:
          $ref: "#/components/schemas/GetRentalPolicyResponseDataReturnArrivalPhotos"
        claimWindowDays:
          type: number
          nullable: true
          description: Days after the return the seller may claim on the deposit; null = the rentals default.
      required:
        - level
        - editPath
        - protections
        - arrivalPhotos
      additionalProperties: false
    GetRentalPolicyResponseDataReturnArrivalPhotos:
      type: object
      properties:
        required:
          type: boolean
        windowHours:
          type: number
      required:
        - required
        - windowHours
      additionalProperties: false
    GetRentalResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetRentalResponseData"
      required:
        - data
      additionalProperties: false
    GetRentalResponseData:
      type: object
      properties:
        listingId:
          type: string
          nullable: true
        threadId:
          type: string
          nullable: true
        shipping:
          $ref: "#/components/schemas/GetRentalResponseDataShipping"
        depositStatus:
          type: string
          enum:
            - held
            - claimed
            - returned
            - waived
            - claim_open
        statusLabel:
          type: string
        overdue:
          type: boolean
        renterName:
          type: string
          nullable: true
        timeline:
          type: array
          items:
            $ref: "#/components/schemas/GetRentalResponseDataTimeline"
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetRentalResponseDataEvents"
        extensions:
          type: array
          items:
            $ref: "#/components/schemas/GetRentalResponseDataExtensions"
        extension:
          $ref: "#/components/schemas/GetRentalResponseDataExtension"
        buyout:
          $ref: "#/components/schemas/GetRentalResponseDataBuyout"
        inspection:
          type: array
          items:
            $ref: "#/components/schemas/ItemOk"
        checklist:
          type: array
          items:
            type: string
        returnPolicy:
          type: string
          nullable: true
        policy:
          type: object
          nullable: true
          additionalProperties: {}
        claimWindowDays:
          type: number
        cancellation:
          $ref: "#/components/schemas/GetRentalResponseDataCancellation"
        claimWindowEndsAt:
          type: string
          nullable: true
        daysLeft:
          type: number
          nullable: true
        actions:
          type: array
          items:
            type: string
        payments:
          $ref: "#/components/schemas/GetRentalResponseDataPayments"
        shippedAt:
          type: string
          nullable: true
        returnedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        shipTo:
          type: object
          nullable: true
          additionalProperties: {}
        platformListingId:
          type: string
          nullable: true
        payoutTiming:
          type: string
          nullable: true
        payoutReleasedAt:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        crosslyFeeCents:
          type: number
          nullable: true
        id:
          type: string
        status:
          type: string
        slug:
          type: string
          nullable: true
        title:
          type: string
        imageUrl:
          type: string
        startDate:
          type: string
        endDate:
          type: string
        days:
          type: number
        rentCents:
          type: number
        shippingCents:
          type: number
        depositCents:
          type: number
        outboundTracking:
          type: string
          nullable: true
        returnTracking:
          type: string
          nullable: true
        labelUrl:
          type: string
          nullable: true
        claimCents:
          type: number
        claimNote:
          type: string
          nullable: true
        claimPhotos:
          type: array
          items:
            type: string
        claimDisputed:
          type: boolean
        conditionPhotosOut:
          type: array
          items:
            type: string
        conditionPhotosIn:
          type: array
          items:
            type: string
        approvalDueAt:
          type: string
          nullable: true
        depositRefundedCents:
          type: number
        unit:
          type: number
        fulfilment:
          type: string
        cleaningFeeCents:
          type: number
        damageWaiver:
          type: boolean
        damageWaiverCents:
          type: number
        lateFeeCents:
          type: number
        rentRefundedCents:
          type: number
        buyoutCents:
          type: number
          nullable: true
        charges:
          type: object
          additionalProperties: {}
        conditionPhotosReturn:
          type: array
          items:
            type: string
        approvedAt:
          type: string
          nullable: true
        deliveredAt:
          type: string
          nullable: true
        returnShippedAt:
          type: string
          nullable: true
        inspectedAt:
          type: string
          nullable: true
        boughtOutAt:
          type: string
          nullable: true
      required:
        - shipping
        - depositStatus
        - statusLabel
        - overdue
        - timeline
        - events
        - extensions
        - extension
        - buyout
        - inspection
        - checklist
        - claimWindowDays
        - cancellation
        - actions
        - payments
        - createdAt
        - id
        - status
        - title
        - imageUrl
        - startDate
        - endDate
        - days
        - rentCents
        - shippingCents
        - depositCents
        - claimCents
        - claimPhotos
        - claimDisputed
        - conditionPhotosOut
        - conditionPhotosIn
        - depositRefundedCents
        - unit
        - fulfilment
        - cleaningFeeCents
        - damageWaiver
        - damageWaiverCents
        - lateFeeCents
        - rentRefundedCents
        - charges
        - conditionPhotosReturn
      additionalProperties: false
    GetRentalResponseDataBuyout:
      type: object
      properties:
        priceCents:
          type: number
        creditCents:
          type: number
        dueCents:
          type: number
        enabled:
          type: boolean
      required:
        - priceCents
        - creditCents
        - dueCents
        - enabled
      additionalProperties: false
    GetRentalResponseDataCancellation:
      type: object
      properties:
        preset:
          type: string
          enum:
            - custom
            - moderate
            - strict
            - flexible
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetRentalResponseDataCancellationTiers"
      required:
        - preset
        - tiers
      additionalProperties: false
    GetRentalResponseDataCancellationTiers:
      type: object
      properties:
        daysBefore:
          type: number
          description: At least this many days before the start…
        refundBps:
          type: number
          description: …the renter gets this share of the rent back (basis points, 10000 = all of it).
      required:
        - daysBefore
        - refundBps
      additionalProperties: false
    GetRentalResponseDataEvents:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        actor:
          type: string
        data:
          type: object
          additionalProperties: {}
        at:
          type: string
      required:
        - id
        - kind
        - actor
        - data
        - at
      additionalProperties: false
    GetRentalResponseDataExtension:
      type: object
      properties:
        allowed:
          type: boolean
        perDayCents:
          type: number
        autoApprove:
          type: boolean
        nextBookingStart:
          type: string
      required:
        - allowed
        - perDayCents
        - autoApprove
        - nextBookingStart
      additionalProperties: false
    GetRentalResponseDataExtensions:
      type: object
      properties:
        id:
          type: string
        days:
          type: number
        cents:
          type: number
        freeDays:
          type: number
        status:
          type: string
        createdAt:
          type: string
        decidedAt:
          type: string
          nullable: true
      required:
        - id
        - days
        - cents
        - freeDays
        - status
        - createdAt
      additionalProperties: false
    GetRentalResponseDataPayments:
      type: object
      properties:
        crosslyFeeCents:
          type: number
          nullable: true
        payoutTiming:
          type: string
          nullable: true
        payoutReleasedAt:
          type: string
          nullable: true
        rentCents:
          type: number
        cleaningFeeCents:
          type: number
        damageWaiverCents:
          type: number
        shippingCents:
          type: number
        depositCents:
          type: number
        lateFeeCents:
          type: number
        claimCents:
          type: number
        depositRefundedCents:
          type: number
        rentRefundedCents:
          type: number
        buyoutCents:
          type: number
          nullable: true
      required:
        - rentCents
        - cleaningFeeCents
        - damageWaiverCents
        - shippingCents
        - depositCents
        - lateFeeCents
        - claimCents
        - depositRefundedCents
        - rentRefundedCents
      additionalProperties: false
    GetRentalResponseDataShipping:
      type: object
      properties:
        outboundTracking:
          type: string
          nullable: true
        returnTracking:
          type: string
          nullable: true
        outboundLabelUrl:
          type: string
          nullable: true
        returnLabelUrl:
          type: string
          nullable: true
        shippedAt:
          type: string
          nullable: true
        deliveredAt:
          type: string
          nullable: true
        returnShippedAt:
          type: string
          nullable: true
        returnedAt:
          type: string
          nullable: true
      additionalProperties: false
    GetRentalResponseDataTimeline:
      type: object
      properties:
        key:
          type: string
          enum:
            - requested
            - approved
            - shipped
            - delivered
            - returned
            - inspected
            - settled
            - return_shipped
            - in_use
        label:
          type: string
        at:
          type: string
          nullable: true
        done:
          type: boolean
        current:
          type: boolean
      required:
        - key
        - label
        - done
        - current
      additionalProperties: false
    GetRentalSettingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetRentalSettingResponseData"
      required:
        - data
      additionalProperties: false
    GetRentalSettingResponseData:
      type: object
      properties:
        defaults:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaults"
        payoutTiming:
          type: string
          enum:
            - on_start
            - on_return
        onStartAllowed:
          type: boolean
          description: Whether on_start is open to this seller (the platform rule), and why not when it isn't.
        onStartNote:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
      required:
        - defaults
        - payoutTiming
        - onStartAllowed
      additionalProperties: false
    GetRentalSettingResponseDataDefaults:
      type: object
      properties:
        mode:
          type: string
          enum:
            - rent_only
            - sale_and_rent
          nullable: true
        dailyCents:
          type: number
          nullable: true
        weeklyCents:
          type: number
          nullable: true
        monthlyCents:
          type: number
          nullable: true
        weekendCents:
          type: number
          nullable: true
          description: A Friday–Sunday (or Saturday–Sunday) booking of up to 3 days, when it's cheaper than the day rate.
        minDays:
          type: number
          nullable: true
        maxDays:
          type: number
          nullable: true
        lengthDiscounts:
          type: array
          items:
            $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsLengthDiscounts"
          nullable: true
          description: "Long-rental discounts: the best tier whose minDays ≤ the booking's length applies."
        seasonal:
          type: array
          items:
            $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsSeasonal"
          nullable: true
          description: "Seasonal / peak pricing: days inside a range are priced up (+bps) or down (−bps)."
        lastMinute:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsLastMinute"
        earlyReturn:
          type: string
          enum:
            - full
            - partial
            - none
          nullable: true
          description: "Unused days when it comes back early: none, half of them, or all of them."
        deposit:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsDeposit"
        depositWaiveLoyaltyTierId:
          type: string
          nullable: true
          description: Waive the deposit for members of this loyalty tier (track D's loyalty club; null = never).
        depositWaiveRepeatRenters:
          type: boolean
          nullable: true
          description: Waive it for renters who have returned a rental cleanly before.
        damageWaiver:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsDamageWaiver"
        cleaningFeeCents:
          type: number
          nullable: true
        lateFeePerDayCents:
          type: number
          nullable: true
        lateGraceHours:
          type: number
          nullable: true
        lostItemCents:
          type: number
          nullable: true
          description: What a never-returned item costs; null = the listing price.
        quantity:
          type: number
          nullable: true
          description: Units that can be out at once.
        bufferBeforeDays:
          type: number
          nullable: true
        bufferAfterDays:
          type: number
          nullable: true
        blackouts:
          type: array
          items:
            $ref: "#/components/schemas/StartEnd"
          nullable: true
        leadDays:
          type: number
          nullable: true
          description: Minimum days between booking and start (it has to reach the renter).
        advanceDays:
          type: number
          nullable: true
          description: How far ahead a start may be booked.
        startDays:
          type: array
          items:
            type: number
          nullable: true
          description: Allowed start weekdays (0 = Sunday … 6 = Saturday); empty = any day.
        shipping:
          type: boolean
          nullable: true
          description: Ship both ways (Crossly buys both labels).
        pickup:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsPickup"
        shippingPaidBy:
          type: string
          enum:
            - seller
            - renter
          nullable: true
        insurance:
          type: boolean
          nullable: true
          description: Insure both legs (the label's declared value is the deposit).
        minRenterRating:
          type: number
          nullable: true
        newRenterMaxConcurrent:
          type: number
          nullable: true
        approval:
          type: string
          enum:
            - instant
            - approval
          nullable: true
        loyaltyTierOnlyId:
          type: string
          nullable: true
          description: Only members of this loyalty tier may book (null = anyone verified).
        photosOut:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsPhotosOut"
        photosArrival:
          type: boolean
          nullable: true
        photosReturn:
          type: boolean
          nullable: true
        photosBack:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsPhotosBack"
        checklist:
          type: array
          items:
            type: string
          nullable: true
          description: A checklist the seller ticks at inspection (e.g. "lens cap", "strap").
        extensions:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsExtensions"
        buyout:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsBuyout"
        cancellation:
          $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsCancellation"
        lateEscalation:
          type: array
          items:
            $ref: "#/components/schemas/GetRentalSettingResponseDataDefaultsLateEscalation"
          nullable: true
        returnPolicy:
          type: string
          nullable: true
      additionalProperties: false
    GetRentalSettingResponseDataDefaultsBuyout:
      type: object
      properties:
        enabled:
          type: boolean
        priceCents:
          type: number
          nullable: true
        creditBps:
          type: number
      required:
        - enabled
        - creditBps
      additionalProperties: false
      nullable: true
    GetRentalSettingResponseDataDefaultsCancellation:
      type: object
      properties:
        preset:
          type: string
          enum:
            - custom
            - moderate
            - strict
            - flexible
        tiers:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - preset
        - tiers
      additionalProperties: false
      nullable: true
    GetRentalSettingResponseDataDefaultsDamageWaiver:
      type: object
      properties:
        enabled:
          type: boolean
        feeCents:
          type: number
        perDay:
          type: boolean
        depositAfterCents:
          type: number
      required:
        - enabled
        - feeCents
        - perDay
        - depositAfterCents
      additionalProperties: false
      nullable: true
      description: "The renter can buy the deposit down: pay `feeCents` (per day when perDay) and the deposit drops to `depositAfterCents`."
    GetRentalSettingResponseDataDefaultsDeposit:
      type: object
      properties:
        kind:
          type: string
          enum:
            - amount
            - percent
        amountCents:
          type: number
        percentBps:
          type: number
      required:
        - kind
        - amountCents
        - percentBps
      additionalProperties: false
      nullable: true
    GetRentalSettingResponseDataDefaultsExtensions:
      type: object
      properties:
        allowed:
          type: boolean
        perDayCents:
          type: number
          nullable: true
        autoApprove:
          type: boolean
      required:
        - allowed
        - autoApprove
      additionalProperties: false
      nullable: true
    GetRentalSettingResponseDataDefaultsLastMinute:
      type: object
      properties:
        withinDays:
          type: number
        bps:
          type: number
      required:
        - withinDays
        - bps
      additionalProperties: false
      nullable: true
      description: A booking that starts within `withinDays` of today gets `bps` off.
    GetRentalSettingResponseDataDefaultsLateEscalation:
      type: object
      properties:
        afterDays:
          type: number
        action:
          type: string
          enum:
            - fee
            - remind
            - claim_deposit
            - report_not_returned
      required:
        - afterDays
        - action
      additionalProperties: false
    GetRentalSettingResponseDataDefaultsLengthDiscounts:
      type: object
      properties:
        minDays:
          type: number
        bps:
          type: number
      required:
        - minDays
        - bps
      additionalProperties: false
    GetRentalSettingResponseDataDefaultsPhotosBack:
      type: object
      properties:
        count:
          type: number
      required:
        - count
      additionalProperties: false
      nullable: true
      description: "Photos the seller takes at inspection when it comes back: at least 2, the same as on the way out."
    GetRentalSettingResponseDataDefaultsPhotosOut:
      type: object
      properties:
        count:
          type: number
        guidance:
          type: string
          nullable: true
      required:
        - count
      additionalProperties: false
      nullable: true
    GetRentalSettingResponseDataDefaultsPickup:
      type: object
      properties:
        enabled:
          type: boolean
        address:
          type: string
          nullable: true
        windows:
          type: string
          nullable: true
      required:
        - enabled
      additionalProperties: false
      nullable: true
    GetRentalSettingResponseDataDefaultsSeasonal:
      type: object
      properties:
        start:
          type: string
          description: Inclusive YYYY-MM-DD.
        end:
          type: string
        label:
          type: string
          nullable: true
        adjustBps:
          type: number
      required:
        - start
        - end
        - adjustBps
      additionalProperties: false
    GetRepricingStrategyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetRepricingStrategyResponseData"
      required:
        - data
      additionalProperties: false
    GetRepricingStrategyResponseData:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetRepricingStrategyResponseDataItems"
        common:
          type: array
          items:
            $ref: "#/components/schemas/GetRepricingStrategyResponseDataCommon"
        checkEveryHours:
          type: array
          items:
            type: number
        approvalModes:
          type: array
          items:
            type: string
      required:
        - items
        - common
        - checkEveryHours
        - approvalModes
      additionalProperties: false
    GetRepricingStrategyResponseDataCommon:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        type:
          type: string
          enum:
            - number
            - select
            - cents
            - integer
            - percent
        min:
          type: number
          nullable: true
        max:
          type: number
          nullable: true
        options:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
        description:
          type: string
          nullable: true
      required:
        - key
        - label
        - type
      additionalProperties: false
    GetRepricingStrategyResponseDataItems:
      type: object
      properties:
        kind:
          type: string
          enum:
            - undercut_lowest
            - match_market
            - scheduled_decay
            - raise_back
            - sold_median
        label:
          type: string
        description:
          type: string
        usesComps:
          type: boolean
          description: Whether it reads competing listings (and so holds on thin data).
        direction:
          type: string
          enum:
            - up
            - down
            - both
          description: Which way it may move a price.
        params:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - kind
        - label
        - description
        - usesComps
        - direction
        - params
      additionalProperties: false
    GetReputationMineResponse:
      type: object
      properties:
        computedAt:
          type: string
          nullable: true
        unlocks:
          $ref: "#/components/schemas/GetReputationMineResponseUnlocks"
        tracks:
          $ref: "#/components/schemas/GetReputationMineResponseTracks"
        top:
          $ref: "#/components/schemas/GetReputationMineResponseTop"
      required:
        - unlocks
        - tracks
      additionalProperties: false
    GetReputationMineResponseTop:
      type: object
      properties:
        track:
          type: string
          enum:
            - host
            - seller
            - trader
            - collector
        level:
          type: number
      required:
        - track
        - level
      additionalProperties: false
      nullable: true
      description: The highest level, for the nameplate; null below level 1 everywhere.
    GetReputationMineResponseTracks:
      type: object
      properties:
        host:
          $ref: "#/components/schemas/GetReputationMineResponseTracksHost"
        seller:
          $ref: "#/components/schemas/GetReputationMineResponseTracksHost"
        trader:
          $ref: "#/components/schemas/GetReputationMineResponseTracksHost"
        collector:
          $ref: "#/components/schemas/GetReputationMineResponseTracksHost"
      required:
        - host
        - seller
        - trader
        - collector
      additionalProperties: false
    GetReputationMineResponseTracksHost:
      type: object
      properties:
        track:
          type: string
          enum:
            - host
            - seller
            - trader
            - collector
        label:
          type: string
        points:
          type: number
        level:
          type: number
        nextAt:
          type: number
          nullable: true
          description: Points for the next level, or null at the top.
        lines:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: How the points were earned, biggest first; penalties included.
      required:
        - track
        - label
        - points
        - level
        - lines
      additionalProperties: false
    GetReputationMineResponseUnlocks:
      type: object
      properties:
        host:
          $ref: "#/components/schemas/GetReputationMineResponseUnlocksHost"
        seller:
          $ref: "#/components/schemas/GetReputationMineResponseUnlocksHost"
        trader:
          $ref: "#/components/schemas/GetReputationMineResponseUnlocksHost"
        collector:
          $ref: "#/components/schemas/GetReputationMineResponseUnlocksHost"
      required:
        - host
        - seller
        - trader
        - collector
      additionalProperties: false
      description: "Per track: what its level has unlocked, and the next unlock."
    GetReputationMineResponseUnlocksHost:
      type: object
      properties:
        have:
          type: array
          items:
            type: object
            additionalProperties: {}
        next:
          $ref: "#/components/schemas/GetReputationMineResponseUnlocksHostNext"
      required:
        - have
      additionalProperties: false
    GetReputationMineResponseUnlocksHostNext:
      type: object
      properties:
        track:
          type: string
          enum:
            - host
            - seller
            - trader
            - collector
        level:
          type: number
        key:
          type: string
        label:
          type: string
      required:
        - track
        - level
        - key
        - label
      additionalProperties: false
      nullable: true
    GetReputationResponse:
      type: object
      properties:
        profile:
          type: string
        name:
          type: string
        levels:
          $ref: "#/components/schemas/GetReputationResponseLevels"
        top:
          $ref: "#/components/schemas/GetReputationMineResponseTop"
      required:
        - profile
        - name
        - levels
      additionalProperties: false
    GetReputationResponseLevels:
      type: object
      properties:
        host:
          type: number
        seller:
          type: number
        trader:
          type: number
        collector:
          type: number
      required:
        - host
        - seller
        - trader
        - collector
      additionalProperties: false
    GetRestockPromptSettingResponse:
      type: object
      properties:
        autoRepublish:
          type: boolean
      required:
        - autoRepublish
      additionalProperties: false
    GetReturnResponse:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        status:
          type: string
        notes:
          type: string
          nullable: true
        assigneeMemberId:
          type: string
          nullable: true
        refundAmount:
          type: string
          nullable: true
        orderId:
          type: string
        reason:
          type: string
          nullable: true
        receivedAt:
          type: string
          format: date-time
          nullable: true
        restockedToInventoryItemId:
          type: string
          nullable: true
        requestedAt:
          type: string
          format: date-time
        inspectedAt:
          type: string
          format: date-time
          nullable: true
        inspectedUnitId:
          type: string
          nullable: true
        inspectedIdentifier:
          type: string
          nullable: true
        identityCheck:
          type: string
        restockedAt:
          type: string
          format: date-time
          nullable: true
        disputeCaseId:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - status
        - orderId
        - requestedAt
        - identityCheck
      additionalProperties: false
    GetSandboxResponse:
      type: object
      properties:
        environment:
          type: string
        seller:
          $ref: "#/components/schemas/GetSandboxResponseSeller"
        channels:
          type: array
          items:
            type: string
        simulate:
          $ref: "#/components/schemas/GetSandboxResponseSimulate"
        ttlDays:
          type: number
      required:
        - environment
        - seller
        - channels
        - simulate
        - ttlDays
      additionalProperties: false
    GetSandboxResponseSeller:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        seedVersion:
          type: number
        seededAt:
          type: string
          format: date-time
          nullable: true
        lastResetAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - label
        - seedVersion
      additionalProperties: false
    GetSandboxResponseSimulate:
      type: object
      properties:
        header:
          type: string
        values:
          type: array
          items:
            $ref: "#/components/schemas/GetSandboxResponseSimulateValuesItem"
      required:
        - header
        - values
      additionalProperties: false
    GetSearchResponse:
      type: object
      properties:
        query:
          type: string
        parsed:
          $ref: "#/components/schemas/GetSearchResponseParsed"
        groups:
          type: array
          items:
            $ref: "#/components/schemas/GetSearchResponseGroups"
          description: Groups with at least one hit, best group first (by its top score).
        top:
          $ref: "#/components/schemas/GetSearchResponseTop"
        tookMs:
          type: number
      required:
        - query
        - parsed
        - groups
        - tookMs
      additionalProperties: false
    GetSearchResponseGroups:
      type: object
      properties:
        type:
          type: string
          enum:
            - listings
            - inventory
            - orders
            - offers
            - sales
            - conversations
            - returns
            - customers
            - shipments
        total:
          type: number
          description: Total matches (capped at 1000), not just the rows returned.
        hits:
          type: array
          items:
            type: object
            additionalProperties: {}
        seeAllHref:
          type: string
          description: The full list page filtered to this query (`/orders?q=…`).
      required:
        - type
        - total
        - hits
        - seeAllHref
      additionalProperties: false
    GetSearchResponseParsed:
      type: object
      properties:
        text:
          type: string
          description: Free text left after operators.
        types:
          type: array
          items:
            $ref: "#/components/schemas/GetSearchResponseParsedTypesItem"
          nullable: true
        sku:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        buyer:
          type: string
          nullable: true
        tracking:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        platform:
          type: string
          nullable: true
      required:
        - text
      additionalProperties: false
      description: What the operators parsed to (echoed so the UI can show chips).
    GetSearchResponseTop:
      type: object
      properties:
        type:
          type: string
          enum:
            - listings
            - inventory
            - orders
            - offers
            - sales
            - conversations
            - returns
            - customers
            - shipments
        id:
          type: string
        title:
          type: string
        subtitle:
          type: string
          nullable: true
          description: "One line under the title: price · status · platform · date, already formatted by the server."
        imageUrl:
          type: string
          nullable: true
          description: Thumbnail (signed CDN url) or null.
        platforms:
          type: array
          items:
            type: string
          description: Platform ids this row is on (ebay, poshmark, …) for the small logos.
        status:
          type: string
          nullable: true
        amountCents:
          type: number
          nullable: true
          description: Money in cents with currency, when the row has a price/total.
        currency:
          type: string
          nullable: true
        at:
          type: string
          nullable: true
          description: ISO timestamp the row is "about" (sold at, created at, last message at).
        matched:
          type: string
          enum:
            - id
            - brand
            - email
            - text
            - sku
            - listing_id
            - title
            - order_id
            - url
            - buyer
            - barcode
            - tracking
        href:
          type: string
          description: In-app path to open it (`/orders/<id>`, `/inventory/<id>`, …). Must be a declared route.
        score:
          type: number
          description: 0–1, higher first. Clients may use it to pick the top hit for Enter.
      required:
        - type
        - id
        - title
        - platforms
        - matched
        - href
        - score
      additionalProperties: false
      nullable: true
      description: The single best hit overall (Enter opens it), or null.
    GetSellerProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSellerProfileResponseData"
      required:
        - data
      additionalProperties: false
    GetSellerProfileResponseData:
      type: object
      properties:
        profile:
          $ref: "#/components/schemas/GetSellerProfileResponseDataProfile"
        connections:
          type: array
          items:
            $ref: "#/components/schemas/GetSellerProfileResponseDataConnections"
        inventory:
          type: array
          items:
            $ref: "#/components/schemas/GetSellerProfileResponseDataInventory"
          nullable: true
        stores:
          type: array
          items:
            $ref: "#/components/schemas/GetSellerProfileResponseDataStores"
        document:
          $ref: "#/components/schemas/GetProfileResponseDataDraft"
        resolved:
          $ref: "#/components/schemas/GetSellerProfileResponseDataResolved"
        share:
          $ref: "#/components/schemas/PageUrlImageUrl"
      required:
        - profile
        - connections
        - stores
        - document
        - resolved
        - share
      additionalProperties: false
    GetSellerProfileResponseDataConnections:
      type: object
      properties:
        platform:
          type: string
        username:
          type: string
          nullable: true
      required:
        - platform
      additionalProperties: false
    GetSellerProfileResponseDataInventory:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        price:
          type: number
          nullable: true
        images:
          type: array
          items:
            type: string
      required:
        - id
        - title
        - images
      additionalProperties: false
    GetSellerProfileResponseDataProfile:
      type: object
      properties:
        username:
          type: string
        displayName:
          type: string
          nullable: true
        displayNameAuto:
          type: boolean
          description: Still the generated default — the storefront nudge asks about it.
        bio:
          type: string
          nullable: true
        tagline:
          type: string
          nullable: true
        bannerImageUrl:
          type: string
          nullable: true
        avatarUrl:
          type: string
          nullable: true
        accentColor:
          type: string
        showStats:
          type: boolean
        showInventory:
          type: boolean
        instagramUrl:
          type: string
          nullable: true
        tiktokUrl:
          type: string
          nullable: true
        youtubeUrl:
          type: string
          nullable: true
        websiteUrl:
          type: string
          nullable: true
        totalItemsSold:
          type: number
          nullable: true
        totalRevenueCents:
          type: number
          nullable: true
        avgResponseTimeHours:
          type: number
          nullable: true
        isVerified:
          type: boolean
        isPublic:
          type: boolean
        memberSince:
          type: string
          format: date-time
        vacationMode:
          type: boolean
        vacationMessage:
          type: string
          nullable: true
        vacationUntil:
          type: string
          format: date-time
          nullable: true
      required:
        - username
        - displayNameAuto
        - accentColor
        - showStats
        - showInventory
        - isVerified
        - isPublic
        - memberSince
        - vacationMode
      additionalProperties: false
    GetSellerProfileResponseDataResolved:
      type: object
      properties:
        document:
          $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedDocument"
        person:
          $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedPerson"
        stats:
          type: object
          description: statRefId (key|timeframe|display|basis) → value.
          additionalProperties: {}
        platforms:
          type: array
          items:
            $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedPlatforms"
        stores:
          type: array
          items:
            $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedStores"
        milestones:
          type: array
          items:
            $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedMilestones"
        vault:
          $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedVault"
        listings:
          type: object
          description: section id → cards.
          additionalProperties: {}
        recentSales:
          type: object
          description: section id → sold comps.
          additionalProperties: {}
        share:
          $ref: "#/components/schemas/PageUrlImageUrl"
        preview:
          type: boolean
          description: True in the editor canvas (owner view).
      required:
        - document
        - person
        - stats
        - platforms
        - stores
        - milestones
        - listings
        - recentSales
        - share
        - preview
      additionalProperties: false
    GetSellerProfileResponseDataResolvedDocument:
      type: object
      properties:
        version:
          type: number
        theme:
          $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedDocumentTheme"
        hero:
          $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedDocumentHero"
        sections:
          type: array
          items: {}
          description: Ordered, ≤ 40 (sections.ts limits per kind).
        socials:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: ≤ 20, ordered.
        contact:
          $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedDocumentContact"
        sources:
          $ref: "#/components/schemas/GetProfileResponseDataDraftSources"
        share:
          $ref: "#/components/schemas/GetProfileResponseDataDraftShare"
        seo:
          $ref: "#/components/schemas/TitleDescription"
        privacy:
          $ref: "#/components/schemas/GetProfileResponseDataDraftPrivacy"
      required:
        - version
        - theme
        - hero
        - sections
        - socials
        - contact
        - sources
        - share
        - seo
        - privacy
      additionalProperties: false
    GetSellerProfileResponseDataResolvedDocumentContact:
      type: object
      properties:
        messageButton:
          type: boolean
        email:
          type: object
          additionalProperties: {}
      required:
        - messageButton
        - email
      additionalProperties: false
    GetSellerProfileResponseDataResolvedDocumentHero:
      type: object
      properties:
        layout:
          type: string
          enum:
            - split
            - card
            - banner
            - centered
            - minimal
        avatar:
          type: object
          description: No avatar → initials on the accent.
          additionalProperties: {}
        showHandle:
          type: boolean
        showMemberSince:
          type: boolean
        showVerifiedBadge:
          type: boolean
        headlineStats:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: The big numbers under the name. ≤ 4.
        buttons:
          type: array
          items:
            $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedDocumentHeroButtonsItem"
      required:
        - layout
        - avatar
        - showHandle
        - showMemberSince
        - showVerifiedBadge
        - headlineStats
        - buttons
      additionalProperties: false
    GetSellerProfileResponseDataResolvedDocumentTheme:
      type: object
      properties:
        preset:
          type: string
          description: The preset it started from (SITE_THEME_PRESETS), informational.
        colors:
          type: object
          additionalProperties: {}
        fonts:
          type: object
          additionalProperties: {}
        radius:
          type: object
          additionalProperties: {}
        buttonStyle:
          type: string
          enum:
            - solid
            - outline
            - pill
            - soft
            - underline
        density:
          type: string
          enum:
            - compact
            - comfortable
            - airy
          description: Vertical rhythm between sections.
        mode:
          type: string
          enum:
            - auto
            - light
            - dark
        cardStyle:
          type: string
          enum:
            - solid
            - outline
            - glass
            - elevated
      required:
        - preset
        - colors
        - fonts
        - radius
        - buttonStyle
        - density
        - mode
        - cardStyle
      additionalProperties: false
    GetSellerProfileResponseDataResolvedMilestones:
      type: object
      properties:
        key:
          type: string
          enum:
            - first_sale
            - gmv_10k
            - gmv_50k
            - gmv_100k
            - gmv_250k
            - gmv_500k
            - gmv_1m
            - gmv_5m
            - items_100
            - items_1k
            - items_10k
            - items_100k
            - platforms_3
            - platforms_5
            - platforms_10
            - streak_12w
            - streak_52w
            - years_1
            - years_3
            - years_5
            - best_sale_1k
            - best_sale_10k
            - countries_10
            - countries_25
            - repeat_buyers_100
            - vault_10
            - vault_100
            - graded_100
            - wholesale_10k
        achievedAt:
          type: string
        verified:
          type: boolean
      required:
        - key
        - achievedAt
        - verified
      additionalProperties: false
    GetSellerProfileResponseDataResolvedPerson:
      type: object
      properties:
        handle:
          type: string
        displayName:
          type: string
        avatarUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
        bio:
          type: string
          nullable: true
        tagline:
          type: string
          nullable: true
        memberSince:
          type: string
          nullable: true
        isVerified:
          type: boolean
        vacation:
          $ref: "#/components/schemas/GetSellerProfileResponseDataResolvedPersonVacation"
      required:
        - handle
        - displayName
        - isVerified
        - vacation
      additionalProperties: false
    GetSellerProfileResponseDataResolvedPersonVacation:
      type: object
      properties:
        on:
          type: boolean
        message:
          type: string
          nullable: true
        until:
          type: string
          nullable: true
      required:
        - on
      additionalProperties: false
    GetSellerProfileResponseDataResolvedPlatforms:
      type: object
      properties:
        platform:
          type: string
        username:
          type: string
          nullable: true
        shopUrl:
          type: string
          nullable: true
        viaOwnerHandle:
          type: string
          nullable: true
          description: Set when a team owner's account feeds it ("with Jo's Kicks").
        stats:
          type: object
          nullable: true
          description: Per-platform stats keyed by statRefId (platforms block).
          additionalProperties: {}
      required:
        - platform
      additionalProperties: false
    GetSellerProfileResponseDataResolvedStores:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        isDefault:
          type: boolean
          nullable: true
        path:
          type: string
          nullable: true
        logoUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
      required:
        - id
        - name
        - slug
      additionalProperties: false
    GetSellerProfileResponseDataResolvedVault:
      type: object
      properties:
        items:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - items
      additionalProperties: false
      nullable: true
    GetSellerProfileResponseDataStores:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        isDefault:
          type: boolean
        path:
          type: string
        logoUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
      required:
        - id
        - name
        - slug
        - isDefault
        - path
      additionalProperties: false
    GetSellerShareTargetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSellerShareTargetResponseData"
      required:
        - data
      additionalProperties: false
    GetSellerShareTargetResponseData:
      type: object
      properties:
        handle:
          type: string
        profile:
          $ref: "#/components/schemas/PageUrlImageUrl"
        stats:
          type: array
          items:
            $ref: "#/components/schemas/GetSellerShareTargetResponseDataStats"
        milestones:
          type: array
          items:
            $ref: "#/components/schemas/GetSellerShareTargetResponseDataMilestones"
      required:
        - handle
        - profile
        - stats
        - milestones
      additionalProperties: false
    GetSellerShareTargetResponseDataMilestones:
      type: object
      properties:
        pageUrl:
          type: string
        imageUrl:
          type: string
        key:
          type: string
        label:
          type: string
        tier:
          type: string
        achievedAt:
          type: string
        verified:
          type: boolean
      required:
        - pageUrl
        - imageUrl
        - key
        - label
        - tier
        - achievedAt
        - verified
      additionalProperties: false
    GetSellerShareTargetResponseDataStats:
      type: object
      properties:
        pageUrl:
          type: string
        imageUrl:
          type: string
        key:
          type: string
          enum:
            - orders
            - net_profit
            - rating
            - gmv
            - items_sold
            - avg_sale_price
            - best_sale
            - best_month
            - sell_through_rate
            - median_days_to_sale
            - repeat_buyers
            - repeat_buyer_rate
            - feedback_count
            - top_categories
            - top_brands
            - platform_split
            - marketplaces
            - sales_streak_current
            - sales_streak_longest
            - active_listings
            - vault_value
            - vault_items
            - graded_items
            - wholesale_gmv
            - countries_shipped
            - followers
            - response_time
            - member_since
            - years_selling
        text:
          type: string
          description: Public display text ("$100k+").
        verified:
          type: boolean
        label:
          type: string
          nullable: true
      required:
        - pageUrl
        - imageUrl
        - key
        - text
        - verified
      additionalProperties: false
    GetShopLimitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetShopLimitResponseData"
      required:
        - data
      additionalProperties: false
    GetShopLimitResponseData:
      type: object
      properties:
        unlimited:
          type: boolean
          description: "Sandbox sellers are never limited: limits are null then."
        tier:
          type: string
          enum:
            - new
            - building
            - established
            - trusted
        limit:
          $ref: "#/components/schemas/ListingsValueCents"
        used:
          $ref: "#/components/schemas/ListingsValueCents"
        remaining:
          $ref: "#/components/schemas/ListingsValueCents"
        percentUsed:
          type: number
          description: "0-100: the fuller of the two numbers."
        source:
          $ref: "#/components/schemas/GetShopLimitResponseDataSource"
        overrideExpiresAt:
          type: string
          nullable: true
          description: "When a staff override ends (null: permanent, or no override)."
        stores:
          type: array
          items:
            $ref: "#/components/schemas/GetShopLimitResponseDataStores"
        appSpace:
          type: array
          items:
            $ref: "#/components/schemas/GetShopLimitResponseDataAppSpace"
        nextStep:
          type: string
          nullable: true
        pendingRequest:
          $ref: "#/components/schemas/GetShopLimitResponseDataPendingRequest"
        canRequest:
          type: boolean
          description: False while a request is pending.
        requestUrl:
          type: string
        computedAt:
          type: string
      required:
        - unlimited
        - tier
        - limit
        - used
        - remaining
        - percentUsed
        - source
        - stores
        - appSpace
        - canRequest
        - requestUrl
        - computedAt
      additionalProperties: false
    GetShopLimitResponseDataAppSpace:
      type: object
      properties:
        appId:
          type: string
        appName:
          type: string
        listings:
          type: number
        valueCents:
          type: number
        limit:
          type: number
          description: The app allowance's per-seller listing limit.
      required:
        - appId
        - appName
        - listings
        - valueCents
        - limit
      additionalProperties: false
    GetShopLimitResponseDataPendingRequest:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - pending
            - cancelled
            - declined
            - approved
        requestedListings:
          type: number
          nullable: true
        requestedValueCents:
          type: number
          nullable: true
        reason:
          type: string
        grantedListings:
          type: number
          nullable: true
          description: The limit granted (approved only).
        grantedValueCents:
          type: number
          nullable: true
        autoApproved:
          type: boolean
        decisionNote:
          type: string
          nullable: true
          description: Staff's note to the seller (approved or declined).
        createdAt:
          type: string
        decidedAt:
          type: string
          nullable: true
      required:
        - id
        - status
        - reason
        - autoApproved
        - createdAt
      additionalProperties: false
      nullable: true
    GetShopLimitResponseDataSource:
      type: object
      properties:
        listings:
          type: string
          enum:
            - earned
            - grandfathered
            - approved_request
            - staff_override
        valueCents:
          type: string
          enum:
            - earned
            - grandfathered
            - approved_request
            - staff_override
      required:
        - listings
        - valueCents
      additionalProperties: false
    GetShopLimitResponseDataStores:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
          description: "null: listings published before stores existed (counted in the default store)."
        name:
          type: string
          nullable: true
        listings:
          type: number
        valueCents:
          type: number
      required:
        - listings
        - valueCents
      additionalProperties: false
    GetShopListingProvenanceResponse:
      type: object
      properties:
        provenance:
          $ref: "#/components/schemas/GetShopListingProvenanceResponseProvenance"
      additionalProperties: false
    GetShopListingProvenanceResponseProvenance:
      type: object
      properties:
        label:
          type: string
        owners:
          type: number
          description: Owners on Crossly, the current one included.
        since:
          type: string
          description: When it was first bought here.
        stories:
          type: array
          items:
            $ref: "#/components/schemas/GetShopListingProvenanceResponseProvenanceStories"
          description: "Owners' notes, oldest first: the month they bought it and what they said. Never who."
      required:
        - label
        - owners
        - since
        - stories
      additionalProperties: false
      nullable: true
    GetShopListingProvenanceResponseProvenanceStories:
      type: object
      properties:
        since:
          type: string
        story:
          type: string
      required:
        - since
        - story
      additionalProperties: false
    GetShowroomBillingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetShowroomBillingResponseData"
      required:
        - data
      additionalProperties: false
    GetShowroomBillingResponseData:
      type: object
      properties:
        billing:
          $ref: "#/components/schemas/ListShowroomsItemBilling"
        rails:
          $ref: "#/components/schemas/GetWorldRailResponse"
      required:
        - billing
        - rails
      additionalProperties: false
    GetShowroomCatalogResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetShowroomCatalogResponseData"
      required:
        - data
      additionalProperties: false
    GetShowroomCatalogResponseData:
      type: object
      properties:
        fixtures:
          type: array
          items:
            $ref: "#/components/schemas/GetShowroomCatalogResponseDataFixtures"
        sizes:
          type: array
          items:
            $ref: "#/components/schemas/GetShowroomCatalogResponseDataSizes"
        themes:
          type: array
          items:
            type: string
        surfaces:
          type: array
          items:
            type: string
        shopfronts:
          type: array
          items:
            type: string
        facades:
          type: array
          items:
            type: string
        signStyles:
          type: array
          items:
            type: string
        signFonts:
          type: array
          items:
            type: string
        windowMoods:
          type: array
          items:
            type: string
        holders:
          type: array
          items:
            $ref: "#/components/schemas/GetShowroomCatalogResponseDataHolders"
          description: |-
            Every holder with whether this seller may use it (free, or a premium one they bought in the in-world cosmetics
            market). The signed-in catalog routes fill in what this seller owns; the bare catalog marks only the free ones
            owned (a builder's holder picker).
      required:
        - fixtures
        - sizes
        - themes
        - surfaces
        - shopfronts
        - facades
        - signStyles
        - signFonts
        - windowMoods
        - holders
      additionalProperties: false
    GetShowroomCatalogResponseDataFixtures:
      type: object
      properties:
        display:
          type: string
        label:
          type: string
        tagline:
          type: string
        type:
          type: string
          enum:
            - table
            - case
            - wall
            - shelf
            - rack
            - bin
        slotsPerUnit:
          type: number
        unitLabel:
          type: string
        containerKey:
          type: string
          nullable: true
        maxUnits:
          type: number
      required:
        - display
        - label
        - tagline
        - type
        - slotsPerUnit
        - unitLabel
        - maxUnits
      additionalProperties: false
    GetShowroomCatalogResponseDataHolders:
      type: object
      properties:
        owned:
          type: boolean
        key:
          type: string
          description: "The model key, also the cosmetics SKU's unlock value: a `('prop', key)` entitlement."
        label:
          type: string
        kind:
          type: string
          enum:
            - table
            - case
            - wall
            - plinth
            - shelf
            - rack
            - bin
            - mannequin
        fits:
          type: array
          items:
            $ref: "#/components/schemas/GetShowroomCatalogResponseDataHoldersFitsItem"
          description: The fixture types (fixtureTypeOf) this holder can carry.
        free:
          type: boolean
          description: Free holders need nothing owned; the rest are bought in the in-world cosmetics market.
      required:
        - owned
        - key
        - label
        - kind
        - fits
        - free
      additionalProperties: false
    GetShowroomCatalogResponseDataSizes:
      type: object
      properties:
        value:
          type: string
        width:
          type: number
          nullable: true
        depth:
          type: number
          nullable: true
      required:
        - value
      additionalProperties: false
    GetShowroomPlacementResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetShowroomPlacementResponseData"
      required:
        - data
      additionalProperties: false
    GetShowroomPlacementResponseData:
      type: object
      properties:
        placements:
          type: array
          items:
            $ref: "#/components/schemas/CreateShowroomPlacementResponseDataPlacements"
        available:
          type: array
          items:
            $ref: "#/components/schemas/GetShowroomPlacementResponseDataAvailable"
      required:
        - placements
        - available
      additionalProperties: false
    GetShowroomPlacementResponseDataAvailable:
      type: object
      properties:
        plotId:
          type: string
        street:
          type: string
          description: The street's slug.
        number:
          type: number
        label:
          type: string
          description: '"12 Main Street".'
        tenure:
          type: string
          enum:
            - owned
            - rented
        showroomId:
          type: string
          nullable: true
      required:
        - plotId
        - street
        - number
        - label
        - tenure
      additionalProperties: false
    GetShowroomResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetShowroomResponseData"
      required:
        - data
      additionalProperties: false
    GetShowroomResponseData:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        position:
          type: number
          nullable: true
          description: 0 = the store's primary showroom (several per store since WD2).
        version:
          type: string
          description: "Optimistic-concurrency token: send it back as If-Match (or `expectedVersion`)."
        publicSlug:
          type: string
          nullable: true
        room:
          $ref: "#/components/schemas/GetShowroomResponseDataRoom"
        fixtures:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseDataFixtures"
        placements:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseDataPlacements"
        settings:
          $ref: "#/components/schemas/UpdateShowroom2ResponseDataSettings"
        items:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseDataItems"
          description: The store's stock that can stand in the showroom.
        unplaced:
          type: array
          items:
            type: string
          description: Items that did not fit anywhere.
        stats:
          $ref: "#/components/schemas/UpdateShowroom2ResponseDataStats"
      required:
        - id
        - version
        - room
        - fixtures
        - placements
        - settings
        - items
        - unplaced
        - stats
      additionalProperties: false
    GetShowroomResponseDataRoom:
      type: object
      properties:
        name:
          type: string
        size:
          type: string
          enum:
            - auto
            - compact
            - standard
            - large
            - flagship
        ceiling:
          type: number
        look:
          $ref: "#/components/schemas/UpdateShowroom2ResponseDataRoomLook"
        props:
          type: array
          items:
            $ref: "#/components/schemas/GetShowroomResponseDataRoomProps"
      required:
        - name
        - size
        - ceiling
        - look
        - props
      additionalProperties: false
    GetShowroomResponseDataRoomProps:
      type: object
      properties:
        model:
          type: string
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        rotationY:
          type: number
          nullable: true
        scale:
          type: number
          nullable: true
        itemId:
          type: string
          nullable: true
      required:
        - model
        - position
      additionalProperties: false
    GetSizeSystemResponse:
      type: object
      properties:
        sizeSystems:
          type: array
          items:
            type: string
      required:
        - sizeSystems
      additionalProperties: false
    GetSourceSyncLocationResponse:
      type: object
      properties:
        platform:
          type: string
        label:
          type: string
          enum:
            - location
            - shop
            - outlet
          description: "'shop' (Lightspeed R-Series), 'outlet' (X-Series) or 'location' (Square): what the seller calls it."
        selectedId:
          type: string
          nullable: true
        locations:
          type: array
          items:
            $ref: "#/components/schemas/IdName"
      required:
        - platform
        - label
        - locations
      additionalProperties: false
    GetSourcingReceiptResponse:
      type: object
      properties:
        log:
          type: array
          items: {}
      required:
        - log
      additionalProperties: false
    GetSpatialAddressResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialAddressResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialAddressResponseData:
      type: object
      properties:
        address:
          type: string
        publicSlug:
          type: string
        name:
          type: string
      required:
        - address
        - publicSlug
        - name
      additionalProperties: false
    GetSpatialAuctionPublicResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialAuctionPublicResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialAuctionPublicResponseData:
      type: object
      properties:
        sceneId:
          type: string
        publicSlug:
          type: string
        auction:
          $ref: "#/components/schemas/GetSpatialAuctionPublicResponseDataAuction"
      required:
        - sceneId
        - publicSlug
        - auction
      additionalProperties: false
    GetSpatialAuctionPublicResponseDataAuction:
      type: object
      properties:
        sceneId:
          type: string
        sessionId:
          type: string
        title:
          type: string
        status:
          type: string
        scheduledAt:
          type: string
          format: date-time
        startedAt:
          type: string
          format: date-time
          nullable: true
        endedAt:
          type: string
          format: date-time
          nullable: true
        lotCount:
          type: number
        remainingLots:
          type: number
        currentLot:
          $ref: "#/components/schemas/GetSpatialAuctionPublicResponseDataAuctionCurrentLot"
        serverTime:
          type: string
          format: date-time
          description: |-
            The server's clock at the moment this was read.

            There is no per-lot deadline to report and this deliberately does not
            invent one: the session is AUCTIONEER-driven — a lot closes when a human
            hits hammer, not when a timer expires. A countdown rendered from a
            fabricated deadline would be a lie the room tells confidently, and the
            honest alternative is to hand the client the server's own clock so it can
            age "started 4 minutes ago" without trusting the visitor's wall clock.
        topics:
          $ref: "#/components/schemas/AuctionRoom"
      required:
        - sceneId
        - sessionId
        - title
        - status
        - scheduledAt
        - lotCount
        - remainingLots
        - serverTime
        - topics
      additionalProperties: false
    GetSpatialAuctionPublicResponseDataAuctionCurrentLot:
      type: object
      properties:
        id:
          type: string
        lotNumber:
          type: number
        title:
          type: string
          nullable: true
        startingCents:
          type: number
        currentBidCents:
          type: number
        bidIncrementCents:
          type: number
        minimumNextBidCents:
          type: number
          description: |-
            What the bid transaction will actually demand. Not recomputed on the
            client — see the docblock on why one copy of this rule exists.
        reserveMet:
          type: boolean
        hammerAt:
          type: string
          format: date-time
          nullable: true
        skipped:
          type: boolean
        isDigital:
          type: boolean
          description: The discriminator the whole boundary is written in terms of.
      required:
        - id
        - lotNumber
        - startingCents
        - currentBidCents
        - bidIncrementCents
        - minimumNextBidCents
        - reserveMet
        - skipped
        - isDigital
      additionalProperties: false
      nullable: true
    GetSpatialAuctionRoomResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialAuctionRoomResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialAuctionRoomResponseData:
      type: object
      properties:
        sceneId:
          type: string
        hosting:
          type: boolean
        auction:
          $ref: "#/components/schemas/GetSpatialAuctionRoomResponseDataAuction"
      required:
        - sceneId
        - hosting
      additionalProperties: false
    GetSpatialAuctionRoomResponseDataAuction:
      type: object
      properties:
        sceneId:
          type: string
        sessionId:
          type: string
        title:
          type: string
        status:
          type: string
        scheduledAt:
          type: string
          format: date-time
        startedAt:
          type: string
          format: date-time
          nullable: true
        endedAt:
          type: string
          format: date-time
          nullable: true
        lotCount:
          type: number
        remainingLots:
          type: number
        currentLot:
          $ref: "#/components/schemas/GetSpatialAuctionPublicResponseDataAuctionCurrentLot"
        serverTime:
          type: string
          format: date-time
          description: |-
            The server's clock at the moment this was read.

            There is no per-lot deadline to report and this deliberately does not
            invent one: the session is AUCTIONEER-driven — a lot closes when a human
            hits hammer, not when a timer expires. A countdown rendered from a
            fabricated deadline would be a lie the room tells confidently, and the
            honest alternative is to hand the client the server's own clock so it can
            age "started 4 minutes ago" without trusting the visitor's wall clock.
        topics:
          $ref: "#/components/schemas/AuctionRoom"
      required:
        - sceneId
        - sessionId
        - title
        - status
        - scheduledAt
        - lotCount
        - remainingLots
        - serverTime
        - topics
      additionalProperties: false
      nullable: true
    GetSpatialEmoteResponse:
      type: object
      properties:
        packs:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialEmoteResponsePacks"
        wheel:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialEmoteResponseWheelItem"
        view:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialEmoteResponseView"
          description: "The wheel as it shows: labels, locks with their quest, ready dots."
        moments:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialEmoteResponseMoments"
        unlocks:
          type: array
          items:
            type: string
          description: "Every unlock key: the packs, plus `emote:<id>` for each emote a held NFT unlocks (docs/NFT-CAPABILITIES.md)."
      required:
        - packs
        - wheel
        - view
        - moments
        - unlocks
      additionalProperties: false
    GetSpatialEmoteResponseMoments:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - handshake
            - unbox
            - slab_flip
        payload:
          $ref: "#/components/schemas/GetSpatialEmoteResponseMomentsPayload"
        earnedAt:
          type: string
      required:
        - id
        - kind
        - payload
        - earnedAt
      additionalProperties: false
    GetSpatialEmoteResponseMomentsPayload:
      type: object
      properties:
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
          description: 'slab_flip: the grade as printed on the label ("PSA 10").'
        partner:
          type: string
          nullable: true
          description: "handshake: the other trader's display name, when they chose to be named."
      required:
        - title
      additionalProperties: false
    GetSpatialEmoteResponsePacks:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        unlocked:
          type: boolean
        quest:
          $ref: "#/components/schemas/GetSpatialEmoteResponsePacksQuest"
        emotes:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - key
        - label
        - unlocked
        - emotes
      additionalProperties: false
    GetSpatialEmoteResponsePacksQuest:
      type: object
      properties:
        key:
          type: string
        pin:
          type: string
        goal:
          type: string
      required:
        - key
        - pin
        - goal
      additionalProperties: false
      nullable: true
    GetSpatialEmoteResponseView:
      type: object
      properties:
        slot:
          type: string
          enum:
            - phone
            - spin
            - wave
            - point
            - clap
            - cheer
            - hype
            - shrug
            - nod
            - sit
            - lean
            - reach
            - dance
            - bow
            - thumbs
            - loupe
            - box_spin
            - flex
            - hug
            - high_five
            - handshake
            - facepalm
            - think
            - laugh
            - sigh
            - no
            - fist_pump
            - victory
            - yawn
            - salute
            - big_wave
            - beckon
            - shush
            - kiss
            - peace
            - heart
            - sway
            - vibe
            - air_guitar
            - robot
            - disco
            - gavel
            - haggle
            - arms_crossed
            - hands_on_hips
            - kneel
            - fist_bump
            - dance_off
            - showoff
            - moment:handshake
            - moment:unbox
            - moment:slab_flip
        label:
          type: string
        locked:
          type: boolean
          description: A pack emote not yet earned.
        unlockHint:
          type: string
          nullable: true
          description: What unlocks it, in a sentence (the quest's goal).
        ready:
          type: boolean
          description: "A moment slot with at least one earned and unplayed: the glowing dot."
        readyCount:
          type: number
          description: How many of this moment are waiting.
      required:
        - slot
        - label
        - locked
        - ready
        - readyCount
      additionalProperties: false
      nullable: true
    GetSpatialEmployeeConfigResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialEmployeeConfigResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialEmployeeConfigResponseData:
      type: object
      properties:
        sceneId:
          type: string
        config:
          $ref: "#/components/schemas/GetSpatialEmployeeConfigResponseDataConfig"
      required:
        - sceneId
      additionalProperties: false
    GetSpatialEmployeeConfigResponseDataConfig:
      type: object
      properties:
        brainKind:
          type: string
          enum:
            - rules
            - idle
            - agent
            - byok
        rules:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialEmployeeConfigResponseDataConfigRules"
        agentEndpointUrl:
          type: string
          nullable: true
        hasAgentSecret:
          type: boolean
          description: Whether a secret exists, which is all a form needs to know.
        suspendedAt:
          type: string
          nullable: true
        suspendedReason:
          type: string
          nullable: true
        enabled:
          type: boolean
        avatarKey:
          type: string
        displayName:
          type: string
      required:
        - brainKind
        - rules
        - hasAgentSecret
        - enabled
        - avatarKey
        - displayName
      additionalProperties: false
      nullable: true
    GetSpatialEmployeeConfigResponseDataConfigRules:
      type: object
      properties:
        when:
          type: string
          enum:
            - entered
            - asked
            - lingered
            - inspected
            - added_to_cart
            - leaving_with_cart
        afterSeconds:
          type: number
          nullable: true
          description: Seconds of dwell before `lingered` counts. Ignored for other triggers.
        do:
          type: object
          additionalProperties: {}
      required:
        - when
        - do
      additionalProperties: false
    GetSpatialPartyResponse:
      type: object
      properties:
        party:
          $ref: "#/components/schemas/GetSpatialPartyResponseParty"
        invites:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPartyResponsePartyInvites"
          description: Invites waiting for ME (to other parties, or before I have one).
      required:
        - invites
      additionalProperties: false
    GetSpatialPartyResponseParty:
      type: object
      properties:
        id:
          type: string
        leaderUserId:
          type: string
        createdAt:
          type: string
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPartyResponsePartyMembers"
        invites:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPartyResponsePartyInvites"
          description: Pending, unexpired invites this party has out.
      required:
        - id
        - leaderUserId
        - createdAt
        - members
        - invites
      additionalProperties: false
      nullable: true
    GetSpatialPartyResponsePartyInvites:
      type: object
      properties:
        id:
          type: string
        partyId:
          type: string
        inviteeUserId:
          type: string
        inviteeName:
          type: string
        inviterUserId:
          type: string
        inviterName:
          type: string
        status:
          type: string
          enum:
            - expired
            - pending
            - cancelled
            - accepted
            - declined
        expiresAt:
          type: string
      required:
        - id
        - partyId
        - inviteeUserId
        - inviteeName
        - inviterUserId
        - inviterName
        - status
        - expiresAt
      additionalProperties: false
    GetSpatialPartyResponsePartyMembers:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        role:
          type: string
          enum:
            - leader
            - member
        joinedAt:
          type: string
        place:
          type: string
          nullable: true
          description: The PLACE they are in right now (base slug), or null when not in the world. Party-only.
        placeName:
          type: string
          nullable: true
        copy:
          type: number
          nullable: true
          description: Which copy of that place (1 = the place itself).
      required:
        - userId
        - name
        - role
        - joinedAt
      additionalProperties: false
    GetSpatialPropertyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialPropertyResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialPropertyResponseData:
      type: object
      properties:
        enabled:
          type: boolean
        deeds:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPropertyResponseDataDeeds"
        tenancies:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPropertyResponseDataTenancies"
      required:
        - enabled
        - deeds
        - tenancies
      additionalProperties: false
    GetSpatialPropertyResponseDataDeeds:
      type: object
      properties:
        id:
          type: string
        plotId:
          type: string
        address:
          type: string
        label:
          type: string
        priceCents:
          type: number
        maintenanceWeeklyCents:
          type: number
        paidThrough:
          type: string
        status:
          type: string
          enum:
            - active
            - grace
            - delinquent
            - foreclosed
        occupied:
          type: boolean
        lease:
          $ref: "#/components/schemas/GetSpatialPropertyResponseDataDeedsLease"
        listing:
          $ref: "#/components/schemas/GetSpatialPropertyResponseDataDeedsListing"
      required:
        - id
        - plotId
        - address
        - label
        - priceCents
        - maintenanceWeeklyCents
        - paidThrough
        - status
        - occupied
      additionalProperties: false
    GetSpatialPropertyResponseDataDeedsLease:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        ownerUserId:
          type: string
        endedAt:
          type: string
          format: date-time
          nullable: true
        rail:
          type: string
          nullable: true
        plotId:
          type: string
        paidThrough:
          type: string
          format: date-time
          nullable: true
        deedId:
          type: string
        tenantUserId:
          type: string
          nullable: true
        tenantSceneId:
          type: string
          nullable: true
        rentWeeklyCents:
          type: number
        termsFrozenAt:
          type: string
          format: date-time
          nullable: true
        endReason:
          type: string
          nullable: true
        autopay:
          type: boolean
        address:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        tenantName:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - status
        - ownerUserId
        - plotId
        - deedId
        - rentWeeklyCents
        - autopay
      additionalProperties: false
      nullable: true
    GetSpatialPropertyResponseDataDeedsListing:
      type: object
      properties:
        id:
          type: string
        deedId:
          type: string
        priceCents:
          type: number
      required:
        - id
        - deedId
        - priceCents
      additionalProperties: false
      nullable: true
    GetSpatialPropertyResponseDataTenancies:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        ownerUserId:
          type: string
        endedAt:
          type: string
          format: date-time
          nullable: true
        rail:
          type: string
          nullable: true
        plotId:
          type: string
        paidThrough:
          type: string
          format: date-time
          nullable: true
        deedId:
          type: string
        tenantUserId:
          type: string
          nullable: true
        tenantSceneId:
          type: string
          nullable: true
        rentWeeklyCents:
          type: number
        termsFrozenAt:
          type: string
          format: date-time
          nullable: true
        endReason:
          type: string
          nullable: true
        autopay:
          type: boolean
        address:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        tenantName:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - status
        - ownerUserId
        - plotId
        - deedId
        - rentWeeklyCents
        - autopay
      additionalProperties: false
    GetSpatialPublicResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialPublicResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialPublicResponseData:
      type: object
      properties:
        scene:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataScene"
        profile:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataProfile"
        solved:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataSolved"
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataItems"
          description: Enough to draw an object and label it. No cost, no location, no status.
        stats:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataStats"
        stands:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataStands"
          nullable: true
          description: "Convention halls: public handles per table, never account ids."
      required:
        - scene
        - profile
        - solved
        - items
        - stats
      additionalProperties: false
    GetSpatialPublicResponseDataItems:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        marketTagged:
          type: boolean
      required:
        - id
        - title
        - marketTagged
      additionalProperties: false
    GetSpatialPublicResponseDataProfile:
      type: object
      properties:
        categorySlug:
          type: string
          description: Matches `crossly_market_categories.slug`, or '*' for the fallback.
        dressing:
          type: string
          nullable: true
          description: |-
            A furniture set other than the category's: a key into
            SYNTHETIC_ROOM_DRESSING (_dressing.ts). The synthetic rooms -- the Bullion
            Vault, the One Lounge, the Trader and Collector lounges -- borrow another
            room's LAYOUT, and this is what stops them borrowing its furniture too.
        label:
          type: string
          description: Room title, shown in the switcher.
        tagline:
          type: string
          description: One line of why this space is shaped the way it is. Surfaced in the UI.
        presentation:
          type: string
          enum:
            - flat
            - slabbed
            - boxed
            - cased
            - spined
            - hanging
            - standing
        arrangement:
          type: string
          enum:
            - table
            - rail
            - wall
            - shelf-run
            - floor-stack
            - spread
            - hall
          nullable: true
          description: |-
            Force the room's arrangement/structure instead of deriving it from the
            outermost container's model — for scenes laid out by KIND, not category
            (e.g. the Trade Floor concourse). Unions kept in step with arrange.ts's
            Arrangement/Structure (inlined here to avoid a module cycle). See
            arrange.ts::arrangementFor.
        structure:
          type: string
          enum:
            - none
            - boards
            - rail-bar
            - plinth
            - partition
          nullable: true
        itemModel:
          type: string
          enum:
            - item-card
            - item-card-slab
            - item-comic
            - item-comic-slab
            - item-vinyl
            - item-vinyl-disc
            - item-funko-box
            - item-lego-box
            - item-minifig
            - item-game-case
            - item-book
            - item-framed-print
            - item-sneaker
            - item-sneaker-court
            - item-sneaker-high
            - item-sneaker-canvas
            - item-slide
            - item-clog
            - item-boot
            - item-boot-chelsea
            - item-boot-cowboy
            - item-boot-shearling
            - item-heel
            - item-loafer
            - item-oxford
            - item-flat
            - item-sandal
            - item-cleat
            - item-handbag
            - item-bag-tote
            - item-bag-crossbody
            - item-bag-backpack
            - item-bag-clutch
            - item-watch
            - item-watch-bracelet
            - item-watch-tank
            - item-watch-smart
            - item-phone
            - item-laptop
            - item-console
            - item-controller
            - item-headphones
            - item-camera
            - item-tablet
            - item-handheld
            - item-mouse
            - item-keyboard
            - item-speaker
            - item-earbuds
            - item-tech-box
            - item-skate-deck
            - item-tee
            - item-hoodie
            - item-crewneck
            - item-tee-ls
            - item-jacket
            - item-jeans
            - item-dress
            - item-skirt
            - item-shorts
            - item-tank
            - item-polo
            - item-shirt
            - item-vest
            - item-cap
            - item-beanie
            - item-bucket
            - item-flat-cap
            - item-balaclava
            - item-socks
            - item-gloves
            - item-scarf
            - item-keychain
            - item-sunglasses
            - item-tie
            - item-headband
            - item-pin-card
            - item-mug
            - item-plate
            - item-lighter
            - item-belt
            - item-retail-box
            - item-ring
            - item-necklace
            - item-perfume
            - item-booster-box
            - item-booster-pack
            - item-bullion-bar
            - item-ball
            - item-guitar
            - item-coin
            - item-stamp
            - item-banknote
            - item-figure
            - item-figure-box
            - item-figure-loose
          nullable: true
          description: |-
            The mesh one item is drawn as. See ItemModel — omit until a model exists,
            and the renderer falls back to the photo quad.
        itemModelVariants:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataProfileItemModelVariantsItem"
          nullable: true
          description: |-
            Other meshes items in this category may be drawn as, chosen PER ITEM.

            One model per category is right for a card room, where every object is the
            same object. It is wrong for a wardrobe: a rail holds tees and jeans and
            jackets, and drawing all of them as a tee would be a worse lie than the
            flat quad it replaced, because a wrong SHAPE reads as information.

            The renderer picks from `[itemModel, ...itemModelVariants]` using the
            item's title — the same heuristic `silhouetteFor` already uses to choose a
            garment outline, and for the same reason: the title is the only signal
            present on every item, and a wrong guess costs a slightly odd shape rather
            than the wrong item. `itemModel` is the fallback when nothing matches.

            Deliberately NOT fuzzy-matched against a catalog — this picks a SHAPE, not
            an identity. See docs/IDENTIFIER-FIRST.md for where that line sits.
        itemModelPool:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataProfileItemModelPoolItem"
          nullable: true
          description: |-
            The shapes an item may be drawn as when its title names NONE — spread
            across by a stable hash of the item id, so a wall of untitled pairs is not
            forty clones and the same pair is always the same shape. Only shapes that
            are a fair guess for ANY item in the category belong here: a runner, a
            court shoe and a canvas low, never a clog.
        itemSize:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataProfileItemSize"
        containers:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataProfileContainers"
          description: |-
            The container ladder, OUTERMOST FIRST. A binder holds pages, a page holds
            cards. The solver walks this to decide what to create next when the
            current container fills up.
        defaultGroupBy:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataProfileDefaultGroupByItem"
          description: Default grouping, in order. Each level becomes a divider or a container.
        defaultSortBy:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataProfileDefaultSortByItem"
          description: Default ordering inside a group.
        gradedVariant:
          type: string
          nullable: true
          description: |-
            A SEPARATE profile for graded/sealed copies of the same category.

            This is not a flourish. Nobody puts a slabbed card in a binder — it does
            not fit and it would be vandalism. Graded cards go on a wall, raw cards go
            in pockets, and a space that ignores that is immediately wrong to the only
            people who would use it. Same for CGC comics.
      required:
        - categorySlug
        - label
        - tagline
        - presentation
        - itemSize
        - containers
        - defaultGroupBy
        - defaultSortBy
      additionalProperties: false
    GetSpatialPublicResponseDataProfileContainers:
      type: object
      properties:
        key:
          type: string
          description: Stable key. Persisted on every placement — never renamed.
        label:
          type: string
          description: What the seller calls it. "Page 3", "Case", "Long box".
        model:
          type: string
          description: |-
            Which hand-authored mesh renders this container. A small closed set — the
            art budget lives here and nowhere else.
        size:
          type: object
          description: Outer bounds, for packing containers into a room.
          additionalProperties: {}
        access:
          type: string
          enum:
            - surface
            - top
            - front
          nullable: true
          description: Which face is open. Defaults to `front` where omitted.
        slots:
          type: object
          additionalProperties: {}
        faceOut:
          type: boolean
          nullable: true
          description: |-
            Shop shelving, not storage: an underfilled unit faces its stock out across
            centred rows (solve.ts `faceOutSlots`) instead of crowding the top boards
            and leaving the rest bare (and drops its dividers: a shelf has none to draw).
            Grid layouts only; a unit holding a pin keeps its slots, because that was
            placed on purpose.
      required:
        - key
        - label
        - model
        - size
        - slots
      additionalProperties: false
    GetSpatialPublicResponseDataProfileItemSize:
      type: object
      properties:
        x:
          type: number
        y:
          type: number
        z:
          type: number
      required:
        - x
        - y
        - z
      additionalProperties: false
      description: |-
        Fallback physical size of one item. Used when the catalog does not publish
        real dimensions for this product. See the module docblock: where the
        catalog knows, the catalog wins.
    GetSpatialPublicResponseDataScene:
      type: object
      properties:
        name:
          type: string
        kind:
          type: string
        categorySlug:
          type: string
          nullable: true
      required:
        - name
        - kind
      additionalProperties: false
    GetSpatialPublicResponseDataSolved:
      type: object
      properties:
        containers:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataSolvedContainers"
        placements:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataSolvedPlacements"
        dividers:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataSolvedDividers"
        overflow:
          type: array
          items:
            type: string
          description: Items that did not fit anywhere. Surfaced, never silently dropped.
      required:
        - containers
        - placements
        - dividers
        - overflow
      additionalProperties: false
    GetSpatialPublicResponseDataSolvedContainers:
      type: object
      properties:
        key:
          type: string
        index:
          type: number
        label:
          type: string
        groupPath:
          type: array
          items:
            type: string
          description: Group path this container primarily holds, for signage on the object.
        capacity:
          type: number
        used:
          type: number
      required:
        - key
        - index
        - label
        - groupPath
        - capacity
        - used
      additionalProperties: false
    GetSpatialPublicResponseDataSolvedDividers:
      type: object
      properties:
        containerKey:
          type: string
        containerIndex:
          type: number
        slotIndex:
          type: number
        label:
          type: string
      required:
        - containerKey
        - containerIndex
        - slotIndex
        - label
      additionalProperties: false
    GetSpatialPublicResponseDataSolvedPlacements:
      type: object
      properties:
        itemId:
          type: string
        unitId:
          type: string
          nullable: true
        containerKey:
          type: string
        containerIndex:
          type: number
        slotIndex:
          type: number
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          description: Local position inside the container, metres.
        groupPath:
          type: array
          items:
            type: string
        pinned:
          type: boolean
      required:
        - itemId
        - containerKey
        - containerIndex
        - slotIndex
        - position
        - groupPath
        - pinned
      additionalProperties: false
    GetSpatialPublicResponseDataStands:
      type: object
      properties:
        tableIndex:
          type: number
        handle:
          type: string
        profile:
          type: string
          nullable: true
      required:
        - tableIndex
        - handle
      additionalProperties: false
    GetSpatialPublicResponseDataStats:
      type: object
      properties:
        itemCount:
          type: number
      required:
        - itemCount
      additionalProperties: false
      description: Only the count. `capitalCents` is the seller's spend and never leaves.
    GetSpatialSceneAttentionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialSceneAttentionResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialSceneAttentionResponseData:
      type: object
      properties:
        days:
          type: number
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialSceneAttentionResponseDataItems"
      required:
        - days
        - items
      additionalProperties: false
    GetSpatialSceneAttentionResponseDataItems:
      type: object
      properties:
        dwellMs:
          type: number
        itemId:
          type: string
        viewers:
          type: number
        looks:
          type: number
        inspects:
          type: number
      required:
        - dwellMs
        - itemId
        - viewers
        - looks
        - inspects
      additionalProperties: false
    GetSpatialSceneResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialSceneResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialSceneResponseData:
      type: object
      properties:
        breakdowns:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialSceneResponseDataBreakdowns"
          description: |-
            Facets that would actually split this collection, most-dividing first.
            Drives the breakdown picker — see availableBreakdowns.
        scene:
          $ref: "#/components/schemas/GetSpatialSceneResponseDataScene"
        profile:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataProfile"
        solved:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataSolved"
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialSceneResponseDataItems"
        stats:
          $ref: "#/components/schemas/GetSpatialSceneResponseDataStats"
        stands:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPublicResponseDataStands"
          nullable: true
          description: "Convention halls only: who is behind which table (conventions/hall.ts)."
      required:
        - breakdowns
        - scene
        - profile
        - solved
        - items
        - stats
      additionalProperties: false
    GetSpatialSceneResponseDataBreakdowns:
      type: object
      properties:
        facet:
          type: string
          enum:
            - brand
            - label
            - status
            - age
            - condition
            - size
            - title
            - value
            - set
            - team
            - year
            - grade
            - game
            - franchise
            - era
            - genre
            - colour
            - exhibitor
          x-enum-varnames:
            - brand
            - label
            - status
            - age
            - condition
            - size
            - title
            - valueOption
            - set
            - team
            - year
            - grade
            - game
            - franchise
            - era
            - genre
            - colour
            - exhibitor
        distinct:
          type: number
      required:
        - facet
        - distinct
      additionalProperties: false
    GetSpatialSceneResponseDataItems:
      type: object
      properties:
        id:
          type: string
        unitId:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        thumbUrl:
          type: string
          nullable: true
          description: |-
            A small copy of `imageUrl`, when the catalog has one.

            The room binds this for everything except the few items you are standing
            in front of. A 600x600 original costs 1.83 MiB of VRAM; a 150x150 thumb
            costs 0.11 MiB, and at more than a couple of metres they are the same
            handful of pixels on screen. Null when the catalog never made one, which
            the renderer treats as "use the original" rather than as "draw nothing".
        size:
          $ref: "#/components/schemas/GetSpatialSceneResponseDataItemsSize"
        costCents:
          type: number
          nullable: true
          description: Cents the seller paid. Drives the `value` overlay and capital density.
        ageDays:
          type: number
          nullable: true
          description: Days since first listed anywhere. Drives the `aging` overlay.
        status:
          type: string
        location:
          type: string
          nullable: true
          description: Free-text or structured location, when the unit has one.
        marketTagged:
          type: boolean
          description: True when this row resolved to a catalog product.
        variantId:
          type: string
          nullable: true
          description: Catalogue variant, when resolved. The key captured models hang off.
        capturedModelUrl:
          type: string
          nullable: true
          description: |-
            A real mesh captured for this catalogue product, when one exists.

            The renderer prefers it over the category's parametric mesh. Kept OFF
            `ItemModel` on purpose: that is a closed set validated by `isItemModel()`
            because the key becomes a `/models/<key>.glb` path, and a per-item URL can
            never be a member of a finite vocabulary.
        capturedTextureUrl:
          type: string
          nullable: true
          description: The item's real surface, for the category mesh. Cheaper than geometry.
        capturedLongestMm:
          type: number
          nullable: true
          description: |-
            Longest real edge in millimetres, when a capture MEASURED the item.

            Undefined or null is the ordinary case: the renderer fits the mesh to the
            slot the room allocated. A number means it can be drawn at its true size
            instead, which for furniture is the difference between a sofa that fits
            through the door and one that only looks like it does.
      required:
        - id
        - title
        - status
        - marketTagged
      additionalProperties: false
    GetSpatialSceneResponseDataItemsSize:
      type: object
      properties:
        x:
          type: number
        y:
          type: number
        z:
          type: number
      required:
        - x
        - y
        - z
      additionalProperties: false
      nullable: true
      description: Real dimensions when the catalog knows them. Else the profile default.
    GetSpatialSceneResponseDataScene:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        name:
          type: string
        categorySlug:
          type: string
          nullable: true
        visibility:
          type: string
        publicSlug:
          type: string
          nullable: true
        settings:
          type: object
          additionalProperties: {}
      required:
        - id
        - kind
        - name
        - visibility
        - settings
      additionalProperties: false
    GetSpatialSceneResponseDataStats:
      type: object
      properties:
        itemCount:
          type: number
        capitalCents:
          type: number
        staleCount:
          type: number
        unplaced:
          type: number
      required:
        - itemCount
        - capitalCents
        - staleCount
        - unplaced
      additionalProperties: false
      description: Totals the UI shows without recomputing over the payload.
    GetSpatialSceneWarehouseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialSceneWarehouseResponseData:
      type: object
      properties:
        version:
          type: number
        kind:
          type: string
        zones:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataZones"
        racks:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataRacks"
        bounds:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataBounds"
        camera:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataCamera"
        room:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataRoom"
        shell:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataShell"
        stats:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataStats"
      required:
        - version
        - kind
        - zones
        - racks
        - bounds
        - camera
        - room
        - shell
        - stats
      additionalProperties: false
    GetSpatialSceneWarehouseResponseDataBounds:
      type: object
      properties:
        min:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        max:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
      required:
        - min
        - max
      additionalProperties: false
    GetSpatialSceneWarehouseResponseDataCamera:
      type: object
      properties:
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        target:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
      required:
        - position
        - target
      additionalProperties: false
      description: A standing view of the whole floor, for a first frame.
    GetSpatialSceneWarehouseResponseDataRacks:
      type: object
      properties:
        id:
          type: string
          description: The `spatial_nodes` id. Moves, placements and replays key on it.
        code:
          type: string
        label:
          type: string
        unitKey:
          type: string
        model:
          type: string
        size:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataProfileItemSize"
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          description: Floor contact point, metres; y = 0 is the floor.
        levels:
          type: number
        capacity:
          type: number
        stocked:
          type: number
        fill:
          type: number
          description: stocked / capacity, clamped to [0, 1]; 0 for scenery.
        scenery:
          type: boolean
        positioned:
          type: boolean
          description: False when the seller never positioned it and it was laid out for them.
        items:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - id
        - code
        - label
        - unitKey
        - model
        - size
        - position
        - levels
        - capacity
        - stocked
        - fill
        - scenery
        - positioned
        - items
      additionalProperties: false
    GetSpatialSceneWarehouseResponseDataRoom:
      type: object
      properties:
        floor:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataRoomFloor"
        ceiling:
          type: number
      required:
        - floor
        - ceiling
      additionalProperties: false
      description: |-
        The room around the racks — same shape as a resolved scene's `room`, so
        a client that already draws rooms draws this one the same way.
    GetSpatialSceneWarehouseResponseDataRoomFloor:
      type: object
      properties:
        minX:
          type: number
        maxX:
          type: number
        minZ:
          type: number
        maxZ:
          type: number
        y:
          type: number
      required:
        - minX
        - maxX
        - minZ
        - maxZ
        - y
      additionalProperties: false
    GetSpatialSceneWarehouseResponseDataShell:
      type: object
      properties:
        theme:
          type: string
          enum:
            - studio
            - noir
            - daylight
            - vitrine
            - street
            - storybook
        wall:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataShellWall"
        floor:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataShellWall"
        cove:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataShellCove"
      required:
        - theme
        - wall
        - floor
        - cove
      additionalProperties: false
      description: Walls and floor, from the room's cosmetics (resolveShell).
    GetSpatialSceneWarehouseResponseDataShellCove:
      type: object
      properties:
        colour:
          type: string
          nullable: true
        intensity:
          type: number
      required:
        - intensity
      additionalProperties: false
    GetSpatialSceneWarehouseResponseDataShellWall:
      type: object
      properties:
        family:
          type: string
          description: Texture family under /models/textures — `<family>_{albedo,normal,rough}.jpg`.
        metresPerTile:
          type: number
          description: How many metres of wall or floor one tile of the scan covers.
        tint:
          type: string
          description: |-
            Multiplier over the scanned albedo. White means "the scan as measured",
            which is the default for the same reason it is in `surfaceMaterial`: the
            photograph already carries the colour, and multiplying an authored tint
            over it double-darkens every surface.
        roughness:
          type: number
          description: |-
            Multiplier over the scanned roughness map — NOT the roughness itself.
            three computes `roughness * roughnessMap.g`, so 1 means "believe the
            scan", which is the honest default for a material somebody chose.
      required:
        - family
        - metresPerTile
        - tint
        - roughness
      additionalProperties: false
    GetSpatialSceneWarehouseResponseDataStats:
      type: object
      properties:
        racks:
          type: number
        capacity:
          type: number
        stocked:
          type: number
      required:
        - racks
        - capacity
        - stocked
      additionalProperties: false
    GetSpatialSceneWarehouseResponseDataZones:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        label:
          type: string
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          description: Centre of the zone's floor area.
        size:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataZonesSize"
      required:
        - id
        - code
        - label
        - position
        - size
      additionalProperties: false
    GetSpatialSceneWarehouseResponseDataZonesSize:
      type: object
      properties:
        x:
          type: number
        z:
          type: number
      required:
        - x
        - z
      additionalProperties: false
    GetSpatialSceneWindowResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialSceneWindowResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialSceneWindowResponseData:
      type: object
      properties:
        picks:
          type: array
          items:
            type: string
        choices:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialSceneWindowResponseDataChoices"
      required:
        - picks
        - choices
      additionalProperties: false
    GetSpatialSceneWindowResponseDataChoices:
      type: object
      properties:
        listingId:
          type: string
        slug:
          type: string
        title:
          type: string
        priceCents:
          type: number
        imageUrl:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
        market:
          type: string
          nullable: true
          description: |-
            A catalogue piece in one of Crossly's storefronts (api catalogue-room.ts):
            its market page's path (`/shop/market/...`, shared marketSkuPath). Such a piece is not a listing --
            no price of its own (`priceCents` 0), nothing to cart or offer on; the card
            says "See prices" and opens the market page with its asks, bids and sales.
      required:
        - listingId
        - slug
        - title
        - priceCents
      additionalProperties: false
    GetSpatialShopNeighbourhoodResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialShopNeighbourhoodResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialShopNeighbourhoodResponseDataOneOf1Home:
      type: object
      properties:
        street:
          type: string
        name:
          type: string
        index:
          type: number
        address:
          type: string
        label:
          type: string
      required:
        - street
        - name
        - index
        - address
        - label
      additionalProperties: false
      nullable: true
    GetSpatialShopNeighbourhoodResponseDataOneOf1Shop:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        visibility:
          type: string
      required:
        - id
        - name
        - visibility
      additionalProperties: false
    GetSpatialShopStaffResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialShopStaffResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialShopStaffResponseDataOneOf1Staff:
      type: object
      properties:
        pending:
          type: boolean
        acceptedAt:
          type: string
          nullable: true
        wagePaidThrough:
          type: string
          nullable: true
        grantId:
          type: string
        userId:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        wageWeeklyCents:
          type: number
          nullable: true
      required:
        - pending
        - grantId
      additionalProperties: false
    GetSpatialSpaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialSpaceResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialSpaceResponseData:
      type: object
      properties:
        spaces:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialSpaceResponseDataSpaces"
        warehouseUnits:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialSpaceResponseDataWarehouseUnits"
      required:
        - spaces
        - warehouseUnits
      additionalProperties: false
    GetSpatialSpaceResponseDataSpaces:
      type: object
      properties:
        categorySlug:
          type: string
        label:
          type: string
        tagline:
          type: string
        presentation:
          type: string
          enum:
            - flat
            - slabbed
            - boxed
            - cased
            - spined
            - hanging
            - standing
        itemModel:
          type: string
          enum:
            - item-card
            - item-card-slab
            - item-comic
            - item-comic-slab
            - item-vinyl
            - item-vinyl-disc
            - item-funko-box
            - item-lego-box
            - item-minifig
            - item-game-case
            - item-book
            - item-framed-print
            - item-sneaker
            - item-sneaker-court
            - item-sneaker-high
            - item-sneaker-canvas
            - item-slide
            - item-clog
            - item-boot
            - item-boot-chelsea
            - item-boot-cowboy
            - item-boot-shearling
            - item-heel
            - item-loafer
            - item-oxford
            - item-flat
            - item-sandal
            - item-cleat
            - item-handbag
            - item-bag-tote
            - item-bag-crossbody
            - item-bag-backpack
            - item-bag-clutch
            - item-watch
            - item-watch-bracelet
            - item-watch-tank
            - item-watch-smart
            - item-phone
            - item-laptop
            - item-console
            - item-controller
            - item-headphones
            - item-camera
            - item-tablet
            - item-handheld
            - item-mouse
            - item-keyboard
            - item-speaker
            - item-earbuds
            - item-tech-box
            - item-skate-deck
            - item-tee
            - item-hoodie
            - item-crewneck
            - item-tee-ls
            - item-jacket
            - item-jeans
            - item-dress
            - item-skirt
            - item-shorts
            - item-tank
            - item-polo
            - item-shirt
            - item-vest
            - item-cap
            - item-beanie
            - item-bucket
            - item-flat-cap
            - item-balaclava
            - item-socks
            - item-gloves
            - item-scarf
            - item-keychain
            - item-sunglasses
            - item-tie
            - item-headband
            - item-pin-card
            - item-mug
            - item-plate
            - item-lighter
            - item-belt
            - item-retail-box
            - item-ring
            - item-necklace
            - item-perfume
            - item-booster-box
            - item-booster-pack
            - item-bullion-bar
            - item-ball
            - item-guitar
            - item-coin
            - item-stamp
            - item-banknote
            - item-figure
            - item-figure-box
            - item-figure-loose
          nullable: true
        containers:
          type: array
          items:
            type: object
            additionalProperties: {}
        itemSize:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataProfileItemSize"
        facets:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialSpaceResponseDataSpacesFacetsItem"
        gradedVariant:
          type: string
          nullable: true
      required:
        - categorySlug
        - label
        - tagline
        - presentation
        - containers
        - itemSize
        - facets
      additionalProperties: false
    GetSpatialSpaceResponseDataWarehouseUnits:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        model:
          type: string
        size:
          $ref: "#/components/schemas/GetSpatialPublicResponseDataProfileItemSize"
        segmentKind:
          type: string
          enum:
            - level
            - bin
            - zone
            - aisle
            - bay
          nullable: true
          description: |-
            What this unit contributes to a location code. A rack contributes its
            number, a shelf its level. A zone contributes a letter.

            `null` means the unit is scenery and adds nothing — a workbench or a door
            is part of the room without being part of an address.
        capacity:
          type: number
          description: How many children of the next level down it accepts.
      required:
        - key
        - label
        - model
        - size
        - capacity
      additionalProperties: false
    GetSpatialStreetAdmissionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialStreetAdmissionResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialStreetAdmissionResponseData:
      type: object
      properties:
        toDecide:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialStreetAdmissionResponseDataToDecide"
        sent:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialStreetAdmissionResponseDataToDecide"
      required:
        - toDecide
        - sent
      additionalProperties: false
    GetSpatialStreetAdmissionResponseDataToDecide:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        street:
          type: string
        streetName:
          type: string
        shopName:
          type: string
        shopSlug:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - kind
        - street
        - streetName
        - shopName
        - createdAt
      additionalProperties: false
    GetSpatialStreetDecorResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldDecorStreetsItem"
      required:
        - data
      additionalProperties: false
    GetSpatialStreetFoundingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialStreetFoundingResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialStreetFoundingResponseData:
      type: object
      properties:
        cbx:
          $ref: "#/components/schemas/GetSpatialStreetFoundingResponseDataCbx"
        refusal:
          type: string
          nullable: true
        priceCents:
          type: number
        maintenanceWeeklyCents:
          type: number
        includedWeeks:
          type: number
        plots:
          type: number
        maxPerOwner:
          type: number
        admissions:
          type: array
          items:
            type: string
          minItems: 3
          maxItems: 3
      required:
        - cbx
        - priceCents
        - maintenanceWeeklyCents
        - includedWeeks
        - plots
        - maxPerOwner
        - admissions
      additionalProperties: false
    GetSpatialStreetFoundingResponseDataCbx:
      type: object
      properties:
        open:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - open
      additionalProperties: false
    GetSpatialStreetPlotQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialStreetPlotQuoteResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialStreetPlotQuoteResponseData:
      type: object
      properties:
        address:
          type: string
        label:
          type: string
        priceCents:
          type: number
        maintenanceWeeklyCents:
          type: number
        includedWeeks:
          type: number
        owned:
          type: boolean
        vacant:
          type: boolean
        buyable:
          type: boolean
        enabled:
          type: boolean
        claim:
          $ref: "#/components/schemas/GetSpatialStreetPlotQuoteResponseDataClaim"
      required:
        - address
        - label
        - priceCents
        - maintenanceWeeklyCents
        - includedWeeks
        - owned
        - vacant
        - buyable
        - enabled
      additionalProperties: false
    GetSpatialStreetPlotQuoteResponseDataClaim:
      type: object
      properties:
        topN:
          type: number
        windowDays:
          type: number
      required:
        - topN
        - windowDays
      additionalProperties: false
      nullable: true
    GetSpatialStreetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSpatialStreetResponseData"
      required:
        - data
      additionalProperties: false
    GetSpatialStreetResponseData:
      type: object
      properties:
        plots:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialStreetResponseDataPlots"
        decor:
          $ref: "#/components/schemas/GetSpatialStreetResponseDataDecor"
        life:
          $ref: "#/components/schemas/GetSpatialStreetResponseDataLife"
        slug:
          type: string
        name:
          type: string
        admission:
          type: string
        plotCount:
          type: number
        occupied:
          type: number
        platform:
          type: boolean
          description: A platform street (no owner) — Main Street.
      required:
        - plots
        - slug
        - name
        - admission
        - plotCount
        - occupied
        - platform
      additionalProperties: false
    GetSpatialStreetResponseDataDecor:
      type: object
      properties:
        lamp:
          type: string
          nullable: true
        banner:
          type: string
          nullable: true
        bannerColour:
          type: string
          enum:
            - blue
            - green
            - purple
            - red
            - teal
            - cream
            - ink
            - amber
          nullable: true
        paving:
          type: string
          nullable: true
        arch:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
      description: "The owner's decor (shared street-decor.ts): lamps, banners, paving, arch. Empty = the street's own look."
    GetSpatialStreetResponseDataLife:
      type: object
      properties:
        billboards:
          type: array
          items: {}
        buskers:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialStreetResponseDataLifeBuskers"
      required:
        - billboards
        - buskers
      additionalProperties: false
      nullable: true
      description: Billboards and buskers (street-life/read.ts); absent until attached.
    GetSpatialStreetResponseDataLifeBuskers:
      type: object
      properties:
        corner:
          type: number
        sellerName:
          type: string
        shop:
          type: object
          nullable: true
          additionalProperties: {}
        live:
          type: object
          additionalProperties: {}
        href:
          type: string
      required:
        - corner
        - sellerName
        - live
        - href
      additionalProperties: false
    GetSpatialStreetResponseDataPlots:
      type: object
      properties:
        index:
          type: number
        number:
          type: number
        address:
          type: string
        label:
          type: string
        reserved:
          type: boolean
          description: "Newcomer plot: occupiable, never sold or leased."
        shop:
          $ref: "#/components/schemas/GetSpatialStreetResponseDataPlotsShop"
        shuttered:
          type: boolean
          description: Occupied by a shop that is not public right now.
        owned:
          type: boolean
          description: Somebody holds the deed (property.ts).
        lease:
          $ref: "#/components/schemas/GetSpatialStreetResponseDataPlotsLease"
        priceCents:
          type: number
          nullable: true
          description: Crossly's price for a vacant, unowned, buyable plot on a platform street.
        forSale:
          $ref: "#/components/schemas/GetSpatialStreetResponseDataPlotsForSale"
        sponsored:
          $ref: "#/components/schemas/GetSpatialStreetResponseDataPlotsSponsored"
        life:
          $ref: "#/components/schemas/GetSpatialStreetResponseDataPlotsLife"
      required:
        - index
        - number
        - address
        - label
        - reserved
        - shuttered
        - owned
      additionalProperties: false
    GetSpatialStreetResponseDataPlotsForSale:
      type: object
      properties:
        id:
          type: string
        priceCents:
          type: number
      required:
        - id
        - priceCents
      additionalProperties: false
      nullable: true
      description: An owner's resale listing on this plot (deed-market.ts).
    GetSpatialStreetResponseDataPlotsLease:
      type: object
      properties:
        id:
          type: string
        rentWeeklyCents:
          type: number
      required:
        - id
        - rentWeeklyCents
      additionalProperties: false
      nullable: true
      description: "Offered for lease: the weekly rent and the offer to accept."
    GetSpatialStreetResponseDataPlotsLife:
      type: object
      properties:
        soldToday:
          type: number
        window:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - soldToday
        - window
      additionalProperties: false
      nullable: true
      description: An open shop's tally and window (street-life/read.ts); absent until attached.
    GetSpatialStreetResponseDataPlotsShop:
      type: object
      properties:
        name:
          type: string
        publicSlug:
          type: string
        categorySlug:
          type: string
        itemCount:
          type: number
          description: Unsold stock that lands in this room. The same predicate the room uses.
        forSaleCount:
          type: number
          description: How many of those a visitor could buy right now.
        priceFromCents:
          type: number
          nullable: true
          description: |-
            The cheapest and dearest thing for sale, in cents.

            A BAND, deliberately, and never a quote: `listPublicSceneOffers` is the
            only authority on what a given object costs. Null when nothing is for sale
            — zero would read as free.
        priceToCents:
          type: number
          nullable: true
        previewImages:
          type: array
          items:
            type: string
          description: Up to PREVIEW_IMAGES item images. Catalog art first, seller photo else.
        updatedAt:
          type: string
          nullable: true
          description: Last time the room itself changed. ISO, or null if the row has no date.
        visitorsWeek:
          type: number
          description: People who walked it in the last 7 days (spatial_item_attention).
        accentColour:
          type: string
          nullable: true
          description: |-
            The room's accent colour, as a hex string, or null.

            Its cove colour — described in `shared/spatial/cosmetics.ts` as the single
            most character-defining knob a seller has. Sent so the HALL can use it: a
            seller who spends an afternoon choosing a colour should be able to
            recognise their own door in a directory, and customisation that stops at
            the walls of a room nobody has entered yet is customisation nobody sees.

            Null when the room has no cosmetics, which is most of them — the door then
            keeps its default plaque rather than inventing a colour.
        shopfront:
          type: string
          enum:
            - full
            - none
            - fascia
            - awning
            - neon_fascia
            - gilded_fascia
            - scalloped_awning
          nullable: true
          description: |-
            How this room's door presents itself in the hall — see SHOPFRONT_STYLES.

            Null is "the seller never chose", NOT "bare opening". The hall resolves
            null to `SHOPFRONT_DEFAULT`; `'none'` is the explicit bare opening. Those
            are different answers and collapsing them here would take away the only
            way to ask for a plain door.
        shopfrontColour:
          type: string
          nullable: true
          description: |-
            The awning's canvas colour as hex, or null. Distinct from accentColour:
            the cove lights the inside, this is fabric seen from the street.
        facade:
          type: string
          enum:
            - market
            - classic
            - modern
            - boutique
            - art_deco
            - victorian
            - brutalist
          nullable: true
          description: |-
            Which BUILDING this shop stands in — see FACADE_STYLES in shared.

            A different axis from `shopfront`: that dresses the doorway, this is the
            architecture the doorway is cut into. Both are sent because a seller picks
            both, and the street composes this with the size their stake bought.

            Null is "never chose", resolved to `FACADE_DEFAULT` by the renderer for
            the same reason `shopfront` is not resolved here — a server that filled in
            the default would make the stored value unreadable.
        signStyle:
          type: string
          enum:
            - painted
            - neon
            - gold_leaf
            - blade_sign
            - lightbox
          nullable: true
          description: How the name is lettered (shared shop-decor.ts SIGN_STYLES); null = painted.
        signFont:
          type: string
          enum:
            - classic
            - script
            - roman
            - condensed
            - slab
            - deco
            - brush
            - marker
          nullable: true
          description: The sign's typeface (shared sign-lettering.ts SIGN_FONTS); null = the style's own.
        windowMood:
          type: string
          enum:
            - none
            - party
            - warm
            - candle
            - cool
          nullable: true
          description: The street window's lighting preset (shared WINDOW_MOODS); null = none.
        occupants:
          type: number
          description: |-
            How many people are standing in this room RIGHT NOW.

            The single most metaverse-shaped number in this payload: a directory of
            rooms is a menu, and a directory that says somebody is already inside one
            is a place. `roomOccupancy` has been able to answer this since presence
            shipped — nothing asked it.

            Live, never stored: it comes from the socket table in `presence.ts`, so it
            cannot drift the way a counter column does, and it is 0 for every room on
            a process that holds no sockets for it.
        closed:
          type: boolean
          description: |-
            The shop is shut — the seller is on vacation.

            Sourced from `users.vacation_mode` / `vacation_ends_at` — Settings ›
            Vacation mode, the same flag checkout blocks new orders on
            (services/vacation/seller-vacation.ts, settings IA audit B3). The old
            `seller_profiles.vacation_mode` copy had no writer any client used.

            A closed room is still WALKABLE on purpose. Vacation pauses selling, it
            does not hide a collection, and a door that refuses to open is a worse
            answer than one that opens onto a shop with the shutter down — you can
            still look, you just cannot buy.
      required:
        - name
        - publicSlug
        - categorySlug
        - itemCount
        - forSaleCount
        - previewImages
        - visitorsWeek
        - occupants
        - closed
      additionalProperties: false
      nullable: true
      description: |-
        The shop standing here, when it is open to visitors. A shop that has
        gone private keeps its plot (and address) but shows shuttered.
    GetSpatialStreetResponseDataPlotsSponsored:
      type: object
      properties:
        slug:
          type: string
          description: "Buyer-page slug (the crossly platform listing id): /shop/<slug>."
        title:
          type: string
        priceCents:
          type: number
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - slug
        - title
      additionalProperties: false
      nullable: true
      description: A promoted listing on this vacant plot's hoarding (placements.ts).
    GetSponsoredAdBillingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseData"
      required:
        - data
      additionalProperties: false
    GetSponsoredAdBillingResponseData:
      type: object
      properties:
        grants:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataGrants"
        funds:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataFunds"
        account:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataAccount"
        charges:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataCharges"
        invoices:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataInvoices"
        boostFeesCents:
          type: number
        topUpPath:
          type: string
      required:
        - grants
        - funds
        - account
        - charges
        - invoices
        - boostFeesCents
        - topUpPath
      additionalProperties: false
    GetSponsoredAdBillingResponseDataAccount:
      type: object
      properties:
        snapshotAt:
          type: string
          nullable: true
        grantedCents:
          type: number
          nullable: true
        earnedCents:
          type: number
          nullable: true
        spendableCents:
          type: number
          description: Total headroom across the effective rails.
        unbilledCents:
          type: number
        availableCents:
          type: number
        cbxStatus:
          type: string
          enum:
            - live
            - not_set_up
        cashBalanceCents:
          type: number
        cashCreditCents:
          type: number
        cbxSpendableCents:
          type: number
        rails:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataAccountRails"
      required:
        - spendableCents
        - unbilledCents
        - availableCents
        - cbxStatus
        - cashBalanceCents
        - cashCreditCents
        - cbxSpendableCents
        - rails
      additionalProperties: false
    GetSponsoredAdBillingResponseDataAccountRails:
      type: object
      properties:
        setting:
          type: string
          enum:
            - both
            - cbx_only
            - cash_only
        cbxLive:
          type: boolean
        preference:
          type: string
          enum:
            - cash_first
            - cbx_first
        effective:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataAccountRailsEffectiveItem"
        showCbxNotLive:
          type: boolean
      required:
        - setting
        - cbxLive
        - preference
        - effective
        - showCbxNotLive
      additionalProperties: false
    GetSponsoredAdBillingResponseDataCharges:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - partial
            - pending
            - failed
            - paid
        requestedCents:
          type: number
        chargedCents:
          type: number
        writtenOffCents:
          type: number
        baseUnits:
          type: string
          nullable: true
        grantedBaseUnits:
          type: string
          nullable: true
        earnedBaseUnits:
          type: string
          nullable: true
        centsPerToken:
          type: number
          nullable: true
        error:
          type: string
          nullable: true
        createdAt:
          type: string
        settledAt:
          type: string
          nullable: true
      required:
        - id
        - status
        - requestedCents
        - chargedCents
        - writtenOffCents
        - createdAt
      additionalProperties: false
    GetSponsoredAdBillingResponseDataFunds:
      type: object
      properties:
        rails:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataFundsRails"
        cash:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataFundsCash"
        cbx:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataFundsCbx"
        unbilledCents:
          type: number
        availableCents:
          type: number
        snapshotAt:
          type: string
          nullable: true
        campaignsWaitingForFunds:
          type: number
        boostFeesCents:
          type: number
      required:
        - rails
        - unbilledCents
        - availableCents
        - campaignsWaitingForFunds
        - boostFeesCents
      additionalProperties: false
    GetSponsoredAdBillingResponseDataFundsCash:
      type: object
      properties:
        balanceCents:
          type: number
        creditCents:
          type: number
        autoTopup:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataFundsCashAutoTopup"
        paymentMethod:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataFundsCashPaymentMethod"
        refundableCents:
          type: number
        refundPolicy:
          type: string
      required:
        - balanceCents
        - creditCents
        - autoTopup
        - refundableCents
        - refundPolicy
      additionalProperties: false
      nullable: true
    GetSponsoredAdBillingResponseDataFundsCashAutoTopup:
      type: object
      properties:
        enabled:
          type: boolean
        thresholdCents:
          type: number
        amountCents:
          type: number
        lastError:
          type: string
          nullable: true
        failedAt:
          type: string
          nullable: true
      required:
        - enabled
        - thresholdCents
        - amountCents
      additionalProperties: false
    GetSponsoredAdBillingResponseDataFundsCashPaymentMethod:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - other
            - card
            - bank
        label:
          type: string
          description: '"Visa", "Chase" …'
        last4:
          type: string
          nullable: true
        expires:
          type: string
          nullable: true
      required:
        - id
        - kind
        - label
      additionalProperties: false
      nullable: true
    GetSponsoredAdBillingResponseDataFundsCbx:
      type: object
      properties:
        live:
          type: boolean
        spendableCents:
          type: number
      required:
        - live
        - spendableCents
      additionalProperties: false
      nullable: true
    GetSponsoredAdBillingResponseDataFundsRails:
      type: object
      properties:
        setting:
          type: string
          enum:
            - both
            - cbx_only
            - cash_only
        effective:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataFundsRailsEffectiveItem"
        cbxLive:
          type: boolean
        showCbxNotLive:
          type: boolean
        preference:
          type: string
          enum:
            - cash_first
            - cbx_first
        canChooseRailOrder:
          type: boolean
      required:
        - setting
        - effective
        - cbxLive
        - showCbxNotLive
        - preference
        - canChooseRailOrder
      additionalProperties: false
    GetSponsoredAdBillingResponseDataGrants:
      type: object
      properties:
        id:
          type: string
        baseUnits:
          type: string
        memo:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - baseUnits
        - createdAt
      additionalProperties: false
    GetSponsoredAdBillingResponseDataInvoices:
      type: object
      properties:
        day:
          type: string
        spendCents:
          type: number
        clicks:
          type: number
      required:
        - day
        - spendCents
        - clicks
      additionalProperties: false
    GetSponsoredAdBillingStatementResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSponsoredAdBillingStatementResponseData"
      required:
        - data
      additionalProperties: false
    GetSponsoredAdBillingStatementResponseData:
      type: object
      properties:
        number:
          type: string
        month:
          type: string
        openingCents:
          type: number
        closingCents:
          type: number
        topups:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdBillingStatementResponseDataTopups"
        spendByCampaign:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdBillingStatementResponseDataSpendByCampaign"
        charges:
          $ref: "#/components/schemas/GetSponsoredAdBillingStatementResponseDataCharges"
        creditsCents:
          type: number
        refundsCents:
          type: number
        boostFeesCents:
          type: number
      required:
        - number
        - month
        - openingCents
        - closingCents
        - topups
        - spendByCampaign
        - charges
        - creditsCents
        - refundsCents
        - boostFeesCents
      additionalProperties: false
    GetSponsoredAdBillingStatementResponseDataCharges:
      type: object
      properties:
        cashCents:
          type: number
        creditCents:
          type: number
        cbxCents:
          type: number
        writtenOffCents:
          type: number
      required:
        - cashCents
        - creditCents
        - cbxCents
        - writtenOffCents
      additionalProperties: false
    GetSponsoredAdBillingStatementResponseDataSpendByCampaign:
      type: object
      properties:
        campaign:
          type: string
        clicks:
          type: number
        spendCents:
          type: number
      required:
        - campaign
        - clicks
        - spendCents
      additionalProperties: false
    GetSponsoredAdBillingStatementResponseDataTopups:
      type: object
      properties:
        at:
          type: string
        amountCents:
          type: number
        receiptNumber:
          type: string
          nullable: true
        trigger:
          type: string
      required:
        - at
        - amountCents
        - trigger
      additionalProperties: false
    GetSponsoredAdFundResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSponsoredAdBillingResponseDataFunds"
      required:
        - data
      additionalProperties: false
    GetSponsoredAdReportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetSponsoredAdReportResponseData"
      required:
        - data
      additionalProperties: false
    GetSponsoredAdReportResponseData:
      type: object
      properties:
        range:
          $ref: "#/components/schemas/CreateListingTagRenameRequest"
        totals:
          $ref: "#/components/schemas/SponsoredAdCampaignResponseDataStats"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdReportResponseDataDaily"
        campaigns:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdReportResponseDataCampaignsItem"
        catalogs:
          type: array
          items:
            $ref: "#/components/schemas/GetSponsoredAdReportResponseDataCatalogs"
          description: "Per boosted catalog: impressions, clicks, spend, attributed trade orders and revenue, CTR and ROAS."
      required:
        - range
        - totals
        - daily
        - campaigns
        - catalogs
      additionalProperties: false
    GetSponsoredAdReportResponseDataCatalogs:
      type: object
      properties:
        spendCents:
          type: number
        impressions:
          type: number
        clicks:
          type: number
        ctr:
          type: number
          description: clicks / impressions, 0..1
        avgCpcCents:
          type: number
          description: spend / clicks, cents
        orders:
          type: number
        revenueCents:
          type: number
        roas:
          type: number
          nullable: true
          description: revenue / spend; null with no spend
        campaignId:
          type: string
        campaignName:
          type: string
        catalogId:
          type: string
        catalogName:
          type: string
        catalogSlug:
          type: string
          nullable: true
      required:
        - spendCents
        - impressions
        - clicks
        - ctr
        - avgCpcCents
        - orders
        - revenueCents
        - campaignId
        - campaignName
        - catalogId
        - catalogName
      additionalProperties: false
    GetSponsoredAdReportResponseDataDaily:
      type: object
      properties:
        spendCents:
          type: number
        impressions:
          type: number
        clicks:
          type: number
        ctr:
          type: number
          description: clicks / impressions, 0..1
        avgCpcCents:
          type: number
          description: spend / clicks, cents
        orders:
          type: number
        revenueCents:
          type: number
        roas:
          type: number
          nullable: true
          description: revenue / spend; null with no spend
        day:
          type: string
      required:
        - spendCents
        - impressions
        - clicks
        - ctr
        - avgCpcCents
        - orders
        - revenueCents
        - day
      additionalProperties: false
    GetStallBookingCounterResponse:
      type: object
      properties:
        bookingId:
          type: string
        street:
          type: string
        capacity:
          type: number
        boothKind:
          type: string
          enum:
            - cart
            - booth
            - pavilion
        listings:
          type: array
          items:
            $ref: "#/components/schemas/ListStallListingSearchItem"
      required:
        - bookingId
        - street
        - capacity
        - boothKind
        - listings
      additionalProperties: false
    GetStallQuoteResponse:
      type: object
      properties:
        quote:
          $ref: "#/components/schemas/GetStallQuoteResponseQuote"
      required:
        - quote
      additionalProperties: false
    GetStallQuoteResponseQuote:
      type: object
      properties:
        street:
          type: string
        spotIndex:
          type: number
        owner:
          $ref: "#/components/schemas/GetStallQuoteResponseQuoteOwner"
        open:
          type: boolean
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetStallQuoteResponseQuoteUnits"
        quote:
          $ref: "#/components/schemas/CreateStallBookResponseBookingQuote"
        rails:
          type: array
          items:
            $ref: "#/components/schemas/GetStallQuoteResponseQuoteRailsItem"
        boothKind:
          type: string
          enum:
            - cart
            - booth
            - pavilion
        capacity:
          type: number
        bookable:
          type: boolean
        unbookableReason:
          type: string
          nullable: true
      required:
        - street
        - spotIndex
        - owner
        - open
        - units
        - quote
        - rails
        - boothKind
        - capacity
        - bookable
      additionalProperties: false
    GetStallQuoteResponseQuoteOwner:
      type: object
      properties:
        kind:
          type: string
          enum:
            - platform
            - plot
            - street
        isCrossly:
          type: boolean
      required:
        - kind
        - isCrossly
      additionalProperties: false
    GetStallQuoteResponseQuoteUnits:
      type: object
      properties:
        key:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        cents:
          type: number
      required:
        - key
        - startsAt
        - endsAt
        - cents
      additionalProperties: false
    GetStallStreetAerialResponse:
      type: object
      properties:
        street:
          $ref: "#/components/schemas/GetStallStreetAerialResponseStreet"
        from:
          type: string
        days:
          type: array
          items:
            $ref: "#/components/schemas/GetStallStreetAerialResponseDays"
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetStallStreetAerialResponseEvents"
        layouts:
          type: object
          additionalProperties: {}
        links:
          $ref: "#/components/schemas/GetStallStreetAerialResponseLinks"
      required:
        - street
        - from
        - days
        - events
        - layouts
        - links
      additionalProperties: false
    GetStallStreetAerialResponseDays:
      type: object
      properties:
        date:
          type: string
        key:
          type: string
        layout:
          type: string
        taken:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - date
        - key
        - layout
        - taken
      additionalProperties: false
    GetStallStreetAerialResponseEvents:
      type: object
      properties:
        eventId:
          type: string
        kind:
          type: string
          enum:
            - night_market
            - swap_meet
        label:
          type: string
        title:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        layout:
          type: string
          enum:
            - night_market
            - swap_meet
        taken:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - eventId
        - kind
        - label
        - title
        - startsAt
        - endsAt
        - layout
        - taken
      additionalProperties: false
    GetStallStreetAerialResponseLinks:
      type: object
      properties:
        app:
          type: string
        web:
          type: string
      required:
        - app
        - web
      additionalProperties: false
      description: '"Go to street": the Worlds app first, the web world as the fallback.'
    GetStallStreetAerialResponseStreet:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        platform:
          type: boolean
        span:
          type: number
      required:
        - slug
        - name
        - platform
        - span
      additionalProperties: false
    GetStockxCatalogResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetStockxCatalogResponseData"
        hasNextPage:
          type: boolean
      required:
        - data
        - hasNextPage
      additionalProperties: false
    GetStockxCatalogResponseData:
      type: object
      properties:
        productId:
          type: string
        title:
          type: string
        brand:
          type: string
          nullable: true
        styleId:
          type: string
          nullable: true
        productType:
          type: string
          nullable: true
        urlKey:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - productId
        - title
      additionalProperties: false
    GetStockxCatalogVariantMarketDataResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetStockxCatalogVariantMarketDataResponseData"
      required:
        - data
      additionalProperties: false
    GetStockxCatalogVariantMarketDataResponseData:
      type: object
      properties:
        currencyCode:
          type: string
        lowestAsk:
          type: number
          nullable: true
        highestBid:
          type: number
          nullable: true
        sellFaster:
          type: number
          nullable: true
        earnMore:
          type: number
          nullable: true
      required:
        - currencyCode
      additionalProperties: false
    GetStorefrontMerchResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetStorefrontMerchResponseData"
      required:
        - data
      additionalProperties: false
    GetStorefrontMerchResponseData:
      type: object
      properties:
        tags:
          type: array
          items:
            $ref: "#/components/schemas/ListListingTagsItem"
        categories:
          type: array
          items:
            $ref: "#/components/schemas/GetStorefrontMerchResponseDataCategories"
        conditions:
          type: array
          items:
            $ref: "#/components/schemas/GetStorefrontMerchResponseDataConditions"
        brands:
          type: array
          items:
            $ref: "#/components/schemas/GetStorefrontMerchResponseDataBrands"
        priceRangeCents:
          $ref: "#/components/schemas/GetStorefrontMerchResponseDataPriceRangeCents"
        listingCount:
          type: number
      required:
        - tags
        - categories
        - conditions
        - brands
        - listingCount
      additionalProperties: false
    GetStorefrontMerchResponseDataBrands:
      type: object
      properties:
        brand:
          type: string
        count:
          type: number
      required:
        - brand
        - count
      additionalProperties: false
    GetStorefrontMerchResponseDataCategories:
      type: object
      properties:
        main:
          type: string
        sub:
          type: string
          nullable: true
        count:
          type: number
      required:
        - main
        - count
      additionalProperties: false
    GetStorefrontMerchResponseDataConditions:
      type: object
      properties:
        condition:
          type: string
        count:
          type: number
      required:
        - condition
        - count
      additionalProperties: false
    GetStorefrontMerchResponseDataPriceRangeCents:
      type: object
      properties:
        min:
          type: number
        max:
          type: number
      required:
        - min
        - max
      additionalProperties: false
      nullable: true
    GetStorefrontOnboardingResponse:
      type: object
      properties:
        hasStore:
          type: boolean
        storefront:
          $ref: "#/components/schemas/GetStorefrontOnboardingResponseStorefront"
        suggestedName:
          type: string
          description: The name/slug a skip (or "+ New store") would use right now.
        suggestedSlug:
          type: string
        nameAuto:
          type: boolean
          description: True when the current (or suggested) name is a generated one.
        steps:
          type: array
          items:
            $ref: "#/components/schemas/GetStorefrontOnboardingResponseSteps"
        requirements:
          $ref: "#/components/schemas/GetStorefrontOnboardingResponseRequirements"
        payoutsReady:
          type: boolean
        liveListingCount:
          type: number
        publicPath:
          type: string
          nullable: true
          description: "`/shop/s/<slug>` once the store is public (live + ≥1 live listing), else null."
      required:
        - hasStore
        - suggestedName
        - suggestedSlug
        - nameAuto
        - steps
        - requirements
        - payoutsReady
        - liveListingCount
      additionalProperties: false
    GetStorefrontOnboardingResponseRequirements:
      type: object
      properties:
        ok:
          type: boolean
        missing:
          type: array
          items:
            $ref: "#/components/schemas/GetStorefrontOnboardingResponseRequirementsMissingItem"
        fix:
          type: object
          additionalProperties: {}
      required:
        - ok
        - missing
        - fix
      additionalProperties: false
      description: The listing gate, so the wizard and the inline "finish setup" panel agree.
    GetStorefrontOnboardingResponseSteps:
      type: object
      properties:
        key:
          type: string
          enum:
            - name
            - payouts
            - publish
            - look
            - shipping_returns
            - first_listing
          x-enum-varnames:
            - nameOption
            - payouts
            - publish
            - look
            - shipping_returns
            - first_listing
        done:
          type: boolean
        skippable:
          type: boolean
          description: Always true — no step is required (design decision).
        path:
          type: string
          description: Where the hub fixes/does this step.
      required:
        - key
        - done
        - skippable
        - path
      additionalProperties: false
    GetStorefrontOnboardingResponseStorefront:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - draft
            - live
            - paused
            - archived
        isDefault:
          type: boolean
        ownerUserId:
          type: string
        slug:
          type: string
        nameAuto:
          type: boolean
        onboardedAt:
          type: string
          format: date-time
          nullable: true
        currency:
          type: string
          nullable: true
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - status
        - isDefault
        - ownerUserId
        - slug
        - nameAuto
      additionalProperties: false
      nullable: true
    GetStorefrontPolicyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseDataStorePolicies"
      required:
        - data
      additionalProperties: false
    GetStorefrontProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetStorefrontProfileResponseData"
      required:
        - data
      additionalProperties: false
    GetStorefrontProfileResponseData:
      type: object
      properties:
        profile:
          $ref: "#/components/schemas/GetStorefrontProfileResponseDataProfile"
      required:
        - profile
      additionalProperties: false
    GetStorefrontProfileResponseDataProfile:
      type: object
      properties:
        version:
          type: number
        bannerImageUrl:
          type: string
          nullable: true
        logoImageUrl:
          type: string
          nullable: true
        tagline:
          type: string
        bio:
          type: string
        accent:
          type: string
          description: "One of PROFILE_ACCENTS: tints the banner fallback, the follow button and shelf headings only."
        announcement:
          $ref: "#/components/schemas/GetStorefrontProfileResponseDataProfileAnnouncement"
        shelves:
          type: array
          items:
            $ref: "#/components/schemas/GetStorefrontProfileResponseDataProfileShelves"
          description: Product shelves shown above "All items" (max 6).
        blocks:
          type: array
          items:
            $ref: "#/components/schemas/GetStorefrontProfileResponseDataProfileBlocks"
          description: Which standard blocks show, in this order.
        allItems:
          $ref: "#/components/schemas/GetStorefrontProfileResponseDataProfileAllItems"
        linkWebsite:
          type: boolean
          description: Whether "Visit our website" links to the site (only when the site is published).
      required:
        - version
        - tagline
        - bio
        - accent
        - announcement
        - shelves
        - blocks
        - allItems
        - linkWebsite
      additionalProperties: false
    GetStorefrontProfileResponseDataProfileAllItems:
      type: object
      properties:
        sort:
          type: string
          enum:
            - manual
            - title
            - newest
            - popular
            - price_asc
            - price_desc
        showTagFilters:
          type: boolean
        showCategoryFilters:
          type: boolean
        programChips:
          type: array
          items:
            $ref: "#/components/schemas/GetStorefrontProfileResponseDataProfileAllItemsProgramChipsItem"
          nullable: true
      required:
        - sort
        - showTagFilters
        - showCategoryFilters
      additionalProperties: false
      description: |-
        "All items" default sort and the filter chips (store's tags, categories, and the program chips buyers can
        narrow by: group buys, rentals, wholesale… — `?f=` on the listings route; absent = DEFAULT_PROGRAM_CHIPS).
    GetStorefrontProfileResponseDataProfileAnnouncement:
      type: object
      properties:
        enabled:
          type: boolean
        text:
          type: string
      required:
        - enabled
        - text
      additionalProperties: false
    GetStorefrontProfileResponseDataProfileBlocks:
      type: object
      properties:
        kind:
          type: string
          enum:
            - events
            - shelves
            - about
            - reviews
            - club
            - policies
            - lookbooks
            - highlights
            - catalogs
        visible:
          type: boolean
      required:
        - kind
        - visible
      additionalProperties: false
    GetStorefrontProfileResponseDataProfileShelves:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        source:
          type: object
          additionalProperties: {}
        layout:
          type: string
          enum:
            - rail
            - grid
      required:
        - id
        - title
        - source
        - layout
      additionalProperties: false
    GetStorefrontRequirementResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetStorefrontOnboardingResponseRequirements"
      required:
        - data
      additionalProperties: false
    GetStorefrontResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetStorefrontResponseData"
      required:
        - data
      additionalProperties: false
    GetStorefrontResponseData:
      type: object
      properties:
        bannerImageUrl:
          type: string
          nullable: true
        logoImageUrl:
          type: string
          nullable: true
        tagline:
          type: string
          nullable: true
        bio:
          type: string
          nullable: true
        theme:
          $ref: "#/components/schemas/GetStorefrontResponseDataTheme"
        seoTitle:
          type: string
          nullable: true
        seoDescription:
          type: string
          nullable: true
        socialLinks:
          $ref: "#/components/schemas/GetStorefrontResponseDataSocialLinks"
        published:
          type: boolean
        publishedAt:
          type: string
          nullable: true
        customDomain:
          type: string
          nullable: true
        customDomainVerifiedAt:
          type: string
          nullable: true
      required:
        - published
      additionalProperties: false
    GetStorefrontResponseDataSocialLinks:
      type: object
      properties:
        facebook:
          type: string
          nullable: true
        website:
          type: string
          nullable: true
        x:
          type: string
          nullable: true
        instagram:
          type: string
          nullable: true
        tiktok:
          type: string
          nullable: true
        youtube:
          type: string
          nullable: true
        pinterest:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
    GetStorefrontResponseDataTheme:
      type: object
      properties:
        primaryColor:
          type: string
          nullable: true
        accentColor:
          type: string
          nullable: true
        backgroundColor:
          type: string
          nullable: true
        textColor:
          type: string
          nullable: true
        font:
          type: string
          enum:
            - system
            - rounded
            - display
            - mono
            - serif
          nullable: true
        density:
          type: string
          enum:
            - compact
            - comfortable
            - spacious
          nullable: true
        buttonStyle:
          type: string
          enum:
            - square
            - pill
            - rounded
          nullable: true
      additionalProperties: false
      nullable: true
    GetStorefrontSettingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseData"
      additionalProperties: false
    GetStorefrontShippingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetStorefrontShippingResponseData"
      required:
        - data
      additionalProperties: false
    GetStorefrontShippingResponseData:
      type: object
      properties:
        shippingPolicy:
          type: object
          nullable: true
          description: |-
            The shipping policy buyers get on a listing with no explicit preset — the
            seller's resolved default (services/policies/resolve.ts) — or null when
            there is none (Crossly's $5/item default applies).
          additionalProperties: {}
        shippingPolicySummary:
          $ref: "#/components/schemas/SummaryIncomplete"
        shipFrom:
          $ref: "#/components/schemas/GetStorefrontShippingResponseDataShipFrom"
      required:
        - shippingPolicySummary
      additionalProperties: false
    GetStorefrontShippingResponseDataShipFrom:
      type: object
      properties:
        fullName:
          type: string
        company:
          type: string
          nullable: true
        street1:
          type: string
        street2:
          type: string
          nullable: true
        city:
          type: string
        state:
          type: string
        zip:
          type: string
        country:
          type: string
        phone:
          type: string
          nullable: true
      required:
        - fullName
        - street1
        - city
        - state
        - zip
        - country
      additionalProperties: false
      nullable: true
      description: The default ship-from address, or null. Its country decides what counts as domestic.
    GetStorefrontSlugAvailableResponse:
      type: object
      properties:
        slug:
          type: string
        available:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - slug
        - available
      additionalProperties: false
    GetStyleResponse:
      type: object
      properties:
        styles:
          type: array
          items:
            type: string
      required:
        - styles
      additionalProperties: false
    GetTaxSalesTaxResponse:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
        notCollected:
          type: array
          items:
            $ref: "#/components/schemas/GetTaxSalesTaxResponseNotCollected"
        totals:
          $ref: "#/components/schemas/GetTaxSalesTaxResponseTotals"
        crosslyCollectsIn:
          $ref: "#/components/schemas/GetTaxSalesTaxResponseCrosslyCollectsIn"
        helpPath:
          type: string
      required:
        - from
        - to
        - notCollected
        - totals
        - crosslyCollectsIn
        - helpPath
      additionalProperties: false
    GetTaxSalesTaxResponseCrosslyCollectsIn:
      type: object
      properties:
        jurisdictions:
          type: array
          items:
            type: string
        registrations:
          type: array
          items:
            $ref: "#/components/schemas/ListTaxCrosslyCollectsItem"
        refreshedAt:
          type: string
          nullable: true
      required:
        - jurisdictions
        - registrations
      additionalProperties: false
    GetTaxSalesTaxResponseNotCollected:
      type: object
      properties:
        country:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        jurisdiction:
          type: string
          nullable: true
        reason:
          type: string
          enum:
            - unavailable
            - not_registered
            - exempt
            - not_taxable
            - cross_border
          nullable: true
        mayOwe:
          type: boolean
        saleCount:
          type: number
        grossCents:
          type: number
        shippingCents:
          type: number
        firstSaleAt:
          type: string
        lastSaleAt:
          type: string
      required:
        - mayOwe
        - saleCount
        - grossCents
        - shippingCents
        - firstSaleAt
        - lastSaleAt
      additionalProperties: false
    GetTaxSalesTaxResponseTotals:
      type: object
      properties:
        saleCount:
          type: number
        notCollectedSaleCount:
          type: number
        mayOweSaleCount:
          type: number
        mayOweGrossCents:
          type: number
        collectedSaleCount:
          type: number
        collectedTaxCents:
          type: number
      required:
        - saleCount
        - notCollectedSaleCount
        - mayOweSaleCount
        - mayOweGrossCents
        - collectedSaleCount
        - collectedTaxCents
      additionalProperties: false
    GetTaxScheduleCResponse:
      type: object
      properties:
        year:
          type: number
        businessName:
          type: string
          nullable: true
        ein:
          type: string
          nullable: true
        address:
          type: string
          nullable: true
        grossReceipts:
          type: number
        returnsAndAllowances:
          type: number
        netSales:
          type: number
        expenses:
          $ref: "#/components/schemas/GetTaxScheduleCResponseExpenses"
        totalExpenses:
          type: number
          description: "Line 28. Part II only: cost of goods is line 4, not an expense."
        netProfit:
          type: number
          description: Line 31.
        partII:
          type: array
          items:
            $ref: "#/components/schemas/GetTaxScheduleCResponsePartII"
          description: Part II, only lines with an amount, in form order.
        partIII:
          $ref: "#/components/schemas/GetTaxScheduleCResponsePartIII"
        cents:
          $ref: "#/components/schemas/GetTaxScheduleCResponseCents"
        counts:
          $ref: "#/components/schemas/GetTaxScheduleCResponseCounts"
      required:
        - year
        - grossReceipts
        - returnsAndAllowances
        - netSales
        - expenses
        - totalExpenses
        - netProfit
        - partII
        - partIII
        - cents
        - counts
      additionalProperties: false
    GetTaxScheduleCResponseCents:
      type: object
      properties:
        line1:
          type: number
        line2:
          type: number
        line3:
          type: number
        line4:
          type: number
        line5:
          type: number
        line28:
          type: number
        line31:
          type: number
      required:
        - line1
        - line2
        - line3
        - line4
        - line5
        - line28
        - line31
      additionalProperties: false
      description: The same figures in integer cents.
    GetTaxScheduleCResponseCounts:
      type: object
      properties:
        sales:
          type: number
        refunds:
          type: number
        mileageEntries:
          type: number
      required:
        - sales
        - refunds
        - mileageEntries
      additionalProperties: false
    GetTaxScheduleCResponseExpenses:
      type: object
      properties:
        platformFees:
          type: number
        shippingExpenses:
          type: number
        costOfGoodsSold:
          type: number
        carAndTruckMileage:
          type: number
        carAndTruckMiles:
          type: number
        otherExpenses:
          type: number
          description: Every manual expense category (EXPENSE_CATEGORIES), deductible amounts.
      required:
        - platformFees
        - shippingExpenses
        - costOfGoodsSold
        - carAndTruckMileage
        - carAndTruckMiles
        - otherExpenses
      additionalProperties: false
    GetTaxScheduleCResponsePartII:
      type: object
      properties:
        line:
          type: string
        label:
          type: string
        amount:
          type: number
        parts:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: What makes up the line (e.g. "Marketplace fees", "Postage and shipping labels").
      required:
        - line
        - label
        - amount
        - parts
      additionalProperties: false
    GetTaxScheduleCResponsePartIII:
      type: object
      properties:
        line35BeginningInventory:
          type: number
          nullable: true
        line36Purchases:
          type: number
        line41EndingInventory:
          type: number
          nullable: true
        line42CostOfGoodsSold:
          type: number
          description: "What the books deduct: Σ cost of goods of the sales."
        derivedCostOfGoodsSold:
          type: number
          nullable: true
          description: Lines 35 + 36 − 41 when both snapshots exist, for comparison.
        soldWithoutCost:
          type: number
        snapshotCoverage:
          $ref: "#/components/schemas/GetBookResponseDataCogsDetailSnapshotCoverage"
      required:
        - line36Purchases
        - line42CostOfGoodsSold
        - soldWithoutCost
        - snapshotCoverage
      additionalProperties: false
      description: "Part III: lines 35, 36, 41, 42 (null = unknown, never 0). Line 4 = line42CostOfGoodsSold."
    GetTaxonomyCategoryAspectResponse:
      type: object
      properties:
        aspects:
          type: array
          items:
            $ref: "#/components/schemas/GetTaxonomyCategoryAspectResponseAspects"
      required:
        - aspects
      additionalProperties: false
    GetTaxonomyCategoryAspectResponseAspects:
      type: object
      properties:
        name:
          type: string
        dataType:
          type: string
          description: "'STRING' | 'NUMBER' | 'DATE' — eBay's dataType per aspect."
        enumValues:
          type: array
          items:
            type: string
          nullable: true
        required:
          type: boolean
        variesByAspect:
          type: boolean
          nullable: true
        maxLength:
          type: number
          nullable: true
          description: Helpful for client validation — max length when supplied.
        cardinality:
          type: string
          description: Cardinality — SINGLE_VALUE / MULTIPLE_VALUES.
        selectionOnly:
          type: boolean
      required:
        - name
        - dataType
        - required
        - cardinality
        - selectionOnly
      additionalProperties: false
    GetTaxonomyCategoryChildrenResponse:
      type: object
      properties:
        children:
          type: array
          items:
            $ref: "#/components/schemas/GetTaxonomyCategoryChildrenResponseChildren"
      required:
        - children
      additionalProperties: false
    GetTaxonomyCategoryChildrenResponseChildren:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        leaf:
          type: boolean
        parentId:
          type: string
          nullable: true
        path:
          type: string
          nullable: true
          description: |-
            Root-first ancestor path including the leaf, when the caller supplied
            it. Suggestions carry it; the tree walk does not.
      required:
        - id
        - label
        - leaf
      additionalProperties: false
    GetTaxonomyCategoryResponse:
      type: object
      properties:
        categories:
          type: array
          items:
            $ref: "#/components/schemas/GetTaxonomyCategoryChildrenResponseChildren"
      required:
        - categories
      additionalProperties: false
    GetTaxonomyRequiredFieldResponse:
      type: object
      properties:
        platform:
          type: string
          enum:
            - ebay
            - etsy
            - poshmark
            - mercari
            - facebook
            - depop
            - grailed
            - vinted
            - whatnot
            - vestiaire
            - offerup
            - curtsy
        requiredFields:
          type: array
          items:
            $ref: "#/components/schemas/GetTaxonomyRequiredFieldResponseRequiredFields"
        inlineAspects:
          type: array
          items:
            $ref: "#/components/schemas/GetTaxonomyRequiredFieldResponseInlineAspects"
      required:
        - platform
        - requiredFields
        - inlineAspects
      additionalProperties: false
    GetTaxonomyRequiredFieldResponseInlineAspects:
      type: object
      properties:
        selectionOnly:
          type: boolean
      required:
        - selectionOnly
      additionalProperties: false
    GetTaxonomyRequiredFieldResponseRequiredFields:
      type: object
      properties:
        dataType:
          type: string
          enum:
            - STRING
            - NUMBER
            - BOOLEAN
        enumValues:
          type: array
          items:
            type: string
          nullable: true
        label:
          type: string
        key:
          type: string
        hint:
          type: string
          nullable: true
        required:
          type: boolean
        master:
          type: boolean
        selectionOnly:
          type: boolean
      required:
        - dataType
        - label
        - key
        - required
        - master
        - selectionOnly
      additionalProperties: false
    GetTcgCreatorGameCollectionResponse:
      type: object
      properties:
        data:
          type: object
          additionalProperties:
            type: number
      required:
        - data
      additionalProperties: false
    GetTcgCreatorGamePopularityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTcgCreatorGamePopularityResponseData"
      additionalProperties: false
    GetTcgCreatorGamePopularityResponseData:
      type: object
      properties:
        holders:
          type: number
          description: Distinct people holding at least one live copy of a card in the set.
        packsOpened:
          type: number
          description: Packs bought with COSM and opened.
        resales:
          type: number
          description: Single cards resold between players.
        progress:
          type: number
        passed:
          type: boolean
        why:
          type: string
          nullable: true
      required:
        - holders
        - packsOpened
        - resales
        - progress
        - passed
      additionalProperties: false
      nullable: true
    GetTcgCreatorGamePrintResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTcgCreatorGamePrintResponseData"
      required:
        - data
      additionalProperties: false
    GetTcgCreatorGamePrintResponseData:
      type: object
      properties:
        game:
          type: string
        name:
          type: string
        version:
          type: number
          nullable: true
        liveVersion:
          type: number
          nullable: true
        files:
          $ref: "#/components/schemas/GetTcgCreatorGamePrintResponseDataFiles"
      required:
        - game
        - name
        - files
      additionalProperties: false
    GetTcgCreatorGamePrintResponseDataFiles:
      type: object
      properties:
        set:
          type: string
        sheet:
          type: string
        proof:
          type: string
      required:
        - set
        - sheet
        - proof
      additionalProperties: false
    GetTcgCreatorGameResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTcgCreatorGameResponseData"
      required:
        - data
      additionalProperties: false
    GetTcgCreatorGameResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        version:
          type: string
        set:
          $ref: "#/components/schemas/CodeName"
        description:
          type: string
        minutes:
          type: number
        rating:
          type: string
          enum:
            - everyone
            - teen
        frame:
          $ref: "#/components/schemas/GetTcgCreatorGameResponseDataFrame"
        cosm:
          $ref: "#/components/schemas/CreatorCardSetResponseDataDraftCosm"
        thumbUrl:
          type: string
          nullable: true
        cards:
          type: array
          items:
            $ref: "#/components/schemas/GetTcgCreatorGameResponseDataCards"
      required:
        - id
        - name
        - version
        - set
        - description
        - minutes
        - rating
        - cosm
        - cards
      additionalProperties: false
    GetTcgCreatorGameResponseDataCards:
      type: object
      properties:
        art:
          type: string
          nullable: true
        id:
          type: string
          description: "`<set>-<slug>`, lowercase. Stable forever (it names the NFT)."
        set:
          type: string
          description: Set code, e.g. `GH1`.
        no:
          type: number
          description: Collector number within the set.
        name:
          type: string
        type:
          type: string
          description: Game-defined type (hunter, move, ...).
        rarity:
          type: string
          enum:
            - common
            - uncommon
            - rare
            - legendary
        faction:
          type: string
          nullable: true
          description: Faction / colour / house, when the game has them.
        text:
          type: array
          items:
            type: string
          description: Rules text, one line per paragraph -- what the card frame prints.
        flavor:
          type: string
          nullable: true
          description: Flavour line, optional.
        data:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - id
        - set
        - no
        - name
        - type
        - rarity
        - text
      additionalProperties: false
    GetTcgCreatorGameResponseDataFrame:
      type: object
      properties:
        accent:
          type: string
        ink:
          type: string
      required:
        - accent
        - ink
      additionalProperties: false
      nullable: true
    GetTcgCreatorGameShelfResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTcgCreatorGameShelfResponseData"
      required:
        - data
      additionalProperties: false
    GetTcgCreatorGameShelfResponseData:
      type: object
      properties:
        pack:
          $ref: "#/components/schemas/GetTcgCreatorGameShelfResponseDataPack"
        cards:
          type: array
          items:
            $ref: "#/components/schemas/GetTcgCreatorGameShelfResponseDataCards"
      required:
        - cards
      additionalProperties: false
    GetTcgCreatorGameShelfResponseDataCards:
      type: object
      properties:
        designId:
          type: string
        name:
          type: string
        priceBaseUnits:
          type: string
        maxSupply:
          type: number
          nullable: true
        minted:
          type: number
        active:
          type: boolean
        imageUrl:
          type: string
          nullable: true
        cardId:
          type: string
        rarity:
          type: string
          enum:
            - common
            - uncommon
            - rare
            - legendary
      required:
        - designId
        - name
        - priceBaseUnits
        - minted
        - active
        - cardId
        - rarity
      additionalProperties: false
    GetTcgCreatorGameShelfResponseDataPack:
      type: object
      properties:
        designId:
          type: string
        name:
          type: string
        priceBaseUnits:
          type: string
        maxSupply:
          type: number
          nullable: true
        minted:
          type: number
        active:
          type: boolean
        imageUrl:
          type: string
          nullable: true
      required:
        - designId
        - name
        - priceBaseUnits
        - minted
        - active
      additionalProperties: false
      nullable: true
    GetTcgLadderMeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTcgLadderMeResponseData"
      required:
        - data
      additionalProperties: false
    GetTcgLadderMeResponseData:
      type: object
      properties:
        place:
          type: number
          nullable: true
        queued:
          $ref: "#/components/schemas/GetTcgLadderMeResponseDataQueued"
        season:
          type: string
        rating:
          type: number
        peak:
          type: number
        tier:
          type: string
        tierName:
          type: string
        games:
          type: number
        wins:
          type: number
        losses:
          type: number
        draws:
          type: number
      required:
        - season
        - rating
        - peak
        - tier
        - tierName
        - games
        - wins
        - losses
        - draws
      additionalProperties: false
    GetTcgLadderMeResponseDataQueued:
      type: object
      properties:
        since:
          type: string
        deckId:
          type: string
      required:
        - since
        - deckId
      additionalProperties: false
      nullable: true
    GetTcgLadderResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTcgLadderResponseData"
      required:
        - data
      additionalProperties: false
    GetTcgLadderResponseData:
      type: object
      properties:
        season:
          type: string
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetTcgLadderResponseDataRows"
      required:
        - season
        - rows
      additionalProperties: false
    GetTcgLadderResponseDataRows:
      type: object
      properties:
        season:
          type: string
        rating:
          type: number
        peak:
          type: number
        tier:
          type: string
        tierName:
          type: string
        games:
          type: number
        wins:
          type: number
        losses:
          type: number
        draws:
          type: number
        place:
          type: number
        name:
          type: string
      required:
        - season
        - rating
        - peak
        - tier
        - tierName
        - games
        - wins
        - losses
        - draws
        - place
        - name
      additionalProperties: false
    GetTcgMatchResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTcgMatchResponseData"
      required:
        - data
      additionalProperties: false
    GetTcgMatchResponseData:
      type: object
      properties:
        mine:
          type: array
          items:
            $ref: "#/components/schemas/GetTcgMatchResponseDataMine"
        open:
          type: array
          items:
            $ref: "#/components/schemas/GetTcgMatchResponseDataOpen"
      required:
        - mine
        - open
      additionalProperties: false
    GetTcgMatchResponseDataMine:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        vsBot:
          type: boolean
        ranked:
          type: boolean
        tournamentId:
          type: string
          nullable: true
        winner:
          type: number
          nullable: true
        ended:
          type: string
          nullable: true
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - status
        - vsBot
        - ranked
        - updatedAt
      additionalProperties: false
    GetTcgMatchResponseDataOpen:
      type: object
      properties:
        id:
          type: string
        seat0:
          type: string
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - seat0
        - createdAt
      additionalProperties: false
    GetTcgMeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTcgMeResponseData"
      required:
        - data
      additionalProperties: false
    GetTcgMeResponseData:
      type: object
      properties:
        starter:
          type: string
          nullable: true
        collection:
          type: object
          additionalProperties: {}
        decks:
          type: array
          items:
            $ref: "#/components/schemas/CreateTcgDeckResponseData"
        packs:
          type: array
          items:
            $ref: "#/components/schemas/GetTcgMeResponseDataPacks"
      required:
        - collection
        - decks
        - packs
      additionalProperties: false
    GetTcgMeResponseDataPacks:
      type: object
      properties:
        id:
          type: string
        reason:
          type: string
        cards:
          type: array
          items:
            type: string
          nullable: true
        openedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - reason
        - createdAt
      additionalProperties: false
    GetTcgPrintResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTcgPrintResponseData"
      required:
        - data
      additionalProperties: false
    GetTcgPrintResponseData:
      type: object
      properties:
        game:
          type: string
        cards:
          type: number
        sheets:
          type: number
        trimMm:
          $ref: "#/components/schemas/WH"
        bleedMm:
          type: number
        safeMm:
          type: number
        files:
          $ref: "#/components/schemas/GetTcgPrintResponseDataFiles"
      required:
        - game
        - cards
        - sheets
        - trimMm
        - bleedMm
        - safeMm
        - files
      additionalProperties: false
    GetTcgPrintResponseDataFiles:
      type: object
      properties:
        proof:
          type: string
        proofTemplate:
          type: string
        sheetLetter:
          type: string
        sheetA4:
          type: string
        set:
          type: string
        cardSvgTemplate:
          type: string
        back:
          type: string
      required:
        - proof
        - proofTemplate
        - sheetLetter
        - sheetA4
        - set
        - cardSvgTemplate
        - back
      additionalProperties: false
    GetTeamMemberResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetTeamMemberResponseData"
      required:
        - data
      additionalProperties: false
    GetTeamMemberResponseData:
      type: object
      properties:
        addableStores:
          type: array
          items:
            $ref: "#/components/schemas/GetTeamMemberResponseDataAddableStores"
          description: Stores the caller could add them to (not yet granted, and the caller may manage).
        canAddAllStores:
          type: boolean
          description: Whether "All current and future stores" can be added (owner only, not held yet).
        canRemove:
          type: boolean
          description: "Remove from the whole team: the owner's alone."
        manageable:
          type: object
          description: "Per store key: whether the caller may change or remove that store's access."
          additionalProperties: {}
        isSelf:
          type: boolean
        id:
          type: string
        memberUserId:
          type: string
        email:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
        avatarUrl:
          type: string
          nullable: true
        role:
          type: string
        addedAt:
          type: string
        lastActiveAt:
          type: string
          nullable: true
        stores:
          type: array
          items:
            $ref: "#/components/schemas/GetTeamMemberResponseDataStores"
      required:
        - addableStores
        - canAddAllStores
        - canRemove
        - manageable
        - isSelf
        - id
        - memberUserId
        - role
        - addedAt
        - stores
      additionalProperties: false
    GetTeamMemberResponseDataAddableStores:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        status:
          type: string
        key:
          type: string
      required:
        - id
        - name
        - status
        - key
      additionalProperties: false
    GetTeamMemberResponseDataStores:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
          description: null = the explicit "All current and future stores" entry.
        key:
          type: string
          description: "The path key: the store id, or 'all'."
        storeName:
          type: string
        permissions:
          type: array
          items:
            type: string
        limits:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataAccessLimits"
        preset:
          type: string
          nullable: true
          description: The preset the permissions match (viewer…admin), null = custom.
        presetLabel:
          type: string
          nullable: true
        legacy:
          type: boolean
          description: A grant from before fine permissions (its catalogue scopes decide); saving it makes it explicit.
        summary:
          type: string
        updatedAt:
          type: string
      required:
        - key
        - storeName
        - permissions
        - limits
        - legacy
        - summary
        - updatedAt
      additionalProperties: false
    GetTeamResponse:
      type: object
      properties:
        invitations:
          type: array
          items:
            $ref: "#/components/schemas/GetTeamResponseInvitations"
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetTeamResponseMembers"
      required:
        - invitations
        - members
      additionalProperties: false
    GetTeamResponseInvitations:
      type: object
      properties:
        pending:
          type: boolean
        id:
          type: string
        inviteeEmail:
          type: string
        role:
          type: string
        scopes:
          type: array
          items:
            type: string
        expiresAt:
          type: string
          format: date-time
        acceptedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - pending
        - id
        - inviteeEmail
        - role
        - scopes
        - expiresAt
        - createdAt
      additionalProperties: false
    GetTeamResponseMembers:
      type: object
      properties:
        id:
          type: string
        memberUserId:
          type: string
        memberEmail:
          type: string
          nullable: true
        memberDisplayName:
          type: string
          nullable: true
        role:
          type: string
        scopes:
          type: array
          items:
            type: string
        revokedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - memberUserId
        - role
        - scopes
        - createdAt
      additionalProperties: false
    GetToolboxAssetRatingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetToolboxAssetRatingResponseData"
      required:
        - data
      additionalProperties: false
    GetToolboxAssetRatingResponseData:
      type: object
      properties:
        average:
          type: number
          nullable: true
        count:
          type: number
        breakdown:
          $ref: "#/components/schemas/GetToolboxAssetRatingResponseDataBreakdown"
        mine:
          $ref: "#/components/schemas/GetToolboxAssetRatingResponseDataMine"
        canRate:
          type: boolean
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetToolboxAssetRatingResponseDataItems"
      required:
        - count
        - breakdown
        - canRate
        - items
      additionalProperties: false
    GetToolboxAssetRatingResponseDataBreakdown:
      type: object
      properties:
        "1":
          type: number
        "2":
          type: number
        "3":
          type: number
        "4":
          type: number
        "5":
          type: number
      required:
        - "1"
        - "2"
        - "3"
        - "4"
        - "5"
      additionalProperties: false
      description: stars → how many (1..5).
    GetToolboxAssetRatingResponseDataItems:
      type: object
      properties:
        id:
          type: string
        stars:
          type: number
        body:
          type: string
        mine:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - stars
        - body
        - mine
        - createdAt
        - updatedAt
      additionalProperties: false
    GetToolboxAssetRatingResponseDataMine:
      type: object
      properties:
        id:
          type: string
        stars:
          type: number
        body:
          type: string
        mine:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - stars
        - body
        - mine
        - createdAt
        - updatedAt
      additionalProperties: false
      nullable: true
    GetToolboxAssetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetToolboxAssetResponseData"
      required:
        - data
      additionalProperties: false
    GetToolboxAssetResponseData:
      type: object
      properties:
        status:
          type: string
        versions:
          type: array
          items:
            $ref: "#/components/schemas/GetToolboxAssetResponseDataVersions"
        credits:
          type: array
          items:
            $ref: "#/components/schemas/CreateToolboxAssetUseResponseDataCredits"
        licence:
          type: string
        nodeCount:
          type: number
        hasScripts:
          type: boolean
        classes:
          type: object
          description: Class → count over the live payload, for the preview.
          additionalProperties: {}
        purchase:
          $ref: "#/components/schemas/GetToolboxAssetResponseDataPurchase"
        id:
          type: string
        kind:
          type: string
          enum:
            - package
            - image
            - model
            - script
            - sound
            - animation
        name:
          type: string
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        priceCents:
          type: number
        author:
          $ref: "#/components/schemas/ListWorldTransferRequestsItemFrom"
        installs:
          type: number
        rating:
          $ref: "#/components/schemas/AverageCount"
        thumbnailUrl:
          type: string
          nullable: true
        version:
          type: number
          description: Live version number (0 while the first is in review).
        updatedAt:
          type: string
        owned:
          type: boolean
          description: "May the viewer insert it: free, theirs, or licensed."
      required:
        - status
        - versions
        - credits
        - licence
        - nodeCount
        - hasScripts
        - classes
        - id
        - kind
        - name
        - description
        - tags
        - priceCents
        - author
        - installs
        - rating
        - version
        - updatedAt
        - owned
      additionalProperties: false
    GetToolboxAssetResponseDataPurchase:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        paidAt:
          type: string
          nullable: true
        refundableUntil:
          type: string
          nullable: true
      required:
        - id
        - status
      additionalProperties: false
      nullable: true
    GetToolboxAssetResponseDataVersions:
      type: object
      properties:
        number:
          type: number
        notes:
          type: string
        reviewState:
          type: string
        createdAt:
          type: string
      required:
        - number
        - notes
        - reviewState
        - createdAt
      additionalProperties: false
    GetToolboxPurchaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetToolboxPurchaseResponseData"
      required:
        - data
      additionalProperties: false
    GetToolboxPurchaseResponseData:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        asset:
          $ref: "#/components/schemas/GetToolboxPurchaseResponseDataAsset"
        priceCents:
          type: number
        taxCents:
          type: number
        totalCents:
          type: number
        currency:
          type: string
        authorSharePct:
          type: number
        licence:
          type: string
        expiresAt:
          type: string
        paidAt:
          type: string
          nullable: true
        refundableUntil:
          type: string
          nullable: true
        checkoutPath:
          type: string
        checkoutUrl:
          type: string
      required:
        - id
        - status
        - asset
        - priceCents
        - taxCents
        - totalCents
        - currency
        - authorSharePct
        - licence
        - expiresAt
        - checkoutPath
        - checkoutUrl
      additionalProperties: false
    GetToolboxPurchaseResponseDataAsset:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          type: string
        author:
          $ref: "#/components/schemas/ListWorldTransferRequestsItemFrom"
      required:
        - id
        - name
        - kind
        - author
      additionalProperties: false
    GetTradeBlockEvolutionResponse:
      type: object
      properties:
        unlocks:
          type: array
          items:
            $ref: "#/components/schemas/GetTradeBlockEvolutionResponseUnlocks"
      required:
        - unlocks
      additionalProperties: false
    GetTradeBlockEvolutionResponseUnlocks:
      type: object
      properties:
        id:
          type: string
        tradeId:
          type: string
        source:
          type: string
        status:
          type: string
        claimedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
        name:
          type: string
        note:
          type: string
          nullable: true
        cosmeticId:
          type: string
        cosmeticName:
          type: string
        cosmeticSku:
          type: string
      required:
        - id
        - tradeId
        - source
        - status
        - createdAt
        - name
        - cosmeticId
        - cosmeticName
        - cosmeticSku
      additionalProperties: false
    GetTradeBlockPostByIdResponse:
      type: object
      properties:
        post:
          $ref: "#/components/schemas/GetTradeBlockPostByIdResponsePost"
      required:
        - post
      additionalProperties: false
    GetTradeBlockPostByIdResponsePost:
      type: object
      properties:
        items:
          type: array
          items: {}
        openOfferCount:
          type: number
      required:
        - items
        - openOfferCount
      additionalProperties: false
    GetTradeBlockPostResponse:
      type: object
      properties:
        posts:
          type: array
          items: {}
      required:
        - posts
      additionalProperties: false
    GetTradeBlockTradeResponse:
      type: object
      properties:
        trades:
          type: array
          items: {}
      required:
        - trades
      additionalProperties: false
    GetTypeResponse:
      type: object
      properties:
        types:
          type: array
          items:
            type: string
      required:
        - types
      additionalProperties: false
    GetVariationGroupPublishPlanResponse:
      type: object
      properties:
        plans:
          type: array
          items:
            $ref: "#/components/schemas/GetVariationGroupPublishPlanResponsePlans"
        totalListings:
          type: number
        memberCount:
          type: number
        axisName:
          type: string
      required:
        - plans
        - totalListings
        - memberCount
        - axisName
      additionalProperties: false
    GetVariationGroupPublishPlanResponsePlans:
      type: object
      properties:
        platform:
          type: string
        mode:
          type: string
          enum:
            - separate
            - grouped
        listingsProduced:
          type: number
          description: |-
            How many marketplace listings this produces. One when grouped; one per
            option when separate — the number the seller should see before they
            commit, not after.
        explanation:
          type: string
          description: Plain-language, shown in the publish dialog.
      required:
        - platform
        - mode
        - listingsProduced
        - explanation
      additionalProperties: false
    GetVaultAttestationResponse:
      type: object
      properties:
        latest:
          $ref: "#/components/schemas/GetVaultAttestationResponseLatest"
        attestations:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultAttestationResponseAttestations"
        insurance:
          $ref: "#/components/schemas/GetVaultAttestationResponseInsurance"
        kinds:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultAttestationResponseKindsItem"
      required:
        - latest
        - attestations
        - insurance
        - kinds
      additionalProperties: false
    GetVaultAttestationResponseAttestations:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - other
            - physical_count
            - insurance_certificate
            - soc1_type2
            - soc2
        title:
          type: string
        firm:
          type: string
          nullable: true
        periodStart:
          type: string
          nullable: true
        periodEnd:
          type: string
          nullable: true
        sampleSize:
          type: number
          nullable: true
        unitsCounted:
          type: number
          nullable: true
        exceptions:
          type: number
          nullable: true
        exceptionsNote:
          type: string
          nullable: true
        documentUrl:
          type: string
          nullable: true
        insurer:
          type: string
          nullable: true
        policyRef:
          type: string
          nullable: true
        lossPayee:
          type: string
          nullable: true
        aggregateLimitCents:
          type: number
          nullable: true
        perOccurrenceLimitCents:
          type: number
          nullable: true
        expiresOn:
          type: string
          nullable: true
        expired:
          type: boolean
        notes:
          type: string
          nullable: true
        createdAt:
          type: string
        withdrawnAt:
          type: string
          nullable: true
        withdrawnReason:
          type: string
          nullable: true
      required:
        - id
        - kind
        - title
        - expired
        - createdAt
      additionalProperties: false
    GetVaultAttestationResponseInsurance:
      type: object
      properties:
        certificateId:
          type: string
          nullable: true
        certificateExpiresOn:
          type: string
          nullable: true
        unitsWithoutInsuredValue:
          type: number
        warningCode:
          type: string
          nullable: true
        totalInsuredCents:
          type: number
        aggregateLimitCents:
          type: number
          nullable: true
        coverageBps:
          type: number
          nullable: true
          description: Aggregate limit over total insured value; null without a certificate.
        uncoveredCents:
          type: number
          description: Insured value the aggregate limit does not reach.
        keysOverOccurrence:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultAttestationResponseInsuranceKeysOverOccurrence"
          description: Keys whose units together exceed the per-occurrence limit (one loss event).
        warning:
          type: string
          nullable: true
      required:
        - unitsWithoutInsuredValue
        - totalInsuredCents
        - uncoveredCents
        - keysOverOccurrence
      additionalProperties: false
    GetVaultAttestationResponseInsuranceKeysOverOccurrence:
      type: object
      properties:
        bookKey:
          type: string
        insuredCents:
          type: number
        overCents:
          type: number
      required:
        - bookKey
        - insuredCents
        - overCents
      additionalProperties: false
    GetVaultAttestationResponseLatest:
      type: object
      properties:
        other:
          $ref: "#/components/schemas/GetVaultAttestationResponseLatestOther"
        physical_count:
          $ref: "#/components/schemas/GetVaultAttestationResponseLatestOther"
        insurance_certificate:
          $ref: "#/components/schemas/GetVaultAttestationResponseLatestOther"
        soc1_type2:
          $ref: "#/components/schemas/GetVaultAttestationResponseLatestOther"
        soc2:
          $ref: "#/components/schemas/GetVaultAttestationResponseLatestOther"
      additionalProperties: false
    GetVaultAttestationResponseLatestOther:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - other
            - physical_count
            - insurance_certificate
            - soc1_type2
            - soc2
        title:
          type: string
        firm:
          type: string
          nullable: true
        periodStart:
          type: string
          nullable: true
        periodEnd:
          type: string
          nullable: true
        sampleSize:
          type: number
          nullable: true
        unitsCounted:
          type: number
          nullable: true
        exceptions:
          type: number
          nullable: true
        exceptionsNote:
          type: string
          nullable: true
        documentUrl:
          type: string
          nullable: true
        insurer:
          type: string
          nullable: true
        policyRef:
          type: string
          nullable: true
        lossPayee:
          type: string
          nullable: true
        aggregateLimitCents:
          type: number
          nullable: true
        perOccurrenceLimitCents:
          type: number
          nullable: true
        expiresOn:
          type: string
          nullable: true
        expired:
          type: boolean
        notes:
          type: string
          nullable: true
        createdAt:
          type: string
        withdrawnAt:
          type: string
          nullable: true
        withdrawnReason:
          type: string
          nullable: true
      required:
        - id
        - kind
        - title
        - expired
        - createdAt
      additionalProperties: false
      nullable: true
    GetVaultMarketAccountResponse:
      type: object
      properties:
        gates:
          $ref: "#/components/schemas/GetVaultMarketAccountResponseGates"
        termsVersion:
          type: string
          nullable: true
        identity:
          $ref: "#/components/schemas/GetVaultMarketAccountResponseIdentity"
        idThresholdCents:
          type: number
        account:
          $ref: "#/components/schemas/GetVaultMarketAccountResponseAccount"
        balances:
          $ref: "#/components/schemas/GetVaultMarketAccountResponseBalances"
      required:
        - gates
        - identity
        - idThresholdCents
      additionalProperties: false
    GetVaultMarketAccountResponseAccount:
      type: object
      properties:
        maxOpenPositions:
          type: number
        maxShortUnitsPerKey:
          type: number
        status:
          type: string
        termsVersion:
          type: string
          nullable: true
        termsAcceptedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - maxOpenPositions
        - maxShortUnitsPerKey
        - status
      additionalProperties: false
      nullable: true
    GetVaultMarketAccountResponseBalances:
      type: object
      properties:
        status:
          type: string
        usdCents:
          type: number
        cbxBaseUnits:
          type: string
        cbxValueCents:
          type: number
        freeCents:
          type: number
          nullable: true
        lockedCents:
          type: number
          nullable: true
      required:
        - status
        - usdCents
        - cbxBaseUnits
        - cbxValueCents
      additionalProperties: false
      nullable: true
    GetVaultMarketAccountResponseGates:
      type: object
      properties:
        shares:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        custody:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        lending:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        leverage:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        staking:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        shares_partner:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        shares_self:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        options_routing:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        options_venue:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        prediction_partner:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        prediction_self:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
      required:
        - shares
        - custody
        - lending
        - leverage
        - staking
        - shares_partner
        - shares_self
        - options_routing
        - options_venue
        - prediction_partner
        - prediction_self
      additionalProperties: false
    GetVaultMarketAccountResponseIdentity:
      type: object
      properties:
        verified:
          type: boolean
        status:
          type: string
          nullable: true
        retry:
          type: boolean
      required:
        - verified
        - retry
      additionalProperties: false
    GetVaultMarketAdlResponse:
      type: object
      properties:
        insuranceFundCents:
          type: number
          description: The insurance fund as booked (its share of fees in, draws out).
        insuranceFreeCents:
          type: number
          description: "Free to draw now: booked, less every draw already promised."
        perEventCapBps:
          type: number
          description: The most one event may draw before ADL starts.
        perEventCapCents:
          type: number
        adlEvents30d:
          type: number
        lastAdlAt:
          type: string
          nullable: true
        recentEvents:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketAdlResponseRecentEvents"
        waterfall:
          type: array
          items:
            type: string
        asOf:
          type: string
      required:
        - insuranceFundCents
        - insuranceFreeCents
        - perEventCapBps
        - perEventCapCents
        - adlEvents30d
        - recentEvents
        - waterfall
        - asOf
      additionalProperties: false
    GetVaultMarketAdlResponseRecentEvents:
      type: object
      properties:
        bookKey:
          type: string
        bankruptSide:
          type: string
          enum:
            - short
            - long
          description: The side that went under water.
        priceCents:
          type: number
        units:
          type: number
        markCents:
          type: number
        status:
          type: string
        createdAt:
          type: string
      required:
        - bookKey
        - bankruptSide
        - priceCents
        - units
        - markCents
        - status
        - createdAt
      additionalProperties: false
    GetVaultMarketAdvanceQuoteResponse:
      type: object
      properties:
        poolAprBps:
          type: number
          nullable: true
        member:
          type: boolean
        memberDiscountBps:
          type: number
        aprBps:
          type: number
          nullable: true
        poolRoomCents:
          type: number
        minCents:
          type: number
        gate:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        unit:
          $ref: "#/components/schemas/GetVaultMarketAdvanceQuoteResponseUnit"
        sale:
          $ref: "#/components/schemas/GetVaultMarketAdvanceQuoteResponseSale"
        maxCents:
          type: number
        availableCents:
          type: number
        freeDays:
          type: number
      required:
        - member
        - memberDiscountBps
        - poolRoomCents
        - minCents
        - gate
        - unit
        - maxCents
        - availableCents
        - freeDays
      additionalProperties: false
    GetVaultMarketAdvanceQuoteResponseSale:
      type: object
      properties:
        ref:
          type: string
        askId:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
      required:
        - ref
      additionalProperties: false
      nullable: true
    GetVaultMarketAdvanceQuoteResponseUnit:
      type: object
      properties:
        maxCents:
          type: number
        eligible:
          type: boolean
        reason:
          type: string
          nullable: true
        vaultItemId:
          type: string
        skuName:
          type: string
          nullable: true
        bookKey:
          type: string
          nullable: true
        tier:
          type: string
          enum:
            - closed
            - standard
            - deep
            - thin
          nullable: true
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          nullable: true
          description: "The mark's quality (A/B/C/none, services/vault-markets/marks.ts readMark): only A and B carry a loan."
        maxLtvBps:
          type: number
        liqLtvBps:
          type: number
      required:
        - maxCents
        - eligible
        - vaultItemId
        - maxLtvBps
        - liqLtvBps
      additionalProperties: false
    GetVaultMarketAlertPrefResponse:
      type: object
      properties:
        kinds:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseKinds"
        channels:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseChannels"
        matrix:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrix"
        locked:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseLocked"
          description: "Switches that cannot be turned off: a critical kind's push."
        quietHours:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseQuietHours"
        quietNow:
          type: boolean
        telegram:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseTelegram"
        pushCapPerDay:
          type: number
        emailDigestHourUtc:
          type: number
        webhookEvent:
          type: string
      required:
        - kinds
        - channels
        - matrix
        - locked
        - quietNow
        - telegram
        - pushCapPerDay
        - emailDigestHourUtc
        - webhookEvent
      additionalProperties: false
    GetVaultMarketAlertPrefResponseChannels:
      type: object
      properties:
        key:
          type: string
          enum:
            - email
            - push
            - telegram
            - webhook
            - terminal
        label:
          type: string
        hint:
          type: string
        ready:
          type: boolean
        note:
          type: string
          nullable: true
      required:
        - key
        - label
        - hint
        - ready
      additionalProperties: false
    GetVaultMarketAlertPrefResponseKinds:
      type: object
      properties:
        key:
          type: string
          enum:
            - fill
            - account
            - price
            - auction
            - follow
            - prediction
            - option_expiry
            - margin_call
            - adl
            - p2p_loan
            - market_open
            - receipt_token
            - set_goal
            - share_offering
            - share_vote
            - option_settlement
            - prediction_odds
        label:
          type: string
        hint:
          type: string
        critical:
          type: boolean
        nudge:
          type: boolean
      required:
        - key
        - label
        - hint
        - critical
        - nudge
      additionalProperties: false
    GetVaultMarketAlertPrefResponseLocked:
      type: object
      properties:
        kind:
          type: string
          enum:
            - fill
            - account
            - price
            - auction
            - follow
            - prediction
            - option_expiry
            - margin_call
            - adl
            - p2p_loan
            - market_open
            - receipt_token
            - set_goal
            - share_offering
            - share_vote
            - option_settlement
            - prediction_odds
        channel:
          type: string
      required:
        - kind
        - channel
      additionalProperties: false
    GetVaultMarketAlertPrefResponseMatrix:
      type: object
      properties:
        fill:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        account:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        price:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        auction:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        follow:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        prediction:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        option_expiry:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        margin_call:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        adl:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        p2p_loan:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        market_open:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        receipt_token:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        set_goal:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        share_offering:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        share_vote:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        option_settlement:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
        prediction_odds:
          $ref: "#/components/schemas/GetVaultMarketAlertPrefResponseMatrixFill"
      required:
        - fill
        - account
        - price
        - auction
        - follow
        - prediction
        - option_expiry
        - margin_call
        - adl
        - p2p_loan
        - market_open
        - receipt_token
        - set_goal
        - share_offering
        - share_vote
        - option_settlement
        - prediction_odds
      additionalProperties: false
    GetVaultMarketAlertPrefResponseMatrixFill:
      type: object
      properties:
        email:
          type: boolean
        push:
          type: boolean
        telegram:
          type: boolean
        webhook:
          type: boolean
        terminal:
          type: boolean
      required:
        - email
        - push
        - telegram
        - webhook
        - terminal
      additionalProperties: false
    GetVaultMarketAlertPrefResponseQuietHours:
      type: object
      properties:
        start:
          type: string
        end:
          type: string
        tz:
          type: string
      required:
        - start
        - end
        - tz
      additionalProperties: false
      nullable: true
    GetVaultMarketAlertPrefResponseTelegram:
      type: object
      properties:
        linked:
          type: boolean
        on:
          type: boolean
      required:
        - linked
        - on
      additionalProperties: false
    GetVaultMarketAuctionLotResponse:
      type: object
      properties:
        id:
          type: string
        lotNumber:
          type: number
        status:
          type: string
        outcome:
          type: string
          nullable: true
        event:
          $ref: "#/components/schemas/GetVaultMarketAuctionLotResponseEvent"
        vaultItemId:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        startCents:
          type: number
        hasReserve:
          type: boolean
        reserveMet:
          type: boolean
        priceCents:
          type: number
          nullable: true
        bidCount:
          type: number
        bidders:
          type: number
        minNextBidCents:
          type: number
        endsAt:
          type: string
        featuredStreamId:
          type: string
          nullable: true
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetMarketMetalSpotHistoryResponseDataPoints"
        me:
          $ref: "#/components/schemas/GetVaultMarketAuctionLotResponseMe"
      required:
        - id
        - lotNumber
        - status
        - vaultItemId
        - bookKey
        - startCents
        - hasReserve
        - reserveMet
        - bidCount
        - bidders
        - minNextBidCents
        - endsAt
        - history
      additionalProperties: false
    GetVaultMarketAuctionLotResponseEvent:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - weekly
            - premier
        title:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
      required:
        - id
        - kind
        - title
        - startsAt
        - endsAt
      additionalProperties: false
      nullable: true
    GetVaultMarketAuctionLotResponseMe:
      type: object
      properties:
        isOwner:
          type: boolean
        leading:
          type: boolean
        maxCents:
          type: number
          nullable: true
        won:
          type: boolean
      required:
        - isOwner
        - leading
        - won
      additionalProperties: false
      nullable: true
    GetVaultMarketAuctionMineResponse:
      type: object
      properties:
        consigned:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketAuctionMineResponseConsigned"
        bidding:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketAuctionMineResponseBidding"
      required:
        - consigned
        - bidding
      additionalProperties: false
    GetVaultMarketAuctionMineResponseBidding:
      type: object
      properties:
        maxCents:
          type: number
          nullable: true
        leading:
          type: boolean
        won:
          type: boolean
        id:
          type: string
        status:
          type: string
        outcome:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        bidCount:
          type: number
        endsAt:
          type: string
      required:
        - leading
        - won
        - id
        - status
        - bidCount
        - endsAt
      additionalProperties: false
    GetVaultMarketAuctionMineResponseConsigned:
      type: object
      properties:
        hasReserve:
          type: boolean
        reserveCents:
          type: number
          nullable: true
        id:
          type: string
        status:
          type: string
        outcome:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        bidCount:
          type: number
        endsAt:
          type: string
      required:
        - hasReserve
        - id
        - status
        - bidCount
        - endsAt
      additionalProperties: false
    GetVaultMarketAutoBuyResponse:
      type: object
      properties:
        explainer:
          type: string
        autoBuy:
          nullable: true
      required:
        - explainer
        - autoBuy
    GetVaultMarketBullionForResponse:
      type: object
      properties:
        bookKey:
          type: string
        families:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketBullionForResponseFamilies"
        spot:
          $ref: "#/components/schemas/GetVaultMarketBullionForResponseSpot"
        meltReferenceCents:
          type: number
          nullable: true
      required:
        - bookKey
        - families
      additionalProperties: false
    GetVaultMarketBullionForResponseFamilies:
      type: object
      properties:
        slug:
          type: string
        label:
          type: string
        mint:
          type: string
          nullable: true
      required:
        - slug
        - label
      additionalProperties: false
    GetVaultMarketBullionForResponseSpot:
      type: object
      properties:
        label:
          type: string
        metal:
          type: string
          enum:
            - gold
            - silver
            - platinum
            - palladium
        priceCents:
          type: number
          nullable: true
          description: Cents per troy ounce of pure metal.
        source:
          type: string
          nullable: true
        fetchedAt:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - none
            - stale
            - fresh
          description: "fresh | stale | none: pegged quotes rest only on fresh spot."
        staleAfterSeconds:
          type: number
      required:
        - label
        - metal
        - state
        - staleAfterSeconds
      additionalProperties: false
      nullable: true
      description: The metal reference for this book's own content (null when the product is not keyed bullion).
    GetVaultMarketBullionKeyResponse:
      type: object
      properties:
        products:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketBullionKeyResponseProducts"
        books:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketBullionKeyResponseBooks"
        pegs:
          $ref: "#/components/schemas/GetVaultMarketBullionKeyResponsePegs"
        slug:
          type: string
        label:
          type: string
        metal:
          type: string
          enum:
            - gold
            - silver
            - platinum
            - palladium
        form:
          type: string
        size:
          type: string
        sizeLabel:
          type: string
        mint:
          type: string
          nullable: true
        fineMg:
          type: number
        members:
          type: number
        vaultUnits:
          type: number
          description: Units stored or listed in the vault across the family's books.
        bestBidCents:
          type: number
          nullable: true
          description: Best resting prices across the family's books (a pegged order on stale spot is left out).
        bestAskCents:
          type: number
          nullable: true
        meltReferenceCents:
          type: number
          nullable: true
          description: "What one unit's metal is worth at spot: a reference, not a price."
        spot:
          $ref: "#/components/schemas/GetVaultMarketBullionForResponseSpot"
      required:
        - products
        - books
        - pegs
        - slug
        - label
        - metal
        - form
        - size
        - sizeLabel
        - fineMg
        - members
        - vaultUnits
      additionalProperties: false
    GetVaultMarketBullionKeyResponseBooks:
      type: object
      properties:
        bookKey:
          type: string
        variantId:
          type: string
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        vaultUnits:
          type: number
        bestBidCents:
          type: number
          nullable: true
        bestAskCents:
          type: number
          nullable: true
        markCents:
          type: number
          nullable: true
          description: "The book's mark: built from the order book only (spot never sets it)."
        markQuality:
          type: string
      required:
        - bookKey
        - variantId
        - condition
        - vaultUnits
        - markQuality
      additionalProperties: false
    GetVaultMarketBullionKeyResponsePegs:
      type: object
      properties:
        liveBids:
          type: number
        liveAsks:
          type: number
        pulled:
          type: number
      required:
        - liveBids
        - liveAsks
        - pulled
      additionalProperties: false
    GetVaultMarketBullionKeyResponseProducts:
      type: object
      properties:
        variantId:
          type: string
        skuId:
          type: string
        name:
          type: string
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
      required:
        - variantId
        - skuId
        - name
      additionalProperties: false
    GetVaultMarketBullionPegPreviewResponse:
      type: object
      properties:
        bookKey:
          type: string
        spot:
          $ref: "#/components/schemas/GetVaultMarketBullionPegPreviewResponseSpot"
        priceCents:
          type: number
          nullable: true
        peg:
          type: string
        note:
          type: string
          nullable: true
          description: "Why there is no price: spot is stale or missing, so a pegged quote would be pulled."
      required:
        - bookKey
        - spot
        - peg
      additionalProperties: false
    GetVaultMarketBullionPegPreviewResponseSpot:
      type: object
      properties:
        label:
          type: string
        metal:
          type: string
          enum:
            - gold
            - silver
            - platinum
            - palladium
        priceCents:
          type: number
          nullable: true
          description: Cents per troy ounce of pure metal.
        source:
          type: string
          nullable: true
        fetchedAt:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - none
            - stale
            - fresh
          description: "fresh | stale | none: pegged quotes rest only on fresh spot."
        staleAfterSeconds:
          type: number
      required:
        - label
        - metal
        - state
        - staleAfterSeconds
      additionalProperties: false
    GetVaultMarketCallItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - open
            - daily
            - buy_in
            - sell_off
            - reopen
            - periodic
        closedAt:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        units:
          type: number
      required:
        - id
        - kind
        - units
      additionalProperties: false
    GetVaultMarketCallResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketCallItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    GetVaultMarketCapacityResponse:
      type: object
      properties:
        index:
          type: string
        notionalCents:
          type: number
        bandBps:
          type: number
        participation:
          type: number
        constituents:
          type: number
        fillableNowCents:
          type: number
        fillableNowBps:
          type: number
        plannedCents:
          type: number
          description: "Whole units only: what the basket buys at the marks (a key's share under one unit's price buys none)."
        daysToComplete:
          type: number
        unpriced:
          type: array
          items:
            type: string
        perKey:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketCapacityResponsePerKeyItem"
        notes:
          type: array
          items:
            type: string
      required:
        - index
        - notionalCents
        - bandBps
        - participation
        - constituents
        - fillableNowCents
        - fillableNowBps
        - plannedCents
        - daysToComplete
        - unpriced
        - perKey
        - notes
      additionalProperties: false
    GetVaultMarketChannelResponse:
      type: object
      properties:
        telegramLinked:
          type: boolean
        nudgesToday:
          $ref: "#/components/schemas/GetVaultMarketChannelResponseNudgesToday"
        digestEvent:
          type: string
        alertsEvent:
          type: string
        telegramAlerts:
          type: boolean
        telegramDigest:
          type: boolean
        pushCapPerDay:
          type: number
      required:
        - telegramLinked
        - nudgesToday
        - digestEvent
        - alertsEvent
        - telegramAlerts
        - telegramDigest
        - pushCapPerDay
      additionalProperties: false
    GetVaultMarketChannelResponseNudgesToday:
      type: object
      properties:
        push:
          type: number
        telegram:
          type: number
      required:
        - push
        - telegram
      additionalProperties: false
    GetVaultMarketCompareResponse:
      type: object
      properties:
        days:
          type: array
          items:
            type: string
        series:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketCompareResponseSeries"
      required:
        - days
        - series
      additionalProperties: false
    GetVaultMarketCompareResponseSeries:
      type: object
      properties:
        values:
          type: array
          items:
            type: number
            nullable: true
        changeBps:
          type: number
          nullable: true
        id:
          type: string
        kind:
          type: string
          enum:
            - key
            - index
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        last:
          type: number
          nullable: true
      required:
        - values
        - id
        - kind
      additionalProperties: false
    GetVaultMarketConfirmationResponse:
      type: object
      properties:
        tradeId:
          type: string
        at:
          type: string
        bookKey:
          type: string
        title:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        priceCents:
          type: number
        feeCents:
          type: number
        netCents:
          type: number
        liquidity:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        vaultItemId:
          type: string
          nullable: true
        receiptNo:
          type: string
          nullable: true
        status:
          type: string
        venue:
          type: string
        account:
          $ref: "#/components/schemas/AccountIdLabel"
      required:
        - tradeId
        - at
        - bookKey
        - title
        - side
        - priceCents
        - feeCents
        - netCents
        - status
        - venue
        - account
      additionalProperties: false
    GetVaultMarketCorrelationResponse:
      type: object
      properties:
        label:
          type: string
        derived:
          type: boolean
        weeks:
          type: number
        minPairWeeks:
          type: number
        insufficient:
          type: boolean
        reason:
          type: string
          nullable: true
        indexes:
          type: array
          items:
            $ref: "#/components/schemas/NameSlug"
        rho:
          type: array
          items:
            type: array
            items:
              type: number
              nullable: true
        n:
          type: array
          items:
            type: array
            items:
              type: number
        asOf:
          type: string
      required:
        - label
        - derived
        - weeks
        - minPairWeeks
        - insufficient
        - indexes
        - rho
        - n
        - asOf
      additionalProperties: false
    GetVaultMarketCreatorAttributionResponse:
      type: object
      properties:
        attribution:
          nullable: true
      required:
        - attribution
    GetVaultMarketCreatorDashboardResponse:
      type: object
      properties:
        joined:
          type: boolean
        joinedAt:
          type: string
        acceptedVersion:
          type: string
        programme:
          $ref: "#/components/schemas/GetVaultMarketCreatorProgrammeResponse"
        codes:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketCreatorDashboardResponseCodes"
        earnings:
          $ref: "#/components/schemas/GetVaultMarketCreatorDashboardResponseEarnings"
        recent:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketCreatorDashboardResponseRecent"
      required:
        - joined
        - joinedAt
        - acceptedVersion
        - programme
        - codes
        - earnings
        - recent
      additionalProperties: false
    GetVaultMarketCreatorDashboardResponseCodes:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        label:
          type: string
          nullable: true
        active:
          type: boolean
        vaultEligible:
          type: boolean
        tradersAttributed:
          type: number
        tradersEarning:
          type: number
        shareLink:
          type: string
      required:
        - id
        - code
        - active
        - vaultEligible
        - tradersAttributed
        - tradersEarning
        - shareLink
      additionalProperties: false
    GetVaultMarketCreatorDashboardResponseEarnings:
      type: object
      properties:
        accruedCents:
          type: number
        paidCents:
          type: number
        voidCents:
          type: number
        fills:
          type: number
      required:
        - accruedCents
        - paidCents
        - voidCents
        - fills
      additionalProperties: false
    GetVaultMarketCreatorDashboardResponseRecent:
      type: object
      properties:
        cents:
          type: number
        status:
          type: string
        at:
          type: string
        paidAt:
          type: string
          nullable: true
      required:
        - cents
        - status
        - at
      additionalProperties: false
    GetVaultMarketCreatorProgrammeResponse:
      type: object
      properties:
        shareBps:
          type: number
        perTradeCapCents:
          type: number
        lifetimeCapCents:
          type: number
        attributionDays:
          type: number
        floorBps:
          type: number
        termsVersion:
          type: string
        newTradersOnly:
          type: boolean
        paidAs:
          type: string
        terms:
          type: string
        shareLabel:
          type: string
        note:
          type: string
      required:
        - shareBps
        - perTradeCapCents
        - lifetimeCapCents
        - attributionDays
        - floorBps
        - termsVersion
        - newTradersOnly
        - paidAs
        - terms
        - shareLabel
        - note
      additionalProperties: false
    GetVaultMarketCreatorRoomResponse:
      type: object
      properties:
        room:
          $ref: "#/components/schemas/GetVaultMarketCreatorRoomResponseRoom"
        profilePublic:
          type: boolean
        handle:
          type: string
          nullable: true
      required:
        - profilePublic
      additionalProperties: false
    GetVaultMarketCreatorRoomResponseRoom:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        presenceSlug:
          type: string
        title:
          type: string
        blurb:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - paused
            - verified
            - applied
            - rejected
        note:
          type: string
          nullable: true
        decidedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        worldHref:
          type: string
      required:
        - id
        - slug
        - presenceSlug
        - title
        - status
        - createdAt
        - updatedAt
        - worldHref
      additionalProperties: false
      nullable: true
    GetVaultMarketCreditResponse:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketCreditResponseEvents"
        id:
          type: string
        kind:
          type: string
          enum:
            - loan
            - advance
        status:
          type: string
        closeReason:
          type: string
          nullable: true
        principalCents:
          type: number
        outstandingCents:
          type: number
        interestAccruedCents:
          type: number
        interestPaidCents:
          type: number
        owedCents:
          type: number
        aprBps:
          type: number
          nullable: true
        poolAprBps:
          type: number
          nullable: true
        memberDiscountBps:
          type: number
        collateralCents:
          type: number
        ltvBps:
          type: number
        maxLtvBps:
          type: number
        liquidationLtvBps:
          type: number
        liquidationAtCents:
          type: number
          nullable: true
          description: Below this collateral value the loan is called.
        calledAt:
          type: string
          nullable: true
        callReason:
          type: string
          nullable: true
        sellFromAt:
          type: string
          nullable: true
        interestFreeUntil:
          type: string
          nullable: true
        dueAt:
          type: string
          nullable: true
        shortfallCents:
          type: number
        writedownCents:
          type: number
          description: A loss recognised while a sell-off rests on its floor unsold (0 otherwise).
        openedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketCreditResponseUnits"
      required:
        - events
        - id
        - kind
        - status
        - principalCents
        - outstandingCents
        - interestAccruedCents
        - interestPaidCents
        - owedCents
        - memberDiscountBps
        - collateralCents
        - ltvBps
        - maxLtvBps
        - liquidationLtvBps
        - shortfallCents
        - writedownCents
        - createdAt
        - units
      additionalProperties: false
    GetVaultMarketCreditResponseEvents:
      type: object
      properties:
        createdAt:
          type: string
        bookedAt:
          type: string
          nullable: true
        kind:
          type: string
        cents:
          type: number
        status:
          type: string
        note:
          type: string
          nullable: true
      required:
        - createdAt
        - kind
        - cents
        - status
      additionalProperties: false
    GetVaultMarketCreditResponseUnits:
      type: object
      properties:
        vaultItemId:
          type: string
        bookKey:
          type: string
        tier:
          type: string
        status:
          type: string
        markCents:
          type: number
        markCentsAtPledge:
          type: number
        selloffPriceCents:
          nullable: true
        sellingInRounds:
          type: boolean
        saleCents:
          type: number
          nullable: true
        proceedsCents:
          type: number
          nullable: true
      required:
        - vaultItemId
        - bookKey
        - tier
        - status
        - markCents
        - markCentsAtPledge
        - selloffPriceCents
        - sellingInRounds
      additionalProperties: false
    GetVaultMarketDcmContractBookResponse:
      type: object
      properties:
        spreadBps:
          type: number
          nullable: true
        basisBps:
          type: number
          nullable: true
        crosslyIndex:
          $ref: "#/components/schemas/GetVaultMarketDcmContractBookResponseCrosslyIndex"
        readOnly:
          type: string
        fetchedAt:
          type: string
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketDcmContractBookResponseBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketDcmContractBookResponseBids"
        markPrice:
          type: number
          nullable: true
        indexPrice:
          type: number
          nullable: true
        lastPrice:
          type: number
          nullable: true
        openInterest:
          type: number
          nullable: true
        volume24h:
          type: number
          nullable: true
        asOf:
          type: string
          nullable: true
        dcm:
          type: string
        symbol:
          type: string
        kind:
          type: string
          enum:
            - option
            - perp
            - future
      required:
        - readOnly
        - fetchedAt
        - bids
        - asks
        - dcm
        - symbol
        - kind
      additionalProperties: false
    GetVaultMarketDcmContractBookResponseBids:
      type: object
      properties:
        price:
          type: number
        size:
          type: number
      required:
        - price
        - size
      additionalProperties: false
    GetVaultMarketDcmContractBookResponseCrosslyIndex:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        value:
          type: number
        day:
          type: string
      required:
        - slug
        - name
        - value
        - day
      additionalProperties: false
      nullable: true
    GetVaultMarketDcmContractResponse:
      type: object
      properties:
        dcm:
          type: string
        contract:
          $ref: "#/components/schemas/GetVaultMarketDcmContractResponseContract"
        index:
          $ref: "#/components/schemas/GetVaultMarketDcmContractBookResponseCrosslyIndex"
        readOnly:
          type: string
        funding:
          $ref: "#/components/schemas/GetVaultMarketDcmContractResponseFunding"
      required:
        - dcm
        - contract
        - readOnly
        - funding
      additionalProperties: false
    GetVaultMarketDcmContractResponseContract:
      type: object
      properties:
        symbol:
          type: string
        name:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - option
            - perp
            - future
        indexSlug:
          type: string
          nullable: true
        multiplier:
          type: number
          nullable: true
        tick:
          type: number
          nullable: true
        expiry:
          type: string
          nullable: true
        strike:
          type: number
          nullable: true
        optionType:
          type: string
          enum:
            - put
            - call
          nullable: true
        underlying:
          type: string
          nullable: true
        status:
          type: string
        fetchedAt:
          type: string
      required:
        - symbol
        - kind
        - status
        - fetchedAt
      additionalProperties: false
    GetVaultMarketDcmContractResponseFunding:
      type: object
      properties:
        prints:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketDcmContractResponseFundingPrints"
        annualisedBps:
          type: number
          nullable: true
        periodsPerDay:
          type: number
        settledBy:
          type: string
      required:
        - prints
        - periodsPerDay
        - settledBy
      additionalProperties: false
    GetVaultMarketDcmContractResponseFundingPrints:
      type: object
      properties:
        periodStart:
          type: string
        rateBps:
          type: number
        premiumBps:
          type: number
          nullable: true
        indexLevel:
          type: number
          nullable: true
        printedAt:
          type: string
          nullable: true
      required:
        - periodStart
        - rateBps
      additionalProperties: false
    GetVaultMarketDcmOptionsInputResponse:
      type: object
      properties:
        label:
          type: string
        derived:
          type: boolean
        index:
          type: string
        dcm:
          type: string
          nullable: true
        vol:
          $ref: "#/components/schemas/GetVaultMarketDcmOptionsInputResponseVol"
        forward:
          $ref: "#/components/schemas/GetVaultMarketDcmOptionsInputResponseForward"
        rateBps:
          type: number
        grid:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketDcmOptionsInputResponseGrid"
        listed:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketDcmOptionsInputResponseListed"
        asOf:
          type: string
      required:
        - label
        - derived
        - index
        - vol
        - forward
        - rateBps
        - grid
        - listed
        - asOf
      additionalProperties: false
    GetVaultMarketDcmOptionsInputResponseForward:
      type: object
      properties:
        value:
          type: number
          nullable: true
        source:
          type: string
          enum:
            - none
            - partner_mark
            - crossly_close
        symbol:
          type: string
          nullable: true
      required:
        - source
      additionalProperties: false
    GetVaultMarketDcmOptionsInputResponseGrid:
      type: object
      properties:
        expiryDays:
          type: number
        strikePct:
          type: number
        strike:
          type: number
        sdMoveBps:
          type: number
          description: One-standard-deviation move to expiry, in bps of the forward.
        call:
          $ref: "#/components/schemas/GetVaultMarketDcmOptionsInputResponseGridCall"
        put:
          $ref: "#/components/schemas/GetVaultMarketDcmOptionsInputResponseGridCall"
      required:
        - expiryDays
        - strikePct
        - strike
        - sdMoveBps
      additionalProperties: false
    GetVaultMarketDcmOptionsInputResponseGridCall:
      type: object
      properties:
        price:
          type: number
        delta:
          type: number
        gamma:
          type: number
        vega:
          type: number
          description: Per 1 volatility point (1%).
        theta:
          type: number
          description: Per calendar day.
      required:
        - price
        - delta
        - gamma
        - vega
        - theta
      additionalProperties: false
      nullable: true
    GetVaultMarketDcmOptionsInputResponseListed:
      type: object
      properties:
        symbol:
          type: string
        optionType:
          type: string
          enum:
            - put
            - call
          nullable: true
        strike:
          type: number
          nullable: true
        expiry:
          type: string
          nullable: true
        underlying:
          type: string
          nullable: true
        greeks:
          $ref: "#/components/schemas/GetVaultMarketDcmOptionsInputResponseGridCall"
      required:
        - symbol
      additionalProperties: false
    GetVaultMarketDcmOptionsInputResponseVol:
      type: object
      properties:
        volBps:
          type: number
          nullable: true
        basis:
          type: string
          enum:
            - raw
            - desmoothed
          nullable: true
        annualisedVolBps:
          type: number
          nullable: true
        desmoothedVolBps:
          type: number
          nullable: true
        desmoothingPhi:
          type: number
          nullable: true
        n:
          type: number
        insufficient:
          type: boolean
        reason:
          type: string
          nullable: true
        firstWeek:
          type: string
          nullable: true
        lastWeek:
          type: string
          nullable: true
      required:
        - n
        - insufficient
      additionalProperties: false
    GetVaultMarketDcmPositionResponse:
      type: object
      properties:
        linked:
          type: boolean
        accountRef:
          nullable: true
        linkedAt:
          nullable: true
        hedgesReportedAt:
          nullable: true
        positions:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketDcmLinkResponseOneOfPositions"
        dcm:
          type: string
          nullable: true
        open:
          type: boolean
        missing:
          type: array
          items:
            type: string
        readOnly:
          type: string
        account:
          $ref: "#/components/schemas/CreateVaultMarketDcmLinkResponseOneOfAccount"
      required:
        - linked
        - accountRef
        - linkedAt
        - positions
        - open
        - missing
        - readOnly
        - account
    GetVaultMarketDcmResponse:
      type: object
      properties:
        open:
          type: boolean
        missing:
          type: array
          items:
            type: string
        dcm:
          type: string
          nullable: true
        readOnly:
          type: string
        note:
          type: string
        lastSyncAt:
          type: string
          nullable: true
        contracts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketDcmContractResponseContract"
      required:
        - open
        - missing
        - readOnly
        - note
        - contracts
      additionalProperties: false
    GetVaultMarketDealerResponse:
      type: object
      properties:
        dealer:
          $ref: "#/components/schemas/GetVaultMarketDealerResponseDealer"
        bands:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerBandsItem"
      required:
        - bands
      additionalProperties: false
    GetVaultMarketDealerResponseDealer:
      type: object
      properties:
        status:
          type: string
        businessName:
          type: string
          nullable: true
        appliedAt:
          type: string
          format: date-time
        approvedAt:
          type: string
          format: date-time
          nullable: true
        revokeReason:
          type: string
          nullable: true
      required:
        - status
        - appliedAt
      additionalProperties: false
      nullable: true
    GetVaultMarketDigestPreviewResponse:
      type: object
      properties:
        lines:
          type: array
          items:
            type: string
        week:
          type: string
        value:
          $ref: "#/components/schemas/GetVaultMarketDigestPreviewResponseValue"
        offers:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketDigestPreviewResponseOffers"
        firstMarks:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketDigestPreviewResponseFirstMarks"
        learn:
          $ref: "#/components/schemas/GetVaultMarketDigestPreviewResponseLearn"
      required:
        - lines
        - week
        - value
        - offers
        - firstMarks
        - learn
      additionalProperties: false
    GetVaultMarketDigestPreviewResponseFirstMarks:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        cents:
          type: number
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
      required:
        - bookKey
        - cents
        - quality
      additionalProperties: false
    GetVaultMarketDigestPreviewResponseOffers:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        bestBidCents:
          type: number
      required:
        - bookKey
        - bestBidCents
      additionalProperties: false
    GetVaultMarketDigestPreviewResponseValue:
      type: object
      properties:
        markedNowCents:
          type: number
          description: Marked units valued at today's display mark.
        markedUnits:
          type: number
        unmarkedUnits:
          type: number
          description: "Units whose key has no display mark: counted, never valued."
        comparableUnits:
          type: number
          description: "The units marked both now and a week ago: what moved, like for like."
        comparableNowCents:
          type: number
        comparableThenCents:
          type: number
        changeBps:
          type: number
          nullable: true
      required:
        - markedNowCents
        - markedUnits
        - unmarkedUnits
        - comparableUnits
        - comparableNowCents
        - comparableThenCents
      additionalProperties: false
    GetVaultMarketEntityByIdResponse:
      type: object
      properties:
        entity:
          $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseEntity"
        myRole:
          type: string
          enum:
            - viewer
            - trader
            - admin
            - risk
            - ops
        can:
          $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseCan"
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseMembers"
        subaccounts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseSubaccounts"
        halts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseHalts"
      required:
        - entity
        - myRole
        - can
        - members
        - subaccounts
        - halts
      additionalProperties: false
    GetVaultMarketEntityByIdResponseCan:
      type: object
      properties:
        trade:
          type: boolean
        manage:
          type: boolean
        kill:
          type: boolean
        marks:
          type: boolean
        read:
          type: boolean
      required:
        - trade
        - manage
        - kill
        - marks
        - read
      additionalProperties: false
    GetVaultMarketEntityByIdResponseEntity:
      type: object
      properties:
        caps:
          $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseEntityCaps"
        capsRaised:
          type: boolean
        usdOnly:
          type: boolean
        usdElectedAt:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - caps
        - capsRaised
        - usdOnly
      additionalProperties: false
    GetVaultMarketEntityByIdResponseEntityCaps:
      type: object
      properties:
        maxOrderNotionalCents:
          type: number
          nullable: true
          description: Per-order notional, cents.
        maxUnitsPerKey:
          type: number
          nullable: true
          description: Units of one key held or working at once.
        maxGrossCents:
          type: number
          nullable: true
          description: Gross (long + short) and net exposure at the mark, cents.
        maxNetCents:
          type: number
          nullable: true
        maxLeverageX100:
          type: number
          nullable: true
          description: 100 = no leverage.
      additionalProperties: false
    GetVaultMarketEntityByIdResponseHalts:
      type: object
      properties:
        id:
          type: string
        subaccountId:
          type: string
          nullable: true
        reason:
          type: string
        createdBy:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - reason
        - createdAt
      additionalProperties: false
    GetVaultMarketEntityByIdResponseMembers:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        email:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        role:
          type: string
        status:
          type: string
        invitedAt:
          type: string
        acceptedAt:
          type: string
          nullable: true
      required:
        - id
        - userId
        - role
        - status
        - invitedAt
      additionalProperties: false
    GetVaultMarketEntityByIdResponseSubaccounts:
      type: object
      properties:
        id:
          type: string
        accountId:
          type: string
        name:
          type: string
        strategyTag:
          type: string
          nullable: true
        status:
          type: string
        atCustodian:
          type: boolean
        limits:
          type: object
          nullable: true
          additionalProperties: {}
        effectiveLimits:
          $ref: "#/components/schemas/GetVaultMarketEntityByIdResponseEntityCaps"
        halted:
          type: boolean
        createdAt:
          type: string
      required:
        - id
        - accountId
        - name
        - status
        - atCustodian
        - effectiveLimits
        - halted
        - createdAt
      additionalProperties: false
    GetVaultMarketEntityResponse:
      type: object
      properties:
        entities:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityResponseEntities"
        invitations:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketEntityResponseInvitations"
      required:
        - entities
        - invitations
      additionalProperties: false
    GetVaultMarketEntityResponseEntities:
      type: object
      properties:
        id:
          type: string
        legalName:
          type: string
        entityType:
          type: string
        kybStatus:
          type: string
        role:
          type: string
        subaccounts:
          type: number
      required:
        - id
        - legalName
        - entityType
        - kybStatus
        - role
        - subaccounts
      additionalProperties: false
    GetVaultMarketEntityResponseInvitations:
      type: object
      properties:
        entityId:
          type: string
        legalName:
          type: string
        role:
          type: string
      required:
        - entityId
        - legalName
        - role
      additionalProperties: false
    GetVaultMarketEstimateResponse:
      type: object
      properties:
        label:
          type: string
        derived:
          type: boolean
        available:
          type: boolean
          description: "False: no number is shown, only `reason` (and `why`)."
        reason:
          type: string
          nullable: true
        why:
          type: string
          nullable: true
        method:
          type: string
          enum:
            - own_trades
            - index_adjusted
            - grade_ratio
          nullable: true
        cents:
          type: number
          nullable: true
        band68:
          $ref: "#/components/schemas/LowCentsHighCents"
        band95:
          $ref: "#/components/schemas/LowCentsHighCents"
        confidence:
          type: string
          enum:
            - High
            - Medium
            - Low
          nullable: true
        fsd:
          type: number
          nullable: true
        backtestN:
          type: number
          description: Backtested trades behind the FSD, for this method, category and liquidity bucket.
        n:
          type: number
          description: Observations behind the estimate itself.
        asOf:
          type: string
        methodVersion:
          type: number
        detail:
          type: object
          nullable: true
          additionalProperties: {}
        bookKey:
          type: string
        categorySlug:
          type: string
          nullable: true
        liquidityBucket:
          type: string
      required:
        - label
        - derived
        - available
        - backtestN
        - n
        - asOf
        - methodVersion
        - bookKey
        - liquidityBucket
      additionalProperties: false
    GetVaultMarketExecutionQualityResponse:
      type: object
      properties:
        quarter:
          type: string
        from:
          type: string
        to:
          type: string
        provisional:
          type: boolean
        total:
          $ref: "#/components/schemas/GetVaultMarketExecutionQualityResponseTotal"
        byOrderTypeAndSize:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketExecutionQualityResponseByOrderTypeAndSize"
        busiestKeys:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketExecutionQualityResponseBusiestKeys"
        method:
          type: array
          items:
            type: string
        orderHandlingVersion:
          type: string
      required:
        - quarter
        - from
        - to
        - provisional
        - total
        - byOrderTypeAndSize
        - busiestKeys
        - method
        - orderHandlingVersion
      additionalProperties: false
    GetVaultMarketExecutionQualityResponseBusiestKeys:
      type: object
      properties:
        orders:
          type: number
        unitsOrdered:
          type: number
        unitsFilled:
          type: number
        fillRateBps:
          type: number
          nullable: true
        medianTimeToFirstFillMs:
          type: number
          nullable: true
        avgEffectiveSpreadBps:
          type: number
          nullable: true
        avgQuotedSpreadBps:
          type: number
          nullable: true
        effectiveOverQuoted:
          type: number
          nullable: true
        avgShortfallBps:
          type: number
          nullable: true
        measuredSpreads:
          type: number
        bookKey:
          type: string
        title:
          type: string
      required:
        - orders
        - unitsOrdered
        - unitsFilled
        - measuredSpreads
        - bookKey
        - title
      additionalProperties: false
    GetVaultMarketExecutionQualityResponseByOrderTypeAndSize:
      type: object
      properties:
        orders:
          type: number
        unitsOrdered:
          type: number
        unitsFilled:
          type: number
        fillRateBps:
          type: number
          nullable: true
        medianTimeToFirstFillMs:
          type: number
          nullable: true
        avgEffectiveSpreadBps:
          type: number
          nullable: true
        avgQuotedSpreadBps:
          type: number
          nullable: true
        effectiveOverQuoted:
          type: number
          nullable: true
        avgShortfallBps:
          type: number
          nullable: true
        measuredSpreads:
          type: number
        type:
          type: string
        size:
          type: string
          enum:
            - under_500
            - 500_2500
            - 2500_10000
            - 10000_plus
        sizeLabel:
          type: string
      required:
        - orders
        - unitsOrdered
        - unitsFilled
        - measuredSpreads
        - type
        - size
        - sizeLabel
      additionalProperties: false
    GetVaultMarketExecutionQualityResponseTotal:
      type: object
      properties:
        orders:
          type: number
        unitsOrdered:
          type: number
        unitsFilled:
          type: number
        fillRateBps:
          type: number
          nullable: true
        medianTimeToFirstFillMs:
          type: number
          nullable: true
        avgEffectiveSpreadBps:
          type: number
          nullable: true
        avgQuotedSpreadBps:
          type: number
          nullable: true
        effectiveOverQuoted:
          type: number
          nullable: true
        avgShortfallBps:
          type: number
          nullable: true
        measuredSpreads:
          type: number
      required:
        - orders
        - unitsOrdered
        - unitsFilled
        - measuredSpreads
      additionalProperties: false
    GetVaultMarketFeeQuoteResponse:
      type: object
      properties:
        paidOnTop:
          type: boolean
        programs:
          $ref: "#/components/schemas/GetVaultMarketFeeQuoteResponsePrograms"
        side:
          type: string
          enum:
            - buy
            - sell
        priceCents:
          type: number
        quantity:
          type: number
        maker:
          $ref: "#/components/schemas/GetVaultMarketFeeQuoteResponseMaker"
        taker:
          $ref: "#/components/schemas/GetVaultMarketFeeQuoteResponseMaker"
        floorBps:
          type: number
        bookKey:
          type: string
      required:
        - paidOnTop
        - programs
        - side
        - priceCents
        - quantity
        - maker
        - taker
        - floorBps
        - bookKey
      additionalProperties: false
    GetVaultMarketFeeQuoteResponseMaker:
      type: object
      properties:
        role:
          type: string
          enum:
            - maker
            - taker
        program:
          type: string
          enum:
            - retail
            - volume
            - lp
            - dmm
        rateBps:
          type: number
        trimCents:
          type: number
        perUnitCents:
          type: number
        totalCents:
          type: number
      required:
        - role
        - program
        - rateBps
        - trimCents
        - perUnitCents
        - totalCents
      additionalProperties: false
    GetVaultMarketFeeQuoteResponsePrograms:
      type: object
      properties:
        lp:
          type: boolean
        dmm:
          type: boolean
        volumeTier:
          type: boolean
        memberTier:
          type: string
          enum:
            - pro
            - classic
          nullable: true
      required:
        - lp
        - dmm
        - volumeTier
      additionalProperties: false
    GetVaultMarketFeeScheduleResponse:
      type: object
      properties:
        floorBps:
          type: number
        schedule:
          $ref: "#/components/schemas/GetVaultMarketFeeScheduleResponseSchedule"
        volumeTierCents:
          type: number
        cbxDiscountBps:
          type: number
        referralShareBps:
          type: number
        referralDays:
          type: number
        note:
          type: string
      required:
        - floorBps
        - schedule
        - volumeTierCents
        - cbxDiscountBps
        - referralShareBps
        - referralDays
        - note
      additionalProperties: false
    GetVaultMarketFeeScheduleResponseSchedule:
      type: object
      properties:
        retail:
          $ref: "#/components/schemas/MakerTaker"
        volume:
          $ref: "#/components/schemas/MakerTaker"
        lp:
          $ref: "#/components/schemas/MakerTaker"
        dmm:
          $ref: "#/components/schemas/MakerTaker"
      required:
        - retail
        - volume
        - lp
        - dmm
      additionalProperties: false
    GetVaultMarketFollowSharingResponse:
      type: object
      properties:
        isPublic:
          type: boolean
        showBuys:
          type: boolean
        handle:
          type: string
          nullable: true
        profileUrl:
          type: string
          nullable: true
        followers:
          type: number
        copyWatchers:
          type: number
        sharing:
          $ref: "#/components/schemas/GetVaultMarketFollowSharingResponseSharing"
        since:
          $ref: "#/components/schemas/GetVaultMarketFollowSharingResponseSince"
        explain:
          $ref: "#/components/schemas/GetVaultMarketFollowSharingResponseExplain"
      required:
        - isPublic
        - showBuys
        - followers
        - copyWatchers
        - sharing
        - since
        - explain
      additionalProperties: false
    GetVaultMarketFollowSharingResponseExplain:
      type: object
      properties:
        orders:
          type: string
        sales:
          type: string
        leaderboard:
          type: string
        deposits:
          type: string
        hallLoans:
          type: string
      required:
        - orders
        - sales
        - leaderboard
        - deposits
        - hallLoans
      additionalProperties: false
    GetVaultMarketFollowSharingResponseSharing:
      type: object
      properties:
        orders:
          type: boolean
        sales:
          type: boolean
        leaderboard:
          type: boolean
        deposits:
          type: boolean
        hallLoans:
          type: boolean
      required:
        - orders
        - sales
        - leaderboard
        - deposits
        - hallLoans
      additionalProperties: false
    GetVaultMarketFollowSharingResponseSince:
      type: object
      properties:
        deposits:
          type: string
          nullable: true
        sales:
          type: string
          nullable: true
        hallLoans:
          type: string
          nullable: true
        orders:
          type: string
          nullable: true
        leaderboard:
          type: string
          nullable: true
      additionalProperties: false
    GetVaultMarketGemRateResponse:
      type: object
      properties:
        bookKey:
          type: string
        categorySlug:
          type: string
          nullable: true
        item:
          $ref: "#/components/schemas/GetVaultMarketGemRateResponseItem"
        category:
          $ref: "#/components/schemas/GetVaultMarketGemRateResponseCategory"
        gemFloors:
          type: object
          additionalProperties: {}
      required:
        - bookKey
        - item
        - gemFloors
      additionalProperties: false
    GetVaultMarketGemRateResponseCategory:
      type: object
      properties:
        label:
          type: string
        derived:
          type: boolean
        graders:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketGemRateResponseItemGraders"
        n:
          type: number
        methodVersion:
          type: number
      required:
        - label
        - derived
        - graders
        - n
        - methodVersion
      additionalProperties: false
      nullable: true
    GetVaultMarketGemRateResponseItem:
      type: object
      properties:
        label:
          type: string
        derived:
          type: boolean
        graders:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketGemRateResponseItemGraders"
        n:
          type: number
        methodVersion:
          type: number
      required:
        - label
        - derived
        - graders
        - n
        - methodVersion
      additionalProperties: false
    GetVaultMarketGemRateResponseItemGraders:
      type: object
      properties:
        graderSlug:
          type: string
        gemFloor:
          type: number
        n:
          type: number
        gems:
          type: number
        insufficient:
          type: boolean
        rateBps:
          type: number
          nullable: true
        band95Bps:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - graderSlug
        - gemFloor
        - n
        - gems
        - insufficient
      additionalProperties: false
    GetVaultMarketGradeToVaultCandidateResponse:
      type: object
      properties:
        inventory:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketGradeToVaultCandidateResponseInventory"
        vaultUnits:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketGradeToVaultCandidateResponseInventory"
        gates:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGates"
      required:
        - inventory
        - vaultUnits
        - gates
      additionalProperties: false
    GetVaultMarketGradeToVaultCandidateResponseInventory:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        variantId:
          type: string
      required:
        - id
        - variantId
      additionalProperties: false
    GetVaultMarketGradingOrderResponse:
      type: object
      properties:
        order:
          $ref: "#/components/schemas/GetVaultMarketGradingOrderResponseOrder"
      required:
        - order
      additionalProperties: false
    GetVaultMarketGradingOrderResponseOrder:
      type: object
      properties:
        timeline:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketGradingOrderResponseOrderTimeline"
        costs:
          $ref: "#/components/schemas/GetVaultMarketGradingOrderResponseOrderCosts"
        addOns:
          type: array
          items:
            type: string
        note:
          type: string
          nullable: true
        tracking:
          $ref: "#/components/schemas/GetVaultMarketGradingOrderResponseOrderTracking"
        cards:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketGradingOrderResponseOrderCards"
        canPay:
          type: boolean
        canCancel:
          type: boolean
        id:
          type: string
        number:
          type: string
        status:
          type: string
          enum:
            - draft
            - grading
            - cancelled
            - paid
            - received
            - graded
            - returned
            - shipped_to_grader
        statusLabel:
          type: string
        graderSlug:
          type: string
        graderName:
          type: string
        tierSlug:
          type: string
        tierName:
          type: string
        cardCount:
          type: number
        gradedCount:
          type: number
        totalCents:
          type: number
        paidCents:
          type: number
        thumbnails:
          type: array
          items:
            type: string
          description: Up to four card pictures, the contents at a glance.
        titles:
          type: array
          items:
            type: string
          description: Up to three card names.
        createdAt:
          type: string
        paidAt:
          type: string
          nullable: true
        updatedAt:
          type: string
      required:
        - timeline
        - costs
        - addOns
        - tracking
        - cards
        - canPay
        - canCancel
        - id
        - number
        - status
        - statusLabel
        - graderSlug
        - graderName
        - tierSlug
        - tierName
        - cardCount
        - gradedCount
        - totalCents
        - paidCents
        - thumbnails
        - titles
        - createdAt
        - updatedAt
      additionalProperties: false
    GetVaultMarketGradingOrderResponseOrderCards:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
          enum:
            - inventory
            - vault
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        declaredValueCents:
          type: number
        notes:
          type: string
          nullable: true
        addOns:
          type: array
          items:
            type: string
        status:
          type: string
          enum:
            - refunded
            - received
            - released
            - reserved
            - charged
            - shipped_to_hub
            - prescreen_failed
            - at_grader
            - graded
            - returning
            - returned
            - vaulted
        statusLabel:
          type: string
        grade:
          type: object
          nullable: true
          additionalProperties: {}
        images:
          type: array
          items:
            type: string
          description: The slab once back (front, back), then the intake photos taken at the vault.
        reviewNote:
          type: string
          nullable: true
        costs:
          type: object
          additionalProperties: {}
      required:
        - id
        - source
        - title
        - declaredValueCents
        - addOns
        - status
        - statusLabel
        - images
        - costs
      additionalProperties: false
    GetVaultMarketGradingOrderResponseOrderCosts:
      type: object
      properties:
        gradingCents:
          type: number
        handlingCents:
          type: number
        addOnsCents:
          type: number
        totalCents:
          type: number
        paidCents:
          type: number
        refundedCents:
          type: number
        declaredValueCents:
          type: number
      required:
        - gradingCents
        - handlingCents
        - addOnsCents
        - totalCents
        - paidCents
        - refundedCents
        - declaredValueCents
      additionalProperties: false
    GetVaultMarketGradingOrderResponseOrderTimeline:
      type: object
      properties:
        key:
          type: string
          enum:
            - draft
            - grading
            - cancelled
            - paid
            - received
            - graded
            - returned
            - shipped_to_grader
            - cards_in
        label:
          type: string
        at:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - current
            - done
            - todo
      required:
        - key
        - label
        - state
      additionalProperties: false
    GetVaultMarketGradingOrderResponseOrderTracking:
      type: object
      properties:
        sendIn:
          $ref: "#/components/schemas/GetVaultMarketGradingOrderResponseOrderTrackingSendIn"
        graderOrderNumber:
          type: string
          nullable: true
        toGrader:
          type: string
          nullable: true
        backToVault:
          type: string
          nullable: true
      additionalProperties: false
    GetVaultMarketGradingOrderResponseOrderTrackingSendIn:
      type: object
      properties:
        shipmentId:
          type: string
        labelUrl:
          type: string
          nullable: true
        trackingCode:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        labelError:
          type: string
          nullable: true
      required:
        - shipmentId
      additionalProperties: false
      nullable: true
      description: The box that carries the order's inventory cards into the vault.
    GetVaultMarketGradingSignalResponse:
      type: object
      properties:
        bookKey:
          type: string
        rawMarkCents:
          type: number
          nullable: true
        rawMarkQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        graded:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketGradingSignalResponseGraded"
        graders:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketGradingSignalResponseGraders"
        worthIt:
          type: boolean
        rawTier:
          type: string
          enum:
            - closed
            - standard
            - deep
            - thin
        myUnits:
          type: array
          items:
            type: string
          description: Units of yours it pays to grade (none when no grade pays).
        myRawUnits:
          type: number
        cta:
          $ref: "#/components/schemas/GetVaultMarketGradingSignalResponseCta"
      required:
        - bookKey
        - rawMarkQuality
        - graded
        - graders
        - worthIt
        - rawTier
        - myUnits
        - myRawUnits
      additionalProperties: false
    GetVaultMarketGradingSignalResponseGraded:
      type: object
      properties:
        bookKey:
          type: string
      required:
        - bookKey
      additionalProperties: false
    GetVaultMarketGradingSignalResponseGraders:
      type: object
      properties:
        graderSlug:
          type: string
        graderName:
          type: string
        costCents:
          type: number
          nullable: true
        via:
          type: string
          enum:
            - single
            - run
          nullable: true
        runId:
          type: string
          nullable: true
        breakEvenGradeKey:
          type: string
          nullable: true
        worthIt:
          type: boolean
          nullable: true
      required:
        - graderSlug
        - graderName
      additionalProperties: false
    GetVaultMarketHallLoanResponse:
      type: object
      properties:
        exhibition:
          $ref: "#/components/schemas/GetVaultMarketHallLoanResponseExhibition"
        rules:
          $ref: "#/components/schemas/GetVaultMarketHallLoanResponseRules"
        reputation:
          $ref: "#/components/schemas/GetVaultMarketHallLoanResponseReputation"
        loans:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHallLoanResponseLoans"
        eligible:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHallLoanResponseEligible"
      required:
        - exhibition
        - rules
        - reputation
        - loans
        - eligible
      additionalProperties: false
    GetVaultMarketHallLoanResponseEligible:
      type: object
      properties:
        vaultItemId:
          type: string
        skuId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
        canLend:
          type: boolean
        blocker:
          type: string
          nullable: true
        next:
          $ref: "#/components/schemas/CreateVaultMarketHallLoanResponseNext"
      required:
        - vaultItemId
        - skuId
        - name
        - canLend
        - next
      additionalProperties: false
    GetVaultMarketHallLoanResponseExhibition:
      type: object
      properties:
        key:
          type: string
        title:
          type: string
        categorySlug:
          type: string
        endsAt:
          type: string
        next:
          type: string
      required:
        - key
        - title
        - categorySlug
        - endsAt
        - next
      additionalProperties: false
    GetVaultMarketHallLoanResponseLoans:
      type: object
      properties:
        id:
          type: string
        vaultItemId:
          type: string
        skuId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
        credit:
          type: string
          enum:
            - name
            - anonymous
          x-enum-varnames:
            - nameOption
            - anonymous
        status:
          type: string
          enum:
            - active
            - ended
            - ending
        endedReason:
          type: string
          enum:
            - opted_out
            - unit_left
          nullable: true
        since:
          type: string
        endedAt:
          type: string
          nullable: true
        onShowNow:
          type: boolean
        showingUntil:
          type: string
          nullable: true
        exhibitions:
          type: number
        next:
          $ref: "#/components/schemas/CreateVaultMarketHallLoanResponseNext"
        badge:
          $ref: "#/components/schemas/GetVaultMarketHallLoanResponseLoansBadge"
      required:
        - id
        - vaultItemId
        - skuId
        - name
        - credit
        - status
        - since
        - onShowNow
        - exhibitions
        - next
      additionalProperties: false
    GetVaultMarketHallLoanResponseLoansBadge:
      type: object
      properties:
        label:
          type: string
        detail:
          type: string
          description: One plain sentence under the badge.
        onShowNow:
          type: boolean
        exhibitions:
          type: number
      required:
        - label
        - detail
        - onShowNow
        - exhibitions
      additionalProperties: false
      nullable: true
    GetVaultMarketHallLoanResponseReputation:
      type: object
      properties:
        exhibitionsFinished:
          type: number
        pointsEach:
          type: number
      required:
        - exhibitionsFinished
        - pointsEach
      additionalProperties: false
    GetVaultMarketHallLoanResponseRules:
      type: object
      properties:
        maxLive:
          type: number
        shownPerHolder:
          type: number
        repPoints:
          type: number
        text:
          type: string
      required:
        - maxLive
        - shownPerHolder
        - repPoints
        - text
      additionalProperties: false
    GetVaultMarketHealthResponse:
      type: object
      properties:
        asOf:
          type: string
        disclosure:
          type: string
        totals:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseTotals"
        concentration:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseConcentration"
        liquidity:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseLiquidity"
        stress:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseStress"
        marks:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseMarks"
        notes:
          type: array
          items:
            type: string
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHealthResponseItems"
          description: The items a what-if can be run on, largest first.
        hedges:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseHedges"
      required:
        - asOf
        - disclosure
        - totals
        - concentration
        - liquidity
        - stress
        - marks
        - notes
        - items
        - hedges
      additionalProperties: false
    GetVaultMarketHealthResponseConcentration:
      type: object
      properties:
        totalCents:
          type: number
        singleItem:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseConcentrationSingleItem"
        byCategory:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseConcentrationByCategory"
        byGrade:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseConcentrationByCategory"
        byGrader:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseConcentrationByCategory"
      required:
        - totalCents
        - singleItem
        - byCategory
        - byGrade
        - byGrader
      additionalProperties: false
    GetVaultMarketHealthResponseConcentrationByCategory:
      type: object
      properties:
        groups:
          type: array
          items:
            type: object
            additionalProperties: {}
        hhi:
          type: number
        band:
          type: string
          enum:
            - moderate
            - spread
            - empty
            - concentrated
        effectiveCount:
          type: number
          nullable: true
        largestShareBps:
          type: number
      required:
        - groups
        - hhi
        - band
        - largestShareBps
      additionalProperties: false
    GetVaultMarketHealthResponseConcentrationSingleItem:
      type: object
      properties:
        hhi:
          type: number
        band:
          type: string
          enum:
            - moderate
            - spread
            - empty
            - concentrated
        bandText:
          type: string
        effectiveCount:
          type: number
          nullable: true
        largestShareBps:
          type: number
        top:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - hhi
        - band
        - bandText
        - largestShareBps
        - top
      additionalProperties: false
    GetVaultMarketHealthResponseHedges:
      type: object
      properties:
        protectivePuts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHealthResponseHedgesProtectivePuts"
        coveredCalls:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHealthResponseHedgesProtectivePuts"
        byKey:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHealthResponseHedgesByKey"
        note:
          type: string
      required:
        - protectivePuts
        - coveredCalls
        - byKey
        - note
      additionalProperties: false
    GetVaultMarketHealthResponseHedgesByKey:
      type: object
      properties:
        bookKey:
          type: string
        flooredUnits:
          type: number
        floorCents:
          type: number
          nullable: true
        cappedUnits:
          type: number
        capCents:
          type: number
          nullable: true
      required:
        - bookKey
        - flooredUnits
        - cappedUnits
      additionalProperties: false
    GetVaultMarketHealthResponseHedgesProtectivePuts:
      type: object
      properties:
        kind:
          type: string
          enum:
            - protective_put
            - covered_call
        bookKey:
          type: string
        symbol:
          type: string
        qtyMilli:
          type: number
        strikeCents:
          type: number
        expiryDay:
          type: string
      required:
        - kind
        - bookKey
        - symbol
        - qtyMilli
        - strikeCents
        - expiryDay
      additionalProperties: false
    GetVaultMarketHealthResponseItems:
      type: object
      properties:
        bookKey:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        category:
          type: string
        grade:
          type: string
        units:
          type: number
        markCents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        tier:
          type: string
          enum:
            - C
            - A
            - B
            - D
            - unclassified
        valueCents:
          type: number
      required:
        - bookKey
        - title
        - category
        - grade
        - units
        - quality
        - tier
        - valueCents
      additionalProperties: false
    GetVaultMarketHealthResponseLiquidity:
      type: object
      properties:
        totalCents:
          type: number
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHealthResponseLiquidityTiers"
        continuousShareBps:
          type: number
        auctionShareBps:
          type: number
        listingsOnlyShareBps:
          type: number
      required:
        - totalCents
        - tiers
        - continuousShareBps
        - auctionShareBps
        - listingsOnlyShareBps
      additionalProperties: false
    GetVaultMarketHealthResponseLiquidityTiers:
      type: object
      properties:
        tier:
          type: string
          enum:
            - C
            - A
            - B
            - D
            - unclassified
        label:
          type: string
        explainer:
          type: string
        items:
          type: number
        units:
          type: number
        valueCents:
          type: number
        shareBps:
          type: number
      required:
        - tier
        - label
        - explainer
        - items
        - units
        - valueCents
        - shareBps
      additionalProperties: false
    GetVaultMarketHealthResponseMarks:
      type: object
      properties:
        totalCents:
          type: number
        parts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHealthResponseMarksParts"
        reliableShareBps:
          type: number
        unmarkedUnits:
          type: number
      required:
        - totalCents
        - parts
        - reliableShareBps
        - unmarkedUnits
      additionalProperties: false
    GetVaultMarketHealthResponseMarksParts:
      type: object
      properties:
        items:
          type: number
        units:
          type: number
        valueCents:
          type: number
        shareBps:
          type: number
        label:
          type: string
        text:
          type: string
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
      required:
        - items
        - units
        - valueCents
        - shareBps
        - label
        - text
        - quality
      additionalProperties: false
    GetVaultMarketHealthResponseStress:
      type: object
      properties:
        label:
          type: string
        shocksBps:
          type: array
          items:
            type: number
        totalCents:
          type: number
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHealthResponseStressRows"
        everything:
          $ref: "#/components/schemas/GetVaultMarketHealthResponseStressEverything"
      required:
        - label
        - shocksBps
        - totalCents
        - rows
        - everything
      additionalProperties: false
    GetVaultMarketHealthResponseStressEverything:
      type: object
      properties:
        exposureCents:
          type: number
        cells:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - exposureCents
        - cells
      additionalProperties: false
    GetVaultMarketHealthResponseStressRows:
      type: object
      properties:
        category:
          type: string
        exposureCents:
          type: number
        shareBps:
          type: number
        cells:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - category
        - exposureCents
        - shareBps
        - cells
      additionalProperties: false
    GetVaultMarketHealthResponseTotals:
      type: object
      properties:
        valueCents:
          type: number
        items:
          type: number
        units:
          type: number
        unitsOnLoan:
          type: number
        unmarkedUnits:
          type: number
        unlistedUnits:
          type: number
          description: "Units in the vault that are not on any market (no catalogue variant): not valued here."
      required:
        - valueCents
        - items
        - units
        - unitsOnLoan
        - unmarkedUnits
        - unlistedUnits
      additionalProperties: false
    GetVaultMarketHealthWhatIfResponse:
      type: object
      properties:
        bookKey:
          type: string
        title:
          type: string
        category:
          type: string
        units:
          type: number
        markCents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        moveBps:
          type: number
        priced:
          type: boolean
        itemBeforeCents:
          type: number
        itemAfterCents:
          type: number
        changeCents:
          type: number
        vaultBeforeCents:
          type: number
        vaultAfterCents:
          type: number
        vaultChangeBps:
          type: number
        shareBeforeBps:
          type: number
        shareAfterBps:
          type: number
        categoryShareBeforeBps:
          type: number
        categoryShareAfterBps:
          type: number
        hhiBefore:
          type: number
        hhiAfter:
          type: number
        note:
          type: string
      required:
        - bookKey
        - title
        - category
        - units
        - quality
        - moveBps
        - priced
        - itemBeforeCents
        - itemAfterCents
        - changeCents
        - vaultBeforeCents
        - vaultAfterCents
        - vaultChangeBps
        - shareBeforeBps
        - shareAfterBps
        - categoryShareBeforeBps
        - categoryShareAfterBps
        - hhiBefore
        - hhiAfter
        - note
      additionalProperties: false
    GetVaultMarketHoldingInventoryItemResponse:
      type: object
      properties:
        inventoryItemId:
          type: string
          nullable: true
      additionalProperties: false
    GetVaultMarketHoldingWithdrawQuoteResponse:
      type: object
      properties:
        id:
          type: string
        standard:
          $ref: "#/components/schemas/GetVaultMarketHoldingWithdrawQuoteResponseStandard"
        expedited:
          $ref: "#/components/schemas/GetVaultMarketHoldingWithdrawQuoteResponseStandard"
      required:
        - id
        - standard
        - expedited
      additionalProperties: false
    GetVaultMarketHoldingWithdrawQuoteResponseStandard:
      type: object
      properties:
        shippingCents:
          type: number
        storageCents:
          type: number
        earlyWithdrawCents:
          type: number
        feeCents:
          type: number
      required:
        - shippingCents
        - storageCents
        - earlyWithdrawCents
        - feeCents
      additionalProperties: false
    GetVaultMarketHomeUnitResponse:
      type: object
      properties:
        home:
          $ref: "#/components/schemas/GetVaultMarketHomeUnitResponseHome"
        max:
          type: number
          description: The most units one home shows.
        shown:
          type: number
        visitorsSee:
          type: number
        note:
          type: string
          description: "Plain words: who sees what, given the home's privacy."
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketHomeUnitResponseUnits"
      required:
        - home
        - max
        - shown
        - visitorsSee
        - note
        - units
      additionalProperties: false
    GetVaultMarketHomeUnitResponseHome:
      type: object
      properties:
        slug:
          type: string
        privacy:
          type: string
          enum:
            - open
            - friends
            - locked
        path:
          type: string
      required:
        - slug
        - privacy
        - path
      additionalProperties: false
    GetVaultMarketHomeUnitResponseUnits:
      type: object
      properties:
        vaultItemId:
          type: string
        title:
          type: string
        grade:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bookKey:
          type: string
          nullable: true
          description: The unit's market (a book key), or null for an uncatalogued variant.
        inHome:
          type: boolean
          description: It stands in your home now.
        visitors:
          type: boolean
          description: Visitors may see it (only ever true while it is in your home).
      required:
        - vaultItemId
        - title
        - inHome
        - visitors
      additionalProperties: false
    GetVaultMarketIndexCalendarResponse:
      type: object
      properties:
        methodVersion:
          type: string
        cycles:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketIndexCalendarResponseCycles"
      required:
        - methodVersion
        - cycles
      additionalProperties: false
    GetVaultMarketIndexCalendarResponseCycles:
      type: object
      properties:
        id:
          type: string
          description: e.g. "2026-12".
        referenceDay:
          type: string
          description: "The day the screens are run on (2nd Friday): marks, trades and units as of its close."
        announceDay:
          type: string
          description: Changes are announced on this day (5 business days before the effective day).
        lastOldCloseDay:
          type: string
          description: The third Friday; the new membership applies from the day after its close.
        effectiveDay:
          type: string
          description: First day the new membership counts.
        semiAnnual:
          type: boolean
          description: "June and December: the Blue-chip 50 is also reviewed."
      required:
        - id
        - referenceDay
        - announceDay
        - lastOldCloseDay
        - effectiveDay
        - semiAnnual
      additionalProperties: false
    GetVaultMarketIndexFeedFundingResponse:
      type: object
      properties:
        index:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedFundingResponseIndex"
        level:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedFundingResponseLevel"
        premiumBps:
          type: number
        interestBps:
          type: number
        funding:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedFundingResponseFunding"
        settledBy:
          type: string
        note:
          type: string
      required:
        - index
        - level
        - premiumBps
        - interestBps
        - funding
        - settledBy
        - note
      additionalProperties: false
    GetVaultMarketIndexFeedFundingResponseFunding:
      type: object
      properties:
        rateBps:
          type: number
        hourlyBps:
          type: number
        capped:
          type: boolean
      required:
        - rateBps
        - hourlyBps
        - capped
      additionalProperties: false
    GetVaultMarketIndexFeedFundingResponseIndex:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
            - custom
            - brand
            - category
            - segment
            - curated
            - composite
        weighting:
          type: string
          enum:
            - mark
            - equal
            - vault_cap
            - turnover
        baseValue:
          type: number
        inceptionDay:
          type: string
          nullable: true
      required:
        - slug
        - name
        - kind
        - weighting
        - baseValue
      additionalProperties: false
    GetVaultMarketIndexFeedFundingResponseLevel:
      type: object
      properties:
        value:
          type: number
        basis:
          type: string
        coverageBps:
          type: number
        minCoverageBps:
          type: number
        pricedKeys:
          type: number
        keys:
          type: number
        lastClose:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedFundingResponseLevelLastClose"
      required:
        - value
        - basis
        - coverageBps
        - minCoverageBps
        - pricedKeys
        - keys
      additionalProperties: false
    GetVaultMarketIndexFeedFundingResponseLevelLastClose:
      type: object
      properties:
        day:
          type: string
        value:
          type: number
      required:
        - day
        - value
      additionalProperties: false
      nullable: true
    GetVaultMarketIndexFeedResponse:
      type: object
      properties:
        feed:
          type: string
        version:
          type: string
        licensor:
          type: string
        dcm:
          type: string
        asOf:
          type: string
        index:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedFundingResponseIndex"
        level:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedFundingResponseLevel"
        settlement:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedResponseSettlement"
        constituents:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketIndexFeedResponseConstituents"
        funding:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedResponseFunding"
        note:
          type: string
      required:
        - feed
        - version
        - licensor
        - dcm
        - asOf
        - index
        - level
        - settlement
        - constituents
        - funding
        - note
      additionalProperties: false
    GetVaultMarketIndexFeedResponseConstituents:
      type: object
      properties:
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        markDay:
          type: string
          nullable: true
        quality:
          type: string
        source:
          type: string
        tradeCount:
          type: number
        confidenceBps:
          type: number
          nullable: true
        asOf:
          type: string
          nullable: true
        stale:
          type: boolean
        pricedToday:
          type: boolean
        inRatio:
          type: boolean
      required:
        - bookKey
        - quality
        - source
        - tradeCount
        - stale
        - pricedToday
        - inRatio
      additionalProperties: false
    GetVaultMarketIndexFeedResponseFunding:
      type: object
      properties:
        clampBps8h:
          type: number
        capBpsDay:
          type: number
        interestBps8h:
          type: number
        periodsPerDay:
          type: number
        form:
          type: string
      required:
        - clampBps8h
        - capBpsDay
        - interestBps8h
        - periodsPerDay
        - form
      additionalProperties: false
    GetVaultMarketIndexFeedResponseSettlement:
      type: object
      properties:
        twap:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedResponseSettlementTwap"
        lastSettlementClose:
          $ref: "#/components/schemas/GetVaultMarketIndexFeedFundingResponseLevelLastClose"
      additionalProperties: false
    GetVaultMarketIndexFeedResponseSettlementTwap:
      type: object
      properties:
        day:
          type: string
        value:
          type: number
          nullable: true
        n:
          type: number
        complete:
          type: boolean
        windowDays:
          type: number
        frozen:
          type: boolean
      required:
        - day
        - n
        - complete
        - windowDays
        - frozen
      additionalProperties: false
      nullable: true
    GetVaultMarketIndexFeedSettlementResponse:
      type: object
      properties:
        index:
          $ref: "#/components/schemas/NameSlug"
        method:
          type: string
        series:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketIndexFeedSettlementResponseSeries"
      required:
        - index
        - method
        - series
      additionalProperties: false
    GetVaultMarketIndexFeedSettlementResponseSeries:
      type: object
      properties:
        day:
          type: string
        value:
          type: number
          nullable: true
        n:
          type: number
        complete:
          type: boolean
        windowDays:
          type: number
        closes:
          type: array
          items:
            type: object
            additionalProperties: {}
        feedVersion:
          type: string
      required:
        - day
        - n
        - complete
        - windowDays
        - closes
        - feedVersion
      additionalProperties: false
    GetVaultMarketIndexLevelResponse:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        baseValue:
          type: number
        inceptionDay:
          type: string
          nullable: true
        levels:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketIndexResponseHistory"
      required:
        - slug
        - name
        - baseValue
        - levels
      additionalProperties: false
    GetVaultMarketIndexLicenceUsageResponse:
      type: object
      properties:
        days:
          type: number
        usage:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketIndexLicenceUsageResponseUsage"
      required:
        - days
        - usage
      additionalProperties: false
    GetVaultMarketIndexLicenceUsageResponseUsage:
      type: object
      properties:
        indexSlug:
          type: string
          nullable: true
        endpoint:
          type: string
        dcm:
          type: string
        reads:
          type: number
        firstAt:
          type: string
        lastAt:
          type: string
      required:
        - endpoint
        - dcm
        - reads
        - firstAt
        - lastAt
      additionalProperties: false
    GetVaultMarketIndexMethodologyResponse:
      type: object
      properties:
        version:
          type: string
        documentUrl:
          type: string
        administrator:
          type: string
        inputs:
          type: string
        weightings:
          $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponseWeightings"
        family:
          $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponseFamily"
        keyScreen:
          $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponseKeyScreen"
        engines:
          $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponseEngines"
        dailyMinPriced:
          $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponseDailyMinPriced"
        revisions:
          $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponseRevisions"
        calendar:
          type: string
        governance:
          $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponseGovernance"
        limitations:
          type: string
      required:
        - version
        - documentUrl
        - administrator
        - inputs
        - weightings
        - family
        - keyScreen
        - engines
        - dailyMinPriced
        - revisions
        - calendar
        - governance
        - limitations
      additionalProperties: false
    GetVaultMarketIndexMethodologyResponseDailyMinPriced:
      type: object
      properties:
        custom:
          type: number
        brand:
          type: number
        category:
          type: number
        segment:
          type: number
        curated:
          type: number
        composite:
          type: number
      required:
        - custom
        - brand
        - category
        - segment
        - curated
        - composite
      additionalProperties: false
    GetVaultMarketIndexMethodologyResponseEngines:
      type: object
      properties:
        dailyChain:
          type: string
        tpd:
          type: string
        repeatSales:
          type: string
        publicationGate:
          $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponseEnginesPublicationGate"
        belowGate:
          type: string
      required:
        - dailyChain
        - tpd
        - repeatSales
        - publicationGate
        - belowGate
      additionalProperties: false
    GetVaultMarketIndexMethodologyResponseEnginesPublicationGate:
      type: object
      properties:
        trades:
          type: number
        keys:
          type: number
        counterparties:
          type: number
      required:
        - trades
        - keys
        - counterparties
      additionalProperties: false
    GetVaultMarketIndexMethodologyResponseFamily:
      type: object
      properties:
        composite:
          type: string
        sectors:
          type: string
        segments:
          type: string
        blueChip50:
          type: string
        custom:
          type: string
      required:
        - composite
        - sectors
        - segments
        - blueChip50
        - custom
      additionalProperties: false
    GetVaultMarketIndexMethodologyResponseGovernance:
      type: object
      properties:
        committeeQuorum:
          type: number
        tools:
          type: array
          items:
            type: string
        consultationDays:
          type: number
        conflicts:
          type: string
        complaints:
          type: string
      required:
        - committeeQuorum
        - tools
        - consultationDays
        - conflicts
        - complaints
      additionalProperties: false
    GetVaultMarketIndexMethodologyResponseKeyScreen:
      type: object
      properties:
        minTrades90d:
          type: number
        minBuyers90d:
          type: number
        minSellers90d:
          type: number
      required:
        - minTrades90d
        - minBuyers90d
        - minSellers90d
      additionalProperties: false
    GetVaultMarketIndexMethodologyResponseRevisions:
      type: object
      properties:
        provisionalWeeks:
          type: number
        restateOverBps:
          type: number
        settlementSeries:
          type: string
      required:
        - provisionalWeeks
        - restateOverBps
        - settlementSeries
      additionalProperties: false
    GetVaultMarketIndexMethodologyResponseWeightings:
      type: object
      properties:
        equal:
          type: string
        vault_cap:
          type: string
        turnover:
          type: string
        mark:
          type: string
      required:
        - equal
        - vault_cap
        - turnover
        - mark
      additionalProperties: false
    GetVaultMarketIndexResponse:
      type: object
      properties:
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketIndexResponseHistory"
        now:
          $ref: "#/components/schemas/GetVaultMarketIndexResponseNow"
        slug:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - custom
            - brand
            - category
            - segment
            - curated
            - composite
        weighting:
          type: string
          enum:
            - mark
            - equal
            - vault_cap
            - turnover
        label:
          type: string
        baseValue:
          type: number
        isPublic:
          type: boolean
        mine:
          type: boolean
        keys:
          type: number
        keysPriced:
          type: number
        value:
          type: number
          nullable: true
        changeBps:
          type: number
          nullable: true
        notice:
          type: string
          nullable: true
        lastClose:
          $ref: "#/components/schemas/GetVaultMarketIndexResponseLastClose"
        methodVersion:
          type: string
        inceptionDay:
          type: string
          nullable: true
        rebalancedAt:
          type: string
          nullable: true
        halted:
          type: boolean
        retiredAt:
          type: string
          nullable: true
      required:
        - history
        - now
        - slug
        - name
        - kind
        - weighting
        - label
        - baseValue
        - isPublic
        - mine
        - keys
        - keysPriced
        - methodVersion
        - halted
      additionalProperties: false
    GetVaultMarketIndexResponseHistory:
      type: object
      properties:
        day:
          type: string
        value:
          type: number
        constituents:
          type: number
        status:
          type: string
      required:
        - day
        - value
        - constituents
        - status
      additionalProperties: false
    GetVaultMarketIndexResponseLastClose:
      type: object
      properties:
        day:
          type: string
        value:
          type: number
        status:
          type: string
      required:
        - day
        - value
        - status
      additionalProperties: false
      nullable: true
    GetVaultMarketIndexResponseNow:
      type: object
      properties:
        day:
          type: string
        value:
          type: number
          nullable: true
      required:
        - day
      additionalProperties: false
    GetVaultMarketInstantExitResponse:
      type: object
      properties:
        available:
          type: boolean
        reason:
          type: string
          nullable: true
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        bestBidCents:
          type: number
          nullable: true
        unitsAtBest:
          type: number
          description: Units bid at the best price (how many can go at once).
        shareOfMarkBps:
          type: number
          nullable: true
        dealerBid:
          type: boolean
          description: A verified dealer's standing bid is at the best price.
        committedDealers:
          type: number
          description: Dealers keeping an Instant Exit band on this key right now.
        levels:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketInstantExitResponseQuoteLevels"
        floorBps:
          type: number
          description: The lowest share of the mark this key's Instant Exit sells at (its tier's band).
        vaultItemId:
          type: string
      required:
        - available
        - bookKey
        - unitsAtBest
        - dealerBid
        - committedDealers
        - levels
        - floorBps
        - vaultItemId
      additionalProperties: false
    GetVaultMarketItemLocationResponse:
      type: object
      properties:
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketItemLocationResponseUnits"
        sellFrom:
          $ref: "#/components/schemas/GetVaultMarketItemLocationResponseSellFrom"
        eligibility:
          $ref: "#/components/schemas/GetVaultMarketItemLocationResponseEligibility"
        warehouseUnits:
          type: number
        vaultUnits:
          type: number
        inTransitUnits:
          type: number
        shippingOutUnits:
          type: number
        locations:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketItemLocationResponseLocations"
        inventoryItemId:
          type: string
      required:
        - units
        - sellFrom
        - eligibility
        - warehouseUnits
        - vaultUnits
        - inTransitUnits
        - shippingOutUnits
        - locations
        - inventoryItemId
      additionalProperties: false
    GetVaultMarketItemLocationResponseLocations:
      type: object
      properties:
        location:
          type: string
        units:
          type: number
        byStatus:
          $ref: "#/components/schemas/GetVaultMarketItemLocationResponseLocationsByStatus"
      required:
        - location
        - units
        - byStatus
      additionalProperties: false
    GetVaultMarketItemLocationResponseLocationsByStatus:
      type: object
      properties:
        listed:
          type: number
          nullable: true
        received:
          type: number
          nullable: true
        graded:
          type: number
          nullable: true
        authenticated:
          type: number
          nullable: true
        in_transit:
          type: number
          nullable: true
        shipping_out:
          type: number
          nullable: true
      additionalProperties: false
    GetVaultMarketItemLocationResponseSellFrom:
      type: object
      properties:
        item:
          type: string
          enum:
            - vault_first
            - warehouse_first
            - cheapest
          nullable: true
        sellerDefault:
          type: string
          enum:
            - vault_first
            - warehouse_first
            - cheapest
        effective:
          type: string
          enum:
            - vault_first
            - warehouse_first
            - cheapest
        applies:
          type: boolean
        options:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketItemLocationResponseSellFromOptions"
      required:
        - sellerDefault
        - effective
        - applies
        - options
      additionalProperties: false
    GetVaultMarketItemLocationResponseSellFromOptions:
      type: object
      properties:
        id:
          type: string
          enum:
            - vault_first
            - warehouse_first
            - cheapest
        label:
          type: string
      required:
        - id
        - label
      additionalProperties: false
    GetVaultMarketItemLocationResponseUnits:
      type: object
      properties:
        id:
          type: string
        location:
          type: string
        status:
          type: string
          enum:
            - listed
            - received
            - graded
            - authenticated
            - in_transit
            - shipping_out
      required:
        - id
        - location
        - status
      additionalProperties: false
    GetVaultMarketJointByIdResponse:
      type: object
      properties:
        gate:
          $ref: "#/components/schemas/GetVaultMarketJointByIdResponseGate"
        id:
          type: string
        name:
          type: string
        status:
          type: string
        createdAt:
          type: string
        me:
          $ref: "#/components/schemas/GetVaultMarketJointByIdResponseMe"
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketJointByIdResponseMembers"
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketJointByIdResponseUnits"
        totals:
          $ref: "#/components/schemas/GetVaultMarketJointByIdResponseTotals"
        trades:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketJointByIdResponseTrades"
        eligible:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketJointByIdResponseEligible"
        activity:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketJointByIdResponseActivity"
      required:
        - gate
        - id
        - name
        - status
        - createdAt
        - me
        - members
        - units
        - totals
        - trades
        - eligible
        - activity
      additionalProperties: false
    GetVaultMarketJointByIdResponseActivity:
      type: object
      properties:
        seq:
          type: number
        at:
          type: string
        kind:
          type: string
        what:
          type: string
        by:
          type: string
        source:
          type: string
      required:
        - seq
        - at
        - kind
        - what
        - by
        - source
      additionalProperties: false
    GetVaultMarketJointByIdResponseEligible:
      type: object
      properties:
        vaultItemId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
      required:
        - vaultItemId
        - name
      additionalProperties: false
    GetVaultMarketJointByIdResponseGate:
      type: object
      properties:
        open:
          type: boolean
        missing:
          type: array
          items:
            type: string
        termsVersion:
          type: string
          nullable: true
        terms:
          type: array
          items:
            type: string
        rights:
          $ref: "#/components/schemas/GetVaultMarketJointByIdResponseGateRights"
        limits:
          $ref: "#/components/schemas/GetVaultMarketJointByIdResponseGateLimits"
      required:
        - open
        - missing
        - terms
        - rights
        - limits
      additionalProperties: false
    GetVaultMarketJointByIdResponseGateLimits:
      type: object
      properties:
        maxMembers:
          type: number
        minActive:
          type: number
        inviteDays:
          type: number
        maxUnits:
          type: number
      required:
        - maxMembers
        - minActive
        - inviteDays
        - maxUnits
      additionalProperties: false
    GetVaultMarketJointByIdResponseGateRights:
      type: object
      properties:
        full:
          type: string
        view:
          type: string
        trade:
          type: string
      required:
        - full
        - view
        - trade
      additionalProperties: false
    GetVaultMarketJointByIdResponseMe:
      type: object
      properties:
        rights:
          type: string
        termsCurrent:
          type: boolean
        canTrade:
          type: boolean
        canManage:
          type: boolean
      required:
        - rights
        - termsCurrent
        - canTrade
        - canManage
      additionalProperties: false
    GetVaultMarketJointByIdResponseMembers:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        rights:
          type: string
        status:
          type: string
        joinedAt:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
      required:
        - userId
        - name
        - rights
        - status
      additionalProperties: false
    GetVaultMarketJointByIdResponseTotals:
      type: object
      properties:
        units:
          type: number
        valueCents:
          type: number
        unpriced:
          type: number
      required:
        - units
        - valueCents
        - unpriced
      additionalProperties: false
    GetVaultMarketJointByIdResponseTrades:
      type: object
      properties:
        initiatorName:
          type: string
        ownerName:
          type: string
        id:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        bookKey:
          type: string
        quantity:
          type: number
        limitCents:
          type: number
        status:
          type: string
        refuseReason:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        orderStatus:
          type: string
          nullable: true
        filledQuantity:
          type: number
        avgFillCents:
          type: number
          nullable: true
        initiatorUserId:
          type: string
        ownerUserId:
          type: string
        createdAt:
          type: string
      required:
        - initiatorName
        - ownerName
        - id
        - side
        - bookKey
        - quantity
        - limitCents
        - status
        - filledQuantity
        - initiatorUserId
        - ownerUserId
        - createdAt
      additionalProperties: false
    GetVaultMarketJointByIdResponseUnits:
      type: object
      properties:
        vaultItemId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
        condition:
          type: string
        bookKey:
          type: string
          nullable: true
        ownerUserId:
          type: string
        ownerName:
          type: string
        mine:
          type: boolean
        onBook:
          type: boolean
        markCents:
          type: number
          nullable: true
        valueCents:
          type: number
        valueSource:
          type: string
          enum:
            - none
            - mark
            - insured
            - declared
      required:
        - vaultItemId
        - name
        - condition
        - ownerUserId
        - ownerName
        - mine
        - onBook
        - valueCents
        - valueSource
      additionalProperties: false
    GetVaultMarketJointResponse:
      type: object
      properties:
        gate:
          $ref: "#/components/schemas/GetVaultMarketJointByIdResponseGate"
        vaults:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketJointResponseVaults"
        invitations:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketJointResponseInvitations"
      required:
        - gate
        - vaults
        - invitations
      additionalProperties: false
    GetVaultMarketJointResponseInvitations:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        rights:
          type: string
        invitedBy:
          type: string
        expiresAt:
          type: string
          nullable: true
        members:
          type: number
      required:
        - id
        - name
        - rights
        - invitedBy
        - members
      additionalProperties: false
    GetVaultMarketJointResponseVaults:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        status:
          type: string
        rights:
          type: string
        members:
          type: number
        units:
          type: number
        termsCurrent:
          type: boolean
        href:
          type: string
      required:
        - id
        - name
        - status
        - rights
        - members
        - units
        - termsCurrent
        - href
      additionalProperties: false
    GetVaultMarketKeyStatResponse:
      type: object
      properties:
        bookKey:
          type: string
        gemRate:
          $ref: "#/components/schemas/GetVaultMarketKeyStatResponseGemRate"
      required:
        - bookKey
        - gemRate
      additionalProperties: false
    GetVaultMarketKeyStatResponseGemRateOneOf1Category:
      type: object
      properties:
        label:
          type: string
        derived:
          type: boolean
        graders:
          type: array
          items:
            type: object
            additionalProperties: {}
        n:
          type: number
        methodVersion:
          type: number
      required:
        - label
        - derived
        - graders
        - n
        - methodVersion
      additionalProperties: false
      nullable: true
    GetVaultMarketKeyStatResponseGemRateOneOf1Item:
      type: object
      properties:
        label:
          type: string
        derived:
          type: boolean
        graders:
          type: array
          items:
            type: object
            additionalProperties: {}
        n:
          type: number
        methodVersion:
          type: number
      required:
        - label
        - derived
        - graders
        - n
        - methodVersion
      additionalProperties: false
    GetVaultMarketLearnByConceptResponse:
      type: object
      properties:
        passedAt:
          type: string
          nullable: true
        slug:
          type: string
          enum:
            - lending
            - instant-exit
            - shorts
            - liens
            - auctions
            - indexes
            - marks
            - vault-shares
        title:
          type: string
        summary:
          type: string
          description: "One sentence: the meta description and the hub card."
        sections:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketLearnByConceptResponseSections"
        quiz:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketLearnByConceptResponseQuiz"
        related:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketLearnByConceptResponseRelatedItem"
      required:
        - slug
        - title
        - summary
        - sections
        - quiz
        - related
      additionalProperties: false
    GetVaultMarketLearnByConceptResponseQuiz:
      type: object
      properties:
        id:
          type: string
          description: "Stable id: the server's answer key is keyed by it."
        prompt:
          type: string
        choices:
          type: array
          items:
            type: string
      required:
        - id
        - prompt
        - choices
      additionalProperties: false
    GetVaultMarketLearnByConceptResponseSections:
      type: object
      properties:
        heading:
          type: string
        paragraphs:
          type: array
          items:
            type: string
      required:
        - heading
        - paragraphs
      additionalProperties: false
    GetVaultMarketLearnResponse:
      type: object
      properties:
        concepts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketLearnResponseConcepts"
        passed:
          type: number
        total:
          type: number
        pins:
          $ref: "#/components/schemas/GetVaultMarketLearnResponsePins"
      required:
        - concepts
        - passed
        - total
        - pins
      additionalProperties: false
    GetVaultMarketLearnResponseConcepts:
      type: object
      properties:
        slug:
          type: string
          enum:
            - lending
            - instant-exit
            - shorts
            - liens
            - auctions
            - indexes
            - marks
            - vault-shares
        title:
          type: string
        summary:
          type: string
        questions:
          type: number
        passedAt:
          type: string
          nullable: true
      required:
        - slug
        - title
        - summary
        - questions
      additionalProperties: false
    GetVaultMarketLearnResponsePins:
      type: object
      properties:
        first:
          type: string
        all:
          type: string
      required:
        - first
        - all
      additionalProperties: false
    GetVaultMarketLendingElectionResponse:
      type: object
      properties:
        returnInKind:
          type: boolean
        allowTerm:
          type: boolean
        updatedAt:
          type: string
        effect:
          $ref: "#/components/schemas/GetVaultMarketLendingElectionResponseEffect"
        appliesTo:
          type: string
      required:
        - returnInKind
        - allowTerm
        - updatedAt
        - effect
        - appliesTo
      additionalProperties: false
    GetVaultMarketLendingElectionResponseEffect:
      type: object
      properties:
        returnInKind:
          type: string
        allowTerm:
          type: string
      required:
        - returnInKind
        - allowTerm
      additionalProperties: false
    GetVaultMarketLendingProgrammeResponse:
      type: object
      properties:
        lendableUnits:
          type: number
        unitsOut:
          type: number
        utilisationBps:
          type: number
        loansAllTime:
          type: number
        revenue:
          $ref: "#/components/schemas/GetVaultMarketLendingProgrammeResponseRevenue"
        latePenalty:
          $ref: "#/components/schemas/GetVaultMarketLendingProgrammeResponseRevenue"
        terms:
          $ref: "#/components/schemas/GetVaultMarketLendingProgrammeResponseTerms"
        rateVsCurve:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketLendingProgrammeResponseRateVsCurve"
        curveFloorBps:
          type: number
      required:
        - lendableUnits
        - unitsOut
        - utilisationBps
        - loansAllTime
        - revenue
        - latePenalty
        - terms
        - rateVsCurve
        - curveFloorBps
      additionalProperties: false
    GetVaultMarketLendingProgrammeResponseRateVsCurve:
      type: object
      properties:
        loanId:
          type: string
        bookKey:
          type: string
        aprBps:
          type: number
        curveAprBps:
          type: number
        diffBps:
          type: number
      required:
        - loanId
        - bookKey
        - aprBps
        - curveAprBps
        - diffBps
      additionalProperties: false
    GetVaultMarketLendingProgrammeResponseRevenue:
      type: object
      properties:
        accruedCents:
          type: number
        paidCents:
          type: number
        unpaidCents:
          type: number
        note:
          type: string
      required:
        - accruedCents
        - paidCents
        - unpaidCents
        - note
      additionalProperties: false
    GetVaultMarketLendingProgrammeResponseTerms:
      type: object
      properties:
        open:
          type: number
        term30:
          type: number
        term90:
          type: number
        returnInKind:
          type: number
      required:
        - open
        - term30
        - term90
        - returnInKind
      additionalProperties: false
    GetVaultMarketLendingStatementResponse:
      type: object
      properties:
        day:
          type: string
        live:
          type: boolean
        loans:
          type: number
        belowFloor:
          type: number
        unmarked:
          type: number
        minCoverageBps:
          type: number
          nullable: true
        lines:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketLendingStatementResponseLines"
        floorBps:
          type: number
      required:
        - day
        - live
        - loans
        - belowFloor
        - unmarked
        - lines
        - floorBps
      additionalProperties: false
    GetVaultMarketLendingStatementResponseLines:
      type: object
      properties:
        loanId:
          type: string
        bookKey:
          type: string
        status:
          type: string
        termDays:
          type: number
          nullable: true
        termEndsAt:
          type: string
          nullable: true
        returnInKind:
          type: boolean
        aprBps:
          type: number
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
        feesOwedCents:
          type: number
        collateralCents:
          type: number
        requiredCents:
          type: number
          nullable: true
        coverageBps:
          type: number
          nullable: true
        belowFloor:
          type: boolean
      required:
        - loanId
        - bookKey
        - status
        - returnInKind
        - aprBps
        - markQuality
        - feesOwedCents
        - collateralCents
        - belowFloor
      additionalProperties: false
    GetVaultMarketLiquidityResponse:
      type: object
      properties:
        label:
          type: string
        derived:
          type: boolean
        insufficient:
          type: boolean
        reason:
          type: string
          nullable: true
        score:
          type: number
          nullable: true
        bucket:
          type: string
          enum:
            - mid
            - low
            - high
          nullable: true
        peerGroup:
          type: string
          enum:
            - all
            - category
          description: "'category' when ranked within the key's category, 'all' when against every key."
        peers:
          type: number
        components:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketLiquidityResponseComponents"
        twoSidedHours:
          type: number
        methodVersion:
          type: number
        bookKey:
          type: string
        categorySlug:
          type: string
          nullable: true
        asOf:
          type: string
      required:
        - label
        - derived
        - insufficient
        - peerGroup
        - peers
        - components
        - twoSidedHours
        - methodVersion
        - bookKey
        - asOf
      additionalProperties: false
    GetVaultMarketLiquidityResponseComponents:
      type: object
      properties:
        name:
          type: string
          enum:
            - trades30d
            - trades90d
            - counterparties90d
            - medianGapDays
            - spreadBps
            - twoSidedShare
            - depthCents
            - amihud
            - rollBps
        value:
          type: number
          nullable: true
        percentile:
          type: number
          nullable: true
        weight:
          type: number
        better:
          type: string
          enum:
            - low
            - high
      required:
        - name
        - weight
        - better
      additionalProperties: false
    GetVaultMarketLoanQuoteResponse:
      type: object
      properties:
        liquidationLtvBps:
          type: number
        poolAprBps:
          type: number
          nullable: true
        member:
          type: boolean
        memberDiscountBps:
          type: number
        aprBps:
          type: number
          nullable: true
        poolRoomCents:
          type: number
        minCents:
          type: number
        gate:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketAdvanceQuoteResponseUnit"
        maxCents:
          type: number
        availableCents:
          type: number
      required:
        - liquidationLtvBps
        - member
        - memberDiscountBps
        - poolRoomCents
        - minCents
        - gate
        - units
        - maxCents
        - availableCents
      additionalProperties: false
    GetVaultMarketLoanUnitSaleFloorResponse:
      type: object
      properties:
        floorCents:
          type: number
        owedCents:
          type: number
        otherUnitsCarryCents:
          type: number
      required:
        - floorCents
        - owedCents
        - otherUnitsCarryCents
      additionalProperties: false
    GetVaultMarketLocateResponse:
      type: object
      properties:
        bookKey:
          type: string
        requested:
          type: number
        available:
          type: number
        lendable:
          type: number
        heldByOthers:
          type: number
        onLoan:
          type: number
        vaultStock:
          type: number
        aprBps:
          type: number
          nullable: true
        indicative:
          type: boolean
        collateral:
          $ref: "#/components/schemas/ListVaultMarketLocateMineItemCollateral"
        holdMinutes:
          type: number
        recallable:
          type: boolean
        lending:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
      required:
        - bookKey
        - requested
        - available
        - lendable
        - heldByOthers
        - onLoan
        - vaultStock
        - indicative
        - collateral
        - holdMinutes
        - recallable
        - lending
      additionalProperties: false
    GetVaultMarketMarkResponse:
      type: object
      properties:
        bookKey:
          type: string
        cents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        confidenceBps:
          type: number
          nullable: true
        band:
          $ref: "#/components/schemas/LowCentsHighCents"
        asOf:
          type: string
          nullable: true
        source:
          type: string
        seasoned:
          type: boolean
        usableForRisk:
          type: boolean
          description: "Judged for margin (the strictest freshness): whether risk may act on this mark."
        ltvAllowed:
          type: boolean
        impliedFrom:
          $ref: "#/components/schemas/GetVaultMarketMarkResponseImpliedFrom"
        methodVersion:
          type: number
          nullable: true
        day:
          type: string
          nullable: true
        related:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketMarkResponseRelated"
          description: The learned relations this key can take an implied input from (vm_mark_ratios), best evidence first.
      required:
        - bookKey
        - quality
        - source
        - seasoned
        - usableForRisk
        - ltvAllowed
        - related
      additionalProperties: false
    GetVaultMarketMarkResponseImpliedFrom:
      type: object
      properties:
        relatedKey:
          type: string
        relation:
          type: string
        label:
          type: string
          nullable: true
        ratio:
          type: number
        impliedCents:
          type: number
      required:
        - relatedKey
        - relation
        - ratio
        - impliedCents
      additionalProperties: false
      nullable: true
    GetVaultMarketMarkResponseRelated:
      type: object
      properties:
        relatedKey:
          type: string
        relation:
          type: string
        label:
          type: string
          nullable: true
        ratio:
          type: number
        logScale:
          type: number
        pairDays:
          type: number
        effectiveDays:
          type: number
        learnedAt:
          type: string
      required:
        - relatedKey
        - relation
        - ratio
        - logScale
        - pairDays
        - effectiveDays
        - learnedAt
      additionalProperties: false
    GetVaultMarketMarketModelResponse:
      type: object
      properties:
        bookKey:
          type: string
        tier:
          type: string
          enum:
            - C
            - A
            - B
            - D
        label:
          type: string
        explainer:
          type: string
        score:
          type: number
          nullable: true
        tierSince:
          type: string
        risk:
          $ref: "#/components/schemas/GetVaultMarketMarketModelResponseRisk"
        mode:
          type: string
          enum:
            - call
            - continuous
        call:
          $ref: "#/components/schemas/GetVaultMarketMarketModelResponseCall"
        upcoming:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketMarketModelResponseUpcoming"
        nextCall:
          $ref: "#/components/schemas/GetVaultMarketMarketModelResponseNextCall"
        luld:
          $ref: "#/components/schemas/GetVaultMarketMarketModelResponseLuld"
        halt:
          $ref: "#/components/schemas/GetVaultMarketMarketModelResponseHalt"
      required:
        - bookKey
        - tier
        - label
        - explainer
        - tierSince
        - risk
        - mode
        - upcoming
      additionalProperties: false
    GetVaultMarketMarketModelResponseCall:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - open
            - daily
            - buy_in
            - sell_off
            - reopen
            - periodic
        opensAt:
          type: string
        closesAt:
          type: string
          description: The published close; the real one is up to 5 s either side of it, at random.
        closeJitterSeconds:
          type: number
        indicativeCents:
          type: number
          nullable: true
        indicativeVolume:
          type: number
          nullable: true
        imbalanceSide:
          type: string
          enum:
            - buy
            - sell
          nullable: true
        indicativeAt:
          type: string
          nullable: true
        band:
          $ref: "#/components/schemas/GetVaultMarketMarketModelResponseCallBand"
      required:
        - id
        - kind
        - opensAt
        - closesAt
        - closeJitterSeconds
      additionalProperties: false
      nullable: true
    GetVaultMarketMarketModelResponseCallBand:
      type: object
      properties:
        lowerCents:
          type: number
        upperCents:
          type: number
      required:
        - lowerCents
        - upperCents
      additionalProperties: false
      nullable: true
    GetVaultMarketMarketModelResponseHalt:
      type: object
      properties:
        reason:
          type: string
        until:
          type: string
          format: date-time
          nullable: true
      required:
        - reason
      additionalProperties: false
      nullable: true
    GetVaultMarketMarketModelResponseLuld:
      type: object
      properties:
        referenceCents:
          type: number
          nullable: true
        band:
          $ref: "#/components/schemas/GetVaultMarketMarketModelResponseLuldBand"
        opening:
          type: boolean
        phase:
          type: string
          enum:
            - limit
            - paused
            - normal
        limitSince:
          type: string
          nullable: true
        pausedUntil:
          type: string
          nullable: true
      required:
        - opening
        - phase
      additionalProperties: false
      nullable: true
    GetVaultMarketMarketModelResponseLuldBand:
      type: object
      properties:
        referenceCents:
          type: number
        bandBps:
          type: number
        lowerCents:
          type: number
        upperCents:
          type: number
      required:
        - referenceCents
        - bandBps
        - lowerCents
        - upperCents
      additionalProperties: false
      nullable: true
    GetVaultMarketMarketModelResponseNextCall:
      type: object
      properties:
        kind:
          type: string
          enum:
            - open
            - daily
            - buy_in
            - sell_off
            - reopen
            - periodic
        closesAt:
          type: string
      required:
        - kind
        - closesAt
      additionalProperties: false
      nullable: true
    GetVaultMarketMarketModelResponseRisk:
      type: object
      properties:
        leverage:
          type: boolean
        shorts:
          type: boolean
        markRisk:
          type: boolean
      required:
        - leverage
        - shorts
        - markRisk
      additionalProperties: false
    GetVaultMarketMarketModelResponseUpcoming:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - open
            - daily
            - buy_in
            - sell_off
            - reopen
            - periodic
        opensAt:
          type: string
        closesAt:
          type: string
          description: The published close; the real one is up to 5 s either side of it, at random.
        closeJitterSeconds:
          type: number
        indicativeCents:
          type: number
          nullable: true
        indicativeVolume:
          type: number
          nullable: true
        imbalanceSide:
          type: string
          enum:
            - buy
            - sell
          nullable: true
        indicativeAt:
          type: string
          nullable: true
        band:
          $ref: "#/components/schemas/GetVaultMarketMarketModelResponseCallBand"
      required:
        - id
        - kind
        - opensAt
        - closesAt
        - closeJitterSeconds
      additionalProperties: false
    GetVaultMarketMarketResponse:
      type: object
      properties:
        mark:
          $ref: "#/components/schemas/GetVaultMarketMarketResponseMark"
        markRead:
          $ref: "#/components/schemas/GetVaultMarketMarketResponseMarkRead"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketMarketResponseHistory"
        lending:
          $ref: "#/components/schemas/GetVaultMarketMarketResponseLending"
        tier:
          $ref: "#/components/schemas/GetVaultMarketMarketResponseTier"
        openInterest:
          $ref: "#/components/schemas/GetVaultMarketMarketResponseOpenInterest"
        auctions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketMarketResponseAuctions"
        label:
          type: string
        skuId:
          type: string
        skuName:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        key:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemKey"
        bookKey:
          type: string
      required:
        - mark
        - markRead
        - history
        - lending
        - tier
        - openInterest
        - auctions
        - label
        - skuId
        - key
        - bookKey
      additionalProperties: false
    GetVaultMarketMarketResponseAuctions:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - buy_in
            - sell_off
        endsAt:
          type: string
          format: date-time
      required:
        - id
        - kind
        - endsAt
      additionalProperties: false
    GetVaultMarketMarketResponseHistory:
      type: object
      properties:
        day:
          type: string
        cents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
      required:
        - day
        - quality
      additionalProperties: false
    GetVaultMarketMarketResponseLending:
      type: object
      properties:
        stock:
          type: number
        lent:
          type: number
        lendable:
          type: number
        room:
          type: number
        utilBps:
          type: number
        aprBps:
          type: number
      required:
        - stock
        - lent
        - lendable
        - room
        - utilBps
        - aprBps
      additionalProperties: false
    GetVaultMarketMarketResponseMark:
      type: object
      properties:
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        source:
          type: string
          enum:
            - none
            - ask
            - mid
            - last
            - bid
            - twap
            - implied
        change24hBps:
          type: number
          nullable: true
        change7dBps:
          type: number
          nullable: true
        at:
          type: string
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        confidenceBps:
          type: number
          nullable: true
        usableForRisk:
          type: boolean
        seasoned:
          type: boolean
      required:
        - bookKey
        - source
        - at
        - quality
        - usableForRisk
        - seasoned
      additionalProperties: false
    GetVaultMarketMarketResponseMarkRead:
      type: object
      properties:
        cents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        confidenceBps:
          type: number
          nullable: true
        asOf:
          type: string
          format: date-time
          nullable: true
        source:
          type: string
        seasoned:
          type: boolean
        usableForRisk:
          type: boolean
        ltvAllowed:
          type: boolean
          description: Whether the mark may back a loan at all (C marks carry 0 LTV).
        impliedFrom:
          $ref: "#/components/schemas/GetVaultMarketMarkResponseImpliedFrom"
      required:
        - quality
        - source
        - seasoned
        - usableForRisk
        - ltvAllowed
      additionalProperties: false
    GetVaultMarketMarketResponseOpenInterest:
      type: object
      properties:
        shorts:
          type: number
        longs:
          type: number
      required:
        - shorts
        - longs
      additionalProperties: false
    GetVaultMarketMarketResponseTier:
      type: object
      properties:
        tier:
          type: string
          enum:
            - closed
            - standard
            - deep
            - thin
        shortInitialBps:
          type: number
          description: Short collateral to open, over the mark (proceeds included).
        shortMaintenanceBps:
          type: number
        longMaintenanceEquityBps:
          type: number
          description: A leveraged long's maintenance equity share.
        maxLeverageX100:
          type: number
          description: The most leverage this key allows (x100).
        tradable:
          type: boolean
          description: Whether units may be lent / leverage used at all.
        trades30d:
          type: number
        vaultUnits:
          type: number
        counterparties30d:
          type: number
        liquidityTier:
          type: string
          enum:
            - C
            - A
            - B
            - D
          nullable: true
        shortable:
          type: boolean
        leverable:
          type: boolean
      required:
        - tier
        - shortInitialBps
        - shortMaintenanceBps
        - longMaintenanceEquityBps
        - maxLeverageX100
        - tradable
        - trades30d
        - vaultUnits
        - counterparties30d
        - shortable
        - leverable
      additionalProperties: false
    GetVaultMarketMmKeyResponse:
      type: object
      properties:
        bookKey:
          type: string
        dmm:
          $ref: "#/components/schemas/GetVaultMarketMmKeyResponseDmm"
        lpCount:
          type: number
      required:
        - bookKey
        - lpCount
      additionalProperties: false
    GetVaultMarketMmKeyResponseDmm:
      type: object
      properties:
        name:
          type: string
        meeting:
          type: boolean
      required:
        - name
        - meeting
      additionalProperties: false
      nullable: true
    GetVaultMarketMmMmpResponse:
      type: object
      properties:
        enabled:
          type: boolean
        windowSeconds:
          type: number
        maxUnits:
          type: number
          nullable: true
        maxNotionalCents:
          type: number
          nullable: true
        freezeSeconds:
          type: number
        frozen:
          type: boolean
        frozenUntil:
          type: string
          nullable: true
        trips:
          type: number
        lastTripAt:
          type: string
          nullable: true
      required:
        - enabled
        - windowSeconds
        - freezeSeconds
        - frozen
        - trips
      additionalProperties: false
    GetVaultMarketMmResponse:
      type: object
      properties:
        programs:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketMmLpResponse"
        obligations:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketMmResponseObligations"
        rebates:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketMmResponseRebates"
        rules:
          $ref: "#/components/schemas/GetVaultMarketMmResponseRules"
      required:
        - programs
        - obligations
        - rebates
        - rules
      additionalProperties: false
    GetVaultMarketMmResponseObligations:
      type: object
      properties:
        coveragePct:
          type: number
          nullable: true
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        day:
          type: string
        reasons:
          type: array
          items:
            type: string
          nullable: true
        program:
          type: string
        tier:
          type: string
          nullable: true
        bookKey:
          type: string
        level:
          type: string
          nullable: true
        samples:
          type: number
        inSpread:
          type: number
        inHalfSpread:
          type: number
        callsTotal:
          type: number
        callsJoined:
          type: number
        rfqInvited:
          type: number
        rfqAnsweredFast:
          type: number
        met:
          type: boolean
          nullable: true
        coverageBps:
          type: number
          nullable: true
      required:
        - updatedAt
        - userId
        - day
        - program
        - bookKey
        - samples
        - inSpread
        - inHalfSpread
        - callsTotal
        - callsJoined
        - rfqInvited
        - rfqAnsweredFast
      additionalProperties: false
    GetVaultMarketMmResponseRebates:
      type: object
      properties:
        id:
          type: string
        period:
          type: string
        bookKey:
          type: string
        program:
          type: string
        cents:
          type: number
        status:
          type: string
        paidAt:
          type: string
          nullable: true
      required:
        - id
        - period
        - bookKey
        - program
        - cents
        - status
      additionalProperties: false
    GetVaultMarketMmResponseRules:
      type: object
      properties:
        spreadCapBps:
          $ref: "#/components/schemas/GetVaultMarketMmResponseRulesSpreadCapBps"
        dmmUptimeBps:
          $ref: "#/components/schemas/GetVaultMarketMmResponseRulesSpreadCapBps"
        lpCoverageBps:
          $ref: "#/components/schemas/GetVaultMarketMmResponseRulesLpCoverageBps"
        rfqAnswerSeconds:
          type: number
        rfqAnswerRateBps:
          type: number
      required:
        - spreadCapBps
        - dmmUptimeBps
        - lpCoverageBps
        - rfqAnswerSeconds
        - rfqAnswerRateBps
      additionalProperties: false
    GetVaultMarketMmResponseRulesLpCoverageBps:
      type: object
      properties:
        basic:
          type: number
        plus:
          type: number
      required:
        - basic
        - plus
      additionalProperties: false
    GetVaultMarketMmResponseRulesSpreadCapBps:
      type: object
      properties:
        C:
          type: number
        A:
          type: number
        B:
          type: number
        D:
          type: number
      required:
        - C
        - A
        - B
        - D
      additionalProperties: false
    GetVaultMarketModeResponse:
      type: object
      properties:
        mode:
          type: string
          enum:
            - pro
            - simple
        source:
          type: string
          enum:
            - default
            - chosen
        at:
          type: string
        signedIn:
          type: boolean
        explain:
          $ref: "#/components/schemas/GetVaultMarketModeResponseExplain"
      required:
        - mode
        - source
        - at
        - signedIn
        - explain
      additionalProperties: false
    GetVaultMarketModeResponseExplain:
      type: object
      properties:
        pro:
          type: string
        simple:
          type: string
      required:
        - pro
        - simple
      additionalProperties: false
    GetVaultMarketNavResponse:
      type: object
      properties:
        account:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOfAccount"
        asOf:
          type: string
        currency:
          type: string
        totals:
          $ref: "#/components/schemas/GetVaultMarketNavResponseTotals"
        holdings:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketNavResponseHoldings"
        options:
          $ref: "#/components/schemas/GetVaultMarketNavResponseOptions"
        policy:
          type: array
          items:
            type: string
      required:
        - account
        - asOf
        - currency
        - totals
        - holdings
        - policy
      additionalProperties: false
    GetVaultMarketNavResponseHoldings:
      type: object
      properties:
        bookKey:
          type: string
        title:
          type: string
        category:
          type: string
          nullable: true
        grader:
          type: string
          nullable: true
        units:
          type: number
        sellableUnits:
          type: number
        pledgedUnits:
          type: number
        lentUnits:
          type: number
        insuredValueCents:
          type: number
          nullable: true
        mark:
          $ref: "#/components/schemas/GetVaultMarketNavResponseHoldingsMark"
        asc820:
          $ref: "#/components/schemas/ReasonRequest"
        markValueCents:
          type: number
        bid:
          $ref: "#/components/schemas/GetVaultMarketNavResponseHoldingsBid"
        liquidation:
          $ref: "#/components/schemas/GetVaultMarketNavResponseHoldingsLiquidation"
        administratorMark:
          $ref: "#/components/schemas/GetVaultMarketNavResponseHoldingsAdministratorMark"
      required:
        - bookKey
        - title
        - units
        - sellableUnits
        - pledgedUnits
        - lentUnits
        - mark
        - asc820
        - markValueCents
        - bid
        - liquidation
      additionalProperties: false
    GetVaultMarketNavResponseHoldingsAdministratorMark:
      type: object
      properties:
        label:
          type: string
        cents:
          type: number
        day:
          type: string
        administrator:
          type: string
      required:
        - label
        - cents
        - day
        - administrator
      additionalProperties: false
      nullable: true
    GetVaultMarketNavResponseHoldingsBid:
      type: object
      properties:
        bestCents:
          type: number
        depthUnits:
          type: number
        proceedsCents:
          type: number
        unitsFilled:
          type: number
      required:
        - bestCents
        - depthUnits
        - proceedsCents
        - unitsFilled
      additionalProperties: false
    GetVaultMarketNavResponseHoldingsLiquidation:
      type: object
      properties:
        advUnits:
          type: number
        proceedsCents:
          type: number
        unitsSold:
          type: number
        unitsUnsold:
          type: number
        paceCapUnits:
          type: number
      required:
        - advUnits
        - proceedsCents
        - unitsSold
        - unitsUnsold
        - paceCapUnits
      additionalProperties: false
    GetVaultMarketNavResponseHoldingsMark:
      type: object
      properties:
        cents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        source:
          type: string
        trades:
          type: number
        day:
          type: string
          nullable: true
        confidenceBps:
          type: number
          nullable: true
      required:
        - quality
        - source
        - trades
      additionalProperties: false
    GetVaultMarketNavResponseOptions:
      type: object
      properties:
        positions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketNavResponseOptionsPositions"
        valueCents:
          type: number
        asc820Level:
          type: number
        label:
          type: string
      required:
        - positions
        - valueCents
        - asc820Level
        - label
      additionalProperties: false
      nullable: true
    GetVaultMarketNavResponseOptionsPositions:
      type: object
      properties:
        symbol:
          type: string
        underlying:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
        qtyMilli:
          type: number
        markCents:
          type: number
          nullable: true
        valueCents:
          type: number
          nullable: true
        unrealizedCents:
          type: number
          nullable: true
      required:
        - symbol
        - underlying
        - venue
        - qtyMilli
      additionalProperties: false
    GetVaultMarketNavResponseTotals:
      type: object
      properties:
        administratorNav:
          $ref: "#/components/schemas/GetVaultMarketNavResponseTotalsAdministratorNav"
        level2Cents:
          type: number
        level3Cents:
          type: number
        markNavCents:
          type: number
        bidNavCents:
          type: number
        liquidationNavCents:
          type: number
        onLoanAtMarkCents:
          type: number
        unmarkedUnits:
          type: number
        units:
          type: number
      required:
        - level2Cents
        - level3Cents
        - markNavCents
        - bidNavCents
        - liquidationNavCents
        - onLoanAtMarkCents
        - unmarkedUnits
        - units
      additionalProperties: false
    GetVaultMarketNavResponseTotalsAdministratorNav:
      type: object
      properties:
        cents:
          type: number
        keysPriced:
          type: number
        keys:
          type: number
        label:
          type: string
      required:
        - cents
        - keysPriced
        - keys
        - label
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionAnalyticResponse:
      type: object
      properties:
        underlying:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseUnderlying"
        rate:
          type: number
        refVol:
          type: number
          nullable: true
        iv:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseIv"
        historicalVol:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseHistoricalVol"
        putCall:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponsePutCall"
        expiries:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseExpiries"
        smile:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseSmile"
        surface:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseSurface"
        label:
          type: string
        quality:
          type: string
        derived:
          type: boolean
      required:
        - underlying
        - rate
        - iv
        - historicalVol
        - putCall
        - expiries
        - label
        - quality
        - derived
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseExpiries:
      type: object
      properties:
        day:
          type: string
        daysLeft:
          type: number
        atmIv:
          type: number
          nullable: true
        expectedMove:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseExpiriesExpectedMove"
        openInterest:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseExpiriesOpenInterest"
        volume30d:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseExpiriesOpenInterest"
        points:
          type: number
      required:
        - day
        - daysLeft
        - openInterest
        - volume30d
        - points
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseExpiriesExpectedMove:
      type: object
      properties:
        oneSigmaCents:
          type: number
          nullable: true
        straddleCents:
          type: number
          nullable: true
        lowCents:
          type: number
          nullable: true
        highCents:
          type: number
          nullable: true
        pct:
          type: number
          nullable: true
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionAnalyticResponseExpiriesOpenInterest:
      type: object
      properties:
        callMilli:
          type: number
        putMilli:
          type: number
      required:
        - callMilli
        - putMilli
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseHistoricalVol:
      type: object
      properties:
        source:
          type: string
        windows:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseHistoricalVolWindows"
        series:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseHistoricalVolSeries"
      required:
        - source
        - windows
        - series
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseHistoricalVolSeries:
      type: object
      properties:
        day:
          type: string
        value:
          type: number
      required:
        - day
        - value
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseHistoricalVolWindows:
      type: object
      properties:
        days:
          type: number
        vol:
          type: number
          nullable: true
      required:
        - days
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseIv:
      type: object
      properties:
        current:
          type: number
          nullable: true
        frontExpiry:
          type: string
          nullable: true
        rank:
          type: number
          nullable: true
        percentile:
          type: number
          nullable: true
        historyDays:
          type: number
        low:
          type: number
          nullable: true
        high:
          type: number
          nullable: true
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseIvHistory"
      required:
        - historyDays
        - history
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseIvHistory:
      type: object
      properties:
        day:
          type: string
        iv:
          type: number
      required:
        - day
        - iv
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponsePutCall:
      type: object
      properties:
        volume30d:
          type: number
          nullable: true
        openInterest:
          type: number
          nullable: true
        totals:
          $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponsePutCallTotals"
      required:
        - totals
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponsePutCallTotals:
      type: object
      properties:
        callOi:
          type: number
        putOi:
          type: number
        callVol:
          type: number
        putVol:
          type: number
      required:
        - callOi
        - putOi
        - callVol
        - putVol
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseSmile:
      type: object
      properties:
        expiry:
          type: string
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseSmilePoints"
        fitted:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseSmileFitted"
        byStrike:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseSmileByStrike"
      required:
        - expiry
        - points
        - fitted
        - byStrike
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionAnalyticResponseSmileByStrike:
      type: object
      properties:
        strikeCents:
          type: number
        callOiMilli:
          type: number
        putOiMilli:
          type: number
        callVolume1dMilli:
          type: number
        putVolume1dMilli:
          type: number
        callVolume30dMilli:
          type: number
        putVolume30dMilli:
          type: number
        iv:
          type: number
          nullable: true
      required:
        - strikeCents
        - callOiMilli
        - putOiMilli
        - callVolume1dMilli
        - putVolume1dMilli
        - callVolume30dMilli
        - putVolume30dMilli
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseSmileFitted:
      type: object
      properties:
        strikeCents:
          type: number
        iv:
          type: number
          nullable: true
      required:
        - strikeCents
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseSmilePoints:
      type: object
      properties:
        strikeCents:
          type: number
        iv:
          type: number
        source:
          type: string
          nullable: true
          description: "What the vol came from: the book's mid, the last trade, or the published daily price."
      required:
        - strikeCents
        - iv
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseSurface:
      type: object
      properties:
        moneyness:
          type: array
          items:
            type: number
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseSurfaceRows"
      required:
        - moneyness
        - rows
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionAnalyticResponseSurfaceRows:
      type: object
      properties:
        day:
          type: string
        years:
          type: number
        atmIv:
          type: number
          nullable: true
        ivs:
          type: array
          items:
            type: number
            nullable: true
      required:
        - day
        - years
        - ivs
      additionalProperties: false
    GetVaultMarketOptionAnalyticResponseUnderlying:
      type: object
      properties:
        kind:
          type: string
          enum:
            - key
            - share
            - index
        ref:
          type: string
        name:
          type: string
        spotCents:
          type: number
          nullable: true
        spotAsOf:
          type: string
          nullable: true
        spotSource:
          type: string
          enum:
            - index_close
            - mark
            - share_vwap
      required:
        - kind
        - ref
        - name
        - spotSource
      additionalProperties: false
    GetVaultMarketOptionAutoCloseResponse:
      type: object
      properties:
        limits:
          $ref: "#/components/schemas/GetVaultMarketOptionAutoCloseResponseLimits"
        enabled:
          type: boolean
        minutesBefore:
          type: number
        onlyItm:
          type: boolean
        maxSlippageBps:
          type: number
        saved:
          type: boolean
      required:
        - limits
        - enabled
        - minutesBefore
        - onlyItm
        - maxSlippageBps
        - saved
      additionalProperties: false
    GetVaultMarketOptionAutoCloseResponseLimits:
      type: object
      properties:
        minMinutes:
          type: number
          description: "The window a user may choose: close this many minutes before expiry (before the 15-minute freeze)."
        maxMinutes:
          type: number
        defaultMinutes:
          type: number
        maxSlippageBps:
          type: number
          description: The closing order may give up at most this share of the reference price (a marketable limit, never a market order).
      required:
        - minMinutes
        - maxMinutes
        - defaultMinutes
        - maxSlippageBps
      additionalProperties: false
    GetVaultMarketOptionChainResponse:
      type: object
      properties:
        underlying:
          $ref: "#/components/schemas/GetVaultMarketOptionChainResponseUnderlying"
        series:
          $ref: "#/components/schemas/GetVaultMarketOptionChainResponseSeries"
        venue:
          $ref: "#/components/schemas/GetVaultMarketOptionChainResponseVenue"
        rate:
          type: number
        expiries:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionChainResponseExpiries"
        expiry:
          type: string
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionChainResponseRows"
        ivLabel:
          type: string
      required:
        - underlying
        - series
        - venue
        - rate
        - expiries
        - expiry
        - rows
        - ivLabel
      additionalProperties: false
    GetVaultMarketOptionChainResponseExpiries:
      type: object
      properties:
        day:
          type: string
        cycle:
          type: string
        contracts:
          type: number
      required:
        - day
        - cycle
        - contracts
      additionalProperties: false
    GetVaultMarketOptionChainResponseRows:
      type: object
      properties:
        strikeCents:
          type: number
        call:
          $ref: "#/components/schemas/GetVaultMarketOptionChainResponseRowsCall"
        put:
          $ref: "#/components/schemas/GetVaultMarketOptionChainResponseRowsCall"
      required:
        - strikeCents
      additionalProperties: false
    GetVaultMarketOptionChainResponseRowsCall:
      type: object
      properties:
        bidCents:
          type: number
          nullable: true
        askCents:
          type: number
          nullable: true
        bidQtyMilli:
          type: number
          nullable: true
        askQtyMilli:
          type: number
          nullable: true
        theoCents:
          type: number
          nullable: true
        iv:
          type: number
          nullable: true
        ivSource:
          type: string
          nullable: true
        greeks:
          type: object
          nullable: true
          additionalProperties: {}
        tradable:
          type: boolean
        id:
          type: string
        symbol:
          type: string
        type:
          type: string
          enum:
            - put
            - call
        strikeCents:
          type: number
        expiryDay:
          type: string
        expiresAt:
          type: string
        cycle:
          type: string
          enum:
            - monthly
            - weekly
        status:
          type: string
          enum:
            - expired
            - open
            - delisted
            - settled
            - frozen
        lastPriceCents:
          type: number
          nullable: true
        openInterestMilli:
          type: number
        partnerSymbol:
          type: string
          nullable: true
        seriesId:
          type: string
        underlyingKind:
          type: string
          enum:
            - key
            - share
            - index
        underlying:
          type: string
        underlyingName:
          type: string
        code:
          type: string
      required:
        - tradable
        - id
        - symbol
        - type
        - strikeCents
        - expiryDay
        - expiresAt
        - cycle
        - status
        - openInterestMilli
        - seriesId
        - underlyingKind
        - underlying
        - underlyingName
        - code
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionChainResponseSeries:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        refVol:
          type: number
        eligibility:
          type: object
          additionalProperties: {}
      required:
        - id
        - status
        - refVol
        - eligibility
      additionalProperties: false
    GetVaultMarketOptionChainResponseUnderlying:
      type: object
      properties:
        kind:
          type: string
          enum:
            - key
            - share
            - index
        ref:
          type: string
        name:
          type: string
        code:
          type: string
        spotCents:
          type: number
          nullable: true
        spotAsOf:
          type: string
          nullable: true
        spotQuality:
          type: string
        spotSource:
          type: string
          enum:
            - index_close
            - mark
            - share_vwap
      required:
        - kind
        - ref
        - name
        - code
        - spotQuality
        - spotSource
      additionalProperties: false
    GetVaultMarketOptionChainResponseVenue:
      type: object
      properties:
        mode:
          type: string
          enum:
            - self
            - partner
            - paper
        partnerMissing:
          type: array
          items:
            type: string
        selfMissing:
          type: array
          items:
            type: string
        termsVersion:
          type: string
          nullable: true
        practice:
          type: boolean
      required:
        - mode
        - partnerMissing
        - selfMissing
        - practice
      additionalProperties: false
    GetVaultMarketOptionComboBookResponse:
      type: object
      properties:
        comboKey:
          type: string
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionContractBookResponseBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionContractBookResponseBids"
        bestBidCents:
          type: number
        bestAskCents:
          type: number
        trades:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionComboBookResponseTrades"
      required:
        - comboKey
        - bids
        - asks
        - bestBidCents
        - bestAskCents
        - trades
      additionalProperties: false
    GetVaultMarketOptionComboBookResponseTrades:
      type: object
      properties:
        id:
          type: string
        priceCents:
          type: number
        qtyMilli:
          type: number
        route:
          type: string
          enum:
            - rfq
            - combo_book
            - legged
        at:
          type: string
      required:
        - id
        - priceCents
        - qtyMilli
        - route
        - at
      additionalProperties: false
    GetVaultMarketOptionComboRfqResponse:
      type: object
      properties:
        id:
          type: string
        strategy:
          type: string
        comboKey:
          type: string
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionCombosItemLegs"
        side:
          type: string
          enum:
            - buy
            - sell
        qtyMilli:
          type: number
        status:
          type: string
          enum:
            - expired
            - cancelled
            - open
            - filled
        expiresAt:
          type: string
        mine:
          type: boolean
        limitCents:
          type: number
          nullable: true
        answers:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionComboRfqResponseAnswers"
      required:
        - id
        - strategy
        - comboKey
        - legs
        - side
        - qtyMilli
        - status
        - expiresAt
        - mine
        - answers
      additionalProperties: false
    GetVaultMarketOptionComboRfqResponseAnswers:
      type: object
      properties:
        id:
          type: string
        priceCents:
          type: number
        status:
          type: string
          enum:
            - expired
            - live
            - accepted
            - withdrawn
        firmUntil:
          type: string
        yours:
          type: boolean
      required:
        - id
        - priceCents
        - status
        - firmUntil
        - yours
      additionalProperties: false
    GetVaultMarketOptionContractBookResponse:
      type: object
      properties:
        contractId:
          type: string
        symbol:
          type: string
        status:
          type: string
          enum:
            - expired
            - open
            - delisted
            - settled
            - frozen
        underlying:
          type: string
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionContractBookResponseBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionContractBookResponseBids"
        bestBidCents:
          type: number
        bestAskCents:
          type: number
        trades:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionContractBookResponseTrades"
      required:
        - contractId
        - symbol
        - status
        - underlying
        - bids
        - asks
        - bestBidCents
        - bestAskCents
        - trades
      additionalProperties: false
    GetVaultMarketOptionContractBookResponseBids:
      type: object
      properties:
        priceCents:
          type: number
        qtyMilli:
          type: number
        orders:
          type: number
      required:
        - priceCents
        - qtyMilli
        - orders
      additionalProperties: false
    GetVaultMarketOptionContractBookResponseTrades:
      type: object
      properties:
        id:
          type: string
        priceCents:
          type: number
        qtyMilli:
          type: number
        takerSide:
          type: string
          nullable: true
        venue:
          type: string
          enum:
            - self
            - partner
        at:
          type: string
      required:
        - id
        - priceCents
        - qtyMilli
        - venue
        - at
      additionalProperties: false
    GetVaultMarketOptionContractResponse:
      type: object
      properties:
        contract:
          $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponseOneOfContract"
        book:
          $ref: "#/components/schemas/GetVaultMarketOptionContractBookResponse"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionContractDailyItem"
        settlement:
          $ref: "#/components/schemas/GetVaultMarketOptionContractResponseSettlement"
      required:
        - contract
        - book
        - daily
      additionalProperties: false
    GetVaultMarketOptionContractResponseSettlement:
      type: object
      properties:
        contractId:
          type: string
        valueCents:
          type: number
        source:
          type: string
        sourceDay:
          type: string
        flagged:
          type: boolean
        note:
          type: string
        payload:
          type: object
          additionalProperties: {}
        prevHash:
          type: string
        hash:
          type: string
        seq:
          type: number
        at:
          type: string
      required:
        - contractId
        - valueCents
        - source
        - sourceDay
        - flagged
        - note
        - payload
        - prevHash
        - hash
        - seq
        - at
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionContractSettlementResponse:
      type: object
      properties:
        settlement:
          $ref: "#/components/schemas/GetVaultMarketOptionContractResponseSettlement"
      additionalProperties: false
    GetVaultMarketOptionHedgeResponse:
      type: object
      properties:
        protectivePuts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionHedgeResponseProtectivePuts"
        coveredCalls:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionHedgeResponseCoveredCalls"
      required:
        - protectivePuts
        - coveredCalls
      additionalProperties: false
    GetVaultMarketOptionHedgeResponseCoveredCalls:
      type: object
      properties:
        collateralId:
          type: string
        vaultItemId:
          type: string
        contractId:
          type: string
        qtyMilli:
          type: number
        status:
          type: string
        auctionLotId:
          type: string
          nullable: true
      required:
        - collateralId
        - vaultItemId
        - contractId
        - qtyMilli
        - status
      additionalProperties: false
    GetVaultMarketOptionHedgeResponseProtectivePuts:
      type: object
      properties:
        positionId:
          type: string
        symbol:
          type: string
        bookKey:
          type: string
        qtyMilli:
          type: number
        strikeCents:
          type: number
        expiryDay:
          type: string
      required:
        - positionId
        - symbol
        - bookKey
        - qtyMilli
        - strikeCents
        - expiryDay
      additionalProperties: false
    GetVaultMarketOptionIvResponse:
      type: object
      properties:
        underlying:
          type: string
        listed:
          type: boolean
        iv:
          nullable: true
        label:
          type: string
        quality:
          type: string
        derived:
          type: boolean
        expiry:
          type: string
        refVol:
          type: number
      required:
        - underlying
        - listed
        - label
        - quality
        - derived
    GetVaultMarketOptionMarginResponse:
      type: object
      properties:
        venue:
          type: string
        label:
          type: string
        margin:
          nullable: true
        last:
          nullable: true
      required:
        - venue
        - label
        - margin
    GetVaultMarketOptionMarginResponseOneOf1Last:
      type: object
      properties:
        state:
          type: string
        equityCents:
          type: number
        requirementCents:
          type: number
        callDeadline:
          type: string
          nullable: true
        at:
          type: string
      required:
        - state
        - equityCents
        - requirementCents
        - at
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionMarginResponseOneOf1Margin:
      type: object
      properties:
        venue:
          type: string
          enum:
            - self
            - partner
        authoritative:
          type: string
          enum:
            - crossly
            - partner
        requirementCents:
          type: number
        initialCents:
          type: number
        equityCents:
          type: number
        cashCents:
          type: number
          nullable: true
        optionValueCents:
          type: number
        holdingsValueCents:
          type: number
        partnerRequirementCents:
          type: number
          nullable: true
        state:
          type: string
          enum:
            - unknown
            - ok
            - call
            - liquidate
          description: "'unknown': the self venue's cash could not be read, so no call, liquidation or default may follow (round-14 review)."
        excessCents:
          type: number
        byUnderlying:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionMarginResponseOneOf1MarginByUnderlying"
        label:
          type: string
      required:
        - venue
        - authoritative
        - requirementCents
        - initialCents
        - equityCents
        - optionValueCents
        - holdingsValueCents
        - state
        - excessCents
        - byUnderlying
        - label
      additionalProperties: false
    GetVaultMarketOptionMarginResponseOneOf1MarginByUnderlying:
      type: object
      properties:
        underlying:
          type: string
        name:
          type: string
        spotCents:
          type: number
          nullable: true
        requirementCents:
          type: number
        worst:
          type: object
          nullable: true
          additionalProperties: {}
        floorCents:
          type: number
        offsets:
          type: array
          items:
            type: string
      required:
        - underlying
        - name
        - requirementCents
        - floorCents
        - offsets
      additionalProperties: false
    GetVaultMarketOptionPayoffResponse:
      type: object
      properties:
        underlying:
          type: string
        spotCents:
          type: number
          nullable: true
        legs:
          type: number
        payoff:
          $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponseOneOf1Payoff"
      required:
        - underlying
        - legs
      additionalProperties: false
    GetVaultMarketOptionPositionResponse:
      type: object
      properties:
        account:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseAccount"
        positions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionPositionResponsePositions"
      required:
        - account
        - positions
      additionalProperties: false
    GetVaultMarketOptionPositionResponsePositions:
      type: object
      properties:
        id:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
        status:
          type: string
        contract:
          $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponseOneOfContract"
        qtyMilli:
          type: number
        avgPriceCents:
          type: number
        markCents:
          type: number
          nullable: true
        unrealizedCents:
          type: number
          nullable: true
        realizedCents:
          type: number
        settledCents:
          type: number
          nullable: true
        settledToCents:
          type: number
          nullable: true
        hedgeFlag:
          type: string
          nullable: true
        greeks:
          $ref: "#/components/schemas/GetVaultMarketOptionPositionResponsePositionsGreeks"
        adlLights:
          type: number
        openedAt:
          type: string
      required:
        - id
        - venue
        - status
        - contract
        - qtyMilli
        - avgPriceCents
        - realizedCents
        - adlLights
        - openedAt
      additionalProperties: false
    GetVaultMarketOptionPositionResponsePositionsGreeks:
      type: object
      properties:
        delta:
          type: number
        gamma:
          type: number
        vegaPerPoint:
          type: number
        thetaPerDay:
          type: number
      required:
        - delta
        - gamma
        - vegaPerPoint
        - thetaPerDay
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionPracticeResponse:
      type: object
      properties:
        practice:
          type: boolean
        cashCents:
          type: number
        startingCents:
          type: number
        equityCents:
          type: number
        pnlCents:
          type: number
        positions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionPracticeResponsePositions"
      required:
        - practice
        - cashCents
        - startingCents
        - equityCents
        - pnlCents
        - positions
      additionalProperties: false
    GetVaultMarketOptionPracticeResponsePositions:
      type: object
      properties:
        contractId:
          type: string
        symbol:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - put
            - call
          nullable: true
        strikeCents:
          type: number
          nullable: true
        expiryDay:
          type: string
          nullable: true
        underlying:
          type: string
          nullable: true
        qtyMilli:
          type: number
        avgPriceCents:
          type: number
        markCents:
          type: number
          nullable: true
        valueCents:
          type: number
        realizedCents:
          type: number
        settledCents:
          type: number
          nullable: true
      required:
        - contractId
        - qtyMilli
        - avgPriceCents
        - valueCents
        - realizedCents
      additionalProperties: false
    GetVaultMarketOptionResponse:
      type: object
      properties:
        venue:
          $ref: "#/components/schemas/GetVaultMarketOptionResponseVenue"
        series:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionSeriesItem"
        ruleBook:
          $ref: "#/components/schemas/GetVaultMarketOptionResponseRuleBook"
        product:
          $ref: "#/components/schemas/GetVaultMarketOptionResponseProduct"
      required:
        - venue
        - series
        - product
      additionalProperties: false
    GetVaultMarketOptionResponseProduct:
      type: object
      properties:
        style:
          type: string
        multiplier:
          type: number
        quantity:
          type: string
        minimumPremiumCents:
          type: number
        quoting:
          type: string
      required:
        - style
        - multiplier
        - quantity
        - minimumPremiumCents
        - quoting
      additionalProperties: false
    GetVaultMarketOptionResponseRuleBook:
      type: object
      properties:
        version:
          type: string
        effectiveAt:
          type: string
        hash:
          type: string
      required:
        - version
        - effectiveAt
        - hash
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionResponseVenue:
      type: object
      properties:
        mode:
          type: string
          enum:
            - self
            - partner
            - paper
        partnerMissing:
          type: array
          items:
            type: string
        selfMissing:
          type: array
          items:
            type: string
        feedMissing:
          type: array
          items:
            type: string
        termsVersion:
          type: string
          nullable: true
        practice:
          type: boolean
      required:
        - mode
        - partnerMissing
        - selfMissing
        - feedMissing
        - practice
      additionalProperties: false
    GetVaultMarketOptionRfqResponse:
      type: object
      properties:
        id:
          type: string
        contractId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        qtyMilli:
          type: number
        status:
          type: string
          enum:
            - expired
            - cancelled
            - open
            - filled
        filledMilli:
          type: number
        expiresAt:
          type: string
        mine:
          type: boolean
        limitCents:
          type: number
          nullable: true
        answers:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionComboRfqResponseAnswers"
      required:
        - id
        - contractId
        - side
        - qtyMilli
        - status
        - filledMilli
        - expiresAt
        - mine
        - answers
      additionalProperties: false
    GetVaultMarketOptionRiskResponse:
      type: object
      properties:
        book:
          type: string
        positions:
          type: number
        total:
          $ref: "#/components/schemas/GetVaultMarketOptionRiskResponseTotal"
        byUnderlying:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionRiskResponseByUnderlying"
        scenario:
          $ref: "#/components/schemas/GetVaultMarketOptionRiskResponseScenario"
        betaWeighted:
          $ref: "#/components/schemas/GetVaultMarketOptionRiskResponseBetaWeighted"
        label:
          type: string
      required:
        - book
        - positions
        - total
        - byUnderlying
        - scenario
        - label
      additionalProperties: false
    GetVaultMarketOptionRiskResponseBetaWeighted:
      type: object
      properties:
        index:
          $ref: "#/components/schemas/NameSlug"
        indexCents:
          type: number
          nullable: true
        deltaIndexUnits:
          type: number
          nullable: true
        note:
          type: string
      required:
        - index
        - note
      additionalProperties: false
      nullable: true
    GetVaultMarketOptionRiskResponseByUnderlying:
      type: object
      properties:
        name:
          type: string
        beta:
          type: number
          nullable: true
        betaWeightedDelta:
          type: number
          nullable: true
        scenarioPnlCents:
          type: number
        underlying:
          type: string
        spotCents:
          type: number
        delta:
          type: number
          description: Contracts-equivalent of the underlying (units).
        gamma:
          type: number
        vegaPerPoint:
          type: number
        thetaPerDay:
          type: number
        deltaCents:
          type: number
          description: "Delta x spot: the dollar exposure to a 1x move, cents."
        gammaPerPctCents:
          type: number
          description: "P&L for a 1% move from gamma alone: 0.5 x gamma x (1% spot)^2, cents."
      required:
        - name
        - scenarioPnlCents
        - underlying
        - spotCents
        - delta
        - gamma
        - vegaPerPoint
        - thetaPerDay
        - deltaCents
        - gammaPerPctCents
      additionalProperties: false
    GetVaultMarketOptionRiskResponseScenario:
      type: object
      properties:
        pnlCents:
          type: number
        betaWeightedPnlCents:
          type: number
          nullable: true
        grid:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionRiskResponseScenarioGrid"
        ranges:
          $ref: "#/components/schemas/GetVaultMarketOptionRiskResponseScenarioRanges"
        priceShift:
          type: number
        volShift:
          type: number
        daysForward:
          type: number
      required:
        - pnlCents
        - grid
        - ranges
        - priceShift
        - volShift
        - daysForward
      additionalProperties: false
    GetVaultMarketOptionRiskResponseScenarioGrid:
      type: object
      properties:
        priceShift:
          type: number
        volShift:
          type: number
        pnlCents:
          type: number
      required:
        - priceShift
        - volShift
        - pnlCents
      additionalProperties: false
    GetVaultMarketOptionRiskResponseScenarioRanges:
      type: object
      properties:
        priceShift:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
        volShift:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
        maxDaysForward:
          type: number
      required:
        - priceShift
        - volShift
        - maxDaysForward
      additionalProperties: false
    GetVaultMarketOptionRiskResponseTotal:
      type: object
      properties:
        delta:
          type: number
          description: Contracts-equivalent of the underlying (units).
        gamma:
          type: number
        vegaPerPoint:
          type: number
        thetaPerDay:
          type: number
        deltaCents:
          type: number
          description: "Delta x spot: the dollar exposure to a 1x move, cents."
        gammaPerPctCents:
          type: number
          description: "P&L for a 1% move from gamma alone: 0.5 x gamma x (1% spot)^2, cents."
      required:
        - delta
        - gamma
        - vegaPerPoint
        - thetaPerDay
        - deltaCents
        - gammaPerPctCents
      additionalProperties: false
    GetVaultMarketOracleBySlugResponse:
      type: object
      properties:
        message:
          type: string
          nullable: true
        signature:
          type: string
          nullable: true
        publishTime:
          type: string
        ageSec:
          type: number
        fresh:
          type: boolean
        id:
          type: string
        indexSlug:
          type: string
        network:
          type: string
        feedId:
          type: string
        status:
          type: string
          enum:
            - skipped
            - published
            - failed
        reason:
          type: string
          nullable: true
        reasonText:
          type: string
          nullable: true
        level:
          type: number
          nullable: true
        price:
          type: string
          nullable: true
        conf:
          type: string
          nullable: true
        exponent:
          type: number
        confidenceBps:
          type: number
          nullable: true
        stalenessSec:
          type: number
          nullable: true
        coverageBps:
          type: number
          nullable: true
        keys:
          type: number
          nullable: true
        basis:
          type: string
          nullable: true
        publishTimeUs:
          type: number
          nullable: true
        signer:
          type: string
          nullable: true
        httpStatus:
          type: number
          nullable: true
        error:
          type: string
          nullable: true
        at:
          type: string
        feed:
          type: string
        version:
          type: string
        label:
          type: string
      required:
        - publishTime
        - ageSec
        - fresh
        - id
        - indexSlug
        - network
        - feedId
        - status
        - exponent
        - at
        - feed
        - version
        - label
      additionalProperties: false
    GetVaultMarketOracleResponse:
      type: object
      properties:
        label:
          type: string
        notReadBack:
          type: string
        open:
          type: boolean
        missing:
          type: array
          items:
            type: string
        problem:
          type: string
          nullable: true
        network:
          type: string
          enum:
            - pyth
            - switchboard
          nullable: true
        pythMode:
          type: string
          enum:
            - agent
            - relayer
          nullable: true
        signer:
          type: string
          nullable: true
        everySec:
          type: number
        version:
          type: string
        rules:
          $ref: "#/components/schemas/GetVaultMarketOracleResponseRules"
        feeds:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOracleResponseFeeds"
        last24h:
          $ref: "#/components/schemas/GetVaultMarketOracleResponseLast24h"
      required:
        - label
        - notReadBack
        - open
        - missing
        - everySec
        - version
        - rules
        - feeds
        - last24h
      additionalProperties: false
    GetVaultMarketOracleResponseFeeds:
      type: object
      properties:
        id:
          type: string
        indexSlug:
          type: string
        network:
          type: string
          enum:
            - pyth
            - switchboard
        feedId:
          type: string
        exponent:
          type: number
        status:
          type: string
          enum:
            - active
            - paused
        latest:
          $ref: "#/components/schemas/GetVaultMarketOracleResponseFeedsLatest"
      required:
        - id
        - indexSlug
        - network
        - feedId
        - exponent
        - status
      additionalProperties: false
    GetVaultMarketOracleResponseFeedsLatest:
      type: object
      properties:
        status:
          type: string
        reason:
          type: string
          nullable: true
        reasonText:
          type: string
          nullable: true
        level:
          type: number
          nullable: true
        confidenceBps:
          type: number
          nullable: true
        stalenessSec:
          type: number
          nullable: true
        at:
          type: string
      required:
        - status
        - at
      additionalProperties: false
      nullable: true
    GetVaultMarketOracleResponseLast24h:
      type: object
      properties:
        published:
          type: number
        skipped:
          type: number
        failed:
          type: number
      required:
        - published
        - skipped
        - failed
      additionalProperties: false
    GetVaultMarketOracleResponseRules:
      type: object
      properties:
        minCoverageBps:
          type: number
        minKeys:
          type: number
        maxStaleSec:
          type: number
        maxConfBps:
          type: number
      required:
        - minCoverageBps
        - minKeys
        - maxStaleSec
        - maxConfBps
      additionalProperties: false
    GetVaultMarketOrderHandlingResponse:
      type: object
      properties:
        version:
          type: string
        sections:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOrderHandlingResponseSections"
      required:
        - version
        - sections
      additionalProperties: false
    GetVaultMarketOrderHandlingResponseSections:
      type: object
      properties:
        heading:
          type: string
        lines:
          type: array
          items:
            type: string
      required:
        - heading
        - lines
      additionalProperties: false
    GetVaultMarketP2pDashboardResponse:
      type: object
      properties:
        gates:
          $ref: "#/components/schemas/GetVaultMarketP2pDashboardResponseGates"
        termsVersion:
          type: string
          nullable: true
        rules:
          $ref: "#/components/schemas/GetVaultMarketP2pDashboardResponseRules"
        borrowing:
          $ref: "#/components/schemas/GetVaultMarketP2pDashboardResponseBorrowing"
        lending:
          $ref: "#/components/schemas/GetVaultMarketP2pDashboardResponseLending"
        offers:
          $ref: "#/components/schemas/GetVaultMarketP2pDashboardResponseOffers"
      required:
        - gates
        - rules
        - borrowing
        - lending
        - offers
      additionalProperties: false
    GetVaultMarketP2pDashboardResponseBorrowing:
      type: object
      properties:
        loans:
          type: number
        owedCents:
          type: number
        dailyInterestCents:
          type: number
        called:
          type: number
        searching:
          type: number
      required:
        - loans
        - owedCents
        - dailyInterestCents
        - called
        - searching
      additionalProperties: false
    GetVaultMarketP2pDashboardResponseGates:
      type: object
      properties:
        custody:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        lending:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
      required:
        - custody
        - lending
      additionalProperties: false
    GetVaultMarketP2pDashboardResponseLending:
      type: object
      properties:
        loans:
          type: number
        owedToYouCents:
          type: number
        dailyInterestCents:
          type: number
        called:
          type: number
      required:
        - loans
        - owedToYouCents
        - dailyInterestCents
        - called
      additionalProperties: false
    GetVaultMarketP2pDashboardResponseOffers:
      type: object
      properties:
        open:
          type: number
        loansLeft:
          type: number
        cashOfferedCents:
          type: number
      required:
        - open
        - loansLeft
        - cashOfferedCents
      additionalProperties: false
    GetVaultMarketP2pDashboardResponseRules:
      type: object
      properties:
        refinanceAuctionHours:
          type: number
        maxAprBps:
          type: number
        minPrincipalCents:
          type: number
        maxPrincipalCents:
          type: number
        callGraceHours:
          type: number
        minPartialRepayCents:
          type: number
        refiAuctionMinHours:
          type: number
        refiAuctionMaxHours:
          type: number
        refiAuctionDefaultHours:
          type: number
      required:
        - refinanceAuctionHours
        - maxAprBps
        - minPrincipalCents
        - maxPrincipalCents
        - callGraceHours
        - minPartialRepayCents
        - refiAuctionMinHours
        - refiAuctionMaxHours
        - refiAuctionDefaultHours
      additionalProperties: false
    GetVaultMarketP2pLoanResponse:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketP2pLoanResponseEvents"
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        id:
          type: string
        role:
          type: string
          enum:
            - viewer
            - borrower
            - lender
        status:
          type: string
          enum:
            - active
            - cancelled
            - funding
            - auction
            - repaid
            - foreclosed
            - repaying
            - refinancing
            - refi_pending
            - refinanced
        closeReason:
          type: string
          nullable: true
        bookKey:
          type: string
        vaultItemId:
          type: string
        principalCents:
          type: number
        aprBps:
          type: number
        dailyInterestCents:
          type: number
        owed:
          $ref: "#/components/schemas/GetVaultMarketP2pLoanResponseOwed"
        payoffCents:
          type: number
          nullable: true
        interestPaidCents:
          type: number
        principalRepaidCents:
          type: number
        minRepayCents:
          type: number
          nullable: true
        startedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        auction:
          $ref: "#/components/schemas/GetVaultMarketP2pLoanResponseAuction"
        refiAuction:
          $ref: "#/components/schemas/GetVaultMarketP2pLoanResponseAuction"
        refinancedFromLoanId:
          type: string
          nullable: true
        refinancedToLoanId:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          nullable: true
        ltvBps:
          type: number
          nullable: true
      required:
        - events
        - id
        - role
        - status
        - bookKey
        - vaultItemId
        - principalCents
        - aprBps
        - dailyInterestCents
        - interestPaidCents
        - principalRepaidCents
        - createdAt
      additionalProperties: false
    GetVaultMarketP2pLoanResponseAuction:
      type: object
      properties:
        payoffNowCents:
          type: number
          nullable: true
        phase:
          type: string
          enum:
            - none
            - running
            - ended
        rateBps:
          type: number
          nullable: true
        startAprBps:
          type: number
          nullable: true
        ceilingBps:
          type: number
        calledAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        msLeft:
          type: number
          nullable: true
      required:
        - phase
        - ceilingBps
      additionalProperties: false
      nullable: true
    GetVaultMarketP2pLoanResponseEvents:
      type: object
      properties:
        createdAt:
          type: string
        bookedAt:
          type: string
          nullable: true
        id:
          type: string
        kind:
          type: string
          enum:
            - fund
            - repay
            - refinance
        cents:
          type: number
        interestCents:
          type: number
        status:
          type: string
        note:
          type: string
          nullable: true
      required:
        - createdAt
        - id
        - kind
        - cents
        - interestCents
        - status
      additionalProperties: false
    GetVaultMarketP2pLoanResponseOwed:
      type: object
      properties:
        principalCents:
          type: number
        interestCents:
          type: number
        totalCents:
          type: number
      required:
        - principalCents
        - interestCents
        - totalCents
      additionalProperties: false
      nullable: true
    GetVaultMarketPaperQuoteResponse:
      type: object
      properties:
        playMoney:
          type: boolean
        label:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        limitCents:
          type: number
          nullable: true
        markCents:
          type: number
          nullable: true
        fillableUnits:
          type: number
        avgPriceCents:
          type: number
          nullable: true
        notionalCents:
          type: number
        feeCents:
          type: number
        takes:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketProDepthResponseBids"
        restingUnits:
          type: number
        queueAhead:
          type: number
          nullable: true
        halted:
          type: boolean
      required:
        - playMoney
        - label
        - bookKey
        - side
        - quantity
        - fillableUnits
        - notionalCents
        - feeCents
        - takes
        - restingUnits
        - halted
      additionalProperties: false
    GetVaultMarketPaperResponse:
      type: object
      properties:
        shortLabel:
          type: string
        startingCents:
          type: number
        cashCents:
          type: number
        reservedCents:
          type: number
        buyingPowerCents:
          type: number
        positionsValueCents:
          type: number
        equityCents:
          type: number
        pnlCents:
          type: number
        returnBps:
          type: number
          nullable: true
        realizedCents:
          type: number
        positions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPaperResponsePositions"
        closed:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPaperResponsePositions"
        workingOrders:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPaperResponseWorkingOrders"
        recentFills:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPaperResponseRecentFills"
        epoch:
          type: number
        resets:
          type: number
        lastResetAt:
          type: string
          nullable: true
        nextResetAt:
          type: string
          nullable: true
        leaderboard:
          $ref: "#/components/schemas/GetVaultMarketPaperResponseLeaderboard"
        week:
          $ref: "#/components/schemas/GetVaultMarketPaperResponseWeek"
        playMoney:
          type: boolean
        label:
          type: string
      required:
        - shortLabel
        - startingCents
        - cashCents
        - reservedCents
        - buyingPowerCents
        - positionsValueCents
        - equityCents
        - pnlCents
        - realizedCents
        - positions
        - closed
        - workingOrders
        - recentFills
        - epoch
        - resets
        - leaderboard
        - week
        - playMoney
        - label
      additionalProperties: false
    GetVaultMarketPaperResponseLeaderboard:
      type: object
      properties:
        optIn:
          type: boolean
        displayName:
          type: string
          nullable: true
      required:
        - optIn
      additionalProperties: false
    GetVaultMarketPaperResponsePositions:
      type: object
      properties:
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bookKey:
          type: string
        units:
          type: number
        reservedUnits:
          type: number
        avgCostCents:
          type: number
          nullable: true
        costCents:
          type: number
        markCents:
          type: number
          nullable: true
        priced:
          type: boolean
        valueCents:
          type: number
        unrealizedCents:
          type: number
        realizedCents:
          type: number
      required:
        - bookKey
        - units
        - reservedUnits
        - costCents
        - priced
        - valueCents
        - unrealizedCents
        - realizedCents
      additionalProperties: false
    GetVaultMarketPaperResponseRecentFills:
      type: object
      properties:
        name:
          type: string
          nullable: true
        id:
          type: string
        orderId:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        priceCents:
          type: number
        feeCents:
          type: number
        liquidity:
          type: string
        source:
          type: string
        filledAt:
          type: string
        playMoney:
          type: boolean
      required:
        - id
        - orderId
        - bookKey
        - side
        - quantity
        - priceCents
        - feeCents
        - liquidity
        - source
        - filledAt
        - playMoney
      additionalProperties: false
    GetVaultMarketPaperResponseWeek:
      type: object
      properties:
        week:
          type: string
        startEquityCents:
          type: number
        fills:
          type: number
        resetInWeek:
          type: boolean
        returnBps:
          type: number
          nullable: true
      required:
        - week
        - startEquityCents
        - fills
        - resetInWeek
      additionalProperties: false
    GetVaultMarketPaperResponseWorkingOrders:
      type: object
      properties:
        name:
          type: string
          nullable: true
        id:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
          enum:
            - limit
            - market
        tif:
          type: string
          enum:
            - gtc
            - ioc
        limitCents:
          type: number
          nullable: true
        quantity:
          type: number
        filledQuantity:
          type: number
        status:
          type: string
        queueAtPlace:
          type: number
        queueAhead:
          type: number
        clientOrderId:
          type: string
          nullable: true
        cancelReason:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
        doneAt:
          type: string
          nullable: true
        playMoney:
          type: boolean
      required:
        - id
        - bookKey
        - side
        - type
        - tif
        - quantity
        - filledQuantity
        - status
        - queueAtPlace
        - queueAhead
        - createdAt
        - playMoney
      additionalProperties: false
    GetVaultMarketPartnerMeResponse:
      type: object
      properties:
        partnership:
          $ref: "#/components/schemas/GetVaultMarketPartnerMeResponsePartnership"
        identity:
          $ref: "#/components/schemas/GetVaultMarketPartnerMeResponseIdentity"
      required:
        - identity
      additionalProperties: false
    GetVaultMarketPartnerMeResponseIdentity:
      type: object
      properties:
        verified:
          type: boolean
        status:
          type: string
          nullable: true
      required:
        - verified
      additionalProperties: false
    GetVaultMarketPartnerMeResponsePartnership:
      type: object
      properties:
        partner:
          $ref: "#/components/schemas/CreateVaultMarketPartnerApplyResponsePartner"
        totals:
          $ref: "#/components/schemas/GetVaultMarketPartnerMeResponsePartnershipTotals"
        batches:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPartnerMeResponsePartnershipBatches"
      required:
        - partner
        - totals
        - batches
      additionalProperties: false
      nullable: true
    GetVaultMarketPartnerMeResponsePartnershipBatches:
      type: object
      properties:
        id:
          type: string
        units:
          type: number
        labelUrl:
          type: string
          nullable: true
        trackingCode:
          type: string
          nullable: true
        labelError:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - units
        - createdAt
      additionalProperties: false
    GetVaultMarketPartnerMeResponsePartnershipTotals:
      type: object
      properties:
        unitsBroughtIn:
          type: number
        firstSales:
          type: number
        accruedCents:
          type: number
        paidCents:
          type: number
      required:
        - unitsBroughtIn
        - firstSales
        - accruedCents
        - paidCents
      additionalProperties: false
    GetVaultMarketPoolResponse:
      type: object
      properties:
        baseUnits:
          type: string
        heldValueCents:
          type: number
          nullable: true
        totalShares:
          type: string
        valueCents:
          type: number
        bookedCents:
          type: number
        markdownCents:
          type: number
        lentCents:
          type: number
        roomCents:
          type: number
        capacityCents:
          type: number
        utilBps:
          type: number
        aprBps:
          type: number
        insuranceFundCents:
          type: number
        stakerShareBps:
          type: number
        cooldownDays:
          type: number
        unstakeQueue:
          $ref: "#/components/schemas/GetVaultMarketPoolResponseUnstakeQueue"
      required:
        - baseUnits
        - totalShares
        - valueCents
        - bookedCents
        - markdownCents
        - lentCents
        - roomCents
        - capacityCents
        - utilBps
        - aprBps
        - insuranceFundCents
        - stakerShareBps
        - cooldownDays
        - unstakeQueue
      additionalProperties: false
    GetVaultMarketPoolResponseUnstakeQueue:
      type: object
      properties:
        stakes:
          type: number
        cents:
          type: number
        dueStakes:
          type: number
        dueCents:
          type: number
      required:
        - stakes
        - cents
        - dueStakes
        - dueCents
      additionalProperties: false
    GetVaultMarketPopReportResponse:
      type: object
      properties:
        bookKey:
          type: string
        variantId:
          type: string
        gradeKey:
          type: string
          nullable: true
          description: The page's grade, or null on a raw (ungraded) market.
        focus:
          $ref: "#/components/schemas/GetVaultMarketPopReportResponseFocus"
        graders:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPopReportResponseGraders"
        provider:
          $ref: "#/components/schemas/GetVaultMarketPopReportResponseProvider"
        status:
          type: string
          enum:
            - ok
            - not_synced
            - no_report
            - no_source
        explain:
          type: string
          nullable: true
          description: What is missing, in plain words; null when status is ok.
      required:
        - bookKey
        - variantId
        - graders
        - provider
        - status
      additionalProperties: false
    GetVaultMarketPopReportResponseFocus:
      type: object
      properties:
        graderSlug:
          type: string
        graderName:
          type: string
        gradeKey:
          type: string
        grade:
          type: string
        pop:
          type: number
          description: Copies at exactly this grade (0 when the report lists none).
        higher:
          type: number
          description: Copies at a better grade from the same grader.
        total:
          type: number
          description: Every copy the grader has graded of this card.
        asOf:
          type: string
        source:
          type: string
          enum:
            - provider
            - ops
      required:
        - graderSlug
        - graderName
        - gradeKey
        - grade
        - pop
        - higher
        - total
        - asOf
        - source
      additionalProperties: false
      nullable: true
    GetVaultMarketPopReportResponseGraders:
      type: object
      properties:
        graderSlug:
          type: string
        graderName:
          type: string
        source:
          type: string
          enum:
            - provider
            - ops
        asOf:
          type: string
          description: The report's own date, YYYY-MM-DD.
        updatedAt:
          type: string
          nullable: true
          description: When Crossly last wrote it (ISO), or null.
        total:
          type: number
        grades:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - graderSlug
        - graderName
        - source
        - asOf
        - total
        - grades
      additionalProperties: false
    GetVaultMarketPopReportResponseProvider:
      type: object
      properties:
        connected:
          type: boolean
      required:
        - connected
      additionalProperties: false
    GetVaultMarketPortfolioHistoryResponse:
      type: object
      properties:
        series:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPortfolioHistoryResponseSeries"
        now:
          $ref: "#/components/schemas/GetVaultMarketPortfolioHistoryResponseNow"
        today:
          $ref: "#/components/schemas/GetVaultMarketPortfolioHistoryResponseToday"
      required:
        - series
        - now
        - today
      additionalProperties: false
    GetVaultMarketPortfolioHistoryResponseNow:
      type: object
      properties:
        at:
          type: string
        marks:
          $ref: "#/components/schemas/GetVaultMarketPortfolioHistoryResponseNowMarks"
        vaultCents:
          type: number
        onLoanCents:
          type: number
        positionsCents:
          type: number
        totalCents:
          type: number
        units:
          type: number
        unitsOnLoan:
          type: number
      required:
        - at
        - marks
        - vaultCents
        - onLoanCents
        - positionsCents
        - totalCents
        - units
        - unitsOnLoan
      additionalProperties: false
    GetVaultMarketPortfolioHistoryResponseNowMarks:
      type: object
      properties:
        reliableCents:
          type: number
        indicativeCents:
          type: number
        unmarkedUnits:
          type: number
      required:
        - reliableCents
        - indicativeCents
        - unmarkedUnits
      additionalProperties: false
    GetVaultMarketPortfolioHistoryResponseSeries:
      type: object
      properties:
        day:
          type: string
        totalCents:
          type: number
        vaultCents:
          type: number
        onLoanCents:
          type: number
        positionsCents:
          type: number
        units:
          type: number
      required:
        - day
        - totalCents
        - vaultCents
        - onLoanCents
        - positionsCents
        - units
      additionalProperties: false
    GetVaultMarketPortfolioMarginResponse:
      type: object
      properties:
        enrolled:
          type: boolean
        status:
          type: string
          nullable: true
        statusReason:
          nullable: true
        enrolledAt:
          type: string
        monitoringEvidencedAt:
          type: string
          nullable: true
        eligibility:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOfEligibility"
        preview:
          nullable: true
        current:
          nullable: true
        account:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOfAccount"
        gate:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
        label:
          type: string
        policy:
          type: array
          items:
            type: string
        canManage:
          type: boolean
      required:
        - enrolled
        - eligibility
        - current
        - account
        - gate
        - label
        - policy
        - canManage
    GetVaultMarketPortfolioResponse:
      type: object
      properties:
        holdings:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPortfolioResponseHoldings"
        shares:
          $ref: "#/components/schemas/GetVaultMarketPortfolioResponseShares"
        onLoan:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPortfolioResponseOnLoan"
        totals:
          $ref: "#/components/schemas/GetVaultMarketPortfolioResponseTotals"
      required:
        - holdings
        - shares
        - onLoan
        - totals
      additionalProperties: false
    GetVaultMarketPortfolioResponseHoldings:
      type: object
      properties:
        bookKey:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        markConfidenceBps:
          type: number
          nullable: true
        pnlCents:
          type: number
          nullable: true
        onLien:
          type: boolean
        situation:
          type: string
        tradable:
          type: boolean
        id:
          type: string
        status:
          type: string
        variantId:
          type: string
          nullable: true
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        lendEnabled:
          type: boolean
        minAprBps:
          type: number
          nullable: true
        lien:
          type: string
          nullable: true
        loanId:
          type: string
          nullable: true
        storageCents:
          type: number
        declaredValueCents:
          type: number
          nullable: true
        insuredValueCents:
          type: number
          nullable: true
        skuId:
          type: string
        skuName:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        variantLabel:
          type: string
          nullable: true
        costCents:
          type: number
          nullable: true
      required:
        - markQuality
        - onLien
        - situation
        - tradable
        - id
        - status
        - condition
        - lendEnabled
        - storageCents
        - skuId
      additionalProperties: false
    GetVaultMarketPortfolioResponseOnLoan:
      type: object
      properties:
        feesAccruedCents:
          type: number
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        id:
          type: string
        bookKey:
          type: string
        status:
          type: string
        aprBps:
          type: number
        feesPaidCents:
          type: number
        recallDueAt:
          type: string
          format: date-time
          nullable: true
      required:
        - feesAccruedCents
        - markQuality
        - id
        - bookKey
        - status
        - aprBps
        - feesPaidCents
      additionalProperties: false
    GetVaultMarketPortfolioResponseTotals:
      type: object
      properties:
        valueCents:
          type: number
        costCents:
          type: number
        pnlCents:
          type: number
        units:
          type: number
        unitsOnLoan:
          type: number
        marks:
          $ref: "#/components/schemas/GetVaultMarketPortfolioHistoryResponseNowMarks"
      required:
        - valueCents
        - costCents
        - pnlCents
        - units
        - unitsOnLoan
        - marks
      additionalProperties: false
    GetVaultMarketPositionExitResponse:
      type: object
      properties:
        exits:
          $ref: "#/components/schemas/GetVaultMarketPositionExitResponseExits"
      additionalProperties: false
    GetVaultMarketPositionExitResponseExits:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        status:
          type: string
        bookKey:
          type: string
        entryOrderId:
          type: string
          nullable: true
        orderAId:
          type: string
          nullable: true
        orderBId:
          type: string
          nullable: true
        positionId:
          type: string
          nullable: true
        takeProfitCents:
          type: number
          nullable: true
        stopLossCents:
          type: number
          nullable: true
        trailBps:
          type: number
          nullable: true
        trailCents:
          type: number
          nullable: true
        watermarkCents:
          type: number
          nullable: true
        fired:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
        armedAt:
          type: string
          nullable: true
        doneAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - kind
        - status
        - bookKey
        - createdAt
      additionalProperties: false
      nullable: true
    GetVaultMarketPositionResponse:
      type: object
      properties:
        loans:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPositionResponseLoans"
        auctions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPositionResponseAuctionsItem"
        instructions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPositionResponseInstructions"
        legs:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPositionResponseLegs"
        splits:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPositionResponseSplits"
        id:
          type: string
        kind:
          type: string
          enum:
            - short
            - long
        status:
          type: string
        bookKey:
          type: string
        variantId:
          type: string
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        units:
          type: number
        entryCents:
          type: number
          nullable: true
        exitCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        leverageX100:
          type: number
        collateralUsdCents:
          type: number
        collateralCbxValueCents:
          type: number
        collateralCbxBaseUnits:
          type: string
        loanCents:
          type: number
        proceedsCents:
          type: number
        feesOwedCents:
          type: number
        feesPaidCents:
          type: number
        interestOwedCents:
          type: number
        interestPaidCents:
          type: number
        tier:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        healthBps:
          type: number
          nullable: true
        calledAt:
          type: string
          nullable: true
        unrealisedPnlCents:
          type: number
          nullable: true
        realizedPnlCents:
          type: number
          nullable: true
        collateralState:
          type: string
          description: "'pending' while the custodian is still taking the collateral (the order is not on the book yet)."
        settled:
          type: boolean
        needsOps:
          type: boolean
        shortfallUnpaidCents:
          type: number
        openedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - loans
        - auctions
        - instructions
        - legs
        - splits
        - id
        - kind
        - status
        - bookKey
        - variantId
        - condition
        - units
        - leverageX100
        - collateralUsdCents
        - collateralCbxValueCents
        - collateralCbxBaseUnits
        - loanCents
        - proceedsCents
        - feesOwedCents
        - feesPaidCents
        - interestOwedCents
        - interestPaidCents
        - collateralState
        - settled
        - needsOps
        - shortfallUnpaidCents
        - createdAt
      additionalProperties: false
    GetVaultMarketPositionResponseInstructions:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        status:
          type: string
        ref:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - kind
        - status
        - createdAt
      additionalProperties: false
    GetVaultMarketPositionResponseLegs:
      type: object
      properties:
        id:
          type: string
        side:
          type: string
          enum:
            - ask
            - bid
        status:
          type: string
          enum:
            - cancelled
            - filled
            - working
            - busted
        priceCents:
          type: number
          nullable: true
        proceedsCents:
          type: number
          nullable: true
        poolLoanCents:
          type: number
        filledAt:
          type: string
          nullable: true
        movedToPositionId:
          type: string
          nullable: true
      required:
        - id
        - side
        - status
        - poolLoanCents
      additionalProperties: false
    GetVaultMarketPositionResponseLoans:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        closedAt:
          type: string
          format: date-time
          nullable: true
        openedAt:
          type: string
          format: date-time
        vaultItemId:
          type: string
        holderAccountId:
          type: string
          nullable: true
        positionId:
          type: string
        bookKey:
          type: string
        feesPaidCents:
          type: number
        latePenaltyPaidCents:
          type: number
        lenderUserId:
          type: string
        aprBps:
          type: number
        markCentsAtOpen:
          type: number
        feesAccruedCents:
          type: string
        lenderStorageCents:
          type: number
        recalledAt:
          type: string
          format: date-time
          nullable: true
        recallDueAt:
          type: string
          format: date-time
          nullable: true
        returnedVaultItemId:
          type: string
          nullable: true
        latePenaltyAccruedCents:
          type: string
      required:
        - id
        - status
        - openedAt
        - vaultItemId
        - positionId
        - bookKey
        - feesPaidCents
        - latePenaltyPaidCents
        - lenderUserId
        - aprBps
        - markCentsAtOpen
        - feesAccruedCents
        - lenderStorageCents
        - latePenaltyAccruedCents
      additionalProperties: false
    GetVaultMarketPositionResponseSplits:
      type: object
      properties:
        slicePositionId:
          type: string
        parentPositionId:
          type: string
        units:
          type: number
        reason:
          type: string
          enum:
            - close
            - auction
            - recall
        status:
          type: string
          enum:
            - split
            - pending
            - refused
            - merged
        action:
          type: string
          enum:
            - close
            - auction
          nullable: true
        acted:
          type: boolean
        createdAt:
          type: string
      required:
        - slicePositionId
        - parentPositionId
        - units
        - reason
        - status
        - acted
        - createdAt
      additionalProperties: false
    GetVaultMarketPredictionAccountResponse:
      type: object
      properties:
        venue:
          $ref: "#/components/schemas/GetVaultMarketPredictionVenueResponse"
        account:
          $ref: "#/components/schemas/GetVaultMarketPredictionAccountResponseAccount"
        termsVersion:
          type: string
          nullable: true
        termsAccepted:
          type: boolean
        eligibility:
          $ref: "#/components/schemas/GetVaultMarketPredictionAccountResponseEligibility"
        limits:
          $ref: "#/components/schemas/GetVaultMarketPredictionLimitResponse"
        practice:
          $ref: "#/components/schemas/GetVaultMarketPredictionAccountResponsePractice"
      required:
        - venue
        - termsAccepted
        - limits
        - practice
      additionalProperties: false
    GetVaultMarketPredictionAccountResponseAccount:
      type: object
      properties:
        venue:
          type: string
          enum:
            - self
            - partner
        status:
          type: string
        opened:
          type: boolean
        region:
          type: string
          nullable: true
        termsVersion:
          type: string
          nullable: true
        termsAcceptedAt:
          type: string
          nullable: true
      required:
        - venue
        - status
        - opened
      additionalProperties: false
      nullable: true
    GetVaultMarketPredictionAccountResponseEligibility:
      type: object
      properties:
        ok:
          type: boolean
        reason:
          type: string
          nullable: true
        code:
          type: string
          enum:
            - region
            - age
            - ok
            - excluded
            - age_unknown
      required:
        - ok
        - code
      additionalProperties: false
      nullable: true
    GetVaultMarketPredictionAccountResponsePractice:
      type: object
      properties:
        open:
          type: boolean
        label:
          type: string
      required:
        - open
        - label
      additionalProperties: false
    GetVaultMarketPredictionBoardResponse:
      type: object
      properties:
        asOf:
          type: string
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionBoardResponseRows"
        note:
          type: string
      required:
        - asOf
        - rows
        - note
      additionalProperties: false
    GetVaultMarketPredictionBoardResponseRows:
      type: object
      properties:
        id:
          type: string
        ticker:
          type: string
        title:
          type: string
        expiryDay:
          type: string
        probabilityBps:
          type: number
          nullable: true
        label:
          type: string
        practice:
          type: boolean
        volumeContracts:
          type: number
        status:
          type: string
      required:
        - id
        - ticker
        - title
        - expiryDay
        - label
        - practice
        - volumeContracts
        - status
      additionalProperties: false
    GetVaultMarketPredictionDailyPriceResponse:
      type: object
      properties:
        day:
          type: string
        prices:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionDailyPriceResponsePrices"
      required:
        - day
        - prices
      additionalProperties: false
    GetVaultMarketPredictionDailyPriceResponsePrices:
      type: object
      properties:
        marketId:
          type: string
        ticker:
          type: string
        title:
          type: string
        venue:
          type: string
        yesSettleCents:
          type: number
          nullable: true
        basis:
          type: string
        volumeContracts:
          type: number
        openInterest:
          type: number
      required:
        - marketId
        - ticker
        - title
        - venue
        - basis
        - volumeContracts
        - openInterest
      additionalProperties: false
    GetVaultMarketPredictionEventResponse:
      type: object
      properties:
        eventId:
          type: string
        expiryDay:
          type: string
        seriesCode:
          type: string
        unit:
          type: string
          enum:
            - cents
            - points
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        playMoney:
          type: boolean
        bucketSet:
          type: boolean
        markets:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionEventResponseMarkets"
        risk:
          $ref: "#/components/schemas/GetVaultMarketPredictionEventResponseRisk"
        mergeableSets:
          type: number
        conversions:
          $ref: "#/components/schemas/GetVaultMarketPredictionEventResponseConversions"
        note:
          type: string
      required:
        - eventId
        - expiryDay
        - seriesCode
        - unit
        - venue
        - playMoney
        - bucketSet
        - markets
        - risk
        - mergeableSets
        - note
      additionalProperties: false
    GetVaultMarketPredictionEventResponseConversions:
      type: object
      properties:
        split:
          type: string
        merge:
          type: string
        convert:
          type: string
      required:
        - split
        - merge
        - convert
      additionalProperties: false
      nullable: true
    GetVaultMarketPredictionEventResponseMarkets:
      type: object
      properties:
        id:
          type: string
        ticker:
          type: string
        title:
          type: string
        shape:
          type: string
          enum:
            - range
            - bucket
            - close_above
            - close_below
            - touch
            - outperform
        strike:
          type: number
          nullable: true
        strikeLow:
          type: number
          nullable: true
        strikeHigh:
          type: number
          nullable: true
        status:
          type: string
        yes:
          type: number
        no:
          type: number
        costCents:
          type: number
      required:
        - id
        - ticker
        - title
        - shape
        - status
        - yes
        - no
        - costCents
      additionalProperties: false
    GetVaultMarketPredictionEventResponseRisk:
      type: object
      properties:
        costCents:
          type: number
          description: What was paid for what is held now, cents.
        guaranteedCents:
          type: number
          description: The least the holdings pay back whatever the value (cents).
        bestCents:
          type: number
          description: The most they can pay back.
        worstLossCents:
          type: number
          description: "cost - guaranteed, never below 0: what can really be lost."
        bestGainCents:
          type: number
          description: "best - cost: what can be won at most (may be negative)."
        grossAtRiskCents:
          type: number
          description: "The sum of every market's own cost: what is at risk without netting."
        nettedCents:
          type: number
          description: "grossAtRisk - worstLoss: what netting gives back as room."
      required:
        - costCents
        - guaranteedCents
        - bestCents
        - worstLossCents
        - bestGainCents
        - grossAtRiskCents
        - nettedCents
      additionalProperties: false
    GetVaultMarketPredictionForecasterByIdResponse:
      type: object
      properties:
        forecasterId:
          type: string
        displayName:
          type: string
        publicSince:
          type: string
        followers:
          type: number
        following:
          type: boolean
        you:
          type: boolean
        allTime:
          $ref: "#/components/schemas/GetVaultMarketPredictionForecasterByIdResponseAllTime"
        thisMonth:
          $ref: "#/components/schemas/GetVaultMarketPredictionForecasterByIdResponseAllTime"
        open:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionForecasterByIdResponseOpen"
        recent:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionForecasterByIdResponseRecent"
        copyWatch:
          type: string
      required:
        - forecasterId
        - displayName
        - publicSince
        - followers
        - following
        - you
        - allTime
        - thisMonth
        - open
        - recent
        - copyWatch
      additionalProperties: false
    GetVaultMarketPredictionForecasterByIdResponseAllTime:
      type: object
      properties:
        pnlCents:
          type: number
        settled:
          type: number
        accuracyBps:
          type: number
          nullable: true
        forecasts:
          type: number
        brier:
          type: number
          nullable: true
      required:
        - pnlCents
        - settled
        - forecasts
      additionalProperties: false
    GetVaultMarketPredictionForecasterByIdResponseOpen:
      type: object
      properties:
        marketId:
          type: string
        title:
          type: string
        side:
          type: string
        expiryDay:
          type: string
      required:
        - marketId
        - title
        - side
        - expiryDay
      additionalProperties: false
    GetVaultMarketPredictionForecasterByIdResponseRecent:
      type: object
      properties:
        marketId:
          type: string
        title:
          type: string
        side:
          type: string
          nullable: true
        outcome:
          type: string
        settledAt:
          type: string
      required:
        - marketId
        - title
        - outcome
        - settledAt
      additionalProperties: false
    GetVaultMarketPredictionForecasterResponse:
      type: object
      properties:
        displayName:
          type: string
          nullable: true
        public:
          type: boolean
        publicSince:
          type: string
          nullable: true
        followers:
          type: number
      required:
        - public
        - followers
      additionalProperties: false
    GetVaultMarketPredictionLeaderboardResponse:
      type: object
      properties:
        period:
          type: string
          enum:
            - all
            - week
            - month
        metric:
          type: string
          enum:
            - pnl
            - accuracy
            - brier
        venue:
          type: string
          enum:
            - live
            - paper
        playMoney:
          type: boolean
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionLeaderboardResponseRows"
        note:
          type: string
      required:
        - period
        - metric
        - venue
        - playMoney
        - rows
        - note
      additionalProperties: false
    GetVaultMarketPredictionLeaderboardResponseRows:
      type: object
      properties:
        rank:
          type: number
        forecasterId:
          type: string
        displayName:
          type: string
        pnlCents:
          type: number
        settled:
          type: number
        accuracyBps:
          type: number
          nullable: true
        forecasts:
          type: number
        brier:
          type: number
          nullable: true
      required:
        - rank
        - forecasterId
        - displayName
        - pnlCents
        - settled
        - forecasts
      additionalProperties: false
    GetVaultMarketPredictionLimitResponse:
      type: object
      properties:
        dailyLossLimitCents:
          type: number
          nullable: true
          description: Cents a day the user may lose (realised + fees + cost of contracts bought); null = none set.
        excludedUntil:
          type: string
          nullable: true
          description: Excluded until (ISO); 'forever' = permanent until a raise after the delay.
        pending:
          $ref: "#/components/schemas/GetVaultMarketPredictionLimitResponsePending"
        hold:
          $ref: "#/components/schemas/GetVaultMarketPredictionLimitResponseHold"
      additionalProperties: false
    GetVaultMarketPredictionLimitResponseHold:
      type: object
      properties:
        until:
          type: string
        reason:
          type: string
          nullable: true
      required:
        - until
      additionalProperties: false
      nullable: true
    GetVaultMarketPredictionLimitResponsePending:
      type: object
      properties:
        dailyLossLimitCents:
          type: number
          nullable: true
        excludedUntil:
          type: string
          nullable: true
        effectiveAt:
          type: string
      required:
        - effectiveAt
      additionalProperties: false
      nullable: true
      description: A raise waiting out its 24 hours.
    GetVaultMarketPredictionMarketForecastResponse:
      type: object
      properties:
        count:
          type: number
        medianBps:
          type: number
          nullable: true
        note:
          type: string
      required:
        - count
        - note
      additionalProperties: false
    GetVaultMarketPredictionMarketHistoryResponse:
      type: object
      properties:
        marketId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        playMoney:
          type: boolean
        range:
          type: string
          enum:
            - all
            - 1d
            - 1w
            - 1m
        bucketMinutes:
          type: number
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMarketHistoryResponsePoints"
        candles:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMarketHistoryResponseCandles"
        now:
          $ref: "#/components/schemas/GetVaultMarketPredictionMarketHistoryResponseNow"
        note:
          type: string
      required:
        - marketId
        - venue
        - playMoney
        - range
        - bucketMinutes
        - points
        - candles
        - now
        - note
      additionalProperties: false
    GetVaultMarketPredictionMarketHistoryResponseCandles:
      type: object
      properties:
        t:
          type: string
        open:
          type: number
        high:
          type: number
        low:
          type: number
        close:
          type: number
        volume:
          type: number
      required:
        - t
        - open
        - high
        - low
        - close
        - volume
      additionalProperties: false
    GetVaultMarketPredictionMarketHistoryResponseNow:
      type: object
      properties:
        volume24hContracts:
          type: number
        probabilityBps:
          type: number
          nullable: true
        basis:
          type: string
          enum:
            - none
            - mid
            - last
        quality:
          type: string
        yesBidCents:
          type: number
          nullable: true
        yesAskCents:
          type: number
          nullable: true
        lastYesCents:
          type: number
          nullable: true
        volumeContracts:
          type: number
        openInterest:
          type: number
      required:
        - volume24hContracts
        - basis
        - quality
        - volumeContracts
        - openInterest
      additionalProperties: false
    GetVaultMarketPredictionMarketHistoryResponsePoints:
      type: object
      properties:
        t:
          type: string
        probabilityBps:
          type: number
          nullable: true
        yesBidCents:
          type: number
          nullable: true
        yesAskCents:
          type: number
          nullable: true
        volumeContracts:
          type: number
        openInterest:
          type: number
      required:
        - t
        - volumeContracts
        - openInterest
      additionalProperties: false
    GetVaultMarketPredictionMarketResponse:
      type: object
      properties:
        market:
          $ref: "#/components/schemas/ListVaultMarketPredictionMarketsItem"
        venue:
          $ref: "#/components/schemas/GetVaultMarketPredictionVenueResponse"
        book:
          $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponseBook"
        practiceBook:
          $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponsePracticeBook"
        trades:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponseTrades"
        settlements:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponseSettlements"
        rules:
          $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponseRules"
        mine:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionPositionsItem"
        riskLine:
          type: string
        practiceLabel:
          type: string
        derivedPriceNote:
          type: string
      required:
        - market
        - venue
        - practiceBook
        - trades
        - settlements
        - mine
        - riskLine
        - practiceLabel
        - derivedPriceNote
      additionalProperties: false
    GetVaultMarketPredictionMarketResponseBook:
      type: object
      properties:
        mirror:
          type: boolean
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponseBookBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponseBookBids"
        bestYesBid:
          type: number
        bestYesAsk:
          type: number
        bestNoBid:
          type: number
      required:
        - mirror
        - bids
        - asks
        - bestYesBid
        - bestYesAsk
        - bestNoBid
      additionalProperties: false
      nullable: true
    GetVaultMarketPredictionMarketResponseBookBids:
      type: object
      properties:
        priceCents:
          type: number
        contracts:
          type: number
        orders:
          type: number
      required:
        - priceCents
        - contracts
        - orders
      additionalProperties: false
    GetVaultMarketPredictionMarketResponsePracticeBook:
      type: object
      properties:
        mirror:
          type: boolean
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponseBookBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponseBookBids"
        bestYesBid:
          type: number
        bestYesAsk:
          type: number
        bestNoBid:
          type: number
      required:
        - mirror
        - bids
        - asks
        - bestYesBid
        - bestYesAsk
        - bestNoBid
      additionalProperties: false
    GetVaultMarketPredictionMarketResponseRules:
      type: object
      properties:
        seriesCode:
          type: string
        text:
          type: string
        hash:
          type: string
        version:
          type: number
      required:
        - seriesCode
        - text
        - hash
        - version
      additionalProperties: false
      nullable: true
    GetVaultMarketPredictionMarketResponseSettlements:
      type: object
      properties:
        id:
          type: string
        marketId:
          type: string
        outcome:
          type: string
          enum:
            - void
            - no
            - yes
        value:
          type: number
          nullable: true
        reason:
          type: string
        source:
          type: object
          additionalProperties: {}
        rulesHash:
          type: string
        supersedes:
          type: string
          nullable: true
        computedBy:
          type: string
        prevHash:
          type: string
        hash:
          type: string
        at:
          type: string
        review:
          type: string
          nullable: true
        disputeUntil:
          type: string
          nullable: true
        disputeReason:
          type: string
          nullable: true
        decisionNote:
          type: string
          nullable: true
      required:
        - id
        - marketId
        - outcome
        - reason
        - source
        - rulesHash
        - computedBy
        - prevHash
        - hash
        - at
      additionalProperties: false
    GetVaultMarketPredictionMarketResponseTrades:
      type: object
      properties:
        yesPriceCents:
          type: number
        contracts:
          type: number
        venue:
          type: string
        takerSide:
          type: string
        at:
          type: string
      required:
        - yesPriceCents
        - contracts
        - venue
        - takerSide
        - at
      additionalProperties: false
    GetVaultMarketPredictionMarketTradeResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMarketTradeResponseItems"
        nextBefore:
          type: number
          nullable: true
      required:
        - items
      additionalProperties: false
    GetVaultMarketPredictionMarketTradeResponseItems:
      type: object
      properties:
        seq:
          type: number
        yesPriceCents:
          type: number
        noPriceCents:
          type: number
        contracts:
          type: number
        takerSide:
          type: string
        venue:
          type: string
        playMoney:
          type: boolean
        kind:
          type: string
        at:
          type: string
      required:
        - seq
        - yesPriceCents
        - noPriceCents
        - contracts
        - takerSide
        - venue
        - playMoney
        - kind
        - at
      additionalProperties: false
    GetVaultMarketPredictionMissionResponse:
      type: object
      properties:
        missions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionMissionResponseMissions"
        reward:
          $ref: "#/components/schemas/GetVaultMarketPredictionMissionResponseReward"
        playMoney:
          type: boolean
      required:
        - missions
        - reward
        - playMoney
      additionalProperties: false
    GetVaultMarketPredictionMissionResponseMissions:
      type: object
      properties:
        done:
          type: boolean
        key:
          type: string
          enum:
            - pm_first_call
            - pm_settled
        title:
          type: string
        goal:
          type: string
        how:
          type: string
        learn:
          type: string
      required:
        - done
        - key
        - title
        - goal
        - how
        - learn
      additionalProperties: false
    GetVaultMarketPredictionMissionResponseReward:
      type: object
      properties:
        pin:
          type: string
        quest:
          type: string
        note:
          type: string
      required:
        - pin
        - quest
        - note
      additionalProperties: false
    GetVaultMarketPredictionPaperResponse:
      type: object
      properties:
        playMoney:
          type: boolean
        label:
          type: string
        startingCents:
          type: number
        cashCents:
          type: number
        lockedCents:
          type: number
        buyingPowerCents:
          type: number
        openCostCents:
          type: number
        positions:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionPositionsItem"
        workingOrders:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionPaperResponseWorkingOrders"
      required:
        - playMoney
        - label
        - startingCents
        - cashCents
        - lockedCents
        - buyingPowerCents
        - openCostCents
        - positions
        - workingOrders
      additionalProperties: false
    GetVaultMarketPredictionPaperResponseWorkingOrders:
      type: object
      properties:
        title:
          type: string
        id:
          type: string
        marketId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        action:
          type: string
        side:
          type: string
          enum:
            - no
            - yes
        priceCents:
          type: number
        bookPriceCents:
          type: number
        reduceOnly:
          type: boolean
        type:
          type: string
        tif:
          type: string
        postOnly:
          type: boolean
        quantity:
          type: number
        filled:
          type: number
        status:
          type: string
        expiresAt:
          type: string
          nullable: true
        clientOrderId:
          type: string
          nullable: true
        lockedCents:
          type: number
        feeCents:
          type: number
        costCents:
          type: number
        cancelReason:
          type: string
          nullable: true
        source:
          type: string
        createdAt:
          type: string
        doneAt:
          type: string
          nullable: true
        playMoney:
          type: boolean
        fills:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - title
        - id
        - marketId
        - venue
        - action
        - side
        - priceCents
        - bookPriceCents
        - reduceOnly
        - type
        - tif
        - postOnly
        - quantity
        - filled
        - status
        - lockedCents
        - feeCents
        - costCents
        - source
        - createdAt
        - playMoney
        - fills
      additionalProperties: false
    GetVaultMarketPredictionQuoteResponse:
      type: object
      properties:
        marketId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        action:
          type: string
          enum:
            - sell_yes
            - sell_no
            - buy_yes
            - buy_no
        bookSide:
          type: string
          enum:
            - no
            - yes
        limitCents:
          type: number
        fillableNow:
          type: number
        averagePriceCents:
          type: number
          nullable: true
        costCents:
          type: number
        estimatedFeeCents:
          type: number
        lockCents:
          type: number
        maxPayoutCents:
          type: number
        reduceOnly:
          type: boolean
        playMoney:
          type: boolean
        risk:
          type: string
      required:
        - marketId
        - venue
        - action
        - bookSide
        - limitCents
        - fillableNow
        - costCents
        - estimatedFeeCents
        - lockCents
        - maxPayoutCents
        - reduceOnly
        - playMoney
        - risk
      additionalProperties: false
    GetVaultMarketPredictionResponse:
      type: object
      properties:
        venue:
          $ref: "#/components/schemas/GetVaultMarketPredictionVenueResponse"
        busiest:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionMarketsItem"
        expiringSoon:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionMarketsItem"
        underlyings:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionResponseUnderlyings"
        myOpenPositions:
          type: number
        riskLine:
          type: string
        practiceLabel:
          type: string
      required:
        - venue
        - busiest
        - expiringSoon
        - underlyings
        - myOpenPositions
        - riskLine
        - practiceLabel
      additionalProperties: false
    GetVaultMarketPredictionResponseUnderlyings:
      type: object
      properties:
        kind:
          type: string
        ref:
          type: string
        name:
          type: string
        markets:
          type: number
      required:
        - kind
        - ref
        - name
        - markets
      additionalProperties: false
    GetVaultMarketPredictionRulebookResponse:
      type: object
      properties:
        current: {}
        versions: {}
        chainOk:
          type: boolean
      required:
        - current
        - versions
        - chainOk
    GetVaultMarketPredictionRulebookResponseOneOf1Current:
      type: object
      properties:
        id:
          type: string
        scope:
          type: string
          enum:
            - venue
            - series
        seriesId:
          type: string
          nullable: true
        version:
          type: number
        body:
          type: string
        hash:
          type: string
        prevHash:
          type: string
          nullable: true
        effectiveAt:
          type: string
        createdAt:
          type: string
      required:
        - id
        - scope
        - version
        - body
        - hash
        - effectiveAt
        - createdAt
      additionalProperties: false
    GetVaultMarketPredictionRulebookResponseOneOfCurrent:
      type: object
      properties:
        id:
          nullable: true
        scope:
          type: string
        seriesId:
          nullable: true
        version:
          type: number
        body:
          type: string
        hash:
          type: string
        prevHash:
          nullable: true
        effectiveAt:
          nullable: true
        createdAt:
          nullable: true
      required:
        - id
        - scope
        - seriesId
        - version
        - body
        - hash
        - prevHash
        - effectiveAt
        - createdAt
      additionalProperties: false
    GetVaultMarketPredictionVenueResponse:
      type: object
      properties:
        mode:
          type: string
          enum:
            - self
            - partner
            - paper
        live:
          type: boolean
        venueName:
          type: string
        bookRunBy:
          type: string
        moneyAt:
          type: string
        missing:
          $ref: "#/components/schemas/GetVaultMarketPredictionVenueResponseMissing"
        termsVersion:
          type: string
          nullable: true
        practice:
          type: boolean
      required:
        - mode
        - live
        - venueName
        - bookRunBy
        - moneyAt
        - missing
        - practice
      additionalProperties: false
    GetVaultMarketPredictionVenueResponseMissing:
      type: object
      properties:
        self:
          type: array
          items:
            type: string
        partner:
          type: array
          items:
            type: string
        live:
          type: array
          items:
            type: string
      required:
        - self
        - partner
        - live
      additionalProperties: false
    GetVaultMarketPredictionWillItHitResponse:
      type: object
      properties:
        eligible:
          type: boolean
        expiries:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPredictionWillItHitResponseExpiries"
        venue:
          $ref: "#/components/schemas/GetVaultMarketPredictionVenueResponse"
        riskLine:
          type: string
      required:
        - eligible
        - expiries
        - venue
        - riskLine
      additionalProperties: false
    GetVaultMarketPredictionWillItHitResponseExpiries:
      type: object
      properties:
        expiryDay:
          type: string
        markets:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - expiryDay
        - markets
      additionalProperties: false
    GetVaultMarketPressResponse:
      type: object
      properties:
        indexes:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketPressResponseIndexes"
        methodology:
          type: string
        marksMethodology:
          type: string
        report:
          type: string
        embed:
          $ref: "#/components/schemas/GetVaultMarketPressResponseEmbed"
        contact:
          type: string
        rules:
          type: array
          items:
            type: string
      required:
        - indexes
        - methodology
        - marksMethodology
        - report
        - embed
        - contact
        - rules
      additionalProperties: false
    GetVaultMarketPressResponseEmbed:
      type: object
      properties:
        script:
          type: string
        index:
          type: string
        mark:
          type: string
      required:
        - script
        - index
        - mark
      additionalProperties: false
    GetVaultMarketPressResponseIndexes:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
            - custom
            - brand
            - category
            - segment
            - curated
            - composite
        weighting:
          type: string
          enum:
            - mark
            - equal
            - vault_cap
            - turnover
        inceptionDay:
          type: string
          nullable: true
        level:
          type: number
          nullable: true
        asOf:
          type: string
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        n:
          type: number
        insufficient:
          type: boolean
        url:
          type: string
        csv:
          type: string
        citeAs:
          type: string
      required:
        - slug
        - name
        - kind
        - weighting
        - quality
        - n
        - insufficient
        - url
        - csv
        - citeAs
      additionalProperties: false
    GetVaultMarketProDepthResponse:
      type: object
      properties:
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketProDepthResponseBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketProDepthResponseAsks"
        bestBidCents:
          type: number
        bestAskCents:
          type: number
        spreadCents:
          type: number
          nullable: true
        bidUnits:
          type: number
        askUnits:
          type: number
      required:
        - bids
        - asks
        - bestBidCents
        - bestAskCents
        - bidUnits
        - askUnits
      additionalProperties: false
    GetVaultMarketProDepthResponseAsks:
      type: object
      properties:
        vaultUnits:
          type: number
        priceCents:
          type: number
        units:
          type: number
      required:
        - vaultUnits
        - priceCents
        - units
      additionalProperties: false
    GetVaultMarketProDepthResponseBids:
      type: object
      properties:
        priceCents:
          type: number
        units:
          type: number
      required:
        - priceCents
        - units
      additionalProperties: false
    GetVaultMarketProOrderResponse:
      type: object
      properties:
        waitsForCall:
          $ref: "#/components/schemas/CreateVaultMarketLongResponseWaitsForCall"
        events:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProEventsItem"
        id:
          type: string
        clientOrderId:
          type: string
          nullable: true
        source:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
          enum:
            - limit
            - market
            - stop
            - stop_limit
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
            - fok
        postOnly:
          type: boolean
        quantity:
          type: number
        filledQuantity:
          type: number
        avgFillCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        stopCents:
          type: number
          nullable: true
        displayQuantity:
          type: number
          nullable: true
        algo:
          type: string
          enum:
            - twap
            - vwap
          nullable: true
        algoEndsAt:
          type: string
          nullable: true
        funding:
          type: string
        status:
          type: string
        rejectReason:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        holderAccountId:
          type: string
          nullable: true
          description: The firm sub-account's holder account it is booked to (null = your own account).
      required:
        - events
        - id
        - source
        - bookKey
        - side
        - type
        - tif
        - postOnly
        - quantity
        - filledQuantity
        - funding
        - status
        - createdAt
        - updatedAt
      additionalProperties: false
    GetVaultMarketProSnapshotResponse:
      type: object
      properties:
        bookKey:
          type: string
        depth:
          $ref: "#/components/schemas/GetVaultMarketProDepthResponse"
        trades:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProTapeItem"
        stats:
          $ref: "#/components/schemas/GetVaultMarketProStatResponse"
        markCents:
          type: number
          nullable: true
        halt:
          $ref: "#/components/schemas/GetVaultMarketMarketModelResponseHalt"
      required:
        - bookKey
        - depth
        - trades
        - stats
      additionalProperties: false
    GetVaultMarketProStatResponse:
      type: object
      properties:
        openCents:
          type: number
        lastCents:
          type: number
        highCents:
          type: number
          nullable: true
        lowCents:
          type: number
          nullable: true
        volumeUnits:
          type: number
        notionalCents:
          type: number
        changeBps:
          type: number
          nullable: true
      required:
        - openCents
        - lastCents
        - volumeUnits
        - notionalCents
      additionalProperties: false
    GetVaultMarketProfileByHandleResponse:
      type: object
      properties:
        handle:
          type: string
        moved:
          type: boolean
        publicSince:
          type: string
          nullable: true
        markets:
          type: number
        holdings:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketProfileByHandleResponseOneOfHoldings"
        followers:
          type: number
        following:
          type: boolean
        isMe:
          type: boolean
        recentBuys:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketProfileByHandleResponseOneOfRecentBuys"
        displayName:
          type: string
        avatarUrl:
          nullable: true
        profileUrl:
          nullable: true
      required:
        - handle
        - moved
        - markets
        - holdings
        - followers
        - following
        - isMe
        - recentBuys
        - displayName
        - profileUrl
    GetVaultMarketProfileByHandleResponseOneOfHoldings:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        weightBps:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
      required:
        - bookKey
        - quality
      additionalProperties: false
    GetVaultMarketProfileByHandleResponseOneOfRecentBuys:
      type: object
      properties:
        id:
          type: string
        at:
          type: string
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        mark:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemMark"
        buyHref:
          type: string
      required:
        - id
        - at
        - bookKey
        - mark
        - buyHref
      additionalProperties: false
    GetVaultMarketProfileResponse:
      type: object
      properties:
        isPublic:
          type: boolean
        showBuys:
          type: boolean
        publicSince:
          type: string
          nullable: true
        handle:
          type: string
          nullable: true
        profileUrl:
          type: string
          nullable: true
        followers:
          type: number
      required:
        - isPublic
        - showBuys
        - followers
      additionalProperties: false
    GetVaultMarketProofOfReserveByDayResponse:
      type: object
      properties:
        day:
          type: string
        root:
          type: string
        leafCount:
          type: number
        methodVersion:
          type: number
        builtAt:
          type: string
        units:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveByDayResponseUnits"
        loansOpen:
          type: number
        totalInsuredCents:
          type: number
        memo:
          type: string
        anchor:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveByDayResponseAnchor"
      required:
        - day
        - root
        - leafCount
        - methodVersion
        - builtAt
        - units
        - loansOpen
        - totalInsuredCents
        - memo
        - anchor
      additionalProperties: false
    GetVaultMarketProofOfReserveByDayResponseUnits:
      type: object
      properties:
        stored:
          type: number
        listed:
          type: number
        grading:
          type: number
        withdrawing:
          type: number
        pledged:
          type: number
        onLoan:
          type: number
        withReceipt:
          type: number
      required:
        - stored
        - listed
        - grading
        - withdrawing
        - pledged
        - onLoan
        - withReceipt
      additionalProperties: false
    GetVaultMarketProofOfReserveMeResponse:
      type: object
      properties:
        snapshot:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveByDayResponse"
        treeIntact:
          type: boolean
          nullable: true
        entries:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketProofOfReserveMeResponseEntries"
      required:
        - snapshot
        - entries
      additionalProperties: false
    GetVaultMarketProofOfReserveMeResponseEntries:
      type: object
      properties:
        leafIndex:
          type: number
        receiptNo:
          type: string
          nullable: true
        fields:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveMeResponseEntriesFields"
        salt:
          type: string
        ownerCommitment:
          type: string
        leafHash:
          type: string
        proof:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - leafIndex
        - fields
        - salt
        - ownerCommitment
        - leafHash
        - proof
      additionalProperties: false
    GetVaultMarketProofOfReserveMeResponseEntriesFields:
      type: object
      properties:
        unitId:
          type: string
        bookKey:
          type: string
        certNo:
          type: string
          nullable: true
        status:
          type: string
        liened:
          type: boolean
        loaned:
          type: boolean
      required:
        - unitId
        - bookKey
        - status
        - liened
        - loaned
      additionalProperties: false
    GetVaultMarketProofOfReserveResponse:
      type: object
      properties:
        latest:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveResponseLatest"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketProofOfReserveResponseHistory"
        anchoring:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveResponseAnchoring"
        method:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveResponseMethod"
      required:
        - history
        - anchoring
        - method
      additionalProperties: false
    GetVaultMarketProofOfReserveResponseAnchoring:
      type: object
      properties:
        on:
          type: boolean
        signer:
          type: string
          nullable: true
        memoFormat:
          type: string
      required:
        - on
        - memoFormat
      additionalProperties: false
    GetVaultMarketProofOfReserveResponseHistory:
      type: object
      properties:
        day:
          type: string
        root:
          type: string
        leafCount:
          type: number
        methodVersion:
          type: number
        builtAt:
          type: string
        units:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveByDayResponseUnits"
        loansOpen:
          type: number
        totalInsuredCents:
          type: number
        memo:
          type: string
      required:
        - day
        - root
        - leafCount
        - methodVersion
        - builtAt
        - units
        - loansOpen
        - totalInsuredCents
        - memo
      additionalProperties: false
    GetVaultMarketProofOfReserveResponseLatest:
      type: object
      properties:
        day:
          type: string
        root:
          type: string
        leafCount:
          type: number
        methodVersion:
          type: number
        builtAt:
          type: string
        units:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveByDayResponseUnits"
        loansOpen:
          type: number
        totalInsuredCents:
          type: number
        memo:
          type: string
        anchor:
          $ref: "#/components/schemas/GetVaultMarketProofOfReserveResponseLatestAnchor"
      required:
        - day
        - root
        - leafCount
        - methodVersion
        - builtAt
        - units
        - loansOpen
        - totalInsuredCents
        - memo
        - anchor
      additionalProperties: false
      nullable: true
    GetVaultMarketProofOfReserveResponseMethod:
      type: object
      properties:
        version:
          type: number
        leaf:
          type: string
        node:
          type: string
        ownerCommitment:
          type: string
        hash:
          type: string
      required:
        - version
        - leaf
        - node
        - ownerCommitment
        - hash
      additionalProperties: false
    GetVaultMarketRateResponse:
      type: object
      properties:
        bookKey:
          type: string
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRateResponseItems"
        pool:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRateResponsePool"
      required:
        - bookKey
        - items
        - pool
      additionalProperties: false
    GetVaultMarketRateResponseItems:
      type: object
      properties:
        day:
          type: string
        borrowAprBps:
          type: number
          nullable: true
        lendUtilBps:
          type: number
          nullable: true
        lentUnits:
          type: number
          nullable: true
        stockUnits:
          type: number
          nullable: true
        poolAprBps:
          type: number
        poolUtilBps:
          type: number
      required:
        - day
        - poolAprBps
        - poolUtilBps
      additionalProperties: false
    GetVaultMarketRateResponsePool:
      type: object
      properties:
        day:
          type: string
        poolAprBps:
          type: number
        poolUtilBps:
          type: number
      required:
        - day
        - poolAprBps
        - poolUtilBps
      additionalProperties: false
    GetVaultMarketReportResponse:
      type: object
      properties:
        quarter:
          type: string
        label:
          type: string
        range:
          $ref: "#/components/schemas/StartEnd"
        inProgress:
          type: boolean
        generatedAt:
          type: string
        totals:
          $ref: "#/components/schemas/GetVaultMarketReportResponseTotals"
        indexes:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketReportResponseIndexes"
        risers:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketReportResponseRisers"
        fallers:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketReportResponseRisers"
        mostLent:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketReportResponseMostLent"
        gradePremiums:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketReportResponseGradePremiums"
        method:
          type: array
          items:
            type: string
        printable:
          $ref: "#/components/schemas/GetVaultMarketReportResponsePrintable"
        quarters:
          type: array
          items:
            type: string
      required:
        - quarter
        - label
        - range
        - inProgress
        - generatedAt
        - totals
        - indexes
        - risers
        - fallers
        - mostLent
        - gradePremiums
        - method
        - printable
        - quarters
      additionalProperties: false
    GetVaultMarketReportResponseGradePremiums:
      type: object
      properties:
        bookKey:
          type: string
        rawBookKey:
          type: string
        gradeKey:
          type: string
        gradedCents:
          type: number
        rawCents:
          type: number
        premiumBps:
          type: number
        trades:
          type: number
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - bookKey
        - rawBookKey
        - gradeKey
        - gradedCents
        - rawCents
        - premiumBps
        - trades
      additionalProperties: false
    GetVaultMarketReportResponseIndexes:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        kind:
          type: string
        startLevel:
          type: number
          nullable: true
        endLevel:
          type: number
        endDay:
          type: string
          nullable: true
        constituents:
          type: number
        changeBps:
          type: number
          nullable: true
      required:
        - slug
        - name
        - kind
        - endLevel
        - constituents
      additionalProperties: false
    GetVaultMarketReportResponseMostLent:
      type: object
      properties:
        bookKey:
          type: string
        loans:
          type: number
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - bookKey
        - loans
      additionalProperties: false
    GetVaultMarketReportResponsePrintable:
      type: object
      properties:
        title:
          type: string
        meta:
          type: array
          items:
            type: string
          description: Small grey lines under the title (order id, date, seller…).
        sections:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOrderHandlingResponseSections"
          description: 'Labelled blocks: "Shipped to" + its lines.'
        notes:
          type: array
          items:
            type: string
          description: Closing paragraphs, small and grey.
        paper:
          type: string
          enum:
            - letter
            - a4
        table:
          $ref: "#/components/schemas/GetVaultMarketReportResponsePrintableTable"
        qr:
          $ref: "#/components/schemas/GetVaultMarketReportResponsePrintableQr"
      required:
        - title
        - meta
        - sections
        - notes
        - paper
      additionalProperties: false
    GetVaultMarketReportResponsePrintableQr:
      type: object
      properties:
        url:
          type: string
        caption:
          type: string
      required:
        - url
        - caption
      additionalProperties: false
      nullable: true
      description: A QR code at the end (a verify link). The link itself should also be printed in a line, for anyone without a camera.
    GetVaultMarketReportResponsePrintableTable:
      type: object
      properties:
        columns:
          type: array
          items:
            type: string
        rows:
          type: array
          items:
            type: array
            items:
              type: string
        alignRight:
          type: array
          items:
            type: number
          description: Index of columns to right-align (amounts).
        boldRows:
          type: array
          items:
            type: number
          description: Rows (by index) to set in bold — totals.
      required:
        - columns
        - rows
        - alignRight
        - boldRows
      additionalProperties: false
      nullable: true
    GetVaultMarketReportResponseRisers:
      type: object
      properties:
        bookKey:
          type: string
        fromCents:
          type: number
          nullable: true
        toCents:
          type: number
          nullable: true
        trades:
          type: number
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        moveBps:
          type: number
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - bookKey
        - trades
        - quality
        - moveBps
      additionalProperties: false
    GetVaultMarketReportResponseTotals:
      type: object
      properties:
        tradedMarkets:
          type: number
        reliableMarkets:
          type: number
        trades:
          type: number
        loansOpened:
          type: number
      required:
        - tradedMarkets
        - reliableMarkets
        - trades
        - loansOpened
      additionalProperties: false
    GetVaultMarketRfqResponse:
      type: object
      properties:
        responses:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketRfqRespondResponse"
        limitCents:
          type: number
          nullable: true
        funding:
          type: string
          nullable: true
        blockId:
          type: string
          nullable: true
        failReason:
          type: string
          nullable: true
        id:
          type: string
        bookKey:
          type: string
        key:
          $ref: "#/components/schemas/CreateVaultMarketMmLpResponseKey"
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        status:
          type: string
        expiresAt:
          type: string
        createdAt:
          type: string
        closedAt:
          type: string
          nullable: true
      required:
        - responses
        - id
        - bookKey
        - side
        - quantity
        - status
        - expiresAt
        - createdAt
      additionalProperties: false
    GetVaultMarketRiskReportResponse:
      type: object
      properties:
        account:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOfAccount"
        asOf:
          type: string
        nav:
          $ref: "#/components/schemas/GetVaultMarketNavResponseTotals"
        var:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseVar"
        lvar:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseLvar"
        stress:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseStress"
        concentration:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseConcentration"
        counterparty:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseCounterparty"
        partnerDcm:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponsePartnerDcm"
      required:
        - account
        - asOf
        - nav
        - var
        - lvar
        - stress
        - concentration
        - counterparty
        - partnerDcm
      additionalProperties: false
    GetVaultMarketRiskReportResponseConcentration:
      type: object
      properties:
        top10:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponseConcentrationTop10"
        byShelf:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponseConcentrationByShelf"
        totalCents:
          type: number
        top10ShareBps:
          type: number
        byGrader:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponseConcentrationByGrader"
        byCategory:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponseConcentrationByGrader"
        hhi:
          type: number
        perKey:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponseConcentrationPerKey"
      required:
        - top10
        - byShelf
        - totalCents
        - top10ShareBps
        - byGrader
        - byCategory
        - hhi
        - perKey
      additionalProperties: false
    GetVaultMarketRiskReportResponseConcentrationByGrader:
      type: object
      properties:
        key:
          type: string
        valueCents:
          type: number
        shareBps:
          type: number
      required:
        - key
        - valueCents
        - shareBps
      additionalProperties: false
    GetVaultMarketRiskReportResponseConcentrationByShelf:
      type: object
      properties:
        site:
          type: string
        valueCents:
          type: number
        shareBps:
          type: number
      required:
        - site
        - valueCents
        - shareBps
      additionalProperties: false
    GetVaultMarketRiskReportResponseConcentrationPerKey:
      type: object
      properties:
        bookKey:
          type: string
        valueCents:
          type: number
        shareBps:
          type: number
        units:
          type: number
        shareOfVaultStockBps:
          type: number
          nullable: true
        shareOfAdvBps:
          type: number
          nullable: true
          description: Units held over the key's average daily volume, in bps (10,000 = a full day of volume).
        daysToLiquidate:
          type: number
          nullable: true
      required:
        - bookKey
        - valueCents
        - shareBps
        - units
      additionalProperties: false
    GetVaultMarketRiskReportResponseConcentrationTop10:
      type: object
      properties:
        title:
          type: string
        bookKey:
          type: string
        valueCents:
          type: number
        shareBps:
          type: number
        units:
          type: number
        shareOfVaultStockBps:
          type: number
          nullable: true
        shareOfAdvBps:
          type: number
          nullable: true
          description: Units held over the key's average daily volume, in bps (10,000 = a full day of volume).
        daysToLiquidate:
          type: number
          nullable: true
      required:
        - title
        - bookKey
        - valueCents
        - shareBps
        - units
      additionalProperties: false
    GetVaultMarketRiskReportResponseCounterpartyOneOf1Insurance:
      type: object
      properties:
        availableCents:
          type: number
        venueLentAtOpenCents:
          type: number
        coverageOfVenueBps:
          type: number
          nullable: true
        coverageOfYoursBps:
          type: number
          nullable: true
      required:
        - availableCents
        - venueLentAtOpenCents
      additionalProperties: false
    GetVaultMarketRiskReportResponseLvar:
      type: object
      properties:
        label:
          type: string
        method:
          type: string
        oneDay:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseLvarOneDay"
      required:
        - label
        - method
        - oneDay
      additionalProperties: false
    GetVaultMarketRiskReportResponseLvarOneDay:
      type: object
      properties:
        p95:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseLvarOneDayP95"
        p99:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseLvarOneDayP95"
      required:
        - p95
        - p99
      additionalProperties: false
    GetVaultMarketRiskReportResponseLvarOneDayP95:
      type: object
      properties:
        cents:
          type: number
          nullable: true
          description: "Null below the data threshold: show INST_NOT_ENOUGH, no number."
        band:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
          nullable: true
          description: An order-statistic 95% band on the quantile (null with the figure).
        n:
          type: number
        label:
          type: string
        notes:
          type: array
          items:
            type: string
        addOnCents:
          type: number
          nullable: true
      required:
        - n
        - label
        - notes
      additionalProperties: false
    GetVaultMarketRiskReportResponsePartnerDcm:
      type: object
      properties:
        positions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponsePartnerDcmPositions"
        byCategory:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponsePartnerDcmByCategory"
        totals:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponsePartnerDcmTotals"
        notInScenario:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponsePartnerDcmNotInScenario"
        scenarioBps:
          type: number
        note:
          type: string
        dcm:
          type: string
          nullable: true
        open:
          type: boolean
        linked:
          type: boolean
        accountRef:
          type: string
          nullable: true
        readAt:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
      required:
        - positions
        - byCategory
        - totals
        - notInScenario
        - scenarioBps
        - note
        - open
        - linked
      additionalProperties: false
    GetVaultMarketRiskReportResponsePartnerDcmByCategory:
      type: object
      properties:
        categorySlug:
          type: string
        category:
          type: string
        vaultExposureCents:
          type: number
        partnerNotionalCents:
          type: number
        netCents:
          type: number
        offsetBps:
          type: number
          nullable: true
          description: Share of the vault exposure the partner side offsets (opposite signs only).
        scenario:
          type: object
          description: "P&L of the category scenario: vault, partner and both together."
          additionalProperties: {}
      required:
        - categorySlug
        - category
        - vaultExposureCents
        - partnerNotionalCents
        - netCents
        - scenario
      additionalProperties: false
    GetVaultMarketRiskReportResponsePartnerDcmNotInScenario:
      type: object
      properties:
        symbol:
          type: string
        kind:
          type: string
          nullable: true
        why:
          type: string
      required:
        - symbol
        - why
      additionalProperties: false
    GetVaultMarketRiskReportResponsePartnerDcmPositions:
      type: object
      properties:
        symbol:
          type: string
        kind:
          type: string
          nullable: true
        indexSlug:
          type: string
          nullable: true
        categorySlug:
          type: string
          nullable: true
        side:
          type: string
          enum:
            - short
            - long
        contracts:
          type: number
        markPrice:
          type: number
          nullable: true
        signedNotionalCents:
          type: number
          nullable: true
          description: Long +, short -, at the partner's mark; null for options or without a spec.
        marginCents:
          type: number
          nullable: true
        unrealizedPnlCents:
          type: number
          nullable: true
        liquidationPrice:
          type: number
          nullable: true
        toLiquidationBps:
          type: number
          nullable: true
          description: How far the mark is from liquidation, in bps of the mark; null when the partner gives no price.
        scenarioPnlCents:
          type: number
          nullable: true
          description: P&L if its index moved by the category scenario; null when not in the scenario.
      required:
        - symbol
        - side
        - contracts
      additionalProperties: false
    GetVaultMarketRiskReportResponsePartnerDcmTotals:
      type: object
      properties:
        grossNotionalCents:
          type: number
        netNotionalCents:
          type: number
        marginCents:
          type: number
        unrealizedPnlCents:
          type: number
      required:
        - grossNotionalCents
        - netNotionalCents
        - marginCents
        - unrealizedPnlCents
      additionalProperties: false
    GetVaultMarketRiskReportResponseStress:
      type: object
      properties:
        label:
          type: string
        categoryDown30:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseStressCategoryDown30"
        cbxDown50:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseStressCbxDown50"
        booksThinTo25:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseStressBooksThinTo25"
        historicalDrawdown:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponseStressHistoricalDrawdown"
      required:
        - label
        - categoryDown30
        - cbxDown50
        - booksThinTo25
        - historicalDrawdown
      additionalProperties: false
    GetVaultMarketRiskReportResponseStressBooksThinTo25:
      type: object
      properties:
        liquidationNavCents:
          type: number
        afterCents:
          type: number
      required:
        - liquidationNavCents
        - afterCents
      additionalProperties: false
    GetVaultMarketRiskReportResponseStressCategoryDown30:
      type: object
      properties:
        byCategory:
          type: array
          items:
            type: object
            additionalProperties: {}
        worst:
          type: string
        marginCalls:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - byCategory
        - worst
        - marginCalls
      additionalProperties: false
    GetVaultMarketRiskReportResponseStressCbxDown50:
      type: object
      properties:
        cbxCollateralCents:
          type: number
        afterCents:
          type: number
        marginCalls:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - cbxCollateralCents
        - afterCents
        - marginCalls
      additionalProperties: false
    GetVaultMarketRiskReportResponseStressHistoricalDrawdown:
      type: object
      properties:
        category:
          type: string
        index:
          type: string
          nullable: true
        drawdownBps:
          type: number
        peakDay:
          type: string
          nullable: true
        troughDay:
          type: string
          nullable: true
        days:
          type: number
        pnlCents:
          type: number
          nullable: true
      required:
        - category
        - drawdownBps
        - days
      additionalProperties: false
    GetVaultMarketRiskReportResponseVar:
      type: object
      properties:
        label:
          type: string
        method:
          type: string
        days:
          type: number
        coverageBps:
          type: number
        oneDay:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseVarOneDay"
        tenDay:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseVarOneDay"
        proxied:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponseVarProxied"
        uncovered:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketRiskReportResponseVarUncovered"
        proxyNote:
          type: string
          nullable: true
      required:
        - label
        - method
        - days
        - coverageBps
        - oneDay
        - tenDay
        - proxied
        - uncovered
      additionalProperties: false
    GetVaultMarketRiskReportResponseVarOneDay:
      type: object
      properties:
        p95:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseVarOneDayP95"
        p99:
          $ref: "#/components/schemas/GetVaultMarketRiskReportResponseVarOneDayP95"
      required:
        - p95
        - p99
      additionalProperties: false
    GetVaultMarketRiskReportResponseVarOneDayP95:
      type: object
      properties:
        cents:
          type: number
          nullable: true
          description: "Null below the data threshold: show INST_NOT_ENOUGH, no number."
        band:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
          nullable: true
          description: An order-statistic 95% band on the quantile (null with the figure).
        n:
          type: number
        label:
          type: string
        notes:
          type: array
          items:
            type: string
      required:
        - n
        - label
        - notes
      additionalProperties: false
    GetVaultMarketRiskReportResponseVarProxied:
      type: object
      properties:
        bookKey:
          type: string
        title:
          type: string
        ownDays:
          type: number
        index:
          type: string
          nullable: true
      required:
        - bookKey
        - title
        - ownDays
      additionalProperties: false
    GetVaultMarketRiskReportResponseVarUncovered:
      type: object
      properties:
        bookKey:
          type: string
        title:
          type: string
        ownDays:
          type: number
      required:
        - bookKey
        - title
        - ownDays
      additionalProperties: false
    GetVaultMarketRiskStatResponse:
      type: object
      properties:
        label:
          type: string
        derived:
          type: boolean
        insufficient:
          type: boolean
        reason:
          type: string
          nullable: true
        n:
          type: number
          description: Weekly returns behind the numbers.
        source:
          type: string
          enum:
            - a_marks
            - index_levels
        annualisedVolBps:
          type: number
          nullable: true
        desmoothedVolBps:
          type: number
          nullable: true
          description: Geltner-desmoothed (AR(1)) — labelled as such wherever shown.
        desmoothingPhi:
          type: number
          nullable: true
        maxDrawdownBps:
          type: number
          nullable: true
        beta:
          $ref: "#/components/schemas/GetVaultMarketRiskStatResponseBeta"
        firstWeek:
          type: string
          nullable: true
        lastWeek:
          type: string
          nullable: true
        methodVersion:
          type: number
        target:
          type: string
        kind:
          type: string
          enum:
            - key
            - index
      required:
        - label
        - derived
        - insufficient
        - n
        - source
        - methodVersion
        - target
        - kind
      additionalProperties: false
    GetVaultMarketRiskStatResponseBeta:
      type: object
      properties:
        to:
          type: string
        beta:
          type: number
          nullable: true
        n:
          type: number
      required:
        - to
        - n
      additionalProperties: false
      nullable: true
    GetVaultMarketSetGoalBasketPlanResponse:
      type: object
      properties:
        budgetCents:
          type: number
        maxBpsOverMark:
          type: number
        feeBoundBps:
          type: number
        legs:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketSetGoalBasketPlanResponseLegs"
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketSetGoalBasketPlanResponseSkipped"
        committedCents:
          type: number
          description: "Every leg's cost added up: never more than the budget."
        leftCents:
          type: number
        missing:
          type: number
        goalId:
          type: string
        complete:
          type: boolean
        held:
          type: number
        total:
          type: number
      required:
        - budgetCents
        - maxBpsOverMark
        - feeBoundBps
        - legs
        - skipped
        - committedCents
        - leftCents
        - missing
        - goalId
        - complete
        - held
        - total
      additionalProperties: false
    GetVaultMarketSetGoalBasketPlanResponseLegs:
      type: object
      properties:
        skuId:
          type: string
        number:
          type: number
        title:
          type: string
        bookKey:
          type: string
        markCents:
          type: number
        limitCents:
          type: number
        costCents:
          type: number
      required:
        - skuId
        - number
        - title
        - bookKey
        - markCents
        - limitCents
        - costCents
      additionalProperties: false
    GetVaultMarketSetGoalBasketPlanResponseSkipped:
      type: object
      properties:
        skuId:
          type: string
        number:
          type: number
        title:
          type: string
        reason:
          type: string
          enum:
            - no_price
            - too_many
            - over_budget
            - not_chosen
        text:
          type: string
      required:
        - skuId
        - number
        - title
        - reason
        - text
      additionalProperties: false
    GetVaultMarketSetGoalResponse:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
        status:
          type: string
          enum:
            - active
            - archived
            - complete
        category:
          type: string
        title:
          type: string
        options:
          $ref: "#/components/schemas/GetVaultMarketSetGoalResponseOptions"
        completedAt:
          type: string
          nullable: true
        target:
          $ref: "#/components/schemas/GetVaultMarketSetGoalResponseTarget"
        total:
          type: number
        href:
          type: string
        brandSlug:
          type: string
        progress:
          type: string
        missing:
          type: number
        held:
          type: number
        modelSlug:
          type: string
        basket:
          $ref: "#/components/schemas/GetVaultMarketSetGoalResponseBasket"
        pieces:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketSetGoalResponsePieces"
        complete:
          type: boolean
        setFound:
          type: boolean
        priced:
          type: number
        missingMarkCents:
          type: number
        tooBig:
          type: boolean
        cardSetHref:
          type: string
      required:
        - id
        - createdAt
        - status
        - category
        - title
        - options
        - target
        - total
        - href
        - brandSlug
        - progress
        - missing
        - held
        - modelSlug
        - pieces
        - complete
        - setFound
        - priced
        - missingMarkCents
        - tooBig
        - cardSetHref
      additionalProperties: false
    GetVaultMarketSetGoalResponseBasket:
      type: object
      properties:
        id:
          type: string
        goalId:
          type: string
        clientBasketId:
          type: string
        status:
          type: string
          enum:
            - completed
            - cancelled
            - ended
            - working
        endReason:
          type: string
          nullable: true
        budgetCents:
          type: number
        maxBpsOverMark:
          type: number
        feeBoundBps:
          type: number
        funding:
          type: string
          enum:
            - card
            - custodian
        source:
          type: string
        committedCents:
          type: number
        spentCents:
          type: number
        leftCents:
          type: number
        counts:
          $ref: "#/components/schemas/ListVaultMarketSetGoalBasketsItemCounts"
        createdAt:
          type: string
        endedAt:
          type: string
          nullable: true
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSetGoalBasketsItemLegs"
      required:
        - id
        - goalId
        - clientBasketId
        - status
        - budgetCents
        - maxBpsOverMark
        - feeBoundBps
        - funding
        - source
        - committedCents
        - spentCents
        - leftCents
        - counts
        - createdAt
        - legs
      additionalProperties: false
      nullable: true
    GetVaultMarketSetGoalResponseOptions:
      type: object
      properties:
        conditions:
          type: array
          items:
            type: string
        grades:
          type: array
          items:
            type: string
      required:
        - conditions
        - grades
      additionalProperties: false
    GetVaultMarketSetGoalResponsePieces:
      type: object
      properties:
        number:
          type: number
          description: 1-based, in the set's order (year, then natural number), as on the collection room's plinths.
        held:
          type: boolean
        units:
          type: number
          description: Units of this piece you hold that meet the target.
        onShelf:
          type: boolean
          description: At least one of them is on the shelf (stored or listed), not on its way.
        vaultItemId:
          type: string
          nullable: true
          description: The unit that counts (the first on the shelf, else the first on its way).
        bid:
          $ref: "#/components/schemas/GetVaultMarketSetGoalResponsePiecesBid"
        skuId:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
      required:
        - number
        - held
        - units
        - onShelf
        - skuId
        - title
      additionalProperties: false
    GetVaultMarketSetGoalResponsePiecesBid:
      type: object
      properties:
        bookKey:
          type: string
        markCents:
          type: number
        quality:
          type: string
          nullable: true
      required:
        - bookKey
        - markCents
      additionalProperties: false
      nullable: true
      description: "Where a bid for it would go: the cheapest marked key that meets the target. Null = no price yet."
    GetVaultMarketSetGoalResponseTarget:
      type: object
      properties:
        text:
          type: string
        condition:
          type: string
          nullable: true
        gradeMode:
          type: string
          enum:
            - any
            - exact
            - ungraded
        gradeKey:
          type: string
          nullable: true
      required:
        - text
        - gradeMode
      additionalProperties: false
    GetVaultMarketSettingResponse:
      type: object
      properties:
        settings:
          $ref: "#/components/schemas/GetVaultMarketSettingResponseSettings"
      required:
        - settings
      additionalProperties: false
    GetVaultMarketSettingResponseSettings:
      type: object
      properties:
        sellFromDefault:
          type: string
          enum:
            - vault_first
            - warehouse_first
            - cheapest
        suggestNewInventory:
          type: boolean
        insuranceRule:
          type: string
          enum:
            - price
            - cost
            - market
        defaultGradingTier:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
      required:
        - sellFromDefault
        - suggestNewInventory
        - insuranceRule
      additionalProperties: false
    GetVaultMarketShareBasketResponse:
      type: object
      properties:
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareBasketResponseMembers"
        mine:
          $ref: "#/components/schemas/GetVaultMarketShareBasketResponseMine"
        note:
          type: string
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        theme:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - draft
            - live
            - retired
        rebalanceEvery:
          type: string
          enum:
            - monthly
            - quarterly
        toleranceBps:
          type: number
        liveMembers:
          type: number
        followers:
          type: number
        myPlanId:
          type: string
        lastRebalancedAt:
          type: string
          nullable: true
        nextRebalanceAt:
          type: string
          nullable: true
      required:
        - members
        - note
        - id
        - slug
        - name
        - status
        - rebalanceEvery
        - toleranceBps
        - liveMembers
        - followers
        - myPlanId
      additionalProperties: false
    GetVaultMarketShareBasketResponseMembers:
      type: object
      properties:
        seriesId:
          type: string
        code:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        weightBps:
          type: number
        liveWeightBps:
          type: number
        priceCents:
          type: number
          nullable: true
        myShares:
          type: number
      required:
        - seriesId
        - weightBps
        - liveWeightBps
        - myShares
      additionalProperties: false
    GetVaultMarketShareBasketResponseMine:
      type: object
      properties:
        valueCents:
          type: number
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareBasketResponseMineMembers"
      required:
        - valueCents
        - members
      additionalProperties: false
      nullable: true
    GetVaultMarketShareBasketResponseMineMembers:
      type: object
      properties:
        seriesId:
          type: string
        shares:
          type: number
        weightNowBps:
          type: number
        targetBps:
          type: number
      required:
        - seriesId
        - shares
        - weightNowBps
        - targetBps
      additionalProperties: false
    GetVaultMarketShareInvestorResponse:
      type: object
      properties:
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        live:
          type: boolean
        missing:
          type: array
          items:
            type: string
        termsVersion:
          type: string
          nullable: true
        investor:
          $ref: "#/components/schemas/GetVaultMarketShareInvestorResponseInvestor"
        regANote:
          type: string
      required:
        - venue
        - live
        - missing
        - regANote
      additionalProperties: false
    GetVaultMarketShareInvestorResponseInvestor:
      type: object
      properties:
        status:
          type: string
        termsVersion:
          type: string
          nullable: true
        termsCurrent:
          type: boolean
        accredited:
          type: boolean
        annualIncomeCents:
          type: number
          nullable: true
        netWorthCents:
          type: number
          nullable: true
        attestedAt:
          type: string
          nullable: true
        regALimitCents:
          type: number
          nullable: true
        bdLimitCents:
          type: number
          nullable: true
        bdLimitAt:
          type: string
          nullable: true
        attestationDue:
          type: boolean
        offerings:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareInvestorResponseInvestorOfferings"
      required:
        - status
        - termsCurrent
        - accredited
        - attestationDue
        - offerings
      additionalProperties: false
      nullable: true
    GetVaultMarketShareInvestorResponseInvestorOfferings:
      type: object
      properties:
        limitCents:
          type: number
          nullable: true
          description: Null = no limit (accredited).
        usedCents:
          type: number
        headroomCents:
          type: number
          nullable: true
        source:
          type: string
          enum:
            - accredited
            - broker_dealer
            - attestation
        seriesId:
          type: string
        code:
          type: string
      required:
        - usedCents
        - source
        - seriesId
        - code
      additionalProperties: false
    GetVaultMarketShareMeResponse:
      type: object
      properties:
        holdings:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareMeResponseHoldings"
        totals:
          $ref: "#/components/schemas/GetVaultMarketShareMeResponseTotals"
        subscriptions:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSubscriptionsItem"
        distributions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareMeResponseDistributions"
        gifts:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareGiftsItem"
        autoInvest:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareMeResponseAutoInvest"
        venue:
          $ref: "#/components/schemas/GetVaultMarketShareMeResponseVenue"
        note:
          type: string
      required:
        - holdings
        - totals
        - subscriptions
        - distributions
        - gifts
        - autoInvest
        - venue
        - note
      additionalProperties: false
    GetVaultMarketShareMeResponseAutoInvest:
      type: object
      properties:
        id:
          type: string
        venue:
          type: string
        practice:
          type: boolean
        targetKind:
          type: string
          enum:
            - series
            - basket
        basketId:
          type: string
          nullable: true
        targets:
          type: array
          items:
            type: object
            additionalProperties: {}
        amountCents:
          type: number
        every:
          type: string
          enum:
            - monthly
            - weekly
        carryCents:
          type: number
        maxPremiumBps:
          type: number
        rebalance:
          type: boolean
        status:
          type: string
          enum:
            - active
            - paused
            - cancelled
        nextRunAt:
          type: string
          nullable: true
        lastRunAt:
          type: string
          nullable: true
        createdAt:
          type: string
        note:
          type: string
      required:
        - id
        - venue
        - practice
        - targetKind
        - targets
        - amountCents
        - every
        - carryCents
        - maxPremiumBps
        - rebalance
        - status
        - createdAt
        - note
      additionalProperties: false
    GetVaultMarketShareMeResponseDistributions:
      type: object
      properties:
        id:
          type: string
        seriesId:
          type: string
        kind:
          type: string
        shares:
          type: number
        cents:
          type: number
        status:
          type: string
        createdAt:
          type: string
      required:
        - id
        - seriesId
        - kind
        - shares
        - cents
        - status
        - createdAt
      additionalProperties: false
    GetVaultMarketShareMeResponseHoldings:
      type: object
      properties:
        series:
          $ref: "#/components/schemas/GetVaultMarketShareMeResponseHoldingsSeries"
        shares:
          type: number
        costCents:
          type: number
        priceCents:
          type: number
        impliedValueCents:
          type: number
        unrealizedCents:
          type: number
        firstAcquiredAt:
          type: string
          nullable: true
        jointVaultId:
          type: string
          nullable: true
      required:
        - series
        - shares
        - costCents
        - priceCents
        - impliedValueCents
        - unrealizedCents
      additionalProperties: false
    GetVaultMarketShareMeResponseHoldingsSeries:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        status:
          type: string
          enum:
            - trading
            - proposed
            - failed
            - qualifying
            - offering
            - closing
            - lockup
            - exit_pending
            - wound_up
        statusText:
          type: string
        venue:
          type: string
        practice:
          type: boolean
        bookKey:
          type: string
        vaultItemId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        issuer:
          type: string
          nullable: true
        offeringRef:
          type: string
          nullable: true
        totalShares:
          type: number
        priceCents:
          type: number
        retainedShares:
          type: number
        offeredShares:
          type: number
        minRaiseShares:
          type: number
        soldShares:
          type: number
        reserveCents:
          type: number
        markAtOfferingCents:
          type: number
        markQuality:
          type: string
          nullable: true
        tier:
          type: string
          nullable: true
        valuationStatementId:
          type: string
          nullable: true
        valuationHash:
          type: string
          nullable: true
        offeringOpensAt:
          type: string
          nullable: true
        offeringDeadline:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        lockupEndsAt:
          type: string
          nullable: true
        tradingSince:
          type: string
          nullable: true
        lastPriceCents:
          type: number
          nullable: true
        lastTradeAt:
          type: string
          nullable: true
        impliedItemValueCents:
          type: number
          nullable: true
        quality:
          type: string
        usableForRisk:
          type: boolean
        impliedLabel:
          type: string
        halted:
          type: boolean
        storageAccruedCents:
          type: number
        insuranceAccruedCents:
          type: number
        exitKind:
          type: string
          nullable: true
        exitCents:
          type: number
          nullable: true
        woundUpAt:
          type: string
          nullable: true
        failedReason:
          type: string
          nullable: true
        mine:
          type: object
          nullable: true
          additionalProperties: {}
        rights:
          type: object
          additionalProperties: {}
        href:
          type: string
        dropAt:
          type: string
          nullable: true
        allocationMode:
          type: string
          enum:
            - fcfs
            - pro_rata
            - lottery
        perPersonCapShares:
          type: number
          nullable: true
        allocationWindowEndsAt:
          type: string
          nullable: true
        allocatedAt:
          type: string
          nullable: true
        tradingMode:
          type: string
          enum:
            - continuous
            - windows
        holderCount:
          type: number
          nullable: true
        isOriginator:
          type: boolean
        canPostUpdates:
          type: boolean
      required:
        - id
        - code
        - status
        - statusText
        - venue
        - practice
        - bookKey
        - totalShares
        - priceCents
        - retainedShares
        - offeredShares
        - minRaiseShares
        - soldShares
        - reserveCents
        - markAtOfferingCents
        - quality
        - usableForRisk
        - impliedLabel
        - halted
        - storageAccruedCents
        - insuranceAccruedCents
        - rights
        - href
        - allocationMode
        - tradingMode
        - isOriginator
        - canPostUpdates
      additionalProperties: false
    GetVaultMarketShareMeResponseTotals:
      type: object
      properties:
        costCents:
          type: number
        impliedValueCents:
          type: number
      required:
        - costCents
        - impliedValueCents
      additionalProperties: false
    GetVaultMarketShareMeResponseVenue:
      type: object
      properties:
        mode:
          type: string
          enum:
            - self
            - partner
            - paper
        live:
          type: boolean
        missing:
          type: array
          items:
            type: string
        issuer:
          type: string
          nullable: true
        termsVersion:
          type: string
          nullable: true
        operator:
          type: string
        moneyHeldBy:
          type: string
      required:
        - mode
        - live
        - missing
        - operator
        - moneyHeldBy
      additionalProperties: false
    GetVaultMarketSharePaperResponse:
      type: object
      properties:
        note:
          type: string
        holdingsValueCents:
          type: number
        startingCents:
          type: number
        holdings:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketSharePaperResponseHoldings"
        openOrders:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketSharePaperSeryOrderResponse"
      required:
        - note
        - holdingsValueCents
        - startingCents
        - holdings
        - openOrders
      additionalProperties: false
    GetVaultMarketSharePaperResponseHoldings:
      type: object
      properties:
        seriesId:
          type: string
        code:
          type: string
        shares:
          type: number
        totalShares:
          type: number
        costCents:
          type: number
        referenceCents:
          type: number
        valueCents:
          type: number
        unrealizedCents:
          type: number
        realizedCents:
          type: number
      required:
        - seriesId
        - code
        - shares
        - totalShares
        - costCents
        - referenceCents
        - valueCents
        - unrealizedCents
        - realizedCents
      additionalProperties: false
    GetVaultMarketSharePaperSeryBookResponse:
      type: object
      properties:
        note:
          type: string
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryBookResponseBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryBookResponseBids"
        bestBidCents:
          type: number
        bestAskCents:
          type: number
        referenceCents:
          type: number
        house:
          $ref: "#/components/schemas/GetVaultMarketSharePaperSeryBookResponseHouse"
      required:
        - note
        - bids
        - asks
        - bestBidCents
        - bestAskCents
        - referenceCents
        - house
      additionalProperties: false
    GetVaultMarketSharePaperSeryBookResponseHouse:
      type: object
      properties:
        bidCents:
          type: number
        askCents:
          type: number
      required:
        - bidCents
        - askCents
      additionalProperties: false
    GetVaultMarketSharePreviewResponse:
      type: object
      properties:
        eligible:
          type: boolean
        problems:
          type: array
          items:
            type: string
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          nullable: true
        tier:
          type: string
          nullable: true
        terms:
          $ref: "#/components/schemas/GetVaultMarketSharePreviewResponseTerms"
        termsProblem:
          type: string
          nullable: true
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
      required:
        - eligible
        - problems
        - venue
      additionalProperties: false
    GetVaultMarketSharePreviewResponseTerms:
      type: object
      properties:
        totalShares:
          type: number
        priceCents:
          type: number
        retainedShares:
          type: number
        offeredShares:
          type: number
        minRaiseShares:
          type: number
        minRaiseCents:
          type: number
        maxRaiseCents:
          type: number
        valuationCents:
          type: number
          description: "The offering valuation: price x every share."
        reserveCents:
          type: number
        days:
          type: number
        originationFeeBps:
          type: number
      required:
        - totalShares
        - priceCents
        - retainedShares
        - offeredShares
        - minRaiseShares
        - minRaiseCents
        - maxRaiseCents
        - valuationCents
        - reserveCents
        - days
        - originationFeeBps
      additionalProperties: false
      nullable: true
    GetVaultMarketShareResponse:
      type: object
      properties:
        venue:
          $ref: "#/components/schemas/GetVaultMarketShareMeResponseVenue"
        rules:
          $ref: "#/components/schemas/GetVaultMarketShareResponseRules"
        rights:
          $ref: "#/components/schemas/ListVaultMarketShareSeriesItemRights"
        note:
          type: string
      required:
        - venue
        - rules
        - rights
        - note
      additionalProperties: false
    GetVaultMarketShareResponseRules:
      type: object
      properties:
        targetSharePriceCents:
          type: number
          description: One share is about this much at the mark.
        minShares:
          type: number
        maxShares:
          type: number
        minMarkCents:
          type: number
          description: The unit's mark must be at least this ($1,000).
        maxRetainedBps:
          type: number
          description: The originator may keep 0% to 50% of the shares.
        originationFeeBps:
          type: number
          description: The originator pays this share of the gross raise at closing.
        makerFeeBps:
          type: number
          description: "Share book fees, per side: maker 0, taker 100 bps, plus the broker-dealer's pass-through."
        takerFeeBps:
          type: number
        feeFloorBps:
          type: number
          description: Crossly keeps at least this share of a fill's notional before referral and creator shares (the headroom rule).
        lockupDays:
          type: number
          description: No secondary trading for this long after the offering closes.
        buyoutPremiumBps:
          type: number
          description: A buyout bid is at least the mark x 1.10.
        buyoutVoteDays:
          type: number
          description: A buyout vote runs this long; with no majority against by then it is accepted.
        reserveFundingHours:
          type: number
          description: A reserve-sale bidder has this long to fund the whole-unit price through the broker-dealer.
        reserveMinBps:
          type: number
          description: "The reserve set at offering: at least the offering valuation x 1.10, by default x 1.25."
        reserveDefaultBps:
          type: number
        offeringMinDays:
          type: number
          description: Offering window.
        offeringMaxDays:
          type: number
        offeringDefaultDays:
          type: number
        maxOrderShares:
          type: number
          description: Orders.
        maxLimitCents:
          type: number
        gtdMaxDays:
          type: number
        marketBandBps:
          type: number
          description: A market order is an IOC limited to this band around the reference price.
        minDollarBuyCents:
          type: number
          description: The smallest dollar-amount buy.
        insuranceBpsYearDefault:
          type: number
          description: Insurance accrues at this rate a year on the insured value unless VAULT_SHARES_INSURANCE_BPS_YEAR says otherwise.
        paperStartingCents:
          type: number
          description: Practice accounts start with this much play money.
      required:
        - targetSharePriceCents
        - minShares
        - maxShares
        - minMarkCents
        - maxRetainedBps
        - originationFeeBps
        - makerFeeBps
        - takerFeeBps
        - feeFloorBps
        - lockupDays
        - buyoutPremiumBps
        - buyoutVoteDays
        - reserveFundingHours
        - reserveMinBps
        - reserveDefaultBps
        - offeringMinDays
        - offeringMaxDays
        - offeringDefaultDays
        - maxOrderShares
        - maxLimitCents
        - gtdMaxDays
        - marketBandBps
        - minDollarBuyCents
        - insuranceBpsYearDefault
        - paperStartingCents
      additionalProperties: false
    GetVaultMarketShareSeryBookResponse:
      type: object
      properties:
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryBookResponseBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryBookResponseBids"
        bestBidCents:
          type: number
        bestAskCents:
          type: number
      required:
        - bids
        - asks
        - bestBidCents
        - bestAskCents
      additionalProperties: false
    GetVaultMarketShareSeryBookResponseBids:
      type: object
      properties:
        priceCents:
          type: number
        shares:
          type: number
        orders:
          type: number
      required:
        - priceCents
        - shares
        - orders
      additionalProperties: false
    GetVaultMarketShareSeryHistoryResponse:
      type: object
      properties:
        seriesId:
          type: string
        code:
          type: string
        interval:
          type: string
          enum:
            - 1d
            - 1w
            - 1h
        offeringPriceCents:
          type: number
        offeringAt:
          type: string
          nullable: true
        tradingSince:
          type: string
          nullable: true
        lastPriceCents:
          type: number
        changeSinceOfferingBps:
          type: number
          nullable: true
        trades:
          type: number
        sharesTraded:
          type: number
        high:
          type: number
          nullable: true
        low:
          type: number
          nullable: true
        candles:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryHistoryResponseCandles"
        appraisals:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSeryAppraisalsItem"
        note:
          type: string
      required:
        - seriesId
        - code
        - interval
        - offeringPriceCents
        - lastPriceCents
        - trades
        - sharesTraded
        - candles
        - appraisals
        - note
      additionalProperties: false
    GetVaultMarketShareSeryHistoryResponseCandles:
      type: object
      properties:
        t:
          type: string
        open:
          type: number
        high:
          type: number
        low:
          type: number
        close:
          type: number
        shares:
          type: number
        trades:
          type: number
        notionalCents:
          type: number
      required:
        - t
        - open
        - high
        - low
        - close
        - shares
        - trades
        - notionalCents
      additionalProperties: false
    GetVaultMarketShareSeryPerkResponse:
      type: object
      properties:
        holder:
          type: boolean
        shares:
          type: number
        since:
          type: string
          nullable: true
        pctText:
          type: string
          nullable: true
        badge:
          $ref: "#/components/schemas/GetVaultMarketShareSeryPerkResponseBadge"
        visit:
          $ref: "#/components/schemas/GetVaultMarketShareSeryPerkResponseVisit"
        viewingDays:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryPerkResponseViewingDays"
        roomOpen:
          type: boolean
        perks:
          type: array
          items:
            type: string
      required:
        - holder
        - shares
        - viewingDays
        - roomOpen
        - perks
      additionalProperties: false
    GetVaultMarketShareSeryPerkResponseBadge:
      type: object
      properties:
        pin:
          type: string
        alias:
          type: string
        text:
          type: string
      required:
        - pin
        - alias
        - text
      additionalProperties: false
      nullable: true
    GetVaultMarketShareSeryPerkResponseViewingDays:
      type: object
      properties:
        id:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        location:
          type: string
        capacity:
          type: number
        guestsAllowed:
          type: number
        placesLeft:
          type: number
        status:
          type: string
          enum:
            - cancelled
            - open
            - closed
        note:
          type: string
          nullable: true
        myBooking:
          $ref: "#/components/schemas/GetVaultMarketShareSeryPerkResponseViewingDaysMyBooking"
      required:
        - id
        - startsAt
        - endsAt
        - location
        - capacity
        - guestsAllowed
        - placesLeft
        - status
      additionalProperties: false
    GetVaultMarketShareSeryPerkResponseViewingDaysMyBooking:
      type: object
      properties:
        id:
          type: string
        guests:
          type: number
      required:
        - id
        - guests
      additionalProperties: false
      nullable: true
    GetVaultMarketShareSeryPerkResponseVisit:
      type: object
      properties:
        arPath:
          type: string
        worldPath:
          type: string
        text:
          type: string
      required:
        - arPath
        - worldPath
        - text
      additionalProperties: false
      nullable: true
    GetVaultMarketShareSeryResponse:
      type: object
      properties:
        series:
          $ref: "#/components/schemas/ListVaultMarketShareSeriesItem"
        depth:
          $ref: "#/components/schemas/GetVaultMarketShareSeryBookResponse"
        tape:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSeryTapeItem"
        holders:
          $ref: "#/components/schemas/GetVaultMarketShareSeryResponseHolders"
        buyouts:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryResponseBuyouts"
        my:
          $ref: "#/components/schemas/GetVaultMarketShareSeryResponseMy"
        drop:
          $ref: "#/components/schemas/CreateVaultMarketShareSeryWatchResponse"
        market:
          $ref: "#/components/schemas/GetVaultMarketShareSeryResponseMarket"
        perks:
          $ref: "#/components/schemas/GetVaultMarketShareSeryResponsePerks"
        updates:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSeryUpdatesItem"
        venue:
          $ref: "#/components/schemas/GetVaultMarketShareMeResponseVenue"
        note:
          type: string
      required:
        - series
        - depth
        - tape
        - holders
        - buyouts
        - drop
        - market
        - perks
        - updates
        - venue
        - note
      additionalProperties: false
    GetVaultMarketShareSeryResponseBuyouts:
      type: object
      properties:
        myVote:
          $ref: "#/components/schemas/GetVaultMarketShareSeryResponseBuyoutsMyVote"
        id:
          type: string
        seriesId:
          type: string
        kind:
          type: string
          enum:
            - offer
            - reserve
        offerCents:
          type: number
        markCents:
          type: number
          nullable: true
        status:
          type: string
        mine:
          type: boolean
        totalShares:
          type: number
        yesShares:
          type: number
        noShares:
          type: number
        opensAt:
          type: string
          nullable: true
        closesAt:
          type: string
          nullable: true
        fundBy:
          type: string
          nullable: true
        decidedAt:
          type: string
          nullable: true
        decision:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - seriesId
        - kind
        - offerCents
        - status
        - mine
        - totalShares
        - yesShares
        - noShares
        - createdAt
      additionalProperties: false
    GetVaultMarketShareSeryResponseBuyoutsMyVote:
      type: object
      properties:
        shares:
          type: number
        choice:
          type: string
          nullable: true
      required:
        - shares
      additionalProperties: false
      nullable: true
    GetVaultMarketShareSeryResponseHolders:
      type: object
      properties:
        holders:
          type: number
        distribution:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryResponseHoldersDistribution"
      required:
        - holders
        - distribution
      additionalProperties: false
    GetVaultMarketShareSeryResponseHoldersDistribution:
      type: object
      properties:
        rank:
          type: number
        shares:
          type: number
        bps:
          type: number
        pctText:
          type: string
        you:
          type: boolean
      required:
        - rank
        - shares
        - bps
        - pctText
        - you
      additionalProperties: false
    GetVaultMarketShareSeryResponseMarket:
      type: object
      properties:
        trading:
          $ref: "#/components/schemas/GetVaultMarketShareSeryResponseMarketTrading"
        indicative:
          $ref: "#/components/schemas/GetVaultMarketShareSeryResponseMarketIndicative"
        holderCount:
          type: number
        appraisals:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSeryAppraisalsItem"
      required:
        - trading
        - indicative
        - holderCount
        - appraisals
      additionalProperties: false
    GetVaultMarketShareSeryResponseMarketIndicative:
      type: object
      properties:
        perShareCents:
          type: number
        source:
          type: string
          enum:
            - mid
            - last
            - offering
        spreadBps:
          type: number
          nullable: true
        impliedItemValueCents:
          type: number
        quality:
          type: string
        usableForRisk:
          type: boolean
        label:
          type: string
      required:
        - perShareCents
        - source
        - impliedItemValueCents
        - quality
        - usableForRisk
        - label
      additionalProperties: false
    GetVaultMarketShareSeryResponseMarketTrading:
      type: object
      properties:
        mode:
          type: string
          enum:
            - continuous
            - windows
        windows:
          type: array
          items:
            type: object
            additionalProperties: {}
        tz:
          type: string
          nullable: true
        open:
          type: boolean
        opensAt:
          type: string
          nullable: true
        closesAt:
          type: string
          nullable: true
        text:
          type: string
      required:
        - mode
        - windows
        - open
        - text
      additionalProperties: false
    GetVaultMarketShareSeryResponseMy:
      type: object
      properties:
        orders:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareOrdersItem"
        subscriptions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryResponseMySubscriptions"
      required:
        - orders
        - subscriptions
      additionalProperties: false
      nullable: true
    GetVaultMarketShareSeryResponseMySubscriptions:
      type: object
      properties:
        id:
          type: string
        shares:
          type: number
        amountCents:
          type: number
        status:
          type: string
        createdAt:
          type: string
      required:
        - id
        - shares
        - amountCents
        - status
        - createdAt
      additionalProperties: false
    GetVaultMarketShareSeryResponsePerks:
      type: object
      properties:
        holder:
          type: boolean
        shares:
          type: number
        since:
          type: string
          nullable: true
        pctText:
          type: string
          nullable: true
        badge:
          $ref: "#/components/schemas/GetVaultMarketShareSeryPerkResponseBadge"
        visit:
          $ref: "#/components/schemas/GetVaultMarketShareSeryPerkResponseVisit"
        viewingDays:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketShareSeryResponsePerksViewingDays"
        roomOpen:
          type: boolean
        perks:
          type: array
          items:
            type: string
      required:
        - holder
        - shares
        - viewingDays
        - roomOpen
        - perks
      additionalProperties: false
    GetVaultMarketShareSeryResponsePerksViewingDays:
      type: object
      properties:
        id:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        location:
          type: string
        capacity:
          type: number
        guestsAllowed:
          type: number
        placesLeft:
          type: number
        status:
          type: string
          enum:
            - cancelled
            - open
            - closed
        note:
          type: string
          nullable: true
        myBooking:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - id
        - startsAt
        - endsAt
        - location
        - capacity
        - guestsAllowed
        - placesLeft
        - status
      additionalProperties: false
    GetVaultMarketShareSeryRoomResponse:
      type: object
      properties:
        you:
          type: string
        posts:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketShareSeryRoomResponse"
      required:
        - you
        - posts
      additionalProperties: false
    GetVaultMarketStatementByMonthResponse:
      type: object
      properties:
        frozen:
          type: boolean
        hash:
          nullable: true
        generatedAt:
          type: string
        account:
          $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponseOneOfAccount"
        month:
          type: string
        from:
          type: string
        to:
          type: string
        holdingsAsOf:
          type: string
        provisional:
          type: boolean
        summary:
          $ref: "#/components/schemas/GetVaultMarketStatementByMonthResponseOneOf1Summary"
        holdings:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketStatementByMonthResponseOneOf1Holdings"
        loansOut:
          type: array
          items:
            type: object
            additionalProperties: {}
        positions:
          type: array
          items:
            type: object
            additionalProperties: {}
        pledges:
          type: array
          items:
            type: object
            additionalProperties: {}
        activity:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketConfirmationsItem"
        fees:
          $ref: "#/components/schemas/GetVaultMarketStatementByMonthResponseOneOf1Fees"
        cash: {}
        notes:
          type: array
          items:
            type: string
      required:
        - frozen
        - hash
        - generatedAt
    GetVaultMarketStatementByMonthResponseOneOf1Fees:
      type: object
      properties:
        saleFeesCents:
          type: number
        positionFeesPaidCents:
          type: number
        lendingFeesEarnedCents:
          type: number
        storageAccruedOnHeldCents:
          type: number
        notes:
          type: array
          items:
            type: string
      required:
        - saleFeesCents
        - positionFeesPaidCents
        - lendingFeesEarnedCents
        - storageAccruedOnHeldCents
        - notes
      additionalProperties: false
    GetVaultMarketStatementByMonthResponseOneOf1Holdings:
      type: object
      properties:
        vaultItemId:
          type: string
        receiptNo:
          type: string
          nullable: true
        bookKey:
          type: string
        title:
          type: string
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        markDay:
          type: string
          nullable: true
        pledged:
          type: boolean
        insuredValueCents:
          type: number
          nullable: true
        storageAccruedCents:
          type: number
      required:
        - vaultItemId
        - bookKey
        - title
        - markQuality
        - pledged
        - storageAccruedCents
      additionalProperties: false
    GetVaultMarketStatementByMonthResponseOneOf1Summary:
      type: object
      properties:
        units:
          type: number
        markValueCents:
          type: number
        unmarkedUnits:
          type: number
        bought:
          $ref: "#/components/schemas/GetVaultMarketStatementByMonthResponseOneOf1SummaryBought"
        sold:
          $ref: "#/components/schemas/GetVaultMarketStatementByMonthResponseOneOf1SummaryBought"
      required:
        - units
        - markValueCents
        - unmarkedUnits
        - bought
        - sold
      additionalProperties: false
    GetVaultMarketStatementByMonthResponseOneOf1SummaryBought:
      type: object
      properties:
        count:
          type: number
        cents:
          type: number
      required:
        - count
        - cents
      additionalProperties: false
    GetVaultMarketStatementResponse:
      type: object
      properties:
        account:
          $ref: "#/components/schemas/AccountIdLabel"
        months:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketStatementResponseMonths"
      required:
        - account
        - months
      additionalProperties: false
    GetVaultMarketStatementResponseMonths:
      type: object
      properties:
        month:
          type: string
        frozen:
          type: boolean
        hash:
          type: string
          nullable: true
        current:
          type: boolean
      required:
        - month
        - frozen
        - current
      additionalProperties: false
    GetVaultMarketSupplyBatchResponse:
      type: object
      properties:
        batchId:
          type: string
        units:
          type: number
        labelUrl:
          type: string
          nullable: true
        trackingCode:
          type: string
          nullable: true
        labelError:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - batchId
        - units
        - createdAt
      additionalProperties: false
    GetVaultMarketSupplyResponse:
      type: object
      properties:
        bookKey:
          type: string
        authenticatedUnitsLabel:
          type: string
        now:
          $ref: "#/components/schemas/GetVaultMarketSupplyResponseNow"
        series:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketSupplyResponseSeries"
        change:
          $ref: "#/components/schemas/GetVaultMarketSupplyResponseChange"
      required:
        - bookKey
        - authenticatedUnitsLabel
        - now
        - series
        - change
      additionalProperties: false
    GetVaultMarketSupplyResponseChange:
      type: object
      properties:
        vaultUnits:
          type: number
        authenticatedUnits:
          type: number
        since:
          type: string
      required:
        - vaultUnits
        - authenticatedUnits
        - since
      additionalProperties: false
    GetVaultMarketSupplyResponseNow:
      type: object
      properties:
        vaultUnits:
          type: number
        authenticatedUnits:
          type: number
      required:
        - vaultUnits
        - authenticatedUnits
      additionalProperties: false
    GetVaultMarketSupplyResponseSeries:
      type: object
      properties:
        day:
          type: string
        vaultUnits:
          type: number
        authenticatedUnits:
          type: number
      required:
        - day
        - vaultUnits
        - authenticatedUnits
      additionalProperties: false
    GetVaultMarketSupplyRoundUpResponse:
      type: object
      properties:
        roundUp:
          $ref: "#/components/schemas/GetVaultMarketSupplyRoundUpResponseRoundUp"
      additionalProperties: false
    GetVaultMarketSupplyRoundUpResponseRoundUp:
      type: object
      properties:
        shareBps:
          type: number
        bookKey:
          type: string
        key:
          $ref: "#/components/schemas/CreateVaultMarketMmLpResponseKey"
        active:
          type: boolean
        name:
          type: string
          nullable: true
        variantLabel:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        budgetCents:
          type: number
        armedRecurringBuyId:
          type: string
          nullable: true
        stateNote:
          type: string
          nullable: true
        countingPayoutsFrom:
          type: string
        entries:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketSupplyRoundUpResponseRoundUpEntries"
      required:
        - shareBps
        - bookKey
        - active
        - budgetCents
        - countingPayoutsFrom
        - entries
      additionalProperties: false
      nullable: true
    GetVaultMarketSupplyRoundUpResponseRoundUpEntries:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        cents:
          type: number
        createdAt:
          type: string
      required:
        - id
        - kind
        - cents
        - createdAt
      additionalProperties: false
    GetVaultMarketSupplyShipmentResponse:
      type: object
      properties:
        receivedUnits:
          type: number
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketSupplyShipmentResponseItems"
        id:
          type: string
        method:
          type: string
          enum:
            - label
            - dropoff
        units:
          type: number
        labelUrl:
          type: string
          nullable: true
        trackingCode:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        labelError:
          type: string
          nullable: true
        dropoffCode:
          type: string
          nullable: true
        dropoffPartner:
          $ref: "#/components/schemas/GetVaultMarketSupplyShipmentResponseDropoffPartner"
        insured:
          type: boolean
        declaredValueCents:
          type: number
          nullable: true
        createdAt:
          type: string
      required:
        - receivedUnits
        - items
        - id
        - method
        - units
        - insured
        - createdAt
      additionalProperties: false
    GetVaultMarketSupplyShipmentResponseDropoffPartner:
      type: object
      properties:
        id:
          type: string
        shopName:
          type: string
          nullable: true
      required:
        - id
      additionalProperties: false
      nullable: true
    GetVaultMarketSupplyShipmentResponseItems:
      type: object
      properties:
        depositId:
          type: string
        inventoryItemId:
          type: string
          nullable: true
        vaultItemId:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        declaredValueCents:
          type: number
          nullable: true
        status:
          type: string
          enum:
            - listed
            - received
            - graded
            - authenticated
            - in_transit
            - shipping_out
        received:
          type: boolean
        receivedAt:
          type: string
          nullable: true
      required:
        - depositId
        - vaultItemId
        - status
        - received
      additionalProperties: false
    GetVaultMarketTaxLossSuggestionResponse:
      type: object
      properties:
        asOf:
          type: string
        year:
          type: number
        daysLeftInYear:
          type: number
        suggestions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxLossSuggestionResponseSuggestions"
        totals:
          $ref: "#/components/schemas/GetVaultMarketTaxLossSuggestionResponseTotals"
        realisedThisYear:
          $ref: "#/components/schemas/GetVaultMarketTaxLossSuggestionResponseRealisedThisYear"
        disclosure:
          type: string
        notes:
          type: array
          items:
            type: string
      required:
        - asOf
        - year
        - daysLeftInYear
        - suggestions
        - totals
        - realisedThisYear
        - disclosure
        - notes
      additionalProperties: false
    GetVaultMarketTaxLossSuggestionResponseRealisedThisYear:
      type: object
      properties:
        shortTermGainCents:
          type: number
        longTermGainCents:
          type: number
        sales:
          type: number
      required:
        - shortTermGainCents
        - longTermGainCents
        - sales
      additionalProperties: false
      description: Realised so far this calendar year from vault units (the tax centre's figures), for context.
    GetVaultMarketTaxLossSuggestionResponseSuggestions:
      type: object
      properties:
        vaultItemId:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bookKey:
          type: string
        lot:
          $ref: "#/components/schemas/GetVaultMarketTaxLossSuggestionResponseSuggestionsLot"
        markCents:
          type: number
        markQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        markAsOf:
          type: string
          nullable: true
        estLossCents:
          type: number
          description: "Mark minus cost: negative. Before selling fees."
        lossBps:
          type: number
          description: The loss as a share of the cost, in basis points (negative).
        term:
          type: string
          enum:
            - short
            - long
          nullable: true
          description: If it were sold today. Null when the acquisition day is not known.
        longTermOn:
          type: string
          nullable: true
          description: The first day a short lot counts as long term (YYYY-MM-DD); null when already long or not known.
        daysToLongTerm:
          type: number
          nullable: true
        blocker:
          type: string
          nullable: true
          description: What has to happen before it can be sold (plain words); null when it can be sold now.
        sellHref:
          type: string
          description: The ordinary order ticket for this market, opened on the sell side. Never sells by itself.
      required:
        - vaultItemId
        - bookKey
        - lot
        - markCents
        - markQuality
        - estLossCents
        - lossBps
        - sellHref
      additionalProperties: false
    GetVaultMarketTaxLossSuggestionResponseSuggestionsLot:
      type: object
      properties:
        acquiredAt:
          type: string
          nullable: true
        how:
          type: string
        basisCents:
          type: number
      required:
        - how
        - basisCents
      additionalProperties: false
    GetVaultMarketTaxLossSuggestionResponseTotals:
      type: object
      properties:
        count:
          type: number
        shortTermLossCents:
          type: number
        longTermLossCents:
          type: number
        unknownTermLossCents:
          type: number
          description: Lots whose acquisition day is not known (term unknown).
        totalLossCents:
          type: number
        sellableNow:
          type: number
          description: Units held at a loss that are free to sell now.
        unknownCostCount:
          type: number
          description: "Held units whose cost is not known (sent in from outside): add your own."
        noMarkCount:
          type: number
          description: Held units with no mark (no market price yet).
      required:
        - count
        - shortTermLossCents
        - longTermLossCents
        - unknownTermLossCents
        - totalLossCents
        - sellableNow
        - unknownCostCount
        - noMarkCount
      additionalProperties: false
    GetVaultMarketTaxOptionResponse:
      type: object
      properties:
        disposals:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxOptionResponseDisposals"
        totals:
          $ref: "#/components/schemas/GetVaultMarketTaxOptionResponseTotals"
        openAtYearEnd:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxOptionResponseOpenAtYearEnd"
        note:
          type: string
        year:
          type: number
        product:
          type: string
      required:
        - disposals
        - totals
        - openAtYearEnd
        - note
        - year
        - product
      additionalProperties: false
    GetVaultMarketTaxOptionResponseDisposals:
      type: object
      properties:
        symbol:
          type: string
        costCents:
          type: number
        position:
          type: string
          enum:
            - short
            - long
        qtyMilli:
          type: number
        contractId:
          type: string
        proceedsCents:
          type: number
        how:
          type: string
          enum:
            - closed
            - settled
        term:
          type: string
          enum:
            - short
            - long
        gainCents:
          type: number
        section1256:
          type: boolean
        openedAt:
          type: string
        closedAt:
          type: string
      required:
        - symbol
        - costCents
        - position
        - qtyMilli
        - contractId
        - proceedsCents
        - how
        - term
        - gainCents
        - section1256
        - openedAt
        - closedAt
      additionalProperties: false
    GetVaultMarketTaxOptionResponseOpenAtYearEnd:
      type: object
      properties:
        symbol:
          type: string
        position:
          type: string
          enum:
            - short
            - long
        qtyMilli:
          type: number
        openedAt:
          type: string
        basisCents:
          type: number
      required:
        - symbol
        - position
        - qtyMilli
        - openedAt
        - basisCents
      additionalProperties: false
    GetVaultMarketTaxOptionResponseTotals:
      type: object
      properties:
        gainCents:
          type: number
        shortTermCents:
          type: number
        longTermCents:
          type: number
        section1256:
          $ref: "#/components/schemas/GetVaultMarketTaxOptionResponseTotalsSection1256"
      required:
        - gainCents
        - shortTermCents
        - longTermCents
        - section1256
      additionalProperties: false
    GetVaultMarketTaxOptionResponseTotalsSection1256:
      type: object
      properties:
        longTermCents:
          type: number
        shortTermCents:
          type: number
      required:
        - longTermCents
        - shortTermCents
      additionalProperties: false
    GetVaultMarketTaxPredictionResponse:
      type: object
      properties:
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxPredictionResponseRows"
        totals:
          $ref: "#/components/schemas/GetVaultMarketTaxPredictionResponseTotals"
        note:
          type: string
        year:
          type: number
        product:
          type: string
      required:
        - rows
        - totals
        - note
        - year
        - product
      additionalProperties: false
    GetVaultMarketTaxPredictionResponseRows:
      type: object
      properties:
        positionId:
          type: string
        marketId:
          type: string
        ticker:
          type: string
        title:
          type: string
        expiryDay:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
        reportedBy:
          type: string
          description: The venue that reports it, in words.
        status:
          type: string
          enum:
            - void
            - settled
        outcome:
          type: string
          enum:
            - void
            - no
            - yes
          nullable: true
        costCents:
          type: number
        feesCents:
          type: number
        payoutCents:
          type: number
        refundCents:
          type: number
        realizedCents:
          type: number
          description: Gains from closing trades before settlement.
        netCents:
          type: number
          description: payout + refund + realized - cost - fees.
        openedAt:
          type: string
          nullable: true
        settledAt:
          type: string
      required:
        - positionId
        - marketId
        - ticker
        - title
        - expiryDay
        - venue
        - reportedBy
        - status
        - costCents
        - feesCents
        - payoutCents
        - refundCents
        - realizedCents
        - netCents
        - settledAt
      additionalProperties: false
    GetVaultMarketTaxPredictionResponseTotals:
      type: object
      properties:
        positions:
          type: number
        costCents:
          type: number
        feesCents:
          type: number
        payoutCents:
          type: number
        refundCents:
          type: number
        realizedCents:
          type: number
        netCents:
          type: number
      required:
        - positions
        - costCents
        - feesCents
        - payoutCents
        - refundCents
        - realizedCents
        - netCents
      additionalProperties: false
    GetVaultMarketTaxResponse:
      type: object
      properties:
        files:
          $ref: "#/components/schemas/GetVaultMarketTaxResponseFiles"
        year:
          type: number
        totals:
          $ref: "#/components/schemas/GetVaultMarketTaxResponseTotals"
        sales:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxResponseSales"
        purchases:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxResponsePurchases"
        giftsOut:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxResponseGiftsOut"
        income:
          $ref: "#/components/schemas/GetVaultMarketTaxResponseIncome"
        positions:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxResponsePositions"
        options:
          $ref: "#/components/schemas/GetVaultMarketTaxResponseOptions"
        notes:
          type: array
          items:
            type: string
        shares:
          $ref: "#/components/schemas/GetVaultMarketTaxResponseShares"
        predictions:
          $ref: "#/components/schemas/GetVaultMarketTaxResponsePredictions"
      required:
        - files
        - year
        - totals
        - sales
        - purchases
        - giftsOut
        - income
        - positions
        - notes
      additionalProperties: false
    GetVaultMarketTaxResponseFiles:
      type: object
      properties:
        csv:
          type: string
        pdf:
          type: string
      required:
        - csv
        - pdf
      additionalProperties: false
    GetVaultMarketTaxResponseGiftsOut:
      type: object
      properties:
        vaultItemId:
          type: string
        title:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - gift_out
            - donate
        at:
          type: string
          format: date-time
        basisCents:
          type: number
          nullable: true
        acquiredAt:
          type: string
          format: date-time
          nullable: true
        markCents:
          type: number
          nullable: true
      required:
        - vaultItemId
        - kind
        - at
      additionalProperties: false
    GetVaultMarketTaxResponseIncome:
      type: object
      properties:
        lendingFeesCents:
          type: number
        stakingInterestEstimateCents:
          type: number
          description: The pool's interest by the user's share of the pool when it was booked. An estimate.
        stakingLossEstimateCents:
          type: number
        marketMakerRewardsCents:
          type: number
      required:
        - lendingFeesCents
        - stakingInterestEstimateCents
        - stakingLossEstimateCents
        - marketMakerRewardsCents
      additionalProperties: false
    GetVaultMarketTaxResponseOptions:
      type: object
      properties:
        disposals:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxOptionResponseDisposals"
        totals:
          $ref: "#/components/schemas/GetVaultMarketTaxOptionResponseTotals"
        openAtYearEnd:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxOptionResponseOpenAtYearEnd"
        note:
          type: string
      required:
        - disposals
        - totals
        - openAtYearEnd
        - note
      additionalProperties: false
      nullable: true
      description: "Round 13 fractional options: FIFO disposals, each flagged as a possible Section 1256 contract (options-syn-tax.ts)."
    GetVaultMarketTaxResponsePositions:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        status:
          type: string
        title:
          type: string
          nullable: true
        bookKey:
          type: string
        openedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        entryCents:
          type: number
          nullable: true
        exitCents:
          type: number
          nullable: true
        realizedPnlCents:
          type: number
        term:
          type: string
          enum:
            - short
            - long
          nullable: true
      required:
        - id
        - kind
        - status
        - bookKey
        - realizedPnlCents
      additionalProperties: false
    GetVaultMarketTaxResponsePredictions:
      type: object
      properties:
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxPredictionResponseRows"
        totals:
          $ref: "#/components/schemas/GetVaultMarketTaxPredictionResponseTotals"
        note:
          type: string
      required:
        - rows
        - totals
        - note
      additionalProperties: false
      nullable: true
      description: "Round 13: prediction-market results as the venue reports them (prediction-markets/tax.ts). Real money only."
    GetVaultMarketTaxResponsePurchases:
      type: object
      properties:
        vaultItemId:
          type: string
        title:
          type: string
          nullable: true
        at:
          type: string
          format: date-time
        how:
          type: string
          enum:
            - buy
            - sell
            - pack
            - gift_in
            - swap_in
            - loan_return
            - grading_in
            - other_in
            - swap_out
            - loan_cash
            - buyback
            - gift_out
            - donate
            - lent_out
            - other_out
        costCents:
          type: number
          nullable: true
      required:
        - vaultItemId
        - at
        - how
      additionalProperties: false
    GetVaultMarketTaxResponseSales:
      type: object
      properties:
        vaultItemId:
          type: string
        title:
          type: string
          nullable: true
        bookKey:
          type: string
          nullable: true
        how:
          type: string
          enum:
            - buy
            - sell
            - pack
            - gift_in
            - swap_in
            - loan_return
            - grading_in
            - other_in
            - swap_out
            - loan_cash
            - buyback
            - gift_out
            - donate
            - lent_out
            - other_out
        acquiredAt:
          type: string
          format: date-time
          nullable: true
        disposedAt:
          type: string
          format: date-time
        proceedsCents:
          type: number
        basisCents:
          type: number
          nullable: true
          description: Cost including grading; null = not known.
        gainCents:
          type: number
          nullable: true
        term:
          type: string
          enum:
            - short
            - long
          nullable: true
      required:
        - vaultItemId
        - how
        - disposedAt
        - proceedsCents
      additionalProperties: false
    GetVaultMarketTaxResponseShares:
      type: object
      properties:
        totals:
          $ref: "#/components/schemas/GetVaultMarketTaxResponseSharesTotals"
        sales:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxResponseSharesSales"
        open:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxResponseSharesOpen"
        note:
          type: string
      required:
        - totals
        - sales
        - open
        - note
      additionalProperties: false
      nullable: true
      description: "Round 13: Vault Shares lots and disposals (shares-tax.ts)."
    GetVaultMarketTaxResponseSharesOpen:
      type: object
      properties:
        acquiredAt:
          type: string
          nullable: true
        seriesId:
          type: string
        code:
          type: string
        shares:
          type: number
        basisCents:
          type: number
          nullable: true
        how:
          type: string
          enum:
            - buy
            - sell
            - gift_in
            - gift_out
            - subscribe
            - retained
            - tod_in
            - exit
            - tod_out
      required:
        - seriesId
        - code
        - shares
        - how
      additionalProperties: false
    GetVaultMarketTaxResponseSharesSales:
      type: object
      properties:
        acquiredAt:
          type: string
          nullable: true
        disposedAt:
          type: string
        seriesId:
          type: string
        code:
          type: string
        how:
          type: string
          enum:
            - buy
            - sell
            - gift_in
            - gift_out
            - subscribe
            - retained
            - tod_in
            - exit
            - tod_out
        shares:
          type: number
        proceedsCents:
          type: number
        basisCents:
          type: number
          nullable: true
        gainCents:
          type: number
          nullable: true
        term:
          type: string
          enum:
            - short
            - long
          nullable: true
      required:
        - disposedAt
        - seriesId
        - code
        - how
        - shares
        - proceedsCents
      additionalProperties: false
    GetVaultMarketTaxResponseSharesTotals:
      type: object
      properties:
        proceedsCents:
          type: number
        knownGainCents:
          type: number
        shortGainCents:
          type: number
        longGainCents:
          type: number
        unknownBasisCount:
          type: number
      required:
        - proceedsCents
        - knownGainCents
        - shortGainCents
        - longGainCents
        - unknownBasisCount
      additionalProperties: false
    GetVaultMarketTaxResponseTotals:
      type: object
      properties:
        purchases:
          $ref: "#/components/schemas/GetVaultMarketTaxResponseTotalsPurchases"
        sales:
          $ref: "#/components/schemas/GetVaultMarketTaxResponseTotalsSales"
        shortTermGainCents:
          type: number
        longTermGainCents:
          type: number
        incomeCents:
          type: number
        positionsPnlCents:
          type: number
      required:
        - purchases
        - sales
        - shortTermGainCents
        - longTermGainCents
        - incomeCents
        - positionsPnlCents
      additionalProperties: false
    GetVaultMarketTaxResponseTotalsPurchases:
      type: object
      properties:
        count:
          type: number
        costCents:
          type: number
      required:
        - count
        - costCents
      additionalProperties: false
    GetVaultMarketTaxResponseTotalsSales:
      type: object
      properties:
        count:
          type: number
        proceedsCents:
          type: number
        basisKnownCount:
          type: number
        unknownBasisCount:
          type: number
      required:
        - count
        - proceedsCents
        - basisKnownCount
        - unknownBasisCount
      additionalProperties: false
    GetVaultMarketTaxShareResponse:
      type: object
      properties:
        totals:
          $ref: "#/components/schemas/GetVaultMarketTaxResponseSharesTotals"
        sales:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxResponseSharesSales"
        open:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTaxResponseSharesOpen"
        note:
          type: string
        year:
          type: number
        product:
          type: string
      required:
        - totals
        - sales
        - open
        - note
        - year
        - product
      additionalProperties: false
    GetVaultMarketTcaByOrderIdResponse:
      type: object
      properties:
        orderId:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
        tif:
          type: string
        source:
          type: string
        status:
          type: string
        quantity:
          type: number
        filledQuantity:
          type: number
        fillRate:
          type: number
        createdAt:
          type: string
        arrival:
          $ref: "#/components/schemas/GetVaultMarketTcaByOrderIdResponseArrival"
        avgFillCents:
          type: number
          nullable: true
        implementationShortfall:
          $ref: "#/components/schemas/GetVaultMarketTcaByOrderIdResponseImplementationShortfall"
        slippage:
          $ref: "#/components/schemas/GetVaultMarketTcaByOrderIdResponseSlippage"
        effectiveSpreadBps:
          type: number
          nullable: true
        quotedSpreadBps:
          type: number
          nullable: true
        timeToFirstFillMs:
          type: number
          nullable: true
        timeToLastFillMs:
          type: number
          nullable: true
        notionalAtArrivalCents:
          type: number
        note:
          type: string
      required:
        - orderId
        - bookKey
        - side
        - type
        - tif
        - source
        - status
        - quantity
        - filledQuantity
        - fillRate
        - createdAt
        - arrival
        - implementationShortfall
        - slippage
        - notionalAtArrivalCents
        - note
      additionalProperties: false
    GetVaultMarketTcaByOrderIdResponseArrival:
      type: object
      properties:
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          nullable: true
        source:
          type: string
        bidCents:
          type: number
          nullable: true
        askCents:
          type: number
          nullable: true
        midCents:
          type: number
          nullable: true
      required:
        - source
      additionalProperties: false
    GetVaultMarketTcaByOrderIdResponseImplementationShortfall:
      type: object
      properties:
        executedBps:
          type: number
          nullable: true
        opportunityBps:
          type: number
          nullable: true
        totalBps:
          type: number
          nullable: true
        endMarkCents:
          type: number
          nullable: true
        note:
          type: string
          nullable: true
      additionalProperties: false
    GetVaultMarketTcaByOrderIdResponseSlippage:
      type: object
      properties:
        vsArrivalMidBps:
          type: number
          nullable: true
        vsIntervalVwapBps:
          type: number
          nullable: true
        intervalVwapCents:
          type: number
          nullable: true
      additionalProperties: false
    GetVaultMarketTcaResponse:
      type: object
      properties:
        account:
          $ref: "#/components/schemas/AccountIdLabel"
        from:
          type: string
        to:
          type: string
        summary:
          $ref: "#/components/schemas/GetVaultMarketTcaResponseSummary"
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTcaResponseItems"
        options:
          $ref: "#/components/schemas/GetVaultMarketTcaResponseOptions"
        note:
          type: string
      required:
        - account
        - from
        - to
        - summary
        - items
        - options
        - note
      additionalProperties: false
    GetVaultMarketTcaResponseItems:
      type: object
      properties:
        title:
          type: string
        orderId:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
        tif:
          type: string
        source:
          type: string
        status:
          type: string
        quantity:
          type: number
        filledQuantity:
          type: number
        fillRate:
          type: number
        createdAt:
          type: string
        arrival:
          $ref: "#/components/schemas/GetVaultMarketTcaByOrderIdResponseArrival"
        avgFillCents:
          type: number
          nullable: true
        implementationShortfall:
          $ref: "#/components/schemas/GetVaultMarketTcaByOrderIdResponseImplementationShortfall"
        slippage:
          $ref: "#/components/schemas/GetVaultMarketTcaByOrderIdResponseSlippage"
        effectiveSpreadBps:
          type: number
          nullable: true
        quotedSpreadBps:
          type: number
          nullable: true
        timeToFirstFillMs:
          type: number
          nullable: true
        timeToLastFillMs:
          type: number
          nullable: true
        notionalAtArrivalCents:
          type: number
        note:
          type: string
      required:
        - title
        - orderId
        - bookKey
        - side
        - type
        - tif
        - source
        - status
        - quantity
        - filledQuantity
        - fillRate
        - createdAt
        - arrival
        - implementationShortfall
        - slippage
        - notionalAtArrivalCents
        - note
      additionalProperties: false
    GetVaultMarketTcaResponseOptions:
      type: object
      properties:
        fills:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTcaResponseOptionsFills"
        avgSlippageVsDailyBps:
          type: number
          nullable: true
        note:
          type: string
      required:
        - fills
        - note
      additionalProperties: false
    GetVaultMarketTcaResponseOptionsFills:
      type: object
      properties:
        fillId:
          type: string
        symbol:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        priceCents:
          type: number
        qtyMilli:
          type: number
        at:
          type: string
        dailyPriceCents:
          type: number
          nullable: true
        slippageVsDailyBps:
          type: number
          nullable: true
      required:
        - fillId
        - symbol
        - side
        - priceCents
        - qtyMilli
        - at
      additionalProperties: false
    GetVaultMarketTcaResponseSummary:
      type: object
      properties:
        orders:
          type: number
        unitsOrdered:
          type: number
        unitsFilled:
          type: number
        avgShortfallBps:
          type: number
          nullable: true
        avgSlippageVsMidBps:
          type: number
          nullable: true
        avgEffectiveSpreadBps:
          type: number
          nullable: true
      required:
        - orders
        - unitsOrdered
        - unitsFilled
      additionalProperties: false
    GetVaultMarketTodMyClaimResponse:
      type: object
      properties:
        gate:
          $ref: "#/components/schemas/GetVaultMarketTodMyClaimResponseGate"
        docKinds:
          type: array
          items:
            $ref: "#/components/schemas/ListNeighbourhoodsItemAnchor"
        claims:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTodMyClaimResponseClaims"
      required:
        - gate
        - docKinds
        - claims
      additionalProperties: false
    GetVaultMarketTodMyClaimResponseClaims:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - draft
            - submitted
            - rejected
            - withdrawn
            - released
            - waiting
            - needs_info
            - partly_released
            - objected
        label:
          type: string
        holderName:
          type: string
        editable:
          type: boolean
        opsNote:
          type: string
          nullable: true
        rejectReason:
          type: string
          nullable: true
        createdAt:
          type: string
        submittedAt:
          type: string
          nullable: true
        waitEndsAt:
          type: string
          nullable: true
        releasedAt:
          type: string
          nullable: true
        documents:
          type: array
          items:
            type: object
            additionalProperties: {}
        moved:
          type: number
        held:
          type: number
        planned:
          $ref: "#/components/schemas/GetVaultMarketTodMyClaimResponseClaimsPlanned"
      required:
        - id
        - status
        - label
        - holderName
        - editable
        - createdAt
        - documents
        - moved
        - held
      additionalProperties: false
    GetVaultMarketTodMyClaimResponseClaimsPlanned:
      type: object
      properties:
        units:
          type: number
        valueCents:
          type: number
      required:
        - units
        - valueCents
      additionalProperties: false
      nullable: true
    GetVaultMarketTodMyClaimResponseGate:
      type: object
      properties:
        open:
          type: boolean
        missing:
          type: array
          items:
            type: string
        termsVersion:
          type: string
          nullable: true
        terms:
          type: array
          items:
            type: string
        waitDays:
          type: number
        maxBeneficiaries:
          type: number
      required:
        - open
        - missing
        - terms
        - waitDays
        - maxBeneficiaries
      additionalProperties: false
    GetVaultMarketTodResponse:
      type: object
      properties:
        gate:
          $ref: "#/components/schemas/GetVaultMarketTodMyClaimResponseGate"
        accepted:
          type: boolean
        acceptedVersion:
          type: string
        acceptedAt:
          type: string
          nullable: true
        locked:
          type: boolean
        beneficiaries:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTodResponseBeneficiaries"
        sharesProblem:
          type: string
          nullable: true
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTodResponseUnits"
        claims:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTodResponseClaims"
        vaultShares:
          $ref: "#/components/schemas/GetVaultMarketTodResponseVaultShares"
      required:
        - gate
        - accepted
        - acceptedVersion
        - locked
        - beneficiaries
        - units
        - claims
      additionalProperties: false
    GetVaultMarketTodResponseBeneficiaries:
      type: object
      properties:
        units:
          type: number
        valueCents:
          type: number
        id:
          type: string
        fullName:
          type: string
        email:
          type: string
        relationship:
          type: string
          nullable: true
        shareBps:
          type: number
        hasAccount:
          type: boolean
      required:
        - units
        - valueCents
        - id
        - fullName
        - email
        - shareBps
        - hasAccount
      additionalProperties: false
    GetVaultMarketTodResponseClaims:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - draft
            - submitted
            - rejected
            - withdrawn
            - released
            - waiting
            - needs_info
            - partly_released
            - objected
        label:
          type: string
        beneficiaryName:
          type: string
        createdAt:
          type: string
        submittedAt:
          type: string
          nullable: true
        waitEndsAt:
          type: string
          nullable: true
      required:
        - id
        - status
        - label
        - beneficiaryName
        - createdAt
      additionalProperties: false
    GetVaultMarketTodResponseUnits:
      type: object
      properties:
        designatedTo:
          type: string
          nullable: true
        plannedFor:
          type: string
          nullable: true
        vaultItemId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
        status:
          type: string
        markCents:
          type: number
          nullable: true
        valueCents:
          type: number
      required:
        - vaultItemId
        - name
        - status
        - valueCents
      additionalProperties: false
    GetVaultMarketTodResponseVaultShares:
      type: object
      properties:
        passing:
          type: string
        lines:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketTodResponseVaultSharesLines"
        impliedValueCents:
          type: number
        costCents:
          type: number
        note:
          type: string
      required:
        - passing
        - lines
        - impliedValueCents
        - costCents
        - note
      additionalProperties: false
      nullable: true
    GetVaultMarketTodResponseVaultSharesLines:
      type: object
      properties:
        seriesId:
          type: string
        code:
          type: string
        title:
          type: string
          nullable: true
        status:
          type: string
        shares:
          type: number
        totalShares:
          type: number
        bps:
          type: number
        pctText:
          type: string
        costCents:
          type: number
        priceCents:
          type: number
        impliedValueCents:
          type: number
        quality:
          type: string
      required:
        - seriesId
        - code
        - status
        - shares
        - totalShares
        - bps
        - pctText
        - costCents
        - priceCents
        - impliedValueCents
        - quality
      additionalProperties: false
    GetVaultMarketUnitArResponse:
      type: object
      properties:
        scanUrl:
          type: string
          nullable: true
          description: "The unit's own scanned mesh (absolute URL), when it has one: drawn instead of `model`."
        bookKey:
          type: string
          nullable: true
          description: The unit's market (a book key), for "Open its market".
        backPath:
          type: string
          description: "Where the page's back link goes: the unit's story."
        mine:
          type: boolean
          description: The viewer holds this unit.
        title:
          type: string
        model:
          type: string
          nullable: true
          description: "Path under /models, without `.glb` -- `item-sneaker`, `props/furn_sofa` -- or null: no mesh fits."
        imageUrl:
          type: string
          nullable: true
        tint:
          type: array
          items:
            type: string
          description: Materials the listing's photo COLOUR lands on (furniture's tint targets).
        art:
          type: array
          items:
            type: string
          description: Materials the listing's PHOTO lands on (a comic's cover, a card's face).
        scale:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          nullable: true
          description: model-viewer `scale` (x y z) for the photo card; null for real meshes, which are authored at size.
      required:
        - backPath
        - mine
        - title
        - tint
        - art
      additionalProperties: false
    GetVaultMarketUnitEvidenceResponse:
      type: object
      properties:
        vaultItemId:
          type: string
        scans:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketUnitEvidenceResponseScans"
        grades:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketUnitEvidenceResponseGrades"
        model:
          $ref: "#/components/schemas/GetVaultMarketUnitEvidenceResponseModel"
        summary:
          $ref: "#/components/schemas/GetVaultMarketUnitEvidenceResponseSummary"
      required:
        - vaultItemId
        - scans
        - grades
        - summary
      additionalProperties: false
    GetVaultMarketUnitEvidenceResponseGrades:
      type: object
      properties:
        id:
          type: string
        submissionId:
          type: string
        source:
          type: string
          enum:
            - owner
            - deposit
            - ops
            - grade_to_vault
            - vault_grading
            - grading_return
        atIntake:
          type: boolean
        byCrossly:
          type: boolean
          description: Graded in a Crossly Grading Run at the hub (not the seller's own Direct account).
        graderSlug:
          type: string
        graderName:
          type: string
        tierSlug:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
        qualifier:
          type: string
          nullable: true
        sealGrade:
          type: string
          nullable: true
        certNumber:
          type: string
          nullable: true
        gradeKey:
          type: string
          nullable: true
        certVerified:
          type: boolean
          description: The grader's own cert record agrees with the grade.
        verifiedAt:
          type: string
          nullable: true
        prescreen:
          type: boolean
        prescreenNote:
          type: string
          nullable: true
        intakePhotos:
          type: array
          items:
            type: string
        status:
          type: string
        gradedAt:
          type: string
          nullable: true
      required:
        - id
        - submissionId
        - source
        - atIntake
        - byCrossly
        - graderSlug
        - graderName
        - certVerified
        - prescreen
        - intakePhotos
        - status
      additionalProperties: false
    GetVaultMarketUnitEvidenceResponseModel:
      type: object
      properties:
        kind:
          type: string
          enum:
            - textured
            - captured_mesh
        url:
          type: string
        longestEdgeMm:
          type: number
          nullable: true
      required:
        - kind
        - url
      additionalProperties: false
      nullable: true
      description: "The best 3D view of the unit: a captured mesh first, then a texture."
    GetVaultMarketUnitEvidenceResponseScans:
      type: object
      properties:
        id:
          type: string
        captureId:
          type: string
        source:
          type: string
          enum:
            - owner
            - deposit
            - ops
            - grade_to_vault
            - vault_grading
            - grading_return
        atIntake:
          type: boolean
        capturedAt:
          type: string
          nullable: true
        qualityScore:
          type: number
          nullable: true
        longestEdgeMm:
          type: number
          nullable: true
        modelUrl:
          type: string
          nullable: true
          description: Real geometry (a .glb), when the capture produced one.
        textureUrl:
          type: string
          nullable: true
          description: The item's real surface, for a category mesh.
        spinUrl:
          type: string
          nullable: true
          description: A turntable spin, when one was made.
        fidelity:
          type: string
          nullable: true
        render:
          type: string
          enum:
            - photos
            - textured
            - captured_mesh
          description: "What the page can draw: the captured mesh, a texture, or only the photos."
        photos:
          type: array
          items:
            type: string
      required:
        - id
        - captureId
        - source
        - atIntake
        - render
        - photos
      additionalProperties: false
    GetVaultMarketUnitEvidenceResponseSummary:
      type: object
      properties:
        scans:
          type: number
        grades:
          type: number
        verifiedGrade:
          type: boolean
        atIntake:
          type: boolean
      required:
        - scans
        - grades
        - verifiedGrade
        - atIntake
      additionalProperties: false
    GetVaultMarketUnitQuoteResponse:
      type: object
      properties:
        vaultItemId:
          type: string
        bookKey:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        markSource:
          type: string
          nullable: true
        bestBidCents:
          type: number
          nullable: true
          description: The highest open bid that can take this unit now (never the owner's own).
        bestBidUnits:
          type: number
          description: Units bid at the best price.
        instantExitCents:
          type: number
          nullable: true
          description: "Sell now: fills at the best bid, before the market fee. Null = no bid, or Instant Exit is not open on this key."
        instantExitReason:
          type: string
          nullable: true
          description: Why Instant Exit is not available now, in plain words.
        sellBack:
          $ref: "#/components/schemas/GetVaultMarketUnitQuoteResponseSellBack"
      required:
        - vaultItemId
        - bestBidUnits
      additionalProperties: false
    GetVaultMarketUnitQuoteResponseSellBack:
      type: object
      properties:
        creditCents:
          type: number
        closesAt:
          type: string
      required:
        - creditCents
        - closesAt
      additionalProperties: false
      nullable: true
      description: The pack's own sell-back for this pull, while it is still open.
    GetVaultMarketUnitStoryResponse:
      type: object
      properties:
        unit:
          $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseUnit"
        holder:
          $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseHolder"
        mark:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemMark"
        viewer:
          type: string
          enum:
            - public
            - holder
          description: "'holder' sees everything about their unit; 'public' is the share page."
        shareable:
          type: boolean
          description: Anyone with the link can read it (the holder's public vault profile is on).
        shareUrl:
          type: string
        badges:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseBadgesItem"
        chain:
          $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseChain"
        stats:
          $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseStats"
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseEvents"
        marketHref:
          type: string
          nullable: true
      required:
        - unit
        - holder
        - mark
        - viewer
        - shareable
        - shareUrl
        - badges
        - stats
        - events
      additionalProperties: false
    GetVaultMarketUnitStoryResponseChain:
      type: object
      properties:
        receipts:
          type: number
        events:
          type: number
        ok:
          type: boolean
          description: Every receipt's chain re-walked on this read and intact.
        broken:
          $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseChainBroken"
        receiptNo:
          type: string
          nullable: true
          description: The live receipt's number and head hash, if it has one.
        head:
          type: string
          nullable: true
      required:
        - receipts
        - events
        - ok
      additionalProperties: false
      nullable: true
    GetVaultMarketUnitStoryResponseChainBroken:
      type: object
      properties:
        receiptNo:
          type: string
        seq:
          type: number
          nullable: true
      required:
        - receiptNo
      additionalProperties: false
      nullable: true
    GetVaultMarketUnitStoryResponseEvents:
      type: object
      properties:
        id:
          type: string
          description: "Stable across reads: `<kind>:<source row id>`."
        at:
          type: string
        kind:
          type: string
          enum:
            - sale
            - receipt
            - received
            - released
            - evidence
            - graded
            - transfer
            - pledged
            - lent
            - foreclosed
            - recalled
            - sent_in
            - vaulted_from_grading
            - bought_in
            - grading_sent
            - grading_returned
            - loan_returned
            - hall_on_show
            - hall_ended
            - token_exported
            - token_redeemed
            - shipped_out
        group:
          type: string
          enum:
            - grade
            - token
            - receipt
            - owner
            - hall
            - intake
            - custody
            - loan
        title:
          type: string
        detail:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
          description: A sale's price (cents). Only sales carry one.
        from:
          $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseEventsFrom"
        to:
          $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseEventsFrom"
        chain:
          $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseEventsChain"
        evidence:
          $ref: "#/components/schemas/GetVaultMarketUnitStoryResponseEventsEvidence"
        href:
          type: string
          nullable: true
          description: A page about this event, for the holder only (their loan, their token).
      required:
        - id
        - at
        - kind
        - group
        - title
      additionalProperties: false
    GetVaultMarketUnitStoryResponseEventsChain:
      type: object
      properties:
        receiptNo:
          type: string
        seq:
          type: number
        status:
          type: string
        holderHash:
          type: string
        prevHash:
          type: string
        hash:
          type: string
      required:
        - receiptNo
        - seq
        - status
        - holderHash
        - prevHash
        - hash
      additionalProperties: false
      nullable: true
    GetVaultMarketUnitStoryResponseEventsEvidence:
      type: object
      properties:
        kind:
          type: string
        label:
          type: string
        url:
          type: string
          nullable: true
        previewUrl:
          type: string
          nullable: true
      required:
        - kind
        - label
      additionalProperties: false
      nullable: true
    GetVaultMarketUnitStoryResponseEventsFrom:
      type: object
      properties:
        label:
          type: string
        handle:
          type: string
          nullable: true
        profileUrl:
          type: string
          nullable: true
        you:
          type: boolean
      required:
        - label
        - you
      additionalProperties: false
      nullable: true
    GetVaultMarketUnitStoryResponseHolder:
      type: object
      properties:
        label:
          type: string
        handle:
          type: string
          nullable: true
        profileUrl:
          type: string
          nullable: true
        you:
          type: boolean
      required:
        - label
        - you
      additionalProperties: false
    GetVaultMarketUnitStoryResponseStats:
      type: object
      properties:
        owners:
          type: number
        sales:
          type: number
        lastSaleCents:
          type: number
          nullable: true
        daysInVault:
          type: number
          nullable: true
      required:
        - owners
        - sales
      additionalProperties: false
    GetVaultMarketUnitStoryResponseUnit:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bookKey:
          type: string
          nullable: true
        gradeLabel:
          type: string
          nullable: true
        status:
          type: string
        statusLabel:
          type: string
        shelf:
          type: string
          nullable: true
        since:
          type: string
        certNo:
          type: string
          nullable: true
      required:
        - id
        - status
        - statusLabel
        - since
      additionalProperties: false
    GetVaultMarketValuationStatementPreviewResponse:
      type: object
      properties:
        issued:
          type: boolean
        hash:
          nullable: true
        seal:
          nullable: true
        kind:
          type: string
        version:
          type: string
        id:
          type: string
          nullable: true
        purpose:
          type: string
          enum:
            - appraisal
            - insurance
        title:
          type: string
        asOf:
          type: string
        issuedAt:
          type: string
        account:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseAccount"
        preparedFor:
          type: string
          nullable: true
        policyRef:
          type: string
          nullable: true
        units:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseUnits"
        totals:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseTotals"
        methodology:
          type: array
          items:
            type: string
        notes:
          type: array
          items:
            type: string
        verifyUrl:
          type: string
          nullable: true
        venue:
          type: string
        shares:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseShares"
      required:
        - issued
        - hash
        - seal
        - kind
        - version
        - purpose
        - title
        - asOf
        - issuedAt
        - account
        - units
        - totals
        - methodology
        - notes
        - venue
      additionalProperties: false
    GetVaultMarketValuationStatementResponse:
      type: object
      properties:
        issued:
          type: boolean
        hash:
          type: string
        seal:
          $ref: "#/components/schemas/GetVaultMarketValuationStatementResponseSeal"
        verify:
          $ref: "#/components/schemas/GetVaultMarketValuationStatementResponseVerify"
        kind:
          type: string
        version:
          type: string
        id:
          type: string
          nullable: true
        purpose:
          type: string
          enum:
            - appraisal
            - insurance
        title:
          type: string
        asOf:
          type: string
        issuedAt:
          type: string
        account:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseAccount"
        preparedFor:
          type: string
          nullable: true
        policyRef:
          type: string
          nullable: true
        units:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseUnits"
        totals:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseTotals"
        methodology:
          type: array
          items:
            type: string
        notes:
          type: array
          items:
            type: string
        verifyUrl:
          type: string
          nullable: true
        venue:
          type: string
        shares:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseShares"
      required:
        - issued
        - hash
        - seal
        - verify
        - kind
        - version
        - purpose
        - title
        - asOf
        - issuedAt
        - account
        - units
        - totals
        - methodology
        - notes
        - venue
      additionalProperties: false
    GetVaultMarketValuationStatementResponseSeal:
      type: object
      properties:
        auditSeq:
          type: number
          nullable: true
        auditHash:
          type: string
          nullable: true
      additionalProperties: false
    GetVaultMarketValuationStatementResponseVerify:
      type: object
      properties:
        url:
          type: string
        qrDataUrl:
          type: string
          nullable: true
      required:
        - url
      additionalProperties: false
    GetVaultMarketValuationStatementVerifyResponse:
      type: object
      properties:
        id:
          type: string
        purpose:
          type: string
          enum:
            - appraisal
            - insurance
        title:
          type: string
        asOf:
          type: string
        issuedAt:
          type: string
        methodVersion:
          type: string
        totals:
          $ref: "#/components/schemas/GetVaultMarketValuationStatementVerifyResponseTotals"
        hash:
          type: string
        hashMatches:
          type: boolean
          nullable: true
        intact:
          type: boolean
        seal:
          $ref: "#/components/schemas/GetVaultMarketValuationStatementVerifyResponseSeal"
        verdict:
          type: string
          enum:
            - mismatch
            - altered
            - valid
        note:
          type: string
      required:
        - id
        - purpose
        - title
        - asOf
        - issuedAt
        - methodVersion
        - totals
        - hash
        - intact
        - seal
        - verdict
        - note
      additionalProperties: false
    GetVaultMarketValuationStatementVerifyResponseSeal:
      type: object
      properties:
        auditSeq:
          type: number
          nullable: true
        ok:
          type: boolean
      required:
        - ok
      additionalProperties: false
    GetVaultMarketValuationStatementVerifyResponseTotals:
      type: object
      properties:
        units:
          type: number
        markedUnits:
          type: number
        unmarkedUnits:
          type: number
        totalCents:
          type: number
        byQuality:
          $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponseTotalsByQuality"
      required:
        - units
        - markedUnits
        - unmarkedUnits
        - totalCents
        - byQuality
      additionalProperties: false
    GetVaultMarketValueResponse:
      type: object
      properties:
        sku:
          $ref: "#/components/schemas/GetVaultMarketValueResponseSku"
        keys:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketValueResponseKeys"
      required:
        - sku
        - keys
      additionalProperties: false
    GetVaultMarketValueResponseKeys:
      type: object
      properties:
        bookKey:
          type: string
        variantId:
          type: string
        variantLabel:
          type: string
          nullable: true
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        mark:
          $ref: "#/components/schemas/GetVaultMarketValueResponseKeysMark"
        trades:
          type: number
        vaultUnits:
          type: number
        instantExit:
          $ref: "#/components/schemas/GetVaultMarketValueResponseKeysInstantExit"
        depositable:
          type: boolean
      required:
        - bookKey
        - variantId
        - condition
        - mark
        - trades
        - vaultUnits
        - instantExit
        - depositable
      additionalProperties: false
    GetVaultMarketValueResponseKeysInstantExit:
      type: object
      properties:
        bestBidCents:
          type: number
          nullable: true
        shareOfMarkBps:
          type: number
          nullable: true
        available:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - available
      additionalProperties: false
    GetVaultMarketValueResponseKeysMark:
      type: object
      properties:
        cents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        confidenceBps:
          type: number
          nullable: true
        asOf:
          type: string
          nullable: true
      required:
        - quality
      additionalProperties: false
    GetVaultMarketValueResponseSku:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
      required:
        - id
        - name
      additionalProperties: false
    GetVaultMarketVaultSuggestionItemResponse:
      type: object
      properties:
        inventoryItemId:
          type: string
        status:
          type: string
          enum:
            - not_found
            - suggested
            - in_vault
            - no_stock
            - not_matched
            - no_market
        message:
          type: string
          description: "Plain words: why it is or is not suggested."
        suggestion:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestion"
      required:
        - inventoryItemId
        - status
        - message
      additionalProperties: false
    GetVaultMarketVaultSuggestionItemResponseSuggestion:
      type: object
      properties:
        inventoryItemId:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        unitsToSend:
          type: number
          description: Units of the item not yet in the vault.
        bookKey:
          type: string
        variantId:
          type: string
        condition:
          type: string
          description: The condition it would go into the vault as (the seller can change it when sending).
        gradeKey:
          type: string
          nullable: true
        market:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionMarket"
        instantExit:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionInstantExit"
        listPriceCents:
          type: number
          nullable: true
        exitVsListBps:
          type: number
          nullable: true
        exitBasis:
          type: string
          enum:
            - mark
            - list_price
          nullable: true
        daysListed:
          type: number
          nullable: true
        vaultFee:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionVaultFee"
        score:
          type: number
        strength:
          type: string
          enum:
            - strong
            - good
            - worth_a_look
        parts:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionParts"
        reasons:
          type: array
          items:
            type: string
        marketPath:
          type: string
          description: Where the market lives on the web (the buyer-side market page).
        fractionalize:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionFractionalize"
      required:
        - inventoryItemId
        - unitsToSend
        - bookKey
        - variantId
        - condition
        - market
        - instantExit
        - vaultFee
        - score
        - strength
        - parts
        - reasons
        - marketPath
      additionalProperties: false
      nullable: true
    GetVaultMarketVaultSuggestionItemResponseSuggestionFractionalize:
      type: object
      properties:
        estimatedShares:
          type: number
        estimatedPriceCents:
          type: number
        maxRetainedShares:
          type: number
          description: The most the owner may keep.
        line:
          type: string
        path:
          type: string
      required:
        - estimatedShares
        - estimatedPriceCents
        - maxRetainedShares
        - line
        - path
      additionalProperties: false
      nullable: true
      description: "Round 13: a high-value item on a reliable A/B market could be fractionalized into Vault Shares once vaulted."
    GetVaultMarketVaultSuggestionItemResponseSuggestionInstantExit:
      type: object
      properties:
        available:
          type: boolean
        priceCents:
          type: number
          nullable: true
        shareOfMarkBps:
          type: number
          nullable: true
        reason:
          type: string
          nullable: true
        line:
          type: string
      required:
        - available
        - line
      additionalProperties: false
    GetVaultMarketVaultSuggestionItemResponseSuggestionMarket:
      type: object
      properties:
        tier:
          type: string
          enum:
            - C
            - A
            - B
            - D
        tierLabel:
          type: string
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
        bestBidCents:
          type: number
          nullable: true
        bestAskCents:
          type: number
          nullable: true
        spreadBps:
          type: number
          nullable: true
      required:
        - tier
        - tierLabel
        - markQuality
      additionalProperties: false
    GetVaultMarketVaultSuggestionItemResponseSuggestionParts:
      type: object
      properties:
        tier:
          type: number
        exitVsList:
          type: number
        spread:
          type: number
        daysListed:
          type: number
      required:
        - tier
        - exitVsList
        - spread
        - daysListed
      additionalProperties: false
    GetVaultMarketVaultSuggestionItemResponseSuggestionVaultFee:
      type: object
      properties:
        sellNowFeeBps:
          type: number
        sellNowFeeCents:
          type: number
          nullable: true
        listFeeBps:
          type: number
        storageCentsPerMonth:
          type: number
        netNowCents:
          type: number
          nullable: true
          description: The best bid less the sell-now fee, null without a bid.
        line:
          type: string
      required:
        - sellNowFeeBps
        - listFeeBps
        - storageCentsPerMonth
        - line
      additionalProperties: false
    GetVaultMarketWidgetIndexResponse:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - custom
            - brand
            - category
            - segment
            - curated
            - composite
        weighting:
          type: string
          enum:
            - mark
            - equal
            - vault_cap
            - turnover
        baseValue:
          type: number
        inceptionDay:
          type: string
          nullable: true
        level:
          type: number
          nullable: true
        changeBps:
          type: number
          nullable: true
        sinceInceptionBps:
          type: number
          nullable: true
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponseHistoricalVolSeries"
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        n:
          type: number
        members:
          type: number
        asOf:
          type: string
          nullable: true
        insufficient:
          type: boolean
        href:
          type: string
      required:
        - slug
        - name
        - kind
        - weighting
        - baseValue
        - points
        - quality
        - n
        - members
        - insufficient
        - href
      additionalProperties: false
    GetVaultMarketWidgetMarkResponse:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        mark:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemMark"
        trades30d:
          type: number
        insufficient:
          type: boolean
        points:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketWidgetMarkResponsePoints"
        href:
          type: string
      required:
        - bookKey
        - condition
        - mark
        - trades30d
        - insufficient
        - points
        - href
      additionalProperties: false
    GetVaultMarketWidgetMarkResponsePoints:
      type: object
      properties:
        day:
          type: string
        cents:
          type: number
      required:
        - day
        - cents
      additionalProperties: false
    GetVaultMarketWidgetSummaryResponse:
      type: object
      properties:
        asOf:
          type: string
        portfolio:
          $ref: "#/components/schemas/GetVaultMarketWidgetSummaryResponsePortfolio"
        movers:
          $ref: "#/components/schemas/GetVaultMarketWidgetSummaryResponseMovers"
        watch:
          $ref: "#/components/schemas/GetVaultMarketWidgetSummaryResponseWatch"
        watchCount:
          type: number
          description: How many keys are on the watchlist (the app offers a picker when there are any).
        refreshAfterSeconds:
          type: number
        source:
          type: string
        links:
          $ref: "#/components/schemas/GetVaultMarketWidgetSummaryResponseLinks"
      required:
        - asOf
        - portfolio
        - movers
        - watchCount
        - refreshAfterSeconds
        - source
        - links
      additionalProperties: false
    GetVaultMarketWidgetSummaryResponseLinks:
      type: object
      properties:
        appPath:
          type: string
        webUrl:
          type: string
      required:
        - appPath
        - webUrl
      additionalProperties: false
    GetVaultMarketWidgetSummaryResponseMovers:
      type: object
      properties:
        source:
          type: string
          enum:
            - market
            - holdings
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketWidgetSummaryResponseMoversItems"
      required:
        - source
        - items
      additionalProperties: false
    GetVaultMarketWidgetSummaryResponseMoversItems:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        change24hBps:
          type: number
          nullable: true
        units:
          type: number
          description: Units you hold of it; 0 on the market board.
        appPath:
          type: string
          description: The buyer app's screen for it (the widget opens `crosslyshop:/` + this).
        webUrl:
          type: string
      required:
        - bookKey
        - markQuality
        - units
        - appPath
        - webUrl
      additionalProperties: false
    GetVaultMarketWidgetSummaryResponsePortfolio:
      type: object
      properties:
        valueCents:
          type: number
        costCents:
          type: number
        pnlCents:
          type: number
        units:
          type: number
        unitsOnLoan:
          type: number
        change24hCents:
          type: number
          nullable: true
          description: The move in value since the previous day's marks, over units marked on both days; null when none were.
        change24hBps:
          type: number
          nullable: true
        reliableShareBps:
          type: number
          nullable: true
          description: Share of the value resting on reliable (A/B) marks, in bps; null when nothing is marked.
      required:
        - valueCents
        - costCents
        - pnlCents
        - units
        - unitsOnLoan
      additionalProperties: false
    GetVaultMarketWidgetSummaryResponseWatch:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        change24hBps:
          type: number
          nullable: true
        change7dBps:
          type: number
          nullable: true
        sparkline:
          type: array
          items:
            type: number
          description: The last daily marks, oldest first, in cents.
        chosen:
          type: boolean
          description: True when it is the key you picked for the widget; false when your pick is no longer watched and the newest watch stands in.
        appPath:
          type: string
        webUrl:
          type: string
      required:
        - bookKey
        - markQuality
        - sparkline
        - chosen
        - appPath
        - webUrl
      additionalProperties: false
      nullable: true
    GetVaultMarketWorldFloorBoardResponse:
      type: object
      properties:
        asOf:
          type: string
        odds:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketWorldFloorBoardResponseOdds"
        heat:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketWorldFloorBoardResponseHeat"
        shares:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketWorldFloorBoardResponseShares"
        quality:
          type: string
        note:
          type: string
      required:
        - asOf
        - odds
        - heat
        - shares
        - quality
        - note
      additionalProperties: false
    GetVaultMarketWorldFloorBoardResponseHeat:
      type: object
      properties:
        underlying:
          type: string
        code:
          type: string
        name:
          type: string
        spotCents:
          type: number
          nullable: true
          description: "The underlying's last published reference (cents), the buckets' centre. Null: none yet."
        ivAtm:
          type: number
          nullable: true
        ivLabel:
          type: string
        cells:
          type: array
          items:
            type: object
            additionalProperties: {}
        heat:
          type: array
          items:
            type: number
          description: "0..1, each cell's share of this row's busiest cell (open interest + volume): the heat."
        href:
          type: string
      required:
        - underlying
        - code
        - name
        - ivLabel
        - cells
        - heat
        - href
      additionalProperties: false
    GetVaultMarketWorldFloorBoardResponseOdds:
      type: object
      properties:
        id:
          type: string
        ticker:
          type: string
        title:
          type: string
        expiryDay:
          type: string
        probabilityBps:
          type: number
          nullable: true
        label:
          type: string
        practice:
          type: boolean
        href:
          type: string
      required:
        - id
        - ticker
        - title
        - expiryDay
        - label
        - practice
        - href
      additionalProperties: false
    GetVaultMarketWorldFloorBoardResponseShares:
      type: object
      properties:
        seriesId:
          type: string
        code:
          type: string
        name:
          type: string
        lastPriceCents:
          type: number
          nullable: true
        changeBps:
          type: number
          nullable: true
        impliedItemValueCents:
          type: number
          nullable: true
        sharesToday:
          type: number
        href:
          type: string
      required:
        - seriesId
        - code
        - name
        - sharesToday
        - href
      additionalProperties: false
    GetVaultMarketWorldFloorResponse:
      type: object
      properties:
        trades:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketWorldFloorResponseTrades"
          description: Newest first, at most VM_FLOOR.maxRibbons, from the last day.
        tickers:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketWorldFloorResponseTickers"
        bell:
          $ref: "#/components/schemas/GetVaultMarketWorldFloorResponseBell"
        trades24h:
          type: number
          description: Trades on every vault book in the last 24 hours.
        updatedAt:
          type: string
      required:
        - trades
        - tickers
        - bell
        - trades24h
        - updatedAt
      additionalProperties: false
    GetVaultMarketWorldFloorResponseBell:
      type: object
      properties:
        ringing:
          type: boolean
          description: A key went live in the last VM_FLOOR.bellRingS.
        title:
          type: string
          nullable: true
          description: The key that rang it (or the next to open).
        line:
          type: string
          nullable: true
          description: The board line for it (ASCII).
        liveAt:
          type: string
          nullable: true
          description: When the ringing key opened (ISO). Clients ring once per value.
        marketHref:
          type: string
          nullable: true
        next:
          type: string
          nullable: true
          description: The next key to open, as a board line, when one is scheduled.
      required:
        - ringing
      additionalProperties: false
    GetVaultMarketWorldFloorResponseTickers:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        lastCents:
          type: number
          description: The last trade's price.
        priceText:
          type: string
        changeBps:
          type: number
          nullable: true
          description: The move from the last trade before today, or null when there was none.
        changeText:
          type: string
          description: '"+3.2%", "-1.5%", "0.0%" or "--".'
        trades24h:
          type: number
        markCents:
          type: number
          nullable: true
          description: The book's display mark, when its quality is A, B or C.
        markQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        href:
          type: string
      required:
        - bookKey
        - name
        - lastCents
        - priceText
        - changeText
        - trades24h
        - markQuality
        - href
      additionalProperties: false
    GetVaultMarketWorldFloorResponseTrades:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        name:
          type: string
          description: The piece, its variant and grade (ASCII).
        priceCents:
          type: number
        priceText:
          type: string
          description: '"$1,234" (ASCII).'
        side:
          type: string
          enum:
            - buy
            - sell
            - cross
        ageS:
          type: number
          description: Seconds since the match, at the read.
      required:
        - id
        - bookKey
        - name
        - priceCents
        - priceText
        - side
        - ageS
      additionalProperties: false
    GetVaultMarketWorldLoungeResponse:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        tagline:
          type: string
        requirement:
          type: string
        minValueCents:
          type: number
        minUnits:
          type: number
        worldHref:
          type: string
        signedIn:
          type: boolean
        allowed:
          type: boolean
        by:
          type: string
          enum:
            - value
            - units
          nullable: true
          x-enum-varnames:
            - valueOption
            - units
        text:
          type: string
        you:
          $ref: "#/components/schemas/GetVaultMarketWorldLoungeResponseYou"
        note:
          type: string
      required:
        - slug
        - name
        - tagline
        - requirement
        - minValueCents
        - minUnits
        - worldHref
        - signedIn
        - allowed
        - text
        - note
      additionalProperties: false
    GetVaultMarketWorldLoungeResponseYou:
      type: object
      properties:
        units:
          type: number
          description: Units the person holds in the vault (stored, listed, received, at the grader).
        reliableValueCents:
          type: number
          description: Their value at marks usable for risk (A/B); units with no reliable mark count 0 here.
      required:
        - units
        - reliableValueCents
      additionalProperties: false
      nullable: true
    GetVaultMarketWorldPlaceVaultGateResponse:
      type: object
      properties:
        place:
          type: string
        gate:
          nullable: true
        owner:
          type: boolean
        signedIn:
          type: boolean
        allowed:
          type: boolean
        by:
          nullable: true
        text:
          type: string
        you:
          nullable: true
        note:
          nullable: true
      required:
        - place
        - gate
        - owner
        - signedIn
        - allowed
        - text
        - note
    GetVaultMarketWorldPlaceVaultGateResponseOneOf1Gate:
      type: object
      properties:
        kind:
          type: string
          enum:
            - room
            - space
        requirement:
          type: string
        scopeText:
          type: string
          nullable: true
        minValueCents:
          type: number
          nullable: true
        minUnits:
          type: number
          nullable: true
        mode:
          type: string
          enum:
            - all
            - any
          description: "'any': either threshold opens the door (like the lounge); 'all': both are needed. Only matters when both are set."
        scope:
          $ref: "#/components/schemas/UpdateVaultMarketWorldRoomVaultGateResponseGateScope"
      required:
        - kind
        - requirement
        - mode
      additionalProperties: false
    GetVaultMarketWorthResponse:
      type: object
      properties:
        bookKey:
          type: string
        mark:
          $ref: "#/components/schemas/GetVaultMarketWorthResponseMark"
        instantExit:
          $ref: "#/components/schemas/GetVaultMarketWorthResponseInstantExit"
        mine:
          $ref: "#/components/schemas/GetVaultMarketWorthResponseMine"
        headline:
          type: string
        lines:
          type: array
          items:
            type: string
      required:
        - bookKey
        - mark
        - instantExit
        - headline
        - lines
      additionalProperties: false
    GetVaultMarketWorthResponseInstantExit:
      type: object
      properties:
        available:
          type: boolean
        bestBidCents:
          type: number
          nullable: true
        shareOfMarkBps:
          type: number
          nullable: true
        unitsAtBest:
          type: number
        dealerBid:
          type: boolean
        floorBps:
          type: number
        reason:
          type: string
          nullable: true
      required:
        - available
        - unitsAtBest
        - dealerBid
        - floorBps
      additionalProperties: false
    GetVaultMarketWorthResponseMark:
      type: object
      properties:
        cents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        confidenceBps:
          type: number
          nullable: true
        bandCents:
          type: number
          nullable: true
          description: ± band in cents around the mark (cents x confidence), or null.
        asOf:
          type: string
          nullable: true
        seasoned:
          type: boolean
        usableForRisk:
          type: boolean
        impliedFrom:
          $ref: "#/components/schemas/GetVaultMarketWorthResponseMarkImpliedFrom"
      required:
        - quality
        - seasoned
        - usableForRisk
      additionalProperties: false
    GetVaultMarketWorthResponseMarkImpliedFrom:
      type: object
      properties:
        label:
          type: string
      required:
        - label
      additionalProperties: false
      nullable: true
    GetVaultMarketWorthResponseMine:
      type: object
      properties:
        units:
          type: number
        sellableUnits:
          type: number
        sellUnitId:
          type: string
          nullable: true
          description: The unit Instant Exit would sell first (the oldest free one), or null.
        sellableUnitIds:
          type: array
          items:
            type: string
        atMarkCents:
          type: number
          nullable: true
        sellNow:
          $ref: "#/components/schemas/GetVaultMarketWorthResponseMineSellNow"
      required:
        - units
        - sellableUnits
        - sellableUnitIds
      additionalProperties: false
      nullable: true
      description: Null when signed out.
    GetVaultMarketWorthResponseMineSellNow:
      type: object
      properties:
        proceedsCents:
          type: number
        units:
          type: number
        lowestCents:
          type: number
          nullable: true
      required:
        - proceedsCents
        - units
      additionalProperties: false
      nullable: true
    GetVaultMarketWorthVaultResponse:
      type: object
      properties:
        asOf:
          type: string
        valueCents:
          type: number
        vaultCents:
          type: number
        onLoanCents:
          type: number
        positionsCents:
          type: number
        units:
          type: number
        unitsOnLoan:
          type: number
        marks:
          $ref: "#/components/schemas/GetVaultMarketPortfolioHistoryResponseNowMarks"
        costCents:
          type: number
        pnlCents:
          type: number
        today:
          $ref: "#/components/schemas/GetVaultMarketWorthVaultResponseToday"
        sellNow:
          $ref: "#/components/schemas/GetVaultMarketWorthVaultResponseSellNow"
        note:
          type: string
      required:
        - asOf
        - valueCents
        - vaultCents
        - onLoanCents
        - positionsCents
        - units
        - unitsOnLoan
        - marks
        - costCents
        - pnlCents
        - today
        - sellNow
        - note
      additionalProperties: false
    GetVaultMarketWorthVaultResponseSellNow:
      type: object
      properties:
        note:
          type: string
        proceedsCents:
          type: number
        units:
          type: number
          description: Units the walk could place into today's bids.
        unplacedUnits:
          type: number
          description: Units free to sell that today's bids could not absorb (above the floor).
        keys:
          type: number
          description: Keys with at least one unit placed.
        blocked:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketWorthVaultResponseSellNowBlocked"
          description: Keys the holder holds that cannot be exited now, with the reason the Instant Exit gives.
      required:
        - note
        - proceedsCents
        - units
        - unplacedUnits
        - keys
        - blocked
      additionalProperties: false
    GetVaultMarketWorthVaultResponseSellNowBlocked:
      type: object
      properties:
        bookKey:
          type: string
        reason:
          type: string
      required:
        - bookKey
        - reason
      additionalProperties: false
    GetVaultReceiptResponse:
      type: object
      properties:
        receiptNo:
          type: string
        issuer:
          type: string
        form:
          type: string
          enum:
            - non_negotiable
            - negotiable
        termsVersion:
          type: string
        status:
          type: string
          enum:
            - void
            - pledged
            - issued
            - transferred
            - surrendered
        certNo:
          type: string
          nullable: true
        bookKey:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        head:
          type: string
        chain:
          $ref: "#/components/schemas/GetVaultReceiptResponseChain"
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultReceiptResponseEvents"
      required:
        - receiptNo
        - issuer
        - form
        - termsVersion
        - status
        - bookKey
        - head
        - chain
        - events
      additionalProperties: false
    GetVaultReceiptResponseChain:
      type: object
      properties:
        ok:
          type: boolean
        brokenAtSeq:
          type: number
          nullable: true
        events:
          type: number
      required:
        - ok
        - events
      additionalProperties: false
    GetVaultReceiptResponseEvents:
      type: object
      properties:
        ref:
          type: string
          nullable: true
        actor:
          type: string
          nullable: true
        fromUserId:
          type: string
          nullable: true
        toUserId:
          type: string
          nullable: true
        seq:
          type: number
        kind:
          type: string
        status:
          type: string
        holderHash:
          type: string
        at:
          type: string
        prevHash:
          type: string
        hash:
          type: string
      required:
        - seq
        - kind
        - status
        - holderHash
        - at
        - prevHash
        - hash
      additionalProperties: false
    GetVaultReceiptTokenByMintResponse:
      type: object
      properties:
        mint:
          type: string
        receiptNo:
          type: string
        status:
          type: string
          enum:
            - expired
            - live
            - pending
            - conflict
            - frozen
            - burned
        statusText:
          type: string
        frozen:
          type: boolean
        bookKey:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        unitOnShelf:
          type: boolean
        programId:
          type: string
        cluster:
          type: string
        liveAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
      required:
        - mint
        - receiptNo
        - status
        - statusText
        - frozen
        - unitOnShelf
        - programId
        - cluster
      additionalProperties: false
    GetVaultReceiptTokenResponse:
      type: object
      properties:
        token:
          $ref: "#/components/schemas/CreateVaultReceiptTokenConfirmResponseToken"
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultReceiptTokenResponseEvents"
      required:
        - token
        - events
      additionalProperties: false
    GetVaultReceiptTokenResponseEvents:
      type: object
      properties:
        kind:
          type: string
        signature:
          type: string
          nullable: true
        actor:
          type: string
        at:
          type: string
        explorerUrl:
          type: string
          nullable: true
      required:
        - kind
        - actor
        - at
      additionalProperties: false
    GetWalletCrosslyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWalletCrosslyResponseData"
      required:
        - data
      additionalProperties: false
    GetWalletCrosslyResponseData:
      type: object
      properties:
        status:
          type: string
        address:
          type: string
          nullable: true
        provider:
          type: string
          nullable: true
        configured:
          type: boolean
        missing:
          type: array
          items:
            type: string
        client:
          $ref: "#/components/schemas/GetWalletCrosslyResponseDataClient"
        mintingConfigured:
          type: boolean
        cards:
          type: object
          additionalProperties: {}
      required:
        - status
        - configured
        - missing
        - mintingConfigured
        - cards
      additionalProperties: false
    GetWalletCrosslyResponseDataClient:
      type: object
      properties:
        provider:
          type: string
        appId:
          type: string
      required:
        - provider
        - appId
      additionalProperties: false
      nullable: true
    GetWeb3AuctionResponse:
      type: object
      properties:
        auction:
          $ref: "#/components/schemas/GetWeb3AuctionResponseAuction"
      additionalProperties: false
    GetWeb3AuctionResponseAuction:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        seller:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        reserveWei:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
          enum:
            - live
            - cancelled
            - ended
            - settled
        topBid:
          $ref: "#/components/schemas/ListWeb3AuctionsItemTopBid"
        bids:
          type: number
        minNextBidWei:
          type: string
          description: The least the next bid can be.
      required:
        - id
        - chain
        - contract
        - tokenId
        - seller
        - reserveWei
        - startsAt
        - endsAt
        - status
        - bids
        - minNextBidWei
      additionalProperties: false
      nullable: true
    GetWeb3BalanceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWeb3BalanceResponseData"
      required:
        - data
      additionalProperties: false
    GetWeb3BalanceResponseData:
      type: object
      properties:
        available:
          type: boolean
          description: False while CBX is not provisioned on this deployment; `reason` says why.
        reason:
          type: string
          nullable: true
        decimals:
          type: number
        chainLive:
          type: boolean
          description: A CBX mint exists, so wallets can hold it.
        credit:
          $ref: "#/components/schemas/GetWeb3BalanceResponseDataCredit"
        connected:
          $ref: "#/components/schemas/GetWeb3BalanceResponseDataConnected"
        wallets:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3BalanceResponseDataWallets"
        totals:
          $ref: "#/components/schemas/GetWeb3BalanceResponseDataTotals"
      required:
        - available
        - decimals
        - chainLive
        - credit
        - connected
        - wallets
        - totals
      additionalProperties: false
    GetWeb3BalanceResponseDataConnected:
      type: object
      properties:
        headroomBaseUnits:
          type: string
      required:
        - headroomBaseUnits
      additionalProperties: false
      description: "CONNECTED: headroom on the delegation over your own wallet. A ceiling on what we may pull, not a balance."
    GetWeb3BalanceResponseDataCredit:
      type: object
      properties:
        earnedBaseUnits:
          type: string
        stakedBaseUnits:
          type: string
        withdrawableBaseUnits:
          type: string
        grantedBaseUnits:
          type: string
        fundingRestrictedBaseUnits:
          type: string
          description: "Crossly Funding CBX: spendable only on the approved uses of your funding line, never withdrawn."
      required:
        - earnedBaseUnits
        - stakedBaseUnits
        - withdrawableBaseUnits
        - grantedBaseUnits
        - fundingRestrictedBaseUnits
      additionalProperties: false
      description: "Platform-held CBX: EARNED (withdrawable once matured, minus anything staked) and GRANTED (spend-only)."
    GetWeb3BalanceResponseDataTotals:
      type: object
      properties:
        creditBaseUnits:
          type: string
          description: "EARNED + GRANTED: CBX Crossly holds for you."
        walletsBaseUnits:
          type: string
          description: Sum of every linked wallet's own on-chain CBX that could be read.
        allBaseUnits:
          type: string
          description: "Credit + wallets: every CBX that is yours or yours to spend. CONNECTED headroom is never added (it is permission over wallet tokens already counted)."
        spendableBaseUnits:
          type: string
          description: "What a Crossly checkout could draw, in planSpend order: granted, then earned (unstaked), then connected headroom."
        unreadWallets:
          type: number
          description: Wallets whose CBX could not be read, so the wallet total is a floor.
      required:
        - creditBaseUnits
        - walletsBaseUnits
        - allBaseUnits
        - spendableBaseUnits
        - unreadWallets
      additionalProperties: false
    GetWeb3BalanceResponseDataWallets:
      type: object
      properties:
        walletId:
          type: string
        family:
          type: string
          enum:
            - solana
            - evm
        address:
          type: string
        label:
          type: string
          nullable: true
        isCrosslyWallet:
          type: boolean
        heldBaseUnits:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - unavailable
            - read
            - not_solana
            - not_live
        withdrawalAddress:
          type: boolean
        delegationHeadroomBaseUnits:
          type: string
          nullable: true
        native:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - walletId
        - family
        - address
        - isCrosslyWallet
        - status
        - withdrawalAddress
        - native
      additionalProperties: false
    GetWeb3BrowseResponse:
      type: object
      properties:
        categories:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3BrowseResponseCategories"
        chains:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3BrowseResponseChains"
        total:
          type: number
        top:
          $ref: "#/components/schemas/GetWeb3BrowseResponseTop"
        letters:
          $ref: "#/components/schemas/GetWeb3BrowseResponseTop"
      required:
        - categories
        - chains
        - total
        - top
        - letters
      additionalProperties: false
    GetWeb3BrowseResponseCategories:
      type: object
      properties:
        key:
          type: string
          enum:
            - pfps
            - art
            - gaming
            - memberships
            - music
            - photography
            - sports-collectibles
            - physical-collectibles
            - virtual-worlds
            - domains
        label:
          type: string
        count:
          type: number
      required:
        - key
        - label
        - count
      additionalProperties: false
    GetWeb3BrowseResponseChains:
      type: object
      properties:
        key:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        label:
          type: string
        count:
          type: number
      required:
        - key
        - label
        - count
      additionalProperties: false
    GetWeb3BrowseResponseTop:
      type: object
      properties:
        categories:
          type: object
          additionalProperties: {}
        chains:
          type: object
          additionalProperties: {}
      required:
        - categories
        - chains
      additionalProperties: false
      description: "The browse bar's hover panels: the top collections of each category and chain."
    GetWeb3CollectionDepthResponse:
      type: object
      properties:
        asks:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionDepthResponseAsks"
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionDepthResponseAsks"
        traitFloors:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionDepthResponseTraitFloors"
      required:
        - asks
        - bids
        - traitFloors
      additionalProperties: false
    GetWeb3CollectionDepthResponseAsks:
      type: object
      properties:
        priceWei:
          type: string
        count:
          type: number
        cumulative:
          type: number
          description: Running total from the best price outwards.
      required:
        - priceWei
        - count
        - cumulative
      additionalProperties: false
    GetWeb3CollectionDepthResponseTraitFloors:
      type: object
      properties:
        traitType:
          type: string
        value:
          type: string
        floorWei:
          type: string
        listed:
          type: number
      required:
        - traitType
        - value
        - floorWei
        - listed
      additionalProperties: false
    GetWeb3CollectionInsightResponse:
      type: object
      properties:
        owners:
          type: number
          nullable: true
        holders:
          $ref: "#/components/schemas/GetWeb3CollectionInsightResponseHolders"
        totalSupply:
          type: number
          nullable: true
        traitCounts:
          type: object
          nullable: true
          additionalProperties: {}
        transfers:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionInsightResponseTransfers"
          description: "The activity feed: newest first, sales carry their price."
        sales:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionInsightResponseTransfers"
        stats:
          $ref: "#/components/schemas/GetWeb3CollectionInsightResponseStats"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionInsightResponseDaily"
        refreshedAt:
          type: string
      required:
        - transfers
        - sales
        - stats
        - daily
        - refreshedAt
      additionalProperties: false
    GetWeb3CollectionInsightResponseDaily:
      type: object
      properties:
        day:
          type: string
        transfers:
          type: number
        mints:
          type: number
        sales:
          type: number
        volumeWei:
          type: string
      required:
        - day
        - transfers
        - mints
        - sales
        - volumeWei
      additionalProperties: false
    GetWeb3CollectionInsightResponseHolders:
      type: object
      properties:
        owners:
          type: number
        top:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionInsightResponseHoldersTop"
          description: The 25 wallets holding the most tokens.
        distribution:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionInsightResponseHoldersDistribution"
          description: How many wallets hold 1, 2–3, 4–10, 11–50 and 51+ tokens.
      required:
        - owners
        - top
        - distribution
      additionalProperties: false
      nullable: true
      description: "EVM: top wallets and how holdings spread (migration 0466); null on Solana or before a refresh."
    GetWeb3CollectionInsightResponseHoldersDistribution:
      type: object
      properties:
        bucket:
          type: string
        wallets:
          type: number
      required:
        - bucket
        - wallets
      additionalProperties: false
    GetWeb3CollectionInsightResponseHoldersTop:
      type: object
      properties:
        address:
          type: string
        tokens:
          type: number
      required:
        - address
        - tokens
      additionalProperties: false
    GetWeb3CollectionInsightResponseStats:
      type: object
      properties:
        sales30d:
          type: number
        volume30dWei:
          type: string
        avgSale30dWei:
          type: string
          nullable: true
        lastSale:
          $ref: "#/components/schemas/GetWeb3CollectionInsightResponseStatsLastSale"
      required:
        - sales30d
        - volume30dWei
      additionalProperties: false
    GetWeb3CollectionInsightResponseStatsLastSale:
      type: object
      properties:
        priceWei:
          type: string
        at:
          type: string
          nullable: true
        tokenId:
          type: string
      required:
        - priceWei
        - tokenId
      additionalProperties: false
      nullable: true
    GetWeb3CollectionInsightResponseTransfers:
      type: object
      properties:
        kind:
          type: string
          enum:
            - sale
            - listing
            - mint
            - transfer
            - burn
        tokenId:
          type: string
        from:
          type: string
        to:
          type: string
        txHash:
          type: string
        at:
          type: string
          nullable: true
        priceWei:
          type: string
          nullable: true
          description: Wei (EVM) or lamports (Solana), for a sale or listing.
        marketplace:
          type: string
          nullable: true
      required:
        - kind
        - tokenId
        - from
        - to
        - txHash
      additionalProperties: false
    GetWeb3CollectionItemResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionItemResponseItems"
        total:
          type: number
          nullable: true
          description: Matching tokens in the whole collection; null when served from a provider page.
        nextOffset:
          type: number
          nullable: true
        indexed:
          $ref: "#/components/schemas/GetWeb3CollectionItemResponseIndexed"
        pageKey:
          type: string
          nullable: true
          description: Provider paging, only while the collection is not indexed yet.
      required:
        - items
        - indexed
      additionalProperties: false
    GetWeb3CollectionItemResponseIndexed:
      type: object
      properties:
        status:
          type: string
          enum:
            - none
            - running
            - done
        count:
          type: number
      required:
        - status
        - count
      additionalProperties: false
    GetWeb3CollectionItemResponseItems:
      type: object
      properties:
        tokenId:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        thumbUrl:
          type: string
          nullable: true
        traits:
          type: array
          items:
            type: object
            additionalProperties: {}
        listing:
          $ref: "#/components/schemas/GetWeb3CollectionItemResponseItemsListing"
        rarityRank:
          type: number
          nullable: true
      required:
        - tokenId
        - traits
      additionalProperties: false
    GetWeb3CollectionItemResponseItemsListing:
      type: object
      properties:
        orderHash:
          type: string
        priceWei:
          type: string
      required:
        - orderHash
        - priceWei
      additionalProperties: false
      nullable: true
    GetWeb3CollectionResponse:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        collection:
          $ref: "#/components/schemas/GetWeb3CollectionResponseCollection"
        stats:
          $ref: "#/components/schemas/GetWeb3CollectionResponseStats"
      required:
        - chain
        - contract
        - stats
      additionalProperties: false
    GetWeb3CollectionResponseCollection:
      type: object
      properties:
        symbol:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        verified:
          type: boolean
        hiddenAt:
          type: string
          format: date-time
          nullable: true
        discord:
          type: string
          nullable: true
        refreshedAt:
          type: string
          format: date-time
        externalUrl:
          type: string
          nullable: true
        chain:
          type: string
        contract:
          type: string
        tokenType:
          type: string
          nullable: true
        totalSupply:
          type: string
          nullable: true
        featuredRank:
          type: number
          nullable: true
        firstSeenAt:
          type: string
          format: date-time
        bannerUrl:
          type: string
          nullable: true
        twitter:
          type: string
          nullable: true
        deployedBlock:
          type: number
          nullable: true
        collectors:
          type: number
        indexedAt:
          type: string
          format: date-time
          nullable: true
        indexedCount:
          type: number
          nullable: true
        imageSource:
          type: string
          nullable: true
        bannerSource:
          type: string
          nullable: true
        imageThumbUrl:
          type: string
          nullable: true
        bannerThumbUrl:
          type: string
          nullable: true
        rehostCheckedAt:
          type: string
          format: date-time
          nullable: true
        hiddenReason:
          type: string
          nullable: true
        hiddenCategory:
          type: string
          nullable: true
      required:
        - verified
        - refreshedAt
        - chain
        - contract
        - firstSeenAt
        - collectors
      additionalProperties: false
      nullable: true
    GetWeb3CollectionResponseStats:
      type: object
      properties:
        floorWei:
          type: string
          nullable: true
        listed:
          type: number
        volumeWei:
          type: string
        sales:
          type: number
        bestCollectionOfferWei:
          type: string
          nullable: true
      required:
        - listed
        - volumeWei
        - sales
      additionalProperties: false
    GetWeb3CollectionTraitResponse:
      type: object
      properties:
        total:
          type: number
          nullable: true
        traits:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionTraitResponseTraits"
      required:
        - traits
      additionalProperties: false
    GetWeb3CollectionTraitResponseTraits:
      type: object
      properties:
        type:
          type: string
        values:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - type
        - values
      additionalProperties: false
    GetWeb3CollectionTraitTokenResponse:
      type: object
      properties:
        traitType:
          type: string
        value:
          type: string
        tokenIds:
          type: array
          items:
            type: string
        complete:
          type: boolean
          description: False when the collection is larger than the scan; the offer then covers only what was scanned.
      required:
        - traitType
        - value
        - tokenIds
        - complete
      additionalProperties: false
    GetWeb3CollectorResponse:
      type: object
      properties:
        count:
          type: number
          description: Distinct NFTs bought through Crossly that count.
        tier:
          type: number
          nullable: true
        next:
          type: number
          nullable: true
        rewardBps:
          type: number
        rewardsPaidCents:
          type: number
          description: Relist rewards paid so far, cents.
        marks:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectorResponseMarks"
      required:
        - count
        - rewardBps
        - rewardsPaidCents
        - marks
      additionalProperties: false
    GetWeb3CollectorResponseMarks:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        source:
          type: string
          enum:
            - crossly
            - card
            - rarible
            - magic_eden
            - tensor
        boughtAt:
          type: string
        relistReward:
          type: boolean
          description: The relist reward is still to be earned on its first Crossly-book sale.
      required:
        - chain
        - contract
        - tokenId
        - source
        - boughtAt
        - relistReward
      additionalProperties: false
    GetWeb3CreatorResponse:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        name:
          type: string
          nullable: true
        currency:
          type: string
        royaltyBps:
          type: number
          nullable: true
        royaltyEstimateWei:
          type: string
        sales:
          $ref: "#/components/schemas/GetWeb3CreatorResponseSales"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataDashboardDaily"
        recent:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataDashboardRecent"
        holders:
          $ref: "#/components/schemas/GetWeb3CreatorResponseHolders"
        mint:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataDashboardMint"
      required:
        - chain
        - contract
        - currency
        - royaltyEstimateWei
        - sales
        - daily
        - recent
      additionalProperties: false
    GetWeb3CreatorResponseHolders:
      type: object
      properties:
        owners:
          type: number
          nullable: true
        top:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CollectionInsightResponseHoldersTop"
      required:
        - top
      additionalProperties: false
      nullable: true
    GetWeb3CreatorResponseSales:
      type: object
      properties:
        count:
          type: number
        volumeWei:
          type: string
        byMarketplace:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CreatorResponseSalesByMarketplace"
      required:
        - count
        - volumeWei
        - byMarketplace
      additionalProperties: false
    GetWeb3CreatorResponseSalesByMarketplace:
      type: object
      properties:
        marketplace:
          type: string
        count:
          type: number
        volumeWei:
          type: string
      required:
        - marketplace
        - count
        - volumeWei
      additionalProperties: false
    GetWeb3CrosslistQuoteResponse:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        crossly:
          $ref: "#/components/schemas/GetWeb3CrosslistQuoteResponseCrossly"
        opensea:
          $ref: "#/components/schemas/GetWeb3CrosslistQuoteResponseOpensea"
        tensor:
          $ref: "#/components/schemas/GetWeb3CrosslistQuoteResponseTensor"
        magicEden:
          $ref: "#/components/schemas/GetWeb3CrosslistQuoteResponseTensor"
        rarible:
          $ref: "#/components/schemas/GetWeb3CrosslistQuoteResponseRarible"
      required:
        - chain
        - crossly
        - opensea
        - tensor
        - magicEden
        - rarible
      additionalProperties: false
    GetWeb3CrosslistQuoteResponseCrossly:
      type: object
      properties:
        available:
          type: boolean
        feeRecipient:
          type: string
          nullable: true
        feeBps:
          type: number
        pnft:
          type: boolean
          nullable: true
      required:
        - available
        - feeBps
      additionalProperties: false
      description: "EVM: the Seaport book (needs the fee recipient). Solana: Crossly's Auction House (needs the house); `pnft` = it can settle programmable NFTs."
    GetWeb3CrosslistQuoteResponseOpensea:
      type: object
      properties:
        available:
          type: boolean
        reason:
          type: string
          nullable: true
        fees:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3CrosslistQuoteResponseOpenseaFees"
        zone:
          type: string
          nullable: true
        conduitKey:
          type: string
      required:
        - available
        - fees
        - conduitKey
      additionalProperties: false
    GetWeb3CrosslistQuoteResponseOpenseaFees:
      type: object
      properties:
        recipient:
          type: string
        basisPoints:
          type: number
        required:
          type: boolean
      required:
        - recipient
        - basisPoints
        - required
      additionalProperties: false
    GetWeb3CrosslistQuoteResponseRarible:
      type: object
      properties:
        available:
          type: boolean
        reason:
          type: string
          nullable: true
        protocolFeeBps:
          type: number
          nullable: true
      required:
        - available
      additionalProperties: false
      description: Rarible takes its own signed order (POST /api/shop/web3/rarible/draft, then /listings).
    GetWeb3CrosslistQuoteResponseTensor:
      type: object
      properties:
        available:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - available
      additionalProperties: false
    GetWeb3FeaturedResponse:
      type: object
      properties:
        banners:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3FeaturedResponseBanners"
        source:
          type: string
          enum:
            - admin
            - hot
      required:
        - banners
        - source
      additionalProperties: false
    GetWeb3FeaturedResponseBanners:
      type: object
      properties:
        featuredId:
          type: string
          nullable: true
          description: Set when an admin chose it; absent on the hot-collections fallback.
        headline:
          type: string
          nullable: true
        subline:
          type: string
          nullable: true
        chain:
          type: string
        contract:
          type: string
        slug:
          type: string
          nullable: true
          description: Readable URL segment (migration 0382); null for a nameless collection.
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
        imageThumbUrl:
          type: string
          nullable: true
          description: Our first-paint webps (migration 0385); null until the image is rehosted.
        bannerThumbUrl:
          type: string
          nullable: true
        verified:
          type: boolean
        totalSupply:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        floorWei:
          type: string
          nullable: true
        listed:
          type: number
        volumeWei:
          type: string
        sales:
          type: number
        favorites:
          type: number
      required:
        - chain
        - contract
        - verified
        - listed
        - volumeWei
        - sales
        - favorites
      additionalProperties: false
    GetWeb3InventoryResponse:
      type: object
      properties:
        nft:
          $ref: "#/components/schemas/GetWeb3InventoryResponseNft"
      additionalProperties: false
    GetWeb3InventoryResponseNft:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        tokenId:
          type: string
        standard:
          type: string
        balance:
          type: number
        collectionName:
          type: string
          nullable: true
        wallet:
          type: string
          nullable: true
        removedAt:
          type: string
          format: date-time
          nullable: true
        path:
          type: string
          description: Crossly Web3 item page — where it is listed, priced and cross-listed.
        listings:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3InventoryResponseNftListings"
        recentSales:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3InventoryResponseNftRecentSales"
      required:
        - chain
        - contract
        - tokenId
        - standard
        - balance
        - path
        - listings
        - recentSales
      additionalProperties: false
      nullable: true
    GetWeb3InventoryResponseNftListings:
      type: object
      properties:
        marketplace:
          type: string
        marketplaceName:
          type: string
        orderHash:
          type: string
        priceWei:
          type: string
        endPriceWei:
          type: string
          nullable: true
        endTime:
          type: string
          format: date-time
        externalUrl:
          type: string
          nullable: true
      required:
        - marketplace
        - marketplaceName
        - orderHash
        - priceWei
        - endTime
      additionalProperties: false
    GetWeb3InventoryResponseNftRecentSales:
      type: object
      properties:
        marketplace:
          type: string
        priceWei:
          type: string
          nullable: true
        occurredAt:
          type: string
          format: date-time
        txHash:
          type: string
          nullable: true
      required:
        - marketplace
        - occurredAt
      additionalProperties: false
    GetWeb3LaunchAllowlistRootTxResponse:
      type: object
      properties:
        chain:
          type: string
        from:
          type: string
        to:
          type: string
        data:
          type: string
      required:
        - chain
        - from
        - to
        - data
      additionalProperties: false
    GetWeb3LaunchDeployTxResponse:
      type: object
      properties:
        chain:
          type: string
        from:
          type: string
        data:
          type: string
        collection:
          type: string
        transactionBase64:
          type: string
        lastValidBlockHeight:
          type: number
      required:
        - chain
        - from
    GetWeb3LaunchStatResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWeb3LaunchStatResponseData"
      required:
        - data
      additionalProperties: false
    GetWeb3LaunchStatResponseData:
      type: object
      properties:
        launch:
          $ref: "#/components/schemas/GetWeb3LaunchStatResponseDataLaunch"
        timeline:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataLaunchStatsTimeline"
        proceeds:
          $ref: "#/components/schemas/GetCreatorCollectionResponseDataLaunchStatsProceeds"
        progressPct:
          type: number
        allowlistCount:
          type: number
        artCount:
          type: number
        airdropped:
          type: number
        recentMints:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorCollectionResponseDataLaunchStatsRecentMints"
      required:
        - launch
        - timeline
        - proceeds
        - progressPct
        - allowlistCount
        - artCount
        - airdropped
        - recentMints
      additionalProperties: false
    GetWeb3LaunchStatResponseDataLaunch:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - draft
            - live
            - failed
            - deploying
        name:
          type: string
        symbol:
          type: string
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        maxSupply:
          type: number
        minted:
          type: number
        priceWei:
          type: string
        holderStart:
          type: string
          nullable: true
        publicStart:
          type: string
        endTime:
          type: string
          nullable: true
        holderGate:
          $ref: "#/components/schemas/ContractName"
        maxPerWallet:
          type: number
        royaltyBps:
          type: number
        platformBps:
          type: number
        phase:
          type: string
          enum:
            - public
            - ended
            - upcoming
            - holder
            - sold_out
        creator:
          $ref: "#/components/schemas/NameObject"
        card:
          type: boolean
          description: Card checkout (Crossmint) is set up and the collection is verified there.
        allowlist:
          type: boolean
          description: The creator set an early-phase allowlist (check a wallet with /launch/:id/allowlist/:address).
        revealed:
          type: boolean
          description: Per-token art has been revealed.
        cardSetId:
          type: string
          nullable: true
          description: "Creator Studio (migration 1163): the card set this collection takes on chain, and the creations it mints."
        creationRefs:
          type: array
          items:
            type: string
          nullable: true
        holderPerks:
          type: array
          items: {}
          nullable: true
          description: "Migration 1178 (R-studio-15): what holding a token gets you, decided at mint (shared/creator/holder-perks)."
      required:
        - id
        - chain
        - status
        - name
        - symbol
        - maxSupply
        - minted
        - priceWei
        - publicStart
        - maxPerWallet
        - royaltyBps
        - platformBps
        - phase
        - creator
        - card
        - allowlist
        - revealed
      additionalProperties: false
    GetWeb3LaunchToolResponse:
      type: object
      properties:
        royalties:
          $ref: "#/components/schemas/GetWeb3LaunchToolResponseRoyalties"
        allowlist:
          $ref: "#/components/schemas/GetWeb3LaunchToolResponseAllowlist"
        art:
          $ref: "#/components/schemas/GetWeb3LaunchToolResponseArt"
        supply:
          $ref: "#/components/schemas/GetWeb3LaunchToolResponseSupply"
      required:
        - royalties
        - allowlist
        - art
        - supply
      additionalProperties: false
    GetWeb3LaunchToolResponseAllowlist:
      type: object
      properties:
        count:
          type: number
        root:
          type: string
          nullable: true
        onchainRoot:
          type: string
          nullable: true
        needsRootTx:
          type: boolean
      required:
        - count
        - needsRootTx
      additionalProperties: false
    GetWeb3LaunchToolResponseArt:
      type: object
      properties:
        count:
          type: number
        revealed:
          type: boolean
        revealedAt:
          type: string
          nullable: true
      required:
        - count
        - revealed
      additionalProperties: false
    GetWeb3LaunchToolResponseRoyalties:
      type: object
      properties:
        bps:
          type: number
        receiver:
          type: string
        fromDefault:
          type: boolean
      required:
        - bps
        - receiver
        - fromDefault
      additionalProperties: false
    GetWeb3LaunchToolResponseSupply:
      type: object
      properties:
        max:
          type: number
        minted:
          type: number
      required:
        - max
        - minted
      additionalProperties: false
    GetWeb3OrderFulfillmentResponse:
      type: object
      properties:
        chain:
          type: string
        orderHash:
          type: string
        kind:
          type: string
          enum:
            - listing
            - bundle
            - offer
            - private_listing
            - collection_offer
            - trait_offer
        components:
          $ref: "#/components/schemas/GetWeb3OrderFulfillmentResponseComponents"
        signature:
          type: string
        considerationCriteria:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3OrderFulfillmentResponseConsiderationCriteria"
          nullable: true
          description: "Criteria offers: the token being sold into the offer, and its proof."
      required:
        - chain
        - orderHash
        - kind
        - components
        - signature
      additionalProperties: false
    GetWeb3OrderFulfillmentResponseComponents:
      type: object
      properties:
        offerer:
          type: string
        zone:
          type: string
        offer:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3OrderFulfillmentResponseComponentsOffer"
        consideration:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3OrderFulfillmentResponseComponentsConsideration"
        orderType:
          type: number
        startTime:
          type: string
        endTime:
          type: string
        zoneHash:
          type: string
        salt:
          type: string
        conduitKey:
          type: string
        counter:
          type: string
      required:
        - offerer
        - zone
        - offer
        - consideration
        - orderType
        - startTime
        - endTime
        - zoneHash
        - salt
        - conduitKey
        - counter
      additionalProperties: false
    GetWeb3OrderFulfillmentResponseComponentsConsideration:
      type: object
      properties:
        recipient:
          type: string
        itemType:
          type: number
        token:
          type: string
        identifierOrCriteria:
          type: string
        startAmount:
          type: string
        endAmount:
          type: string
      required:
        - recipient
        - itemType
        - token
        - identifierOrCriteria
        - startAmount
        - endAmount
      additionalProperties: false
    GetWeb3OrderFulfillmentResponseComponentsOffer:
      type: object
      properties:
        itemType:
          type: number
        token:
          type: string
        identifierOrCriteria:
          type: string
        startAmount:
          type: string
        endAmount:
          type: string
      required:
        - itemType
        - token
        - identifierOrCriteria
        - startAmount
        - endAmount
      additionalProperties: false
    GetWeb3OrderFulfillmentResponseConsiderationCriteria:
      type: object
      properties:
        identifier:
          type: string
        proof:
          type: array
          items:
            type: string
      required:
        - identifier
        - proof
      additionalProperties: false
    GetWeb3Phygital2Response:
      type: object
      properties:
        linked:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3Phygital2ResponseLinked"
        redeemed:
          type: array
          items:
            $ref: "#/components/schemas/CreateWeb3PhygitalResponsePhygital"
      required:
        - linked
        - redeemed
      additionalProperties: false
    GetWeb3Phygital2ResponseLinked:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - active
            - cancelled
            - redeemed
        createdAt:
          type: string
        item:
          $ref: "#/components/schemas/CreateWeb3PhygitalResponsePhygitalItem"
        redemption:
          $ref: "#/components/schemas/CreateWeb3PhygitalResponsePhygitalRedemption"
        shipTo:
          $ref: "#/components/schemas/GetWeb3Phygital2ResponseLinkedShipTo"
      required:
        - id
        - chain
        - contract
        - tokenId
        - title
        - status
        - createdAt
      additionalProperties: false
    GetWeb3Phygital2ResponseLinkedShipTo:
      type: object
      properties:
        name:
          type: string
        line1:
          type: string
        line2:
          type: string
          nullable: true
        city:
          type: string
        region:
          type: string
          nullable: true
        postalCode:
          type: string
        country:
          type: string
        phone:
          type: string
          nullable: true
      required:
        - name
        - line1
        - city
        - postalCode
        - country
      additionalProperties: false
      nullable: true
    GetWeb3PhygitalResponse:
      type: object
      properties:
        phygital:
          $ref: "#/components/schemas/GetWeb3PhygitalResponsePhygital"
      additionalProperties: false
    GetWeb3PhygitalResponsePhygital:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - active
            - cancelled
            - redeemed
        createdAt:
          type: string
        item:
          $ref: "#/components/schemas/CreateWeb3PhygitalResponsePhygitalItem"
        redemption:
          $ref: "#/components/schemas/CreateWeb3PhygitalResponsePhygitalRedemption"
      required:
        - id
        - chain
        - contract
        - tokenId
        - title
        - status
        - createdAt
      additionalProperties: false
      nullable: true
    GetWeb3PortfolioResponse:
      type: object
      properties:
        totals:
          $ref: "#/components/schemas/GetWeb3PortfolioResponseTotals"
        holdings:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3PortfolioResponseHoldings"
        realized:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3PortfolioResponseRealized"
      required:
        - totals
        - holdings
        - realized
      additionalProperties: false
    GetWeb3PortfolioResponseHoldings:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        name:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        valueWei:
          type: string
          nullable: true
        valuedBy:
          type: string
          enum:
            - floor
            - avg_sale
            - last_sale
          nullable: true
        valueUsd:
          type: number
          nullable: true
        costWei:
          type: string
          nullable: true
        costUsd:
          type: number
          nullable: true
        acquiredAt:
          type: string
          nullable: true
      required:
        - chain
        - contract
        - tokenId
      additionalProperties: false
    GetWeb3PortfolioResponseRealized:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        name:
          type: string
          nullable: true
        soldAt:
          type: string
        marketplace:
          type: string
        proceedsWei:
          type: string
          nullable: true
        costWei:
          type: string
          nullable: true
        acquiredAt:
          type: string
          nullable: true
        gainWei:
          type: string
          nullable: true
        proceedsUsd:
          type: number
          nullable: true
        costUsd:
          type: number
          nullable: true
        gainUsd:
          type: number
          nullable: true
        txHash:
          type: string
          nullable: true
      required:
        - chain
        - contract
        - tokenId
        - soldAt
        - marketplace
      additionalProperties: false
    GetWeb3PortfolioResponseTotals:
      type: object
      properties:
        valueUsd:
          type: number
          nullable: true
        costUsd:
          type: number
          nullable: true
        unrealizedUsd:
          type: number
          nullable: true
        realizedUsd:
          type: number
          nullable: true
        holdings:
          type: number
        valued:
          type: number
      required:
        - holdings
        - valued
      additionalProperties: false
    GetWeb3PortfolioTaxResponse:
      type: object
      properties:
        year:
          type: number
        filename:
          type: string
        csv:
          type: string
      required:
        - year
        - filename
        - csv
      additionalProperties: false
    GetWeb3ProfileResponse:
      type: object
      properties:
        address:
          type: string
        family:
          type: string
          enum:
            - solana
            - evm
        onCrossly:
          type: boolean
          description: Linked to a Crossly account (never says which).
        nfts:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3ProfileResponseNfts"
        listings:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3ProfileResponseListings"
        activity:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3ActivityItem"
      required:
        - address
        - family
        - onCrossly
        - nfts
        - listings
        - activity
      additionalProperties: false
    GetWeb3ProfileResponseListings:
      type: object
      properties:
        orderHash:
          type: string
        chain:
          type: string
        kind:
          type: string
          enum:
            - listing
            - bundle
            - offer
            - private_listing
            - collection_offer
            - trait_offer
        contract:
          type: string
        tokenId:
          type: string
          nullable: true
        priceWei:
          type: string
        currency:
          type: string
        itemName:
          type: string
          nullable: true
        itemImage:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        endTime:
          type: string
          format: date-time
      required:
        - orderHash
        - chain
        - kind
        - contract
        - priceWei
        - currency
        - endTime
      additionalProperties: false
    GetWeb3ProfileResponseNfts:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        tokenId:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
      required:
        - chain
        - contract
        - tokenId
      additionalProperties: false
    GetWeb3ResolveResponse:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        slug:
          type: string
      required:
        - chain
        - contract
        - slug
      additionalProperties: false
    GetWeb3SolanaCollectionTensorBidResponse:
      type: object
      properties:
        slug:
          type: string
        bids:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3SolanaCollectionTensorBidResponseBids"
      required:
        - slug
        - bids
      additionalProperties: false
    GetWeb3SolanaCollectionTensorBidResponseBids:
      type: object
      properties:
        bid:
          type: string
        priceLamports:
          type: string
        quantity:
          type: number
        bidder:
          type: string
          nullable: true
        trait:
          $ref: "#/components/schemas/GetWeb3SolanaCollectionTensorBidResponseBidsTrait"
      required:
        - bid
        - priceLamports
        - quantity
      additionalProperties: false
    GetWeb3SolanaCollectionTensorBidResponseBidsTrait:
      type: object
      properties:
        type:
          type: string
        value:
          type: string
      required:
        - type
        - value
      additionalProperties: false
      nullable: true
    GetWeb3StakingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWeb3StakingResponseData"
      required:
        - data
      additionalProperties: false
    GetWeb3StakingResponseData:
      type: object
      properties:
        decimals:
          type: number
        balanceBaseUnits:
          type: string
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3StakingResponseDataHistory"
        stakedBaseUnits:
          type: string
        availableBaseUnits:
          type: string
        tierSlug:
          type: string
          nullable: true
        feeDiscountBps:
          type: number
        earnBoostBps:
          type: number
        status:
          type: string
          nullable: true
        unlocksAt:
          type: string
          nullable: true
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3StakingResponseDataTiers"
      required:
        - decimals
        - balanceBaseUnits
        - history
        - stakedBaseUnits
        - availableBaseUnits
        - feeDiscountBps
        - earnBoostBps
        - tiers
      additionalProperties: false
    GetWeb3StakingResponseDataHistory:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        baseUnits:
          type: string
        tierSlug:
          type: string
        feeDiscountBps:
          type: number
        earnBoostBps:
          type: number
        stakedAt:
          type: string
        unstakeRequestedAt:
          type: string
          nullable: true
        unlocksAt:
          type: string
          nullable: true
      required:
        - id
        - status
        - baseUnits
        - tierSlug
        - feeDiscountBps
        - earnBoostBps
        - stakedAt
      additionalProperties: false
    GetWeb3StakingResponseDataTiers:
      type: object
      properties:
        slug:
          type: string
        label:
          type: string
        minBaseUnits:
          type: string
        feeDiscountBps:
          type: number
        earnBoostBps:
          type: number
        cooldownDays:
          type: number
        perks:
          type: array
          items:
            type: string
      required:
        - slug
        - label
        - minBaseUnits
        - feeDiscountBps
        - earnBoostBps
        - cooldownDays
        - perks
      additionalProperties: false
    GetWeb3StoreWalletNftResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWeb3StoreWalletNftResponseData"
      required:
        - data
      additionalProperties: false
    GetWeb3StoreWalletNftResponseData:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
        wallets:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3StoreWalletNftResponseDataWallets"
        property:
          $ref: "#/components/schemas/GetWeb3StoreWalletNftResponseDataProperty"
        receiptsTo:
          $ref: "#/components/schemas/GetWeb3StoreWalletNftResponseDataProperty"
        enabled:
          type: boolean
        deeds:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPropertyResponseDataDeeds"
        tenancies:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialPropertyResponseDataTenancies"
        streets:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialStreetMineItem"
        receipts:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3StoreWalletNftResponseDataReceipts"
      required:
        - wallets
        - enabled
        - deeds
        - tenancies
        - streets
        - receipts
      additionalProperties: false
    GetWeb3StoreWalletNftResponseDataProperty:
      type: object
      properties:
        walletId:
          type: string
        family:
          type: string
          enum:
            - solana
            - evm
        address:
          type: string
        label:
          type: string
          nullable: true
      required:
        - walletId
        - family
        - address
      additionalProperties: false
      nullable: true
    GetWeb3StoreWalletNftResponseDataReceipts:
      type: object
      properties:
        vaultItemId:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        receiptNo:
          type: string
          nullable: true
        pledged:
          type: boolean
        onLoan:
          type: boolean
        exportable:
          type: boolean
        token:
          $ref: "#/components/schemas/GetWeb3StoreWalletNftResponseDataReceiptsToken"
      required:
        - vaultItemId
        - pledged
        - onLoan
        - exportable
      additionalProperties: false
    GetWeb3StoreWalletNftResponseDataReceiptsToken:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        statusText:
          type: string
        frozen:
          type: boolean
        wallet:
          type: string
        mint:
          type: string
        explorerUrl:
          type: string
      required:
        - id
        - status
        - statusText
        - frozen
        - wallet
        - mint
        - explorerUrl
      additionalProperties: false
      nullable: true
    GetWeb3StoreWalletNftResponseDataWallets:
      type: object
      properties:
        walletId:
          type: string
        family:
          type: string
          enum:
            - solana
            - evm
        address:
          type: string
        label:
          type: string
          nullable: true
        isDefault:
          type: boolean
      required:
        - walletId
        - family
        - address
        - isDefault
      additionalProperties: false
    GetWeb3TokenResponse:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        tokenId:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        thumbUrl:
          type: string
          nullable: true
        animationUrl:
          type: string
          nullable: true
        standard:
          type: string
          enum:
            - erc721
            - erc1155
            - metaplex
            - metaplex_programmable
            - metaplex_core
            - compressed
          nullable: true
        traits:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3TokenResponseTraits"
        rarityRank:
          type: number
          nullable: true
          description: 1 is the rarest; null until the collection is indexed (services/web3/token-index.ts).
        totalSupply:
          type: number
          nullable: true
        collection:
          $ref: "#/components/schemas/GetWeb3TokenResponseCollection"
        owner:
          type: string
          nullable: true
        listings:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3ListingsItem"
        offers:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3ListingsItem"
        activity:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3ActivityItem"
        favorites:
          type: number
        elsewhere:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3TokenResponseElsewhere"
          description: The same token listed by its owner on other marketplaces (links out; not buyable here).
      required:
        - chain
        - contract
        - tokenId
        - traits
        - collection
        - listings
        - offers
        - activity
        - favorites
        - elsewhere
      additionalProperties: false
    GetWeb3TokenResponseCollection:
      type: object
      properties:
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
      additionalProperties: false
    GetWeb3TokenResponseElsewhere:
      type: object
      properties:
        marketplace:
          type: string
        priceWei:
          type: string
        externalUrl:
          type: string
          nullable: true
        maker:
          type: string
      required:
        - marketplace
        - priceWei
        - maker
      additionalProperties: false
    GetWeb3TokenResponseTraits:
      type: object
      properties:
        trait_type:
          type: string
        value:
          type: string
      required:
        - trait_type
        - value
      additionalProperties: false
    GetWeb3WalletHoldingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWeb3WalletHoldingResponseData"
      required:
        - data
      additionalProperties: false
    GetWeb3WalletHoldingResponseData:
      type: object
      properties:
        walletId:
          type: string
        holdings:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3WalletHoldingResponseDataHoldings"
        chains:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3WalletHoldingResponseDataChains"
      required:
        - walletId
        - holdings
        - chains
      additionalProperties: false
    GetWeb3WalletHoldingResponseDataChains:
      type: object
      properties:
        chain:
          type: string
        found:
          type: number
        complete:
          type: boolean
        error:
          type: string
          nullable: true
      required:
        - chain
        - found
        - complete
      additionalProperties: false
    GetWeb3WalletHoldingResponseDataHoldings:
      type: object
      properties:
        key:
          type: string
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        standard:
          type: string
        balance:
          type: number
        name:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        inInventory:
          type: boolean
          description: Already an inventory item (live, not archived).
      required:
        - key
        - chain
        - contract
        - tokenId
        - standard
        - balance
        - inInventory
      additionalProperties: false
    GetWholesaleCatalogLineSheetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWholesaleCatalogLineSheetResponseData"
      required:
        - data
      additionalProperties: false
    GetWholesaleCatalogLineSheetResponseData:
      type: object
      properties:
        catalog:
          $ref: "#/components/schemas/GetWholesaleCatalogLineSheetResponseDataCatalog"
        seller:
          $ref: "#/components/schemas/GetWholesaleCatalogLineSheetResponseDataSeller"
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWholesaleCatalogLineSheetResponseDataItems"
        generatedAt:
          type: string
      required:
        - catalog
        - seller
        - items
        - generatedAt
      additionalProperties: false
    GetWholesaleCatalogLineSheetResponseDataCatalog:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        minOrderCents:
          type: number
          nullable: true
      required:
        - id
        - name
      additionalProperties: false
    GetWholesaleCatalogLineSheetResponseDataItems:
      type: object
      properties:
        platformListingId:
          type: string
        position:
          type: number
        slug:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        quantityAvailable:
          type: number
          nullable: true
        status:
          type: string
        source:
          type: string
          enum:
            - listing
            - vault
          description: "Where the catalog sells it from: the listing's stock, or its units in the vault (§V7)."
        vaultUnits:
          type: number
          description: Units the vault can ship for it now.
        wholesalePriceCents:
          type: number
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
        tiers:
          type: array
          items:
            type: object
            additionalProperties: {}
        own:
          $ref: "#/components/schemas/ListWholesaleCatalogItemsItemOwn"
        terms:
          $ref: "#/components/schemas/GetWholesaleCatalogLineSheetResponseDataItemsTerms"
      required:
        - platformListingId
        - position
        - slug
        - status
        - source
        - vaultUnits
        - tiers
        - own
        - terms
      additionalProperties: false
    GetWholesaleCatalogLineSheetResponseDataItemsTerms:
      type: object
      properties:
        moq:
          type: object
          additionalProperties: {}
        casePack:
          type: object
          additionalProperties: {}
        leadTimeDays:
          type: object
          additionalProperties: {}
        verifiedOnly:
          type: object
          additionalProperties: {}
        priceVisibility:
          type: object
          additionalProperties: {}
        returnPresetId:
          type: object
          additionalProperties: {}
        paymentPresetId:
          type: object
          additionalProperties: {}
        shippingPresetId:
          type: object
          additionalProperties: {}
        orderMinCents:
          type: object
          description: "Catalog → profile only: an order minimum is about the order, never one item."
          additionalProperties: {}
        maxPerOrder:
          type: object
          additionalProperties: {}
        backorder:
          type: object
          additionalProperties: {}
        restockEta:
          type: object
          additionalProperties: {}
      required:
        - moq
        - casePack
        - leadTimeDays
        - verifiedOnly
        - priceVisibility
        - returnPresetId
        - paymentPresetId
        - shippingPresetId
        - orderMinCents
        - maxPerOrder
        - backorder
        - restockEta
      additionalProperties: false
      description: "1120: every trade term resolved item → catalog → profile → default, each with its source."
    GetWholesaleCatalogLineSheetResponseDataSeller:
      type: object
      properties:
        companyName:
          type: string
          nullable: true
        contactEmail:
          type: string
          nullable: true
        shipsFromRegion:
          type: string
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        paymentTermsOffered:
          type: array
          items:
            type: string
        returnPolicy:
          type: string
          nullable: true
        returnPresetId:
          type: string
          nullable: true
      required:
        - paymentTermsOffered
      additionalProperties: false
    GetWholesaleCatalogShareResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWholesaleCatalogShareResponseData"
      required:
        - data
      additionalProperties: false
    GetWholesaleCatalogShareResponseData:
      type: object
      properties:
        catalogId:
          type: string
        url:
          type: string
          nullable: true
          description: Null until the seller has a shop username (the buyer page needs one).
      required:
        - catalogId
      additionalProperties: false
    GetWholesaleCategoryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWholesaleCategoryResponseData"
      required:
        - data
      additionalProperties: false
    GetWholesaleCategoryResponseData:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: "#/components/schemas/GetAnalyticProgramResponseDataDimensionOptions"
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWholesaleCategoryResponseDataItems"
      required:
        - groups
        - items
      additionalProperties: false
    GetWholesaleCategoryResponseDataItems:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        group:
          type: string
          description: A WholesaleCategoryGroup id.
      required:
        - id
        - label
        - group
      additionalProperties: false
    GetWholesaleDropResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWholesaleDropResponseData"
      required:
        - data
      additionalProperties: false
    GetWholesaleDropResponseData:
      type: object
      properties:
        drop:
          $ref: "#/components/schemas/ListWholesaleDropsItem"
        listings:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandDropListingsItem"
        reservations:
          type: array
          items:
            $ref: "#/components/schemas/GetWholesaleDropResponseDataReservations"
      required:
        - drop
        - listings
        - reservations
      additionalProperties: false
    GetWholesaleDropResponseDataReservations:
      type: object
      properties:
        id:
          type: string
        dropId:
          type: string
        buyerUserId:
          type: string
        buyerName:
          type: string
          nullable: true
        buyerEmail:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        quantity:
          type: number
        depositCents:
          type: number
        balanceCents:
          type: number
        status:
          type: string
          enum:
            - cancelled
            - failed
            - paid
            - awaiting_release
            - invoiced
        invoiceId:
          type: string
          nullable: true
        invoiceNumber:
          type: string
          nullable: true
        balanceDueAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - dropId
        - buyerUserId
        - quantity
        - depositCents
        - balanceCents
        - status
        - createdAt
      additionalProperties: false
    GetWholesaleOverviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseData"
      required:
        - data
      additionalProperties: false
    GetWholesaleOverviewResponseData:
      type: object
      properties:
        profile:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataProfile"
        kpis:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataKpis"
        checklist:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleSetupStepsItem"
        counts:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataCounts"
        previewPath:
          type: string
          nullable: true
        sellerUsername:
          type: string
      required:
        - profile
        - kpis
        - checklist
        - counts
        - sellerUsername
      additionalProperties: false
    GetWholesaleOverviewResponseDataCounts:
      type: object
      properties:
        catalogs:
          type: number
        listedCatalogs:
          type: number
        items:
          type: number
        pricedItems:
          type: number
      required:
        - catalogs
        - listedCatalogs
        - items
        - pricedItems
      additionalProperties: false
    GetWholesaleOverviewResponseDataKpis:
      type: object
      properties:
        wholesaleRevenue30dCents:
          type: number
        openOrders:
          type: number
        outstandingInvoices:
          type: number
        outstandingCents:
          type: number
        overdueInvoices:
          type: number
        activeBuyers:
          type: number
        buyersOnTerms:
          type: number
        pendingRequests:
          type: number
      required:
        - wholesaleRevenue30dCents
        - openOrders
        - outstandingInvoices
        - outstandingCents
        - overdueInvoices
        - activeBuyers
        - buyersOnTerms
        - pendingRequests
      additionalProperties: false
    GetWholesaleOverviewResponseDataProfile:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        storefrontId:
          type: string
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        sellerUserId:
          type: string
        minOrderCents:
          type: number
          nullable: true
        contactEmail:
          type: string
          nullable: true
        tagline:
          type: string
          nullable: true
        logoUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
        returnPolicy:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        requiresBusinessVerification:
          type: boolean
        directoryCategories:
          type: array
          items:
            type: string
        shipsFromRegion:
          type: string
          nullable: true
        directoryBlurb:
          type: string
          nullable: true
        casePack:
          type: number
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        priceVisibility:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          nullable: true
        companyName:
          type: string
          nullable: true
        shipsFrom:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataProfileShipsFrom"
        paymentTermsOffered:
          type: array
          items:
            type: string
        directoryListed:
          type: boolean
        invoicingEnabled:
          type: boolean
        invoiceSettings:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataProfileInvoiceSettings"
        brandsCarried:
          type: array
          items:
            type: string
        yearFounded:
          type: number
          nullable: true
        minFirstOrderCents:
          type: number
          nullable: true
        minReorderCents:
          type: number
          nullable: true
        buyerRequirements:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataProfileBuyerRequirements"
        tradeRewardsBps:
          type: number
          nullable: true
        acceptsFunding:
          type: boolean
        saved:
          type: boolean
        legacyStoreless:
          type: boolean
        invoiceSettingsResolved:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataProfileInvoiceSettingsResolved"
      required:
        - id
        - createdAt
        - updatedAt
        - sellerUserId
        - requiresBusinessVerification
        - directoryCategories
        - paymentTermsOffered
        - directoryListed
        - invoicingEnabled
        - brandsCarried
        - acceptsFunding
        - saved
        - legacyStoreless
        - invoiceSettingsResolved
      additionalProperties: false
    GetWholesaleOverviewResponseDataProfileBuyerRequirements:
      type: object
      properties:
        requireResaleCert:
          type: boolean
        certStates:
          type: array
          items:
            type: string
          nullable: true
        requireTaxId:
          type: boolean
        questions:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - requireResaleCert
        - requireTaxId
        - questions
      additionalProperties: false
      nullable: true
    GetWholesaleOverviewResponseDataProfileInvoiceSettings:
      type: object
      properties:
        prefix:
          type: string
        nextNumber:
          type: number
        autoSend:
          type: boolean
        reminderDays:
          type: array
          items:
            type: number
        lateFeeBps:
          type: number
          nullable: true
        statementDay:
          type: number
          nullable: true
          description: Day of month statements go out (1–28); null = no statements.
        defaultNetDays:
          type: number
        ccEmails:
          type: array
          items:
            type: string
        earlyPayDiscountBps:
          type: number
          nullable: true
          description: "W5: off (bps) for paying the whole invoice within `earlyPayDays` of issue; null = none."
        earlyPayDays:
          type: number
          nullable: true
      required:
        - prefix
        - nextNumber
        - autoSend
        - reminderDays
        - defaultNetDays
        - ccEmails
      additionalProperties: false
      nullable: true
    GetWholesaleOverviewResponseDataProfileInvoiceSettingsResolved:
      type: object
      properties:
        prefix:
          type: string
        nextNumber:
          type: number
        autoSend:
          type: boolean
        reminderDays:
          type: array
          items:
            type: number
        lateFeeBps:
          type: number
          nullable: true
        statementDay:
          type: number
          nullable: true
          description: Day of month statements go out (1–28); null = no statements.
        defaultNetDays:
          type: number
        ccEmails:
          type: array
          items:
            type: string
        earlyPayDiscountBps:
          type: number
          nullable: true
          description: "W5: off (bps) for paying the whole invoice within `earlyPayDays` of issue; null = none."
        earlyPayDays:
          type: number
          nullable: true
      required:
        - prefix
        - nextNumber
        - autoSend
        - reminderDays
        - defaultNetDays
        - ccEmails
      additionalProperties: false
    GetWholesaleOverviewResponseDataProfileShipsFrom:
      type: object
      properties:
        postalCode:
          type: string
        country:
          type: string
        city:
          type: string
          nullable: true
        region:
          type: string
          nullable: true
        validatedAt:
          type: string
          nullable: true
      required:
        - postalCode
        - country
      additionalProperties: false
      nullable: true
    GetWholesaleProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWholesaleProfileResponseData"
      required:
        - data
      additionalProperties: false
    GetWholesaleProfileResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        storefrontId:
          type: string
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        sellerUserId:
          type: string
        minOrderCents:
          type: number
          nullable: true
        contactEmail:
          type: string
          nullable: true
        tagline:
          type: string
          nullable: true
        logoUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
        returnPolicy:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        requiresBusinessVerification:
          type: boolean
        directoryCategories:
          type: array
          items:
            type: string
        shipsFromRegion:
          type: string
          nullable: true
        directoryBlurb:
          type: string
          nullable: true
        casePack:
          type: number
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        priceVisibility:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          nullable: true
        companyName:
          type: string
          nullable: true
        shipsFrom:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataProfileShipsFrom"
        paymentTermsOffered:
          type: array
          items:
            type: string
        directoryListed:
          type: boolean
        invoicingEnabled:
          type: boolean
        invoiceSettings:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataProfileInvoiceSettings"
        brandsCarried:
          type: array
          items:
            type: string
        yearFounded:
          type: number
          nullable: true
        minFirstOrderCents:
          type: number
          nullable: true
        minReorderCents:
          type: number
          nullable: true
        buyerRequirements:
          $ref: "#/components/schemas/GetWholesaleProfileResponseDataBuyerRequirements"
        tradeRewardsBps:
          type: number
          nullable: true
        acceptsFunding:
          type: boolean
        saved:
          type: boolean
        legacyStoreless:
          type: boolean
        invoiceSettingsResolved:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataProfileInvoiceSettingsResolved"
      required:
        - id
        - createdAt
        - updatedAt
        - sellerUserId
        - requiresBusinessVerification
        - directoryCategories
        - paymentTermsOffered
        - directoryListed
        - invoicingEnabled
        - brandsCarried
        - acceptsFunding
        - saved
        - legacyStoreless
        - invoiceSettingsResolved
      additionalProperties: false
    GetWholesaleProfileResponseDataBuyerRequirements:
      type: object
      properties:
        requireResaleCert:
          type: boolean
        certStates:
          type: array
          items:
            type: string
          nullable: true
        requireTaxId:
          type: boolean
        questions:
          type: array
          items:
            $ref: "#/components/schemas/GetWholesaleProfileResponseDataBuyerRequirementsQuestions"
      required:
        - requireResaleCert
        - requireTaxId
        - questions
      additionalProperties: false
      nullable: true
    GetWholesaleProfileResponseDataBuyerRequirementsQuestions:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        type:
          type: string
          enum:
            - number
            - select
            - text
        options:
          type: array
          items:
            type: string
          nullable: true
        required:
          type: boolean
      required:
        - id
        - label
        - type
        - required
      additionalProperties: false
    GetWholesaleReserveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWholesaleReserveResponseData"
      required:
        - data
      additionalProperties: false
    GetWholesaleReserveResponseData:
      type: object
      properties:
        inventoryItemId:
          type: string
        title:
          type: string
          nullable: true
        quantityAvailable:
          type: number
        wholesaleReserve:
          type: number
        retailAvailable:
          type: number
          description: What retail channels advertise once the reserve is held back.
      required:
        - inventoryItemId
        - quantityAvailable
        - wholesaleReserve
        - retailAvailable
      additionalProperties: false
    GetWholesaleTermPreviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWholesaleTermPreviewResponseData"
      required:
        - data
      additionalProperties: false
    GetWholesaleTermPreviewResponseData:
      type: object
      properties:
        scope:
          type: string
          enum:
            - item
            - catalog
            - profile
        catalogId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        terms:
          $ref: "#/components/schemas/ListWholesaleCatalogItemsItemTerms"
      required:
        - scope
        - terms
      additionalProperties: false
    GetWorkflowCatalogResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorkflowCatalogResponseData"
      required:
        - data
      additionalProperties: false
    GetWorkflowCatalogResponseData:
      type: object
      properties:
        nodes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowCatalogResponseDataNodes"
        capabilities:
          type: object
          additionalProperties: {}
        connectedPlatforms:
          type: array
          items:
            type: string
        expressionHelpers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowCatalogResponseDataExpressionHelpers"
        expressionBindings:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowCatalogResponseDataExpressionHelpers"
        conditionOperators:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowCatalogResponseDataConditionOperators"
      required:
        - nodes
        - capabilities
        - connectedPlatforms
        - expressionHelpers
        - expressionBindings
        - conditionOperators
      additionalProperties: false
    GetWorkflowCatalogResponseDataConditionOperators:
      type: object
      properties:
        op:
          type: string
          enum:
            - in
            - matches
            - before
            - eq
            - neq
            - gt
            - gte
            - lt
            - lte
            - exists
            - between
            - contains
            - not_contains
            - starts_with
            - ends_with
            - not_in
            - not_exists
            - is_empty
            - not_empty
            - is_true
            - is_false
            - after
            - within_last
            - older_than
        label:
          type: string
        appliesTo:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowCatalogResponseDataConditionOperatorsAppliesToItem"
          description: Value kinds the operator applies to, for the builder's operator menu.
      required:
        - op
        - label
        - appliesTo
      additionalProperties: false
    GetWorkflowCatalogResponseDataExpressionHelpers:
      type: object
      properties:
        name:
          type: string
        signature:
          type: string
        description:
          type: string
        example:
          type: string
      required:
        - name
        - signature
        - description
        - example
      additionalProperties: false
    GetWorkflowCatalogResponseDataNodes:
      type: object
      properties:
        type:
          type: string
          description: Key, `<namespace>.<verb>` — triggers start with `on.`, flow nodes `flow.`, data nodes `data.`, lookups `get.`/`find.`.
        kind:
          type: string
          enum:
            - data
            - action
            - trigger
            - read
            - flow
        group:
          type: string
          enum:
            - data
            - storefront
            - listings
            - inventory
            - orders
            - shipping
            - account
            - offers
            - sales
            - inbox
            - notify
            - flow
            - triggers
            - pricing
            - social
            - ai
            - money
            - integrations
            - lookup
        label:
          type: string
        description:
          type: string
          description: One line, plain language, for the picker.
        icon:
          type: string
          description: lucide-react icon name (kebab-case), e.g. `tag`, `truck`, `git-branch`.
        keywords:
          type: array
          items:
            type: string
          nullable: true
          description: Search aliases for the picker ("markdown", "discount" for a sale).
        risk:
          type: string
          enum:
            - read
            - money
            - write
            - destructive
        itemMode:
          type: string
          enum:
            - perItem
            - batch
        inputs:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: "Input ports. Triggers: []. Most nodes: [{id:'main'}]. Merge: in_0..in_n (see dynamicPorts)."
        outputs:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Static output ports. A node with dynamic ports (switch cases) declares them through dynamicPorts.
        dynamicPorts:
          type: string
          enum:
            - switch_cases
            - merge_inputs
            - ab_split
          nullable: true
          description: Ports computed from params (flow.switch cases, flow.merge input count). Pure, shared by engine and editor.
        params:
          type: array
          items:
            type: object
            additionalProperties: {}
        outputSchema:
          type: object
          description: The fields of each output item (for the editor's variable picker and schema view). Per port; `*` = all ports.
          additionalProperties: {}
        plan:
          type: string
          nullable: true
          description: A feature/plan gate key (lib/plan-limits) checked at save and at run.
        trigger:
          $ref: "#/components/schemas/GetWorkflowCatalogResponseDataNodesTrigger"
        legacyId:
          type: string
          nullable: true
          description: Legacy automation catalog id this node replaces (rules/chains migration + v1 compatibility).
        status:
          type: string
          enum:
            - beta
            - ready
          nullable: true
          description: Shown in the picker but not yet runnable (a capture or an approval is missing).
      required:
        - type
        - kind
        - group
        - label
        - description
        - icon
        - risk
        - itemMode
        - inputs
        - outputs
        - params
        - outputSchema
      additionalProperties: false
    GetWorkflowCatalogResponseDataNodesTrigger:
      type: object
      properties:
        source:
          type: string
          enum:
            - schedule
            - manual
            - event
            - webhook
            - scan
            - workflow
          description: |-
            event   → fired by a domain event (fireTrigger / workflow trigger fanout)
            schedule→ cron / interval / daily / weekly window
            scan    → the scheduler finds entities that newly qualify (listing age, no views, unshipped after…), one item each
            manual  → "Run" in the editor, "Run workflow" on selected listings/orders, or the API
            webhook → an inbound HTTPS call to the workflow's webhook URL
            workflow→ called by another workflow's flow.execute_workflow node, or a workflow-error trigger
        event:
          type: string
          nullable: true
          description: The event key fireTrigger uses (`listing.sold`); defaults to the node type without `on.`.
        sample:
          type: object
          description: A representative payload for test runs and the editor's schema view when no real event exists yet.
          additionalProperties: {}
      required:
        - source
        - sample
      additionalProperties: false
      nullable: true
      description: "Trigger-only: how the trigger fires."
    GetWorkflowChainResponse:
      type: object
      properties:
        chain:
          $ref: "#/components/schemas/CreateWorkflowChainToggleResponseChain"
        steps:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowChainResponseSteps"
      required:
        - chain
        - steps
      additionalProperties: false
    GetWorkflowChainResponseSteps:
      type: object
      properties:
        id:
          type: string
        chainId:
          type: string
        position:
          type: number
        stepType:
          type: string
        actionId:
          type: string
          nullable: true
        actionConfig:
          type: object
          additionalProperties: {}
        waitMs:
          type: number
          nullable: true
      required:
        - id
        - chainId
        - position
        - stepType
        - actionConfig
      additionalProperties: false
    GetWorkflowExportResponse:
      type: object
      properties:
        format:
          type: string
        exportVersion:
          type: number
        exportedAt:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        templateId:
          type: string
          nullable: true
        graph:
          $ref: "#/components/schemas/GetWorkflowExportResponseGraph"
        stripped:
          type: array
          items:
            type: string
          description: "`nodeId.paramKey` / `settings.vars.<key>` paths that were blanked."
      required:
        - format
        - exportVersion
        - exportedAt
        - name
        - tags
        - graph
        - stripped
      additionalProperties: false
    GetWorkflowExportResponseGraph:
      type: object
      properties:
        version:
          type: number
        nodes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowExportResponseGraphNodes"
        edges:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowExportResponseGraphEdges"
        notes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowExportResponseGraphNotes"
          nullable: true
          description: Canvas-only sticky notes.
        settings:
          $ref: "#/components/schemas/GetWorkflowExportResponseGraphSettings"
      required:
        - version
        - nodes
        - edges
      additionalProperties: false
    GetWorkflowExportResponseGraphEdges:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        sourcePort:
          type: string
          description: An output port id of the source node (`main`, `true`, `false`, `case_<n>`, `fallback`, `loop`, `done`, `error`…).
        target:
          type: string
        targetPort:
          type: string
          description: An input port id of the target (`main`; merge nodes have `in_0`, `in_1`, …).
      required:
        - id
        - source
        - sourcePort
        - target
        - targetPort
      additionalProperties: false
    GetWorkflowExportResponseGraphNodes:
      type: object
      properties:
        id:
          type: string
          description: Stable id, `[a-z0-9_-]{1,40}`, unique in the graph. Edges reference it.
        type:
          type: string
          description: A node type key from the catalog, e.g. `on.listing.sold`, `listing.price_drop`, `flow.if`.
        name:
          type: string
          description: 'Display name, unique in the graph (case-insensitive). Expressions reference it: $node("Price drop").'
        params:
          type: object
          description: Param values keyed by ParamSpec.key. A value may be an expression string.
          additionalProperties: {}
        position:
          type: object
          additionalProperties: {}
        disabled:
          type: boolean
          nullable: true
        notes:
          type: string
          nullable: true
        retry:
          type: object
          nullable: true
          description: Per-node retry on a thrown/transient error.
          additionalProperties: {}
        timeoutMs:
          type: number
          nullable: true
        onError:
          type: string
          enum:
            - continue
            - inherit
            - stop
            - error_output
          nullable: true
          description: |-
            inherit  → the workflow setting (default stop)
            stop     → the run fails
            continue → the failed items pass through on the main output with `$json.error`
            error_output → the failed items go out of the node's `error` port (the port appears on the canvas)
        executeOnce:
          type: boolean
          nullable: true
          description: Run the node once even if it receives several items (the first item is $json). Overrides itemMode perItem.
        pinnedData:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
          description: "Test data the editor pins on a node: test runs use it instead of executing the node. Never used by live runs."
      required:
        - id
        - type
        - name
        - params
        - position
      additionalProperties: false
    GetWorkflowExportResponseGraphNotes:
      type: object
      properties:
        id:
          type: string
        text:
          type: string
        position:
          type: object
          additionalProperties: {}
        size:
          type: object
          additionalProperties: {}
        color:
          type: string
          enum:
            - yellow
            - blue
            - green
            - pink
            - purple
            - gray
          nullable: true
      required:
        - id
        - text
        - position
        - size
      additionalProperties: false
    GetWorkflowExportResponseGraphSettings:
      type: object
      properties:
        timezone:
          type: string
          nullable: true
          description: "IANA zone for schedule triggers, $now/$today and \"business hours\" waits. Default: the seller's zone, else UTC."
        onError:
          type: string
          enum:
            - continue
            - stop
          nullable: true
          description: "What a node error does when the node itself says `onError: 'inherit'` (the default)."
        errorWorkflowId:
          type: string
          nullable: true
          description: A workflow (with an `on.workflow_error` trigger) that runs when this one fails.
        maxConcurrentRuns:
          type: number
          nullable: true
          description: Concurrent runs of this workflow; extra runs queue. Default 5.
        vars:
          type: object
          nullable: true
          description: Static named values available as $vars in expressions.
          additionalProperties: {}
        saveSuccessData:
          type: boolean
          nullable: true
          description: Keep full per-node item data for successful runs (failed runs always keep it). Default true.
        notifyOnFailure:
          type: boolean
          nullable: true
          description: Push the seller when a live run fails. Default true.
        legacy:
          $ref: "#/components/schemas/GetWorkflowExportResponseGraphSettingsLegacy"
      additionalProperties: false
      nullable: true
    GetWorkflowExportResponseGraphSettingsLegacy:
      type: object
      properties:
        ref:
          type: string
        fingerprint:
          type: string
        runCount:
          type: number
          nullable: true
          description: Run count the old engine had recorded (rules).
        convertedAt:
          type: string
      required:
        - ref
        - fingerprint
        - convertedAt
      additionalProperties: false
      nullable: true
      description: |-
        Set on a workflow converted from a legacy automation rule / chain (docs/WORKFLOWS.md §10): which legacy row it
        came from and that row's definition at conversion time. Clients keep it untouched.
    GetWorkflowResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorkflowResponseData"
      required:
        - data
      additionalProperties: false
    GetWorkflowResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        active:
          type: boolean
        graph:
          $ref: "#/components/schemas/GetWorkflowExportResponseGraph"
        version:
          type: number
          description: Bumps on every save; a save names the version it edited (optimistic concurrency).
        templateId:
          type: string
          nullable: true
          description: Template the workflow was created from, for "update available" and analytics.
        tags:
          type: array
          items:
            type: string
        createdAt:
          type: string
        updatedAt:
          type: string
        lastRunAt:
          type: string
          nullable: true
        lastRunStatus:
          type: string
          enum:
            - cancelled
            - failed
            - queued
            - running
            - waiting
            - succeeded
          nullable: true
        triggerTypes:
          type: array
          items:
            type: string
          description: "Derived for list views: the trigger types and the node types in order."
        nodeTypes:
          type: array
          items:
            type: string
      required:
        - id
        - name
        - active
        - graph
        - version
        - tags
        - createdAt
        - updatedAt
        - triggerTypes
        - nodeTypes
      additionalProperties: false
    GetWorkflowRunNodeItem:
      type: object
      properties:
        status:
          type: string
          enum:
            - skipped
            - failed
            - running
            - waiting
            - succeeded
            - dry
            - pinned
        startedAt:
          type: string
        finishedAt:
          type: string
          nullable: true
        error:
          $ref: "#/components/schemas/GetWorkflowRunNodeItemError"
        nodeId:
          type: string
        attempt:
          type: number
        truncated:
          type: boolean
          nullable: true
        id:
          type: string
        seq:
          type: number
        nodeType:
          type: string
        inputCount:
          type: number
        outputCounts:
          type: object
          additionalProperties: {}
        durationMs:
          type: number
          nullable: true
        input:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowApprovalsItemItems"
          nullable: true
        output:
          type: object
          nullable: true
          additionalProperties: {}
        pruned:
          type: boolean
      required:
        - status
        - startedAt
        - nodeId
        - attempt
        - id
        - seq
        - nodeType
        - inputCount
        - outputCounts
        - pruned
      additionalProperties: false
    GetWorkflowRunNodeItemError:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
          nullable: true
        itemIndex:
          type: number
          nullable: true
      required:
        - message
      additionalProperties: false
      nullable: true
    GetWorkflowRunNodeResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowRunNodeItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    GetWorkflowRunResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorkflowRunResponseData"
      required:
        - data
      additionalProperties: false
    GetWorkflowRunResponseData:
      type: object
      properties:
        run:
          $ref: "#/components/schemas/GetWorkflowRunResponseDataRun"
        graph:
          $ref: "#/components/schemas/GetWorkflowRunResponseDataGraph"
        nodeRuns:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowRunResponseDataNodeRuns"
      required:
        - run
        - nodeRuns
      additionalProperties: false
    GetWorkflowRunResponseDataGraph:
      type: object
      properties:
        version:
          type: number
        nodes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowExportResponseGraphNodes"
        edges:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowExportResponseGraphEdges"
        notes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowExportResponseGraphNotes"
          nullable: true
          description: Canvas-only sticky notes.
        settings:
          $ref: "#/components/schemas/GetWorkflowExportResponseGraphSettings"
      required:
        - version
        - nodes
        - edges
      additionalProperties: false
      nullable: true
      description: The graph this run executed (its workflow_versions row), for the read-only execution canvas.
    GetWorkflowRunResponseDataNodeRuns:
      type: object
      properties:
        status:
          type: string
          enum:
            - skipped
            - failed
            - running
            - waiting
            - succeeded
            - dry
            - pinned
        startedAt:
          type: string
        finishedAt:
          type: string
          nullable: true
        error:
          $ref: "#/components/schemas/GetWorkflowRunNodeItemError"
        nodeId:
          type: string
        attempt:
          type: number
        truncated:
          type: boolean
          nullable: true
        id:
          type: string
        seq:
          type: number
        nodeType:
          type: string
        inputCount:
          type: number
        outputCounts:
          type: object
          additionalProperties: {}
        durationMs:
          type: number
          nullable: true
      required:
        - status
        - startedAt
        - nodeId
        - attempt
        - id
        - seq
        - nodeType
        - inputCount
        - outputCounts
      additionalProperties: false
    GetWorkflowRunResponseDataRun:
      type: object
      properties:
        id:
          type: string
        workflowId:
          type: string
        status:
          type: string
          enum:
            - cancelled
            - failed
            - queued
            - running
            - waiting
            - succeeded
        mode:
          type: string
          enum:
            - live
            - test
            - dry
        triggerNodeId:
          type: string
        triggerType:
          type: string
        startedAt:
          type: string
        finishedAt:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
        nodes:
          type: object
          description: nodeId → status + item counts per output port, for the canvas overlay.
          additionalProperties: {}
        workflowName:
          type: string
          nullable: true
        workflowVersion:
          type: number
        queuedAt:
          type: string
        resumeAt:
          type: string
          nullable: true
        errorNodeId:
          type: string
          nullable: true
        stopAfterNodeId:
          type: string
          nullable: true
        parentRunId:
          type: string
          nullable: true
        retryOfRunId:
          type: string
          nullable: true
        triggerItems:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowApprovalsItemItems"
      required:
        - id
        - workflowId
        - status
        - mode
        - triggerNodeId
        - triggerType
        - startedAt
        - nodes
        - workflowVersion
        - queuedAt
        - triggerItems
      additionalProperties: false
    GetWorldArcadeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldArcadeResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldArcadeResponseData:
      type: object
      properties:
        cabinets:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldArcadeResponseDataCabinets"
        scores:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldArcadeResponseDataScores"
        creatorGames:
          type: number
          description: Creators' games live in the Arcade right now.
      required:
        - cabinets
        - scores
        - creatorGames
      additionalProperties: false
    GetWorldArcadeResponseDataCabinets:
      type: object
      properties:
        slot:
          type: number
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          description: The cabinet body's spot (its back to the wall).
        rotationY:
          type: number
        host:
          type: string
          enum:
            - price_guess
            - piece
            - empty
        game:
          type: string
          description: "`arcade_cabinet`, `price_guess`, `connect_four`..., `c_<handle>` for a creator's game, '' when empty."
        title:
          type: string
          description: "On its screen and the wall: ASCII, at most 22 characters."
        blurb:
          type: string
          description: One line for the HUD card.
        piece:
          $ref: "#/components/schemas/GetWorldArcadeResponseDataCabinetsPiece"
        pieceIsCabinet:
          type: boolean
          description: "True when the piece IS the cabinet (Light Chase): no body is drawn for this slot."
        record:
          type: string
          enum:
            - light_chase
            - basketball
            - trivia
            - claw
          nullable: true
        packageId:
          type: string
          nullable: true
          description: "A creator's game: the directory id and thumbnail, the leaderboard order."
        thumbnail:
          type: string
          nullable: true
        scoreOrder:
          type: string
          enum:
            - asc
            - desc
          nullable: true
        players:
          type: string
        accent:
          type: number
          description: "Index into ARCADE_NEON: the screen's accent."
      required:
        - slot
        - position
        - rotationY
        - host
        - game
        - title
        - blurb
        - pieceIsCabinet
        - players
        - accent
      additionalProperties: false
    GetWorldArcadeResponseDataCabinetsPiece:
      type: object
      properties:
        model:
          type: string
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        rotationY:
          type: number
      required:
        - model
        - position
        - rotationY
      additionalProperties: false
      nullable: true
      description: The interactive piece it hosts, where it stands; null for Price Guess and an empty cabinet.
    GetWorldArcadeResponseDataScores:
      type: object
      properties:
        game:
          type: string
          description: The cabinet's `game`.
        title:
          type: string
        kind:
          type: string
          enum:
            - record
            - top
            - leaderboard
          description: "`leaderboard`: Price Guess's ranking; `record`: a piece's room record; `top`: a creator game's best scores."
        lines:
          type: array
          items:
            type: string
          description: ASCII, at most ARCADE_SCORE_ROWS.
      required:
        - game
        - title
        - kind
        - lines
      additionalProperties: false
    GetWorldAssistantStatusResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldAssistantStatusResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldAssistantStatusResponseData:
      type: object
      properties:
        configured:
          type: boolean
          description: Crossly's key is configured on this server.
        ownKey:
          type: boolean
          description: The creator has a usable own AI key (Settings › Account & notifications › Your AI key).
        allowance:
          $ref: "#/components/schemas/GetWorldAssistantStatusResponseDataAllowance"
        models:
          $ref: "#/components/schemas/GetWorldAssistantStatusResponseDataModels"
      required:
        - configured
        - ownKey
        - allowance
      additionalProperties: false
    GetWorldAssistantStatusResponseDataAllowance:
      type: object
      properties:
        ok:
          type: boolean
        reason:
          type: string
          enum:
            - monthly
            - plan
            - daily
          nullable: true
          description: Why not (null when ok).
        message:
          type: string
          nullable: true
        requestsPerDay:
          type: number
        remainingToday:
          type: number
        monthlyMicroUsd:
          type: number
        remainingMicroUsd:
          type: number
        resetsAt:
          type: string
          nullable: true
          description: When the binding cap resets.
      required:
        - ok
        - requestsPerDay
        - remainingToday
        - monthlyMicroUsd
        - remainingMicroUsd
      additionalProperties: false
    GetWorldAssistantStatusResponseDataModels:
      type: object
      properties:
        build:
          type: string
        quick:
          type: string
      required:
        - build
        - quick
      additionalProperties: false
      nullable: true
    GetWorldAttendantResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldAttendantResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldAttendantResponseData:
      type: object
      properties:
        attendant:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendant"
        aiKey:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAiKey"
      required:
        - aiKey
      additionalProperties: false
    GetWorldAttendantResponseDataAiKey:
      type: object
      properties:
        connected:
          type: boolean
        provider:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
      required:
        - connected
      additionalProperties: false
    GetWorldAttendantResponseDataAttendant:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        name:
          type: string
        brain:
          type: string
          enum:
            - rules
            - agent
            - byok
        enabled:
          type: boolean
        appearance:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantAppearance"
        personality:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantPersonality"
        knowledge:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantKnowledge"
        languages:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantLanguagesItem"
        hours:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantHours"
        allowedActions:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantAllowedActions"
        showroomIds:
          type: array
          items:
            type: string
          description: The showrooms (spatial_scenes ids) it stands in.
      required:
        - id
        - createdAt
        - updatedAt
        - name
        - brain
        - enabled
        - appearance
        - personality
        - knowledge
        - languages
        - allowedActions
        - showroomIds
      additionalProperties: false
      nullable: true
    GetWorldAttendantResponseDataAttendantAllowedActions:
      type: object
      properties:
        answer:
          type: boolean
        offers:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantAllowedActionsOffers"
        holds:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantAllowedActionsHolds"
        handoff:
          type: boolean
      required:
        - answer
        - offers
        - holds
        - handoff
      additionalProperties: false
    GetWorldAttendantResponseDataAttendantAllowedActionsHolds:
      type: object
      properties:
        enabled:
          type: boolean
        minutes:
          type: number
      required:
        - enabled
        - minutes
      additionalProperties: false
    GetWorldAttendantResponseDataAttendantAllowedActionsOffers:
      type: object
      properties:
        enabled:
          type: boolean
        maxDiscountBps:
          type: number
      required:
        - enabled
        - maxDiscountBps
      additionalProperties: false
    GetWorldAttendantResponseDataAttendantAppearance:
      type: object
      properties:
        avatarModel:
          type: string
        outfit:
          type: string
        colours:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantAppearanceColours"
      required:
        - avatarModel
        - outfit
        - colours
      additionalProperties: false
    GetWorldAttendantResponseDataAttendantAppearanceColours:
      type: object
      properties:
        primary:
          type: string
        accent:
          type: string
      required:
        - primary
        - accent
      additionalProperties: false
      description: "#rrggbb"
    GetWorldAttendantResponseDataAttendantHours:
      type: object
      properties:
        timezone:
          type: string
        days:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantHoursDays"
      required:
        - timezone
        - days
      additionalProperties: false
      nullable: true
    GetWorldAttendantResponseDataAttendantHoursDays:
      type: object
      properties:
        "0":
          type: object
          nullable: true
          additionalProperties: {}
        "1":
          type: object
          nullable: true
          additionalProperties: {}
        "2":
          type: object
          nullable: true
          additionalProperties: {}
        "3":
          type: object
          nullable: true
          additionalProperties: {}
        "4":
          type: object
          nullable: true
          additionalProperties: {}
        "5":
          type: object
          nullable: true
          additionalProperties: {}
        "6":
          type: object
          nullable: true
          additionalProperties: {}
      additionalProperties: false
    GetWorldAttendantResponseDataAttendantKnowledge:
      type: object
      properties:
        listings:
          type: boolean
        policies:
          type: boolean
        faqs:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - listings
        - policies
        - faqs
      additionalProperties: false
    GetWorldAttendantResponseDataAttendantPersonality:
      type: object
      properties:
        tone:
          type: string
          enum:
            - friendly
            - formal
            - playful
            - expert
            - calm
        verbosity:
          type: string
          enum:
            - brief
            - normal
            - detailed
        greeting:
          type: string
        catchphrases:
          type: array
          items:
            type: string
      required:
        - tone
        - verbosity
        - greeting
        - catchphrases
      additionalProperties: false
    GetWorldAuroraResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldAuroraResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldAuroraResponseData:
      type: object
      properties:
        windowDays:
          type: number
        total:
          type: number
          description: Sales in the window (may be more than `sales`, which is capped).
        families:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldAuroraResponseDataFamilies"
          description: Per family, over the whole window.
        sales:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldAuroraResponseDataSales"
          description: Newest first, at most AURORA_MAX_RIBBONS.
        updatedAt:
          type: string
      required:
        - windowDays
        - total
        - families
        - sales
        - updatedAt
      additionalProperties: false
    GetWorldAuroraResponseDataFamilies:
      type: object
      properties:
        key:
          type: string
          enum:
            - other
            - media
            - cards
            - coins
            - jewellery
            - electronics
            - fashion
            - toys
        label:
          type: string
        colour:
          type: string
        count:
          type: number
      required:
        - key
        - label
        - colour
        - count
      additionalProperties: false
    GetWorldAuroraResponseDataSales:
      type: object
      properties:
        family:
          type: string
          enum:
            - other
            - media
            - cards
            - coins
            - jewellery
            - electronics
            - fashion
            - toys
        ageHours:
          type: number
          description: Whole hours since the sale (0 = this hour).
        fresh:
          type: boolean
          description: Sold in the last AURORA_FRESH_MS.
      required:
        - family
        - ageHours
        - fresh
      additionalProperties: false
    GetWorldAvatarBasicResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldAvatarBasicResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldAvatarBasicResponseData:
      type: object
      properties:
        colours:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldAvatarBasicResponseDataColours"
        garments:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldAvatarBasicResponseDataGarments"
        slots:
          type: array
          items:
            type: string
          minItems: 5
          maxItems: 5
        optional:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldAvatarBasicResponseDataOptionalItem"
        wornSlot:
          $ref: "#/components/schemas/GetWorldAvatarBasicResponseDataWornSlot"
        soles:
          type: object
          additionalProperties: {}
        noHat:
          type: string
        default:
          $ref: "#/components/schemas/GetWorldAvatarBasicResponseDataDefault"
      required:
        - colours
        - garments
        - slots
        - optional
        - wornSlot
        - soles
        - noHat
        - default
      additionalProperties: false
    GetWorldAvatarBasicResponseDataColours:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        hex:
          type: string
      required:
        - key
        - label
        - hex
      additionalProperties: false
    GetWorldAvatarBasicResponseDataDefault:
      type: object
      properties:
        top:
          type: string
        outer:
          type: string
          nullable: true
        bottom:
          type: string
        shoes:
          type: string
        hat:
          type: string
      required:
        - top
        - bottom
        - shoes
        - hat
      additionalProperties: false
    GetWorldAvatarBasicResponseDataGarments:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        model:
          type: string
          description: The kit mesh it is drawn with -- the same rigged garment a listing of one wears.
        slot:
          type: string
          enum:
            - top
            - shoes
            - outer
            - bottom
            - hat
        colours:
          type: array
          items:
            type: string
          description: The colourways it comes in, first is its default.
      required:
        - key
        - label
        - model
        - slot
        - colours
      additionalProperties: false
    GetWorldAvatarBasicResponseDataWornSlot:
      type: object
      properties:
        top:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
        shoes:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
        outer:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
        bottom:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
        hat:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
      required:
        - top
        - shoes
        - outer
        - bottom
        - hat
      additionalProperties: false
    GetWorldAvatarIdentityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldAvatarIdentityResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldAvatarIdentityResponseData:
      type: object
      properties:
        choice:
          type: string
          enum:
            - anonymous
            - named
          nullable: true
      additionalProperties: false
    GetWorldAvatarLoadoutResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldAvatarLoadoutResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldAvatarLoadoutResponseData:
      type: object
      properties:
        rigKey:
          type: string
        slots:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldAvatarLoadoutResponseDataSlotsItem"
          description: The slots this rig has, so a caller can render empty ones.
        worn:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldAvatarLoadoutResponseDataWorn"
      required:
        - rigKey
        - slots
        - worn
      additionalProperties: false
    GetWorldAvatarLoadoutResponseDataWorn:
      type: object
      properties:
        slot:
          type: string
          enum:
            - avatar_head
            - avatar_body
            - avatar_outer
            - avatar_legs
            - avatar_feet
            - avatar_back
        kind:
          type: string
          enum:
            - item
            - cosmetic
        equippedAt:
          type: string
        cosmetic:
          $ref: "#/components/schemas/GetWorldAvatarLoadoutResponseDataWornCosmetic"
        item:
          $ref: "#/components/schemas/GetWorldAvatarLoadoutResponseDataWornItem"
        mark:
          $ref: "#/components/schemas/GetWorldAvatarLoadoutResponseDataWornMark"
      required:
        - slot
        - kind
        - equippedAt
      additionalProperties: false
    GetWorldAvatarLoadoutResponseDataWornCosmetic:
      type: object
      properties:
        ownershipId:
          type: string
        cosmeticId:
          type: string
        sku:
          type: string
        name:
          type: string
        tier:
          type: string
        previewImageUrl:
          type: string
          nullable: true
        meshProfile:
          type: string
          nullable: true
          description: Generative profile in `scripts/models/`, plus its parameters.
        editionNumber:
          type: number
          nullable: true
          description: '"#7 of 100" — part of the product, not bookkeeping.'
        creatorSubjectId:
          type: string
          nullable: true
          description: Who designed it, for user-generated wearables. Null first-party.
      required:
        - ownershipId
        - cosmeticId
        - sku
        - name
        - tier
      additionalProperties: false
      nullable: true
    GetWorldAvatarLoadoutResponseDataWornItem:
      type: object
      properties:
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        marketSkuId:
          type: string
          nullable: true
        marketVariantId:
          type: string
          nullable: true
        identifiers:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - title
        - identifiers
      additionalProperties: false
      nullable: true
    GetWorldAvatarLoadoutResponseDataWornMark:
      type: object
      properties:
        verified:
          type: boolean
        verdict:
          type: string
          enum:
            - verified
            - revoked
            - no_receipt
            - no_identifier
        purchasedAt:
          type: string
          nullable: true
          description: ISO-8601. "Owned since March" is the badge.
        matchedIdentifier:
          type: string
          nullable: true
        sourcePlatform:
          type: string
          nullable: true
          description: |-
            Always 'crossly' when verified — the scope limit, rendered rather
            than implied away.
      required:
        - verified
        - verdict
      additionalProperties: false
      nullable: true
      description: |-
        NULL for a cosmetic. See the module docblock — "not a purchase
        claim" and "an unproven purchase claim" are different answers.
    GetWorldAvatarLookResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldAvatarLookResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldAvatarLookResponseData:
      type: object
      properties:
        look:
          $ref: "#/components/schemas/GetWorldAvatarLookResponseDataLook"
      additionalProperties: false
    GetWorldAvatarLookResponseDataLook:
      type: object
      properties:
        look:
          $ref: "#/components/schemas/GetWorldAvatarLookResponseDataLookLook"
        appearance:
          $ref: "#/components/schemas/ListWorldOutfitsItemAppearance"
      required:
        - appearance
      additionalProperties: false
      nullable: true
    GetWorldAvatarLookResponseDataLookLook:
      type: object
      properties:
        tone:
          type: number
          description: Index into `PRESENCE_TONES`.
        role:
          type: number
          description: Index into `PRESENCE_ROLES`.
      required:
        - tone
        - role
      additionalProperties: false
      nullable: true
      description: The handle they chose; null when they chose to stay anonymous.
    GetWorldAvatarNftBadgeResponse:
      type: object
      properties:
        badge:
          $ref: "#/components/schemas/GetWorldAvatarNftBadgeResponseBadge"
      additionalProperties: false
    GetWorldAvatarNftBadgeResponseBadge:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        image:
          type: string
      required:
        - chain
        - contract
        - tokenId
        - image
      additionalProperties: false
      nullable: true
    GetWorldBadgeMineResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldBadgeMineResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldBadgeMineResponseData:
      type: object
      properties:
        showOnProfile:
          type: boolean
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldBadgeMineResponseDataItems"
      required:
        - showOnProfile
        - items
      additionalProperties: false
    GetWorldBadgeMineResponseDataItems:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        iconUrl:
          type: string
          nullable: true
        earnedAt:
          type: string
        game:
          $ref: "#/components/schemas/GetWorldBadgeMineResponseDataItemsGame"
      required:
        - id
        - name
        - description
        - earnedAt
        - game
      additionalProperties: false
    GetWorldBadgeMineResponseDataItemsGame:
      type: object
      properties:
        experienceId:
          type: string
        key:
          type: string
        name:
          type: string
        href:
          type: string
      required:
        - experienceId
        - key
        - name
        - href
      additionalProperties: false
    GetWorldBillingRailResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldRailResponse"
      required:
        - data
      additionalProperties: false
    GetWorldCapabilityCatalogueResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldCapabilityCatalogueResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldCapabilityCatalogueResponseData:
      type: object
      properties:
        spec:
          type: string
        kinds:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldCapabilityCatalogueResponseDataKinds"
      required:
        - spec
        - kinds
      additionalProperties: false
    GetWorldCapabilityCatalogueResponseDataKinds:
      type: object
      properties:
        summary:
          type: string
          description: One line, for the collection page and "what does my NFT do".
        creatorOnly:
          type: boolean
          description: |-
            Reserved: every kind is open to every declarer (user decision 10-06: creative
            control everywhere). What a declaration may POINT AT is still checked --
            a gate or portal only into a place you own, your own designs and uploads
            (api services/world-kit/capability-refs.ts).
        review:
          type: string
          enum:
            - always
            - never
            - asset
          description: Needs a person's review before it is live (its asset, clip, quest or design).
        clients:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldCapabilityCatalogueResponseDataKindsClientsItem"
          description: Who honours it.
        kind:
          type: string
          enum:
            - portal
            - interactive
            - place
            - display
            - badge
            - perk
            - wear
            - emote
            - room_theme
            - pet
            - gate
            - quest
            - game_pass
      required:
        - summary
        - creatorOnly
        - review
        - clients
        - kind
      additionalProperties: false
    GetWorldCapabilityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldCapabilityResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldCapabilityResponseData:
      type: object
      properties:
        tokens:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldCapabilityResponseDataTokens"
        kinds:
          type: array
          items:
            type: string
          description: Every kind this person has from at least one token.
      required:
        - tokens
        - kinds
      additionalProperties: false
    GetWorldCapabilityResponseDataTokens:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        refId:
          type: string
          description: "A stable row id for this holding (token row; COSM ownership / mint): what a home `token` ref names."
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        capabilities:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - chain
        - contract
        - tokenId
        - refId
        - capabilities
      additionalProperties: false
    GetWorldCapabilityWearResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldCapabilityWearResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldCapabilityWearResponseData:
      type: object
      properties:
        picks:
          $ref: "#/components/schemas/GetWorldCapabilityWearResponseDataPicks"
        worn:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldCapabilityWearResponseDataWorn"
      required:
        - picks
        - worn
      additionalProperties: false
    GetWorldCapabilityWearResponseDataPicks:
      type: object
      properties:
        body:
          type: string
          nullable: true
        head:
          type: string
          nullable: true
        legs:
          type: string
          nullable: true
        feet:
          type: string
          nullable: true
        back:
          type: string
          nullable: true
      additionalProperties: false
    GetWorldCapabilityWearResponseDataWorn:
      type: object
      properties:
        model:
          type: string
          description: Model key — `item-tee`, `item-hoodie`. Never a URL, never an item id.
        slot:
          type: string
        verified:
          type: boolean
          description: "A real, verified purchase by this wearer (and its MONTH, `YYYY-MM`: provenance, never a price)."
        since:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
          description: What to call it on the label. Never a price.
        forSale:
          type: boolean
          nullable: true
          description: "A seller wearing their OWN live stock: offerable in-world. False for a possession."
        imageUrl:
          type: string
          nullable: true
          description: The SKU's public catalog photo (Crossly CDN only), for colour and print.
        sku:
          type: string
          nullable: true
          description: Public CATALOG product id (the /shop/market page), for "shop this". Not inventory.
        asset:
          type: string
          nullable: true
          description: An NFT wearable's model on OUR CDN (/api/public/mml/assets/<sha>.glb, reviewed; world-kit/wear.ts), loaded in place of a kit model (`model` = nft-wearable). Never third-party.
      required:
        - model
        - slot
        - verified
      additionalProperties: false
    GetWorldChartResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldChartResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldChartResponseData:
      type: object
      properties:
        chart:
          type: string
          enum:
            - friends
            - top-playing
            - trending
            - new-rising
            - top-rated
            - most-favorited
        label:
          type: string
        blurb:
          type: string
        genre:
          type: string
          enum:
            - shopping
            - other
            - social
            - strategy
            - hangout
            - simulation
            - obby
            - adventure
            - roleplay
            - sports
            - arcade
            - card_games
          nullable: true
        generatedAt:
          type: string
        entries:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldChartResponseDataEntries"
      required:
        - chart
        - label
        - blurb
        - generatedAt
        - entries
      additionalProperties: false
    GetWorldChartResponseDataEntries:
      type: object
      properties:
        rank:
          type: number
        value:
          type: number
        genre:
          type: string
          enum:
            - shopping
            - other
            - social
            - strategy
            - hangout
            - simulation
            - obby
            - adventure
            - roleplay
            - sports
            - arcade
            - card_games
        devices:
          type: array
          items:
            type: string
        maxPlayers:
          type: number
          nullable: true
          description: "Most players one server holds (null: unknown)."
        up:
          type: number
        down:
          type: number
        thumbsUp:
          type: number
          nullable: true
          description: "Whole-number thumbs-up percentage (null: no votes yet)."
        favorites:
          type: number
        sponsored:
          type: boolean
          description: 'Paid placement (06 section 9): `label` is then always "Sponsored".'
        label:
          type: string
          nullable: true
        campaignId:
          type: string
          nullable: true
        shop:
          $ref: "#/components/schemas/UsernameHref"
        icon:
          type: string
          nullable: true
          description: |-
            A Carnival game's square icon (1176 media role "icon", approved; falls back to the thumbnail). `thumbnail` is then
            the creator's thumbnail role, else the first approved screenshot, else the experience icon. Absent elsewhere.
        key:
          type: string
        kind:
          type: string
          enum:
            - worlds
            - classic
            - first_party
            - tcg_table
        row:
          type: string
          enum:
            - new
            - top
            - friends
            - more
        slot:
          type: number
          description: "Position in the layout: 0..11 the portal ring, then the rest."
        title:
          type: string
        subtitle:
          type: string
          description: "ASCII, short: the creator, or what it is."
        thumbnail:
          type: string
          nullable: true
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        descriptors:
          type: array
          items:
            type: string
          nullable: true
          description: Content descriptors from the rating questionnaire (IARC style), shown with the badge on every surface.
        stars:
          $ref: "#/components/schemas/AverageCount2"
        ccu:
          type: number
          description: Players in it now (every api container, refreshed every few seconds).
        friends:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Your friends in it now (mutual follows), at most five named; `friendsCount` is all of them.
        friendsCount:
          type: number
        firstParty:
          type: boolean
        newAndRising:
          type: boolean
          description: In its guaranteed test impressions ("New & rising").
        score:
          type: number
          description: The ranking composite over the last 28 days (discoveryScore).
        play:
          $ref: "#/components/schemas/HrefPlace"
      required:
        - rank
        - value
        - genre
        - devices
        - up
        - down
        - favorites
        - sponsored
        - key
        - kind
        - row
        - slot
        - title
        - subtitle
        - rating
        - ccu
        - friends
        - friendsCount
        - firstParty
        - newAndRising
        - score
        - play
      additionalProperties: false
    GetWorldChestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldChestResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldChestResponseData:
      type: object
      properties:
        window:
          type: number
        spot:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
        endsAt:
          type: string
        mine:
          $ref: "#/components/schemas/GetWorldChestResponseDataMine"
      required:
        - window
        - spot
        - endsAt
      additionalProperties: false
    GetWorldChestResponseDataMine:
      type: object
      properties:
        openedThis:
          type: boolean
        opened:
          type: number
      required:
        - openedThis
        - opened
      additionalProperties: false
      nullable: true
      description: Signed in only.
    GetWorldCollectionCapabilityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldCapabilityDeclarationsItem"
      required:
        - data
      additionalProperties: false
    GetWorldContestMineResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldContestMineResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldContestMineResponseData:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldContestMineResponseDataEntries"
        prizes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldContestMineResponseDataPrizes"
      required:
        - entries
        - prizes
      additionalProperties: false
    GetWorldContestMineResponseDataEntries:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        attempts:
          type: number
        stripePaymentIntentId:
          type: string
          nullable: true
        contestId:
          type: string
        bestScore:
          type: number
          nullable: true
        bestAt:
          type: string
          format: date-time
          nullable: true
        paymentState:
          type: string
          enum:
            - pending
            - none
            - failed
            - refunded
            - paid
      required:
        - id
        - createdAt
        - userId
        - attempts
        - contestId
        - paymentState
      additionalProperties: false
    GetWorldContestMineResponseDataPrizes:
      type: object
      properties:
        id:
          type: string
        ref:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        status:
          type: string
          enum:
            - failed
            - granted
            - owed_cbx
            - owed_cosm
            - owed_item
            - owed_pin
        kind:
          type: string
        amount:
          type: number
        note:
          type: string
          nullable: true
        place:
          type: number
        contestId:
          type: string
      required:
        - id
        - createdAt
        - userId
        - status
        - kind
        - amount
        - place
        - contestId
      additionalProperties: false
    GetWorldControlResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldControlResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldControlResponseData:
      type: object
      properties:
        prefs:
          $ref: "#/components/schemas/GetWorldControlResponseDataPrefs"
        tutorialSeen:
          type: boolean
          description: Whether the first-time controls tutorial has been finished or skipped.
      required:
        - prefs
        - tutorialSeen
      additionalProperties: false
    GetWorldControlResponseDataPrefs:
      type: object
      properties:
        lookSensitivity:
          type: number
          description: Multiplies the look rate (drag to look). 0.5 - 2.
        invertLook:
          type: boolean
          description: Drag up looks down (both axes flip, as the orbit camera turns as one).
        stickSize:
          type: string
          enum:
            - small
            - large
            - medium
        leftHanded:
          type: boolean
          description: The stick on the right thumb, look on the left.
        cameraDistance:
          type: string
          enum:
            - close
            - normal
            - far
          description: How far the camera sits behind you by default (walls still pull it in).
        reduceCameraMotion:
          type: boolean
          description: "No look inertia, no auto-recentre swing, gentler zoom: for motion sensitivity."
        tapToWalk:
          type: boolean
          description: Tap the floor to walk there.
        haptics:
          type: boolean
          description: Short vibrations on arrival and interactions, where the device has them.
      required:
        - lookSensitivity
        - invertLook
        - stickSize
        - leftHanded
        - cameraDistance
        - reduceCameraMotion
        - tapToWalk
        - haptics
      additionalProperties: false
    GetWorldConventionExhibitResponse:
      type: object
      properties:
        convention:
          $ref: "#/components/schemas/GetWorldConventionExhibitResponseConvention"
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldConventionExhibitResponseTiers"
        walkIn:
          $ref: "#/components/schemas/GetWorldConventionManageResponseWalkIn"
        rails:
          $ref: "#/components/schemas/GetWorldConventionExhibitResponseRails"
        mine:
          $ref: "#/components/schemas/GetWorldConventionExhibitResponseMine"
      required:
        - convention
        - tiers
        - rails
      additionalProperties: false
    GetWorldConventionExhibitResponseConvention:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        opensHour:
          type: number
        closesHour:
          type: number
        timezone:
          type: string
        theme:
          type: string
        bookingMode:
          type: string
        revenueShareBps:
          type: number
        categories:
          type: array
          items:
            type: string
        tiered:
          type: boolean
          description: True for a convention made on the full page (tiers); false for a legacy one (one table each).
        isHost:
          type: boolean
      required:
        - id
        - title
        - status
        - startsAt
        - endsAt
        - opensHour
        - closesHour
        - timezone
        - theme
        - bookingMode
        - revenueShareBps
        - categories
        - tiered
        - isHost
      additionalProperties: false
    GetWorldConventionExhibitResponseMine:
      type: object
      properties:
        exhibitorId:
          type: string
        status:
          type: string
        tierId:
          type: string
          nullable: true
        boothKey:
          type: string
          nullable: true
        feeCents:
          type: number
        paid:
          type: boolean
        paidCents:
          type: number
        paymentRail:
          type: string
          nullable: true
        checkedInAt:
          type: string
          nullable: true
        listingIds:
          type: array
          items:
            type: string
        capacity:
          type: number
      required:
        - exhibitorId
        - status
        - feeCents
        - paid
        - paidCents
        - listingIds
        - capacity
      additionalProperties: false
      nullable: true
    GetWorldConventionExhibitResponseRails:
      type: object
      properties:
        effective:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldConventionExhibitResponseRailsEffectiveItem"
        showCbxNotLive:
          type: boolean
      required:
        - effective
        - showCbxNotLive
      additionalProperties: false
    GetWorldConventionExhibitResponseTiers:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        size:
          type: string
          enum:
            - small
            - large
            - medium
        priceCents:
          type: number
        count:
          type: number
        left:
          type: number
        capacity:
          type: number
        perks:
          type: array
          items:
            type: string
      required:
        - id
        - name
        - size
        - priceCents
        - count
        - left
        - capacity
        - perks
      additionalProperties: false
    GetWorldConventionHallResponse:
      type: object
      properties:
        doc:
          $ref: "#/components/schemas/GetWorldConventionHallResponseDoc"
        version:
          type: number
        context:
          $ref: "#/components/schemas/GetWorldConventionHallResponseContext"
        problems:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldConventionHallResponseProblems"
      required:
        - version
        - context
        - problems
      additionalProperties: false
    GetWorldConventionHallResponseContext:
      type: object
      properties:
        widthM:
          type: number
        depthM:
          type: number
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldConventionHallResponseContextTiers"
      required:
        - widthM
        - depthM
        - tiers
      additionalProperties: false
    GetWorldConventionHallResponseContextTiers:
      type: object
      properties:
        id:
          type: string
        size:
          type: string
          enum:
            - small
            - large
            - medium
        count:
          type: number
        name:
          type: string
          nullable: true
      required:
        - id
        - size
        - count
      additionalProperties: false
    GetWorldConventionHallResponseDoc:
      type: object
      properties:
        target:
          type: string
        version:
          type: string
        objects:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldConventionHallResponseDocObjects"
      required:
        - target
        - version
        - objects
      additionalProperties: false
      nullable: true
    GetWorldConventionHallResponseDocObjects:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - stage
            - booth
            - sign
            - kiosk
            - entrance
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        rotationY:
          type: number
        props:
          type: object
          description: "booth: {tierId, boothKey}; sign: {text}; others: {}."
          additionalProperties: {}
      required:
        - id
        - kind
        - position
        - rotationY
        - props
      additionalProperties: false
    GetWorldConventionHallResponseProblems:
      type: object
      properties:
        objectId:
          type: string
          nullable: true
        level:
          type: string
          enum:
            - warning
            - error
          description: "'error' refuses the save; 'warning' saves and says so."
        message:
          type: string
      required:
        - level
        - message
      additionalProperties: false
    GetWorldConventionManageResponse:
      type: object
      properties:
        convention:
          $ref: "#/components/schemas/GetWorldConventionManageResponseConvention"
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldConventionManageResponseTiers"
        walkIn:
          $ref: "#/components/schemas/GetWorldConventionManageResponseWalkIn"
        sellers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldConventionManageResponseSellers"
        venue:
          $ref: "#/components/schemas/GetWorldConventionManageResponseVenue"
      required:
        - convention
        - tiers
        - sellers
      additionalProperties: false
    GetWorldConventionManageResponseConvention:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - draft
            - live
            - cancelled
            - open
            - ended
        startsAt:
          type: string
        endsAt:
          type: string
        opensHour:
          type: number
        closesHour:
          type: number
        timezone:
          type: string
        theme:
          type: string
        bookingMode:
          type: string
        revenueShareBps:
          type: number
        sellerEventId:
          type: string
          nullable: true
        floorPlanVersion:
          type: number
      required:
        - id
        - title
        - status
        - startsAt
        - endsAt
        - opensHour
        - closesHour
        - timezone
        - theme
        - bookingMode
        - revenueShareBps
        - floorPlanVersion
      additionalProperties: false
    GetWorldConventionManageResponseSellers:
      type: object
      properties:
        exhibitorId:
          type: string
        userId:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - accepted
            - declined
            - applied
            - withdrawn
            - invited
        tierId:
          type: string
          nullable: true
        boothKey:
          type: string
          nullable: true
        feeCents:
          type: number
        paidCents:
          type: number
        paid:
          type: boolean
        paymentRail:
          type: string
          nullable: true
        checkedInAt:
          type: string
          nullable: true
        listingIds:
          type: array
          items:
            type: string
        note:
          type: string
          nullable: true
        appliedAt:
          type: string
      required:
        - exhibitorId
        - userId
        - name
        - status
        - feeCents
        - paidCents
        - paid
        - listingIds
        - appliedAt
      additionalProperties: false
    GetWorldConventionManageResponseTiers:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        size:
          type: string
        priceCents:
          type: number
        count:
          type: number
        perks:
          type: array
          items:
            type: string
      required:
        - id
        - name
        - size
        - priceCents
        - count
        - perks
      additionalProperties: false
    GetWorldConventionManageResponseVenue:
      type: object
      properties:
        bookingId:
          type: string
        name:
          type: string
        size:
          type: string
          enum:
            - hall_s
            - hall_m
            - hall_l
            - full_floor
        startsOn:
          type: string
        endsOn:
          type: string
        totalCents:
          type: number
        rail:
          type: string
        status:
          type: string
      required:
        - bookingId
        - name
        - size
        - startsOn
        - endsOn
        - totalCents
        - rail
        - status
      additionalProperties: false
      nullable: true
    GetWorldConventionManageResponseWalkIn:
      type: object
      properties:
        app:
          type: string
        web:
          type: string
      required:
        - app
        - web
      additionalProperties: false
      nullable: true
      description: Where the organiser walks in to design the hall (the Worlds app's hall builder), and visitors walk in.
    GetWorldConventionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldConventionsItem"
      required:
        - data
      additionalProperties: false
    GetWorldConventionStatusPageResponse:
      type: object
      properties:
        conventionId:
          type: string
        status:
          type: string
        sellers:
          $ref: "#/components/schemas/GetWorldConventionStatusPageResponseSellers"
        booths:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldConventionStatusPageResponseBooths"
        attendance:
          $ref: "#/components/schemas/GetWorldConventionStatusPageResponseAttendance"
        sales:
          $ref: "#/components/schemas/GetWorldConventionStatusPageResponseSales"
        money:
          $ref: "#/components/schemas/GetWorldConventionStatusPageResponseMoney"
      required:
        - conventionId
        - status
        - sellers
        - booths
        - attendance
        - sales
        - money
      additionalProperties: false
    GetWorldConventionStatusPageResponseAttendance:
      type: object
      properties:
        walkIns:
          type: number
      required:
        - walkIns
      additionalProperties: false
    GetWorldConventionStatusPageResponseBooths:
      type: object
      properties:
        tierId:
          type: string
        name:
          type: string
        size:
          type: string
          enum:
            - small
            - large
            - medium
        count:
          type: number
        filled:
          type: number
      required:
        - tierId
        - name
        - size
        - count
        - filled
      additionalProperties: false
    GetWorldConventionStatusPageResponseMoney:
      type: object
      properties:
        boothFeesCents:
          type: number
        boothFeesPaid:
          type: number
        boothFeesOwed:
          type: number
      required:
        - boothFeesCents
        - boothFeesPaid
        - boothFeesOwed
      additionalProperties: false
    GetWorldConventionStatusPageResponseSales:
      type: object
      properties:
        count:
          type: number
        grossCents:
          type: number
        shareCents:
          type: number
      required:
        - count
        - grossCents
        - shareCents
      additionalProperties: false
    GetWorldConventionStatusPageResponseSellers:
      type: object
      properties:
        applied:
          type: number
        accepted:
          type: number
        checkedIn:
          type: number
        declined:
          type: number
      required:
        - applied
        - accepted
        - checkedIn
        - declined
      additionalProperties: false
    GetWorldCosmBalanceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldCosmBalanceResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldCosmBalanceResponseData:
      type: object
      properties:
        available:
          type: boolean
        reason:
          type: string
          nullable: true
        subjectId:
          type: string
          nullable: true
        baseUnits:
          type: string
        decimals:
          type: number
      required:
        - available
        - baseUnits
        - decimals
      additionalProperties: false
    GetWorldCrewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldCrewResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldCrewResponseData:
      type: object
      properties:
        crew:
          $ref: "#/components/schemas/GetWorldCrewResponseDataCrew"
        members:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldCrewResponseDataMembers"
      required:
        - members
      additionalProperties: false
    GetWorldCrewResponseDataCrew:
      type: object
      properties:
        name:
          type: string
        tag:
          type: string
        code:
          type: string
        owner:
          type: boolean
        homeSlug:
          type: string
          nullable: true
      required:
        - name
        - tag
        - code
        - owner
      additionalProperties: false
      nullable: true
      description: "`homeSlug`: the crew's hangout -- its owner's home, when they have one that is not locked (Wave 4.9)."
    GetWorldCrewResponseDataMembers:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        you:
          type: boolean
        room:
          $ref: "#/components/schemas/NameSlug2"
      required:
        - userId
        - name
        - you
      additionalProperties: false
    GetWorldDiscoverRowResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldDiscoverRowResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldDiscoverRowResponseData:
      type: object
      properties:
        weights:
          type: string
        generatedAt:
          type: string
        rows:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldDiscoverRowResponseDataRows"
      required:
        - weights
        - generatedAt
        - rows
      additionalProperties: false
    GetWorldDiscoverRowResponseDataRows:
      type: object
      properties:
        id:
          type: string
          enum:
            - worlds
            - continue
            - featured
            - friends
            - classic
            - sponsored
            - recommended
            - top-playing
            - trending
            - new-rising
            - top-rated
            - shop-the-world
            - card-games
            - genre:shopping
            - genre:other
            - genre:social
            - genre:strategy
            - genre:hangout
            - genre:simulation
            - genre:obby
            - genre:adventure
            - genre:roleplay
            - genre:sports
            - genre:arcade
            - genre:card_games
        title:
          type: string
        chart:
          type: string
          enum:
            - friends
            - top-playing
            - trending
            - new-rising
            - top-rated
            - most-favorited
          nullable: true
          description: The chart the row previews ("See all" opens it), when it is one.
        genre:
          type: string
          enum:
            - shopping
            - other
            - social
            - strategy
            - hangout
            - simulation
            - obby
            - adventure
            - roleplay
            - sports
            - arcade
            - card_games
          nullable: true
        tiles:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - id
        - title
        - tiles
      additionalProperties: false
    GetWorldDmItem:
      type: object
      properties:
        id:
          type: string
        from:
          type: string
        text:
          type: string
        at:
          type: string
        mine:
          type: boolean
      required:
        - id
        - from
        - text
        - at
        - mine
      additionalProperties: false
    GetWorldDmResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldDmItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    GetWorldEarningPayoutAccountResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldEarningPayoutAccountResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldEarningResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldEarningResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldEarningResponseData:
      type: object
      properties:
        currency:
          type: string
        balances:
          $ref: "#/components/schemas/GetWorldEarningResponseDataBalances"
        payoutMinimumCents:
          type: number
        nextPayoutDate:
          type: string
        nextPayoutCents:
          type: number
        carriesForward:
          type: boolean
        eligibility:
          $ref: "#/components/schemas/GetWorldEarningResponseDataEligibility"
        termsVersion:
          type: number
        creatorSharePct:
          type: number
        maturityDays:
          type: number
      required:
        - currency
        - balances
        - payoutMinimumCents
        - nextPayoutDate
        - nextPayoutCents
        - carriesForward
        - eligibility
        - termsVersion
        - creatorSharePct
        - maturityDays
      additionalProperties: false
    GetWorldEarningResponseDataBalances:
      type: object
      properties:
        pendingCents:
          type: number
          description: Not yet matured (inside the chargeback window).
        availableCents:
          type: number
          description: "Matured and unpaid: what the next payout would send (if ≥ the minimum)."
        heldCents:
          type: number
          description: Matured but held (fraud review / policy hold).
        paidCents:
          type: number
        lifetimeCents:
          type: number
          description: Everything ever credited net of reversals.
      required:
        - pendingCents
        - availableCents
        - heldCents
        - paidCents
        - lifetimeCents
      additionalProperties: false
    GetWorldEarningResponseDataEligibility:
      type: object
      properties:
        eligible:
          type: boolean
        adult:
          type: boolean
        identityVerified:
          type: boolean
        payoutAccountReady:
          type: boolean
        countrySupported:
          type: boolean
        destinationKind:
          type: string
          enum:
            - creator
            - own_connect_fallback
          nullable: true
          description: "Where the next payout goes: the creator account, the person's own Connect account, or nowhere yet."
        missing:
          type: array
          items:
            type: string
          description: What is still needed, in words, in the order to do it.
      required:
        - eligible
        - adult
        - identityVerified
        - payoutAccountReady
        - countrySupported
        - missing
      additionalProperties: false
    GetWorldEconomyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldEconomyResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldEconomyResponseData:
      type: object
      properties:
        version:
          type: number
        effectiveAt:
          type: string
        terms:
          $ref: "#/components/schemas/GetWorldEconomyResponseDataTerms"
        scheduled:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldEconomyResponseDataScheduled"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldEconomyResponseDataHistory"
        formula:
          $ref: "#/components/schemas/GetWorldEconomyResponseDataFormula"
        guarantees:
          type: array
          items:
            type: string
      required:
        - version
        - effectiveAt
        - terms
        - scheduled
        - history
        - formula
        - guarantees
      additionalProperties: false
    GetWorldEconomyResponseDataFormula:
      type: object
      properties:
        net:
          type: string
        creatorShare:
          type: string
        toolbox:
          type: string
        cosm:
          type: string
        affiliate:
          type: string
        maturity:
          type: string
        payout:
          type: string
        eligibility:
          type: string
        creatorRewards:
          type: string
        inGameAds:
          type: string
        chargebacks:
          type: string
      required:
        - net
        - creatorShare
        - toolbox
        - cosm
        - affiliate
        - maturity
        - payout
        - eligibility
        - creatorRewards
        - inGameAds
        - chargebacks
      additionalProperties: false
    GetWorldEconomyResponseDataHistory:
      type: object
      properties:
        version:
          type: number
        summary:
          type: string
        announcedAt:
          type: string
        effectiveAt:
          type: string
      required:
        - version
        - summary
        - announcedAt
        - effectiveAt
      additionalProperties: false
    GetWorldEconomyResponseDataScheduled:
      type: object
      properties:
        version:
          type: number
        terms:
          $ref: "#/components/schemas/GetWorldEconomyResponseDataTerms"
        summary:
          type: string
        announcedAt:
          type: string
        effectiveAt:
          type: string
      required:
        - version
        - terms
        - summary
        - announcedAt
        - effectiveAt
      additionalProperties: false
    GetWorldEconomyResponseDataTerms:
      type: object
      properties:
        creatorCashShareBps:
          type: number
        toolboxShareBps:
          type: number
        cosmRoyaltyBps:
          type: number
        affiliateFeeShareBps:
          type: number
        attributionDays:
          type: number
        payoutMinimumCents:
          type: number
        maturityDays:
          type: number
        renewalGraceDays:
          type: number
        receiptRefundDays:
          type: number
        consumableSelfRefundMinutes:
          type: number
        rewardsPoolShareBps:
          type: number
          description: "Creator Rewards (0891): the pool's share of Crossly's net Worlds take, in bps."
        rewardsFormulaVersion:
          type: number
          description: "Creator Rewards formula version (0930): 1 = counted minutes, 2 = retention + new-player weights."
        rewardsRetentionBonusBps:
          type: number
          description: "v2: extra weight on a retained player's minutes, in bps (5000 = ×1.5)."
        rewardsNewPlayerBonusBps:
          type: number
          description: "v2: extra weight on a new player's minutes, in bps."
        adSurfaceShareBps:
          type: number
          description: |-
            In-experience ads (0910): the game creator's share of Crossly's ad REVENUE
            (the 80% revenue side of on-platform CBX ad spend) on clicks served in the
            game, paid only on the part of a charge settled from earned CBX.
      required:
        - creatorCashShareBps
        - toolboxShareBps
        - cosmRoyaltyBps
        - affiliateFeeShareBps
        - attributionDays
        - payoutMinimumCents
        - maturityDays
        - renewalGraceDays
        - receiptRefundDays
        - consumableSelfRefundMinutes
        - rewardsPoolShareBps
        - rewardsFormulaVersion
        - rewardsRetentionBonusBps
        - rewardsNewPlayerBonusBps
        - adSurfaceShareBps
      additionalProperties: false
    GetWorldEmoteShowableResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldEmoteShowableResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldEmoteShowableResponseData:
      type: object
      properties:
        listings:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldEmoteShowableResponseDataListings"
        collection:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldEmoteShowableResponseDataListings"
      required:
        - listings
        - collection
      additionalProperties: false
    GetWorldEmoteShowableResponseDataListings:
      type: object
      properties:
        ref:
          $ref: "#/components/schemas/GetWorldEmoteShowableResponseDataListingsRef"
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
      required:
        - ref
        - title
      additionalProperties: false
    GetWorldEmoteShowableResponseDataListingsRef:
      type: object
      properties:
        kind:
          type: string
          enum:
            - listing
            - collection
        id:
          type: string
      required:
        - kind
        - id
      additionalProperties: false
    GetWorldExperienceAccessLimitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceAccessLimitResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceAccessLimitResponseData:
      type: object
      properties:
        ownerCrew:
          $ref: "#/components/schemas/IdName2"
        crewId:
          type: string
          nullable: true
          description: The crew only its members may join with; null = no crew limit.
        countryMode:
          type: string
          enum:
            - allow
            - all
            - block
        countries:
          type: array
          items:
            type: string
          description: ISO 3166-1 alpha-2, upper-case. Empty when countryMode is 'all'.
      required:
        - countryMode
        - countries
      additionalProperties: false
    GetWorldExperienceAdReportResponse:
      type: object
      properties:
        report:
          $ref: "#/components/schemas/GetWorldExperienceAdReportResponseReport"
      required:
        - report
      additionalProperties: false
    GetWorldExperienceAdReportResponseReport:
      type: object
      properties:
        experienceId:
          type: string
        days:
          type: number
        enabled:
          type: boolean
        shareBps:
          type: number
        totals:
          $ref: "#/components/schemas/GetWorldExperienceAdReportResponseReportTotals"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAdReportResponseReportDaily"
      required:
        - experienceId
        - days
        - enabled
        - shareBps
        - totals
        - daily
      additionalProperties: false
    GetWorldExperienceAdReportResponseReportDaily:
      type: object
      properties:
        day:
          type: string
        impressions:
          type: number
        clicks:
          type: number
        chargedClicks:
          type: number
        spendCents:
          type: number
        earnedCents:
          type: number
      required:
        - day
        - impressions
        - clicks
        - chargedClicks
        - spendCents
        - earnedCents
      additionalProperties: false
    GetWorldExperienceAdReportResponseReportTotals:
      type: object
      properties:
        impressions:
          type: number
        clicks:
          type: number
        earnedCents:
          type: number
        spendCents:
          type: number
        chargedClicks:
          type: number
      required:
        - impressions
        - clicks
        - earnedCents
        - spendCents
        - chargedClicks
      additionalProperties: false
    GetWorldExperienceAdResponse:
      type: object
      properties:
        ads:
          $ref: "#/components/schemas/GetWorldExperienceAdResponseAds"
      required:
        - ads
      additionalProperties: false
    GetWorldExperienceAdResponseAds:
      type: object
      properties:
        label:
          type: string
        eligible:
          type: boolean
        reason:
          type: string
          nullable: true
        refreshAfterMs:
          type: number
        slots:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAdResponseAdsSlots"
      required:
        - label
        - eligible
        - refreshAfterMs
        - slots
      additionalProperties: false
    GetWorldExperienceAdResponseAdsSlots:
      type: object
      properties:
        adToken:
          type: string
        slug:
          type: string
        title:
          type: string
        thumbnail:
          type: string
          nullable: true
        priceCents:
          type: number
        salePriceCents:
          type: number
          nullable: true
        sellerDisplayName:
          type: string
          nullable: true
      required:
        - adToken
        - slug
        - title
        - priceCents
      additionalProperties: false
    GetWorldExperienceAdSettingResponse:
      type: object
      properties:
        settings:
          $ref: "#/components/schemas/GetWorldExperienceAdSettingResponseSettings"
      required:
        - settings
      additionalProperties: false
    GetWorldExperienceAdSettingResponseSettings:
      type: object
      properties:
        experienceId:
          type: string
        enabled:
          type: boolean
        shareBps:
          type: number
          description: The creator's share of Crossly's ad revenue in force now (economy term adSurfaceShareBps).
        updatedAt:
          type: string
          nullable: true
      required:
        - experienceId
        - enabled
        - shareBps
      additionalProperties: false
    GetWorldExperienceAlertSettingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceAlertSettingResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceAlertSettingResponseData:
      type: object
      properties:
        quietStart:
          type: number
          nullable: true
        quietEnd:
          type: number
          nullable: true
        utcOffsetMin:
          type: number
        rules:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAlertSettingResponseDataRules"
      required:
        - utcOffsetMin
        - rules
      additionalProperties: false
    GetWorldExperienceAlertSettingResponseDataRules:
      type: object
      properties:
        kind:
          type: string
          enum:
            - crash_spike
            - script_error_spike
            - retention_drop
            - revenue_drop
            - revenue_spike
            - economy_inflation
            - experiment_guardrail
        enabled:
          type: boolean
        threshold:
          type: number
        inbox:
          type: boolean
        webhook:
          type: boolean
      required:
        - kind
        - enabled
        - threshold
        - inbox
        - webhook
      additionalProperties: false
    GetWorldExperienceAnalyticResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf1Series:
      type: object
      properties:
        day:
          type: string
        sessions:
          type: number
        dau:
          type: number
        playtimeSeconds:
          type: number
        avgSessionSeconds:
          type: number
        newPlayers:
          type: number
        returningSessions:
          type: number
        bounces:
          type: number
        coplaySessions:
          type: number
      required:
        - day
        - sessions
        - dau
        - playtimeSeconds
        - avgSessionSeconds
        - newPlayers
        - returningSessions
        - bounces
        - coplaySessions
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf1SessionLength:
      type: object
      properties:
        bucket:
          type: string
        sessions:
          type: number
      required:
        - bucket
        - sessions
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf2Curve:
      type: object
      properties:
        day:
          type: number
        rate:
          type: number
          nullable: true
          description: Retained share (0..1), or null when the cohorts that reached this day hold fewer than MIN_COHORT players.
        cohort:
          type: number
          description: Players in the cohorts that reached this day.
        retained:
          type: number
      required:
        - day
        - cohort
        - retained
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf2Grid:
      type: object
      properties:
        cohortDay:
          type: string
        size:
          type: number
          nullable: true
        rates:
          type: array
          items:
            type: number
            nullable: true
      required:
        - cohortDay
        - rates
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf3Ledger:
      type: object
      properties:
        pendingCents:
          type: number
        availableCents:
          type: number
        paidCents:
          type: number
        commerceAffiliateCents:
          type: number
      required:
        - pendingCents
        - availableCents
        - paidCents
        - commerceAffiliateCents
      additionalProperties: false
      description: "The payout estimate: exactly the creator ledger the payout runs from."
    GetWorldExperienceAnalyticResponseDataOneOf3Lifetime:
      type: object
      properties:
        sales:
          type: number
        taxCents:
          type: number
        netCents:
          type: number
        refundedCents:
          type: number
        grossCents:
          type: number
        chargebackCents:
          type: number
        creatorShareCents:
          type: number
      required:
        - sales
        - taxCents
        - netCents
        - refundedCents
        - grossCents
        - chargebackCents
        - creatorShareCents
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf3Products:
      type: object
      properties:
        productId:
          type: string
        name:
          type: string
        kind:
          type: string
        sales:
          type: number
        grossCents:
          type: number
        taxCents:
          type: number
        refundedCents:
          type: number
        chargebackCents:
          type: number
        netCents:
          type: number
        creatorShareCents:
          type: number
      required:
        - productId
        - name
        - kind
        - sales
        - grossCents
        - taxCents
        - refundedCents
        - chargebackCents
        - netCents
        - creatorShareCents
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf3Series:
      type: object
      properties:
        day:
          type: string
        revenueNetCents:
          type: number
        creatorShareCents:
          type: number
        payers:
          type: number
        dau:
          type: number
      required:
        - day
        - revenueNetCents
        - creatorShareCents
        - payers
        - dau
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf3Totals:
      type: object
      properties:
        revenueNetCents:
          type: number
        creatorShareCents:
          type: number
        arpdauCents:
          type: number
        arppuCents:
          type: number
        payerConversion:
          type: number
          nullable: true
      required:
        - revenueNetCents
        - creatorShareCents
        - arpdauCents
        - arppuCents
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf4Funnels:
      type: object
      properties:
        name:
          type: string
        steps:
          type: array
          items:
            type: object
            additionalProperties: {}
        byVersion:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - name
        - steps
        - byVersion
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf5Currencies:
      type: object
      properties:
        currency:
          type: string
        series:
          type: array
          items:
            type: object
            additionalProperties: {}
        totals:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf5CurrenciesTotals"
        topSources:
          type: array
          items:
            type: object
            additionalProperties: {}
        topSinks:
          type: array
          items:
            type: object
            additionalProperties: {}
        inflation:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf5CurrenciesInflation"
      required:
        - currency
        - series
        - totals
        - topSources
        - topSinks
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf5CurrenciesInflation:
      type: object
      properties:
        kind:
          type: string
          enum:
            - crash_spike
            - script_error_spike
            - retention_drop
            - revenue_drop
            - revenue_spike
            - economy_inflation
            - experiment_guardrail
        severity:
          type: string
          enum:
            - warning
            - critical
        message:
          type: string
        data:
          type: object
          additionalProperties: {}
      required:
        - kind
        - severity
        - message
        - data
      additionalProperties: false
      nullable: true
    GetWorldExperienceAnalyticResponseDataOneOf5CurrenciesTotals:
      type: object
      properties:
        sources:
          type: number
        sinks:
          type: number
      required:
        - sources
        - sinks
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf6ClientFps:
      type: object
      properties:
        device:
          type: string
        platform:
          type: string
        reports:
          type: number
        loadMs:
          type: number
          nullable: true
        buckets:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - device
        - platform
        - reports
        - buckets
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf6Series:
      type: object
      properties:
        hour:
          type: string
        ccuPeak:
          type: number
        servers:
          type: number
        crashes:
          type: number
        errors:
          type: number
        tickP50:
          type: number
          nullable: true
        tickP95:
          type: number
          nullable: true
        cpuP95:
          type: number
          nullable: true
        heapMb:
          type: number
          nullable: true
        loadMs:
          type: number
          nullable: true
      required:
        - hour
        - ccuPeak
        - servers
        - crashes
        - errors
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf6TopErrors:
      type: object
      properties:
        key:
          type: string
        source:
          type: string
          nullable: true
        message:
          type: string
          nullable: true
        count:
          type: number
      required:
        - key
        - count
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf6Totals:
      type: object
      properties:
        servers:
          type: number
        crashes:
          type: number
        sessions:
          type: number
        errorSessions:
          type: number
        crashRate:
          type: number
          nullable: true
        errorSessionRate:
          type: number
          nullable: true
        tickP95:
          type: number
          nullable: true
      required:
        - servers
        - crashes
        - sessions
        - errorSessions
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf7Events:
      type: object
      properties:
        name:
          type: string
        firstSeenAt:
          type: string
        lastSeenAt:
          type: string
        events:
          type: number
        valueSum:
          type: number
        valueAvg:
          type: number
          nullable: true
        series:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - name
        - firstSeenAt
        - lastSeenAt
        - events
        - valueSum
        - series
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf8Prices:
      type: object
      properties:
        cpuHourUsd:
          type: number
        egressGbUsd:
          type: number
        serverHourUsd:
          type: number
      required:
        - cpuHourUsd
        - egressGbUsd
        - serverHourUsd
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf8Regions:
      type: object
      properties:
        cpuMinutes:
          type: number
        egressGb:
          type: number
        serverHours:
          type: number
        playerHours:
          type: number
        cost:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf8TotalsCost"
        region:
          type: string
      required:
        - cpuMinutes
        - egressGb
        - serverHours
        - playerHours
        - cost
        - region
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf8Series:
      type: object
      properties:
        cpuMinutes:
          type: number
        egressGb:
          type: number
        serverHours:
          type: number
        playerHours:
          type: number
        cost:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf8TotalsCost"
        day:
          type: string
      required:
        - cpuMinutes
        - egressGb
        - serverHours
        - playerHours
        - cost
        - day
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf8Totals:
      type: object
      properties:
        costPerPlayerHourUsd:
          type: number
          nullable: true
        cpuMinutes:
          type: number
        egressGb:
          type: number
        serverHours:
          type: number
        playerHours:
          type: number
        cost:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf8TotalsCost"
      required:
        - cpuMinutes
        - egressGb
        - serverHours
        - playerHours
        - cost
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOf8TotalsCost:
      type: object
      properties:
        cpuUsd:
          type: number
        egressUsd:
          type: number
        serversUsd:
          type: number
        totalUsd:
          type: number
      required:
        - cpuUsd
        - egressUsd
        - serversUsd
        - totalUsd
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOfAlerts:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        severity:
          type: string
        message:
          type: string
        firedAt:
          type: string
      required:
        - id
        - kind
        - severity
        - message
        - firedAt
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOfLive:
      type: object
      properties:
        ccu:
          type: number
        servers:
          type: number
      required:
        - ccu
        - servers
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOfPayout:
      type: object
      properties:
        lifetimeCreatorShareCents:
          type: number
        lifetimeNetCents:
          type: number
        pendingCents:
          type: number
        availableCents:
          type: number
        paidCents:
          type: number
        commerceAffiliateCents:
          type: number
        currency:
          type: string
      required:
        - lifetimeCreatorShareCents
        - lifetimeNetCents
        - pendingCents
        - availableCents
        - paidCents
        - commerceAffiliateCents
        - currency
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOfRetention:
      type: object
      properties:
        d1:
          type: number
          nullable: true
        d7:
          type: number
          nullable: true
        d28:
          type: number
          nullable: true
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOfSeries:
      type: object
      properties:
        day:
          type: string
        dau:
          type: number
        sessions:
          type: number
        newPlayers:
          type: number
        ccuPeak:
          type: number
        playtimeSeconds:
          type: number
        revenueNetCents:
          type: number
        creatorShareCents:
          type: number
        crashes:
          type: number
      required:
        - day
        - dau
        - sessions
        - newPlayers
        - ccuPeak
        - playtimeSeconds
        - revenueNetCents
        - creatorShareCents
        - crashes
      additionalProperties: false
    GetWorldExperienceAnalyticResponseDataOneOfTotals:
      type: object
      properties:
        plays:
          type: number
        dauAvg:
          type: number
        mau:
          type: number
        newPlayers:
          type: number
        returningSessions:
          type: number
        ccuPeak:
          type: number
        avgSessionSeconds:
          type: number
        playtimeHours:
          type: number
        firstPlayBounceRate:
          type: number
          nullable: true
        revenueNetCents:
          type: number
        creatorShareCents:
          type: number
        payers:
          type: number
        crashes:
          type: number
        errors:
          type: number
      required:
        - plays
        - dauAvg
        - mau
        - newPlayers
        - returningSessions
        - ccuPeak
        - avgSessionSeconds
        - playtimeHours
        - revenueNetCents
        - creatorShareCents
        - payers
        - crashes
        - errors
      additionalProperties: false
    GetWorldExperienceBadgeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceBadgeResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceBadgeResponseData:
      type: object
      properties:
        badges:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceBadgeResponseData"
        players:
          type: number
        limits:
          $ref: "#/components/schemas/GetWorldExperienceBadgeResponseDataLimits"
      required:
        - badges
        - players
        - limits
      additionalProperties: false
    GetWorldExperienceBadgeResponseDataLimits:
      type: object
      properties:
        maxPerExperience:
          type: number
          description: "Badges one game may define (disabled ones count: awards keep pointing at them)."
        nameMax:
          type: number
        descriptionMax:
          type: number
        awardBase:
          type: number
          description: "AwardBadge per server per minute: base + per player on the server."
        awardPerPlayer:
          type: number
        awardPerExperience:
          type: number
          description: AwardBadge across all of a game's servers per minute.
        readBase:
          type: number
          description: UserHasBadge / CheckUserBadges / GetBadgeInfo per server per minute.
        readPerPlayer:
          type: number
        checkMax:
          type: number
          description: CheckUserBadgesAsync takes at most this many ids.
      required:
        - maxPerExperience
        - nameMax
        - descriptionMax
        - awardBase
        - awardPerPlayer
        - awardPerExperience
        - readBase
        - readPerPlayer
        - checkMax
      additionalProperties: false
    GetWorldExperienceBanResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperienceBansItem"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceChatSettingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceChatSettingResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceChatSettingResponseData:
      type: object
      properties:
        textChat:
          type: boolean
        filter:
          type: string
          enum:
            - standard
            - strict
      required:
        - textChat
        - filter
      additionalProperties: false
    GetWorldExperienceDataUsageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceDataUsageResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceDataUsageResponseData:
      type: object
      properties:
        ccu:
          type: number
        servers:
          type: number
        lifetimePlayers:
          type: number
        datastore:
          $ref: "#/components/schemas/GetWorldExperienceDataUsageResponseDataDatastore"
        memory:
          $ref: "#/components/schemas/GetWorldExperienceDataUsageResponseDataMemory"
        messaging:
          $ref: "#/components/schemas/GetWorldExperienceDataUsageResponseDataMessaging"
      required:
        - ccu
        - servers
        - lifetimePlayers
        - datastore
        - memory
        - messaging
      additionalProperties: false
    GetWorldExperienceDataUsageResponseDataDatastore:
      type: object
      properties:
        requestsPerMinute:
          type: number
        storageBytes:
          type: number
        storageLimitBytes:
          type: number
        keys:
          type: number
      required:
        - requestsPerMinute
        - storageBytes
        - storageLimitBytes
        - keys
      additionalProperties: false
    GetWorldExperienceDataUsageResponseDataMemory:
      type: object
      properties:
        opsPerMinute:
          type: number
        bytes:
          type: number
          nullable: true
        limitBytes:
          type: number
          nullable: true
      required:
        - opsPerMinute
      additionalProperties: false
    GetWorldExperienceDataUsageResponseDataMessaging:
      type: object
      properties:
        publishesPerMinute:
          type: number
      required:
        - publishesPerMinute
      additionalProperties: false
    GetWorldExperienceDatastoreEntryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceDatastoreEntryResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceDatastoreEntryResponseData:
      type: object
      properties:
        store:
          type: string
        scope:
          type: string
        key:
          type: string
        version:
          type: number
        sizeBytes:
          type: number
        userIds:
          type: array
          items:
            type: string
        attributes:
          type: object
          additionalProperties: {}
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - store
        - scope
        - key
        - version
        - sizeBytes
        - userIds
        - attributes
        - createdAt
        - updatedAt
      additionalProperties: false
    GetWorldExperienceExperimentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceExperimentResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceExperimentResponseData:
      type: object
      properties:
        experiment:
          $ref: "#/components/schemas/ListWorldExperienceExperimentsItem"
        computedAt:
          type: string
        metrics:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceExperimentResponseDataMetrics"
        sampleSize:
          $ref: "#/components/schemas/GetWorldExperienceExperimentResponseDataSampleSize"
      required:
        - experiment
        - computedAt
        - metrics
        - sampleSize
      additionalProperties: false
    GetWorldExperienceExperimentResponseDataMetrics:
      type: object
      properties:
        metric:
          type: string
        binary:
          type: boolean
        variants:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - metric
        - binary
        - variants
      additionalProperties: false
    GetWorldExperienceExperimentResponseDataSampleSize:
      type: object
      properties:
        mde:
          type: number
        perVariant:
          type: number
          nullable: true
      required:
        - mde
      additionalProperties: false
    GetWorldExperienceGalleryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceGalleryResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceGalleryResponseData:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldExperienceGalleryRoleItem"
        limits:
          $ref: "#/components/schemas/GetWorldExperienceGalleryResponseDataLimits"
      required:
        - items
        - limits
      additionalProperties: false
    GetWorldExperienceGalleryResponseDataLimits:
      type: object
      properties:
        maxImages:
          type: number
          description: Shown (approved or pending) per game.
        maxVideos:
          type: number
        maxPending:
          type: number
          description: Waiting for review at once per game (a flood is refused, not queued).
        maxImageBytes:
          type: number
        maxVideoBytes:
          type: number
        maxCaption:
          type: number
      required:
        - maxImages
        - maxVideos
        - maxPending
        - maxImageBytes
        - maxVideoBytes
        - maxCaption
      additionalProperties: false
    GetWorldExperienceHttpResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceHttpResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceHttpResponseData:
      type: object
      properties:
        domains:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceHttpDomainResponseData"
        secrets:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceHttpResponseDataSecrets"
        limits:
          $ref: "#/components/schemas/GetWorldExperienceHttpResponseDataLimits"
        methods:
          type: array
          items:
            type: string
        rules:
          type: array
          items:
            type: string
          description: The rules in words, for the settings page and the docs.
      required:
        - domains
        - secrets
        - limits
        - methods
        - rules
      additionalProperties: false
    GetWorldExperienceHttpResponseDataLimits:
      type: object
      properties:
        maxUrlChars:
          type: number
        maxRequestBytes:
          type: number
        maxResponseBytes:
          type: number
        maxHeaders:
          type: number
        maxHeaderBytes:
          type: number
        timeoutMs:
          type: number
        maxRedirects:
          type: number
        perServerPerMinute:
          type: number
        perExperiencePerMinute:
          type: number
        perExperiencePerDay:
          type: number
      required:
        - maxUrlChars
        - maxRequestBytes
        - maxResponseBytes
        - maxHeaders
        - maxHeaderBytes
        - timeoutMs
        - maxRedirects
        - perServerPerMinute
        - perExperiencePerMinute
        - perExperiencePerDay
      additionalProperties: false
    GetWorldExperienceHttpResponseDataSecrets:
      type: object
      properties:
        name:
          type: string
        hosts:
          type: array
          items:
            type: string
        updatedAt:
          type: string
        placeholder:
          type: string
      required:
        - name
        - hosts
        - updatedAt
        - placeholder
      additionalProperties: false
    GetWorldExperienceLocalizationExportResponse:
      type: string
    GetWorldExperienceMaturityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceMaturityResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceMaturityResponseData:
      type: object
      properties:
        questions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceMaturityResponseDataQuestions"
        answers:
          $ref: "#/components/schemas/ListWorldExperiencePlacePublishesItemRatingAnswers"
        published:
          $ref: "#/components/schemas/GetWorldExperienceMaturityResponseDataPublished"
        pending:
          $ref: "#/components/schemas/GetWorldExperienceMaturityResponseDataPending"
      required:
        - questions
        - published
      additionalProperties: false
    GetWorldExperienceMaturityResponseDataPending:
      type: object
      properties:
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
          nullable: true
        descriptors:
          type: array
          items:
            type: string
      required:
        - descriptors
      additionalProperties: false
      nullable: true
      description: Answers saved here that take effect with the next reviewed publish.
    GetWorldExperienceMaturityResponseDataPublished:
      type: object
      properties:
        rating:
          type: string
        descriptors:
          type: array
          items:
            type: string
      required:
        - rating
        - descriptors
      additionalProperties: false
      description: The rating players see now.
    GetWorldExperienceMaturityResponseDataQuestions:
      type: object
      properties:
        key:
          type: string
          enum:
            - language
            - purchases
            - violence
            - blood
            - fear
            - crudeHumour
            - romance
            - nudity
            - substances
            - simulatedGambling
            - realMoneyGambling
            - userInteraction
            - randomItems
        label:
          type: string
        group:
          type: string
          enum:
            - never
            - content
            - interactive
          description: IARC descriptor group the question belongs to.
        choices:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
      required:
        - key
        - label
        - group
      additionalProperties: false
    GetWorldExperienceMemoryMapByKeyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceMemoryMapItem"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceMemoryMapItem:
      type: object
      properties:
        key:
          type: string
        version:
          type: number
        expiresAt:
          type: string
        sortKey:
          type: number
          nullable: true
      required:
        - key
        - version
        - expiresAt
      additionalProperties: false
    GetWorldExperienceMemoryMapResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceMemoryMapItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    GetWorldExperienceMemoryQueueResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceMemoryQueueResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceMemoryQueueResponseData:
      type: object
      properties:
        ready:
          type: number
        inFlight:
          type: number
        head:
          type: array
          items:
            $ref: "#/components/schemas/IdResponse"
      required:
        - ready
        - inFlight
        - head
      additionalProperties: false
    GetWorldExperienceModerationAppealResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceModerationAppealResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceModerationAppealResponseData:
      type: object
      properties:
        targets:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceModerationAppealResponseDataTargets"
        appeals:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldAppealsItem"
      required:
        - targets
        - appeals
      additionalProperties: false
    GetWorldExperienceModerationAppealResponseDataTargets:
      type: object
      properties:
        kind:
          type: string
          enum:
            - action
            - version
            - game
            - asset
        targetId:
          type: string
          description: "action: the action id · game: the game id · version: the publish request id · asset: the sha256."
        title:
          type: string
        detail:
          type: string
        decidedAt:
          type: string
        appealableUntil:
          type: string
        appeal:
          $ref: "#/components/schemas/GetWorldExperienceModerationAppealResponseDataTargetsAppeal"
      required:
        - kind
        - targetId
        - title
        - detail
        - decidedAt
        - appealableUntil
      additionalProperties: false
    GetWorldExperienceModerationAppealResponseDataTargetsAppeal:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - action
            - version
            - game
            - asset
        actionId:
          type: string
          nullable: true
        experienceId:
          type: string
          nullable: true
        targetRef:
          type: string
          nullable: true
        status:
          type: string
        statement:
          type: string
        evidence:
          type: array
          items:
            type: string
        decisionNote:
          type: string
          nullable: true
        createdAt:
          type: string
        decidedAt:
          type: string
          nullable: true
      required:
        - id
        - kind
        - status
        - statement
        - evidence
        - createdAt
      additionalProperties: false
      nullable: true
      description: The latest appeal of this target, if any; a new one is allowed only when none is open.
    GetWorldExperienceModerationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceModerationResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceModerationResponseData:
      type: object
      properties:
        experienceId:
          type: string
        moderationState:
          type: string
        moderationReason:
          type: string
          nullable: true
        moderationAt:
          type: string
          nullable: true
        rating:
          type: string
        latestReview:
          $ref: "#/components/schemas/GetWorldExperienceModerationResponseDataLatestReview"
        scan:
          $ref: "#/components/schemas/GetWorldExperienceModerationResponseDataScan"
        strikes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceModerationResponseDataStrikes"
        trustedLane:
          $ref: "#/components/schemas/GetWorldExperienceModerationResponseDataTrustedLane"
        openReports:
          type: number
        activeBans:
          type: number
        actions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceModerationResponseDataActions"
      required:
        - experienceId
        - moderationState
        - rating
        - strikes
        - trustedLane
        - openReports
        - activeBans
        - actions
      additionalProperties: false
    GetWorldExperienceModerationResponseDataActions:
      type: object
      properties:
        id:
          type: string
        action:
          type: string
        scope:
          type: string
        targetUserId:
          type: string
          nullable: true
        targetSub:
          type: string
          nullable: true
        experienceId:
          type: string
          nullable: true
        reason:
          type: string
        displayReason:
          type: string
          nullable: true
        rule:
          type: string
          nullable: true
        issuerKind:
          type: string
        reportId:
          type: string
          nullable: true
        applyToAlts:
          type: boolean
        carriedTo:
          type: number
        expiresAt:
          type: string
          nullable: true
        liftedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - action
        - scope
        - reason
        - issuerKind
        - applyToAlts
        - carriedTo
        - createdAt
      additionalProperties: false
    GetWorldExperienceModerationResponseDataLatestReview:
      type: object
      properties:
        requestId:
          type: string
        state:
          type: string
        lane:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        decidedAt:
          type: string
          nullable: true
      required:
        - requestId
        - state
      additionalProperties: false
      nullable: true
    GetWorldExperienceModerationResponseDataScan:
      type: object
      properties:
        verdict:
          type: string
          enum:
            - rejected
            - flagged
            - clean
        findings:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceModerationResponseDataScanFindings"
        assetFindings:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceModerationResponseDataScanAssetFindings"
      required:
        - verdict
        - findings
        - assetFindings
      additionalProperties: false
      nullable: true
    GetWorldExperienceModerationResponseDataScanAssetFindings:
      type: object
      properties:
        path:
          type: string
        reason:
          type: string
      required:
        - path
        - reason
      additionalProperties: false
    GetWorldExperienceModerationResponseDataScanFindings:
      type: object
      properties:
        rule:
          type: string
          enum:
            - dynamic-code
            - sandbox-reflection
            - host-api
            - obfuscation
            - hidden-admin
            - random-grant
        severity:
          type: string
          enum:
            - flag
            - reject
        path:
          type: string
        line:
          type: number
        column:
          type: number
        message:
          type: string
      required:
        - rule
        - severity
        - path
        - line
        - column
        - message
      additionalProperties: false
    GetWorldExperienceModerationResponseDataStrikes:
      type: object
      properties:
        id:
          type: string
        policyCode:
          type: string
        note:
          type: string
        createdAt:
          type: string
        expiresAt:
          type: string
        active:
          type: boolean
      required:
        - id
        - policyCode
        - note
        - createdAt
        - expiresAt
        - active
      additionalProperties: false
    GetWorldExperienceModerationResponseDataTrustedLane:
      type: object
      properties:
        trusted:
          type: boolean
        missing:
          type: array
          items:
            type: string
      required:
        - trusted
        - missing
      additionalProperties: false
    GetWorldExperienceNotificationOptInResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceNotificationOptInResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceNotificationOptInResponseData:
      type: object
      properties:
        experienceId:
          type: string
        optedIn:
          type: boolean
        source:
          type: string
          enum:
            - settings
            - event
            - game
            - detail
          nullable: true
        updatedAt:
          type: string
          nullable: true
      required:
        - experienceId
        - optedIn
      additionalProperties: false
    GetWorldExperienceNotificationReportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceNotificationReportResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceNotificationReportResponseData:
      type: object
      properties:
        days:
          type: number
        sent:
          type: number
        suppressed:
          type: number
        byReason:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceNotificationReportResponseDataByReason"
        byTemplate:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceNotificationReportResponseDataByTemplate"
        optedIn:
          type: number
      required:
        - days
        - sent
        - suppressed
        - byReason
        - byTemplate
        - optedIn
      additionalProperties: false
    GetWorldExperienceNotificationReportResponseDataByReason:
      type: object
      properties:
        reason:
          type: string
        count:
          type: number
      required:
        - reason
        - count
      additionalProperties: false
    GetWorldExperienceNotificationReportResponseDataByTemplate:
      type: object
      properties:
        key:
          type: string
        sent:
          type: number
        suppressed:
          type: number
      required:
        - key
        - sent
        - suppressed
      additionalProperties: false
    GetWorldExperienceOrderedItem:
      type: object
      properties:
        key:
          type: string
        value:
          type: number
        rank:
          type: number
          nullable: true
        updatedAt:
          type: string
      required:
        - key
        - value
        - updatedAt
      additionalProperties: false
    GetWorldExperienceOrderedResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceOrderedItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    GetWorldExperiencePlaceCollabOpResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceCollabOpResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceCollabOpResponseData:
      type: object
      properties:
        epoch:
          type: number
        seq:
          type: number
        frames:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperiencePlaceCollabOpResponseDataFrames"
      required:
        - epoch
        - seq
        - frames
      additionalProperties: false
    GetWorldExperiencePlaceCollabOpResponseDataFrames:
      type: object
      properties:
        type:
          type: string
        epoch:
          type: number
        from:
          type: string
          description: The sending editor's connection id (`rest:<n>` for REST batches).
        batch:
          type: string
        seqFrom:
          type: number
          description: seq of ops[0]; ops[i] has seq seqFrom + i.
        ops:
          type: array
          items: {}
        by:
          $ref: "#/components/schemas/GetWorldExperiencePlaceCollabOpResponseDataFramesBy"
      required:
        - type
        - epoch
        - from
        - batch
        - seqFrom
        - ops
      additionalProperties: false
    GetWorldExperiencePlaceCollabOpResponseDataFramesBy:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
      required:
        - userId
        - name
      additionalProperties: false
      nullable: true
    GetWorldExperiencePlaceCollabResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceCollabResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceCollabResponseData:
      type: object
      properties:
        epoch:
          type: number
        seq:
          type: number
        doc:
          $ref: "#/components/schemas/GetWorldExperiencePlaceCollabResponseDataDoc"
        draftRevision:
          type: number
        you:
          $ref: "#/components/schemas/GetWorldExperiencePlaceCollabResponseDataYou"
      required:
        - epoch
        - seq
        - doc
        - draftRevision
        - you
      additionalProperties: false
    GetWorldExperiencePlaceCollabResponseDataDoc:
      type: object
      properties:
        world:
          $ref: "#/components/schemas/GetWorldExperiencePlaceDraftResponseDataProjectWorld"
        nodes:
          type: object
          additionalProperties: {}
        roots:
          type: array
          items:
            type: string
          description: Service root ids in document order.
        files:
          type: array
          items:
            $ref: "#/components/schemas/PathText"
          nullable: true
          description: Non-Studio project files, carried through untouched.
      required:
        - world
        - nodes
        - roots
      additionalProperties: false
    GetWorldExperiencePlaceCollabResponseDataYou:
      type: object
      properties:
        role:
          type: string
          enum:
            - owner
            - admin
            - editor
            - scripter
            - builder
            - tester
            - analyst
        permissions:
          type: array
          items:
            type: string
      required:
        - role
        - permissions
      additionalProperties: false
    GetWorldExperiencePlaceDraftResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceDraftResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceDraftResponseData:
      type: object
      properties:
        placeId:
          type: string
        experienceId:
          type: string
        project:
          $ref: "#/components/schemas/GetWorldExperiencePlaceDraftResponseDataProject"
        revision:
          type: number
        bytes:
          type: number
        updatedAt:
          type: string
          nullable: true
        source:
          type: string
          enum:
            - draft
            - version
            - empty
          description: "Where this draft came from when it was never saved: the current version, or nothing yet."
      required:
        - placeId
        - experienceId
        - project
        - revision
        - bytes
        - source
      additionalProperties: false
    GetWorldExperiencePlaceDraftResponseDataProject:
      type: object
      properties:
        files:
          type: array
          items:
            $ref: "#/components/schemas/PathText"
          nullable: true
          description: Other project files carried through untouched (paths outside world.json / place.json).
        world:
          $ref: "#/components/schemas/GetWorldExperiencePlaceDraftResponseDataProjectWorld"
        place:
          $ref: "#/components/schemas/GetWorldExperiencePlaceDraftResponseDataProjectPlace"
      required:
        - world
        - place
      additionalProperties: false
    GetWorldExperiencePlaceDraftResponseDataProjectPlace:
      type: object
      properties:
        format:
          type: string
        services:
          type: object
          additionalProperties: {}
      required:
        - format
        - services
      additionalProperties: false
    GetWorldExperiencePlaceDraftResponseDataProjectWorld:
      type: object
      properties:
        name:
          type: string
        maxPlayers:
          type: number
          nullable: true
        tickRate:
          type: number
          nullable: true
        http:
          $ref: "#/components/schemas/GetWorldExperiencePlaceDraftResponseDataProjectWorldHttp"
        clientScripts:
          type: string
          enum:
            - optional
            - required
          nullable: true
          description: |-
            Client scripts (03 §3.2): "required" (default when the place has LocalScripts) keeps out a
            client that cannot run them (the native app, for now); "optional" lets it play without them.
      required:
        - name
      additionalProperties: false
    GetWorldExperiencePlaceDraftResponseDataProjectWorldHttp:
      type: object
      properties:
        domains:
          type: array
          items:
            type: string
          nullable: true
      additionalProperties: false
      nullable: true
      description: "HttpService (P6-4): domains server scripts call (`example.com`, `*.example.com`); recorded for review at publish."
    GetWorldExperiencePlaceStudioFindResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceStudioFindResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceStudioFindResponseData:
      type: object
      properties:
        seq:
          type: number
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperiencePlaceStudioFindResponseDataItems"
      required:
        - seq
        - items
      additionalProperties: false
    GetWorldExperiencePlaceStudioFindResponseDataItems:
      type: object
      properties:
        path:
          type: string
        id:
          type: string
        class:
          type: string
      required:
        - path
        - id
        - class
      additionalProperties: false
    GetWorldExperiencePlaceStudioInstanceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceStudioInstanceResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceStudioInstanceResponseData:
      type: object
      properties:
        path:
          type: string
        id:
          type: string
        class:
          type: string
        name:
          type: string
        parent:
          type: string
          nullable: true
        service:
          type: string
        isService:
          type: boolean
        props:
          type: object
          additionalProperties: {}
        attributes:
          type: object
          additionalProperties: {}
        tags:
          type: array
          items:
            type: string
        children:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperiencePlaceStudioInstanceResponseDataChildren"
        seq:
          type: number
      required:
        - path
        - id
        - class
        - name
        - service
        - isService
        - props
        - attributes
        - tags
        - children
        - seq
      additionalProperties: false
    GetWorldExperiencePlaceStudioInstanceResponseDataChildren:
      type: object
      properties:
        name:
          type: string
        class:
          type: string
      required:
        - name
        - class
      additionalProperties: false
    GetWorldExperiencePlaceStudioOutputResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceStudioOutputResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceStudioOutputResponseData:
      type: object
      properties:
        lines:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperiencePlaceStudioOutputResponseDataLines"
        cursor:
          type: number
        more:
          type: boolean
      required:
        - lines
        - cursor
        - more
      additionalProperties: false
    GetWorldExperiencePlaceStudioOutputResponseDataLines:
      type: object
      properties:
        id:
          type: number
        serverId:
          type: string
        test:
          type: boolean
        level:
          type: string
          enum:
            - info
            - error
            - warn
        source:
          type: string
        message:
          type: string
        at:
          type: string
      required:
        - id
        - serverId
        - test
        - level
        - source
        - message
        - at
      additionalProperties: false
    GetWorldExperiencePlaceStudioProblemResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceStudioProblemResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceStudioProblemResponseData:
      type: object
      properties:
        seq:
          type: number
        blocking:
          type: number
        warnings:
          type: number
        problems:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceCheckResponseDataProblems"
        budgets:
          $ref: "#/components/schemas/CreateWorldExperiencePlaceCheckResponseDataBudgets"
        sells:
          type: boolean
        publishable:
          type: boolean
      required:
        - seq
        - blocking
        - warnings
        - problems
        - sells
        - publishable
      additionalProperties: false
    GetWorldExperiencePlaceStudioScriptResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceStudioScriptResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceStudioScriptResponseData:
      type: object
      properties:
        seq:
          type: number
        path:
          type: string
        nodeId:
          type: string
        class:
          type: string
        context:
          type: string
          enum:
            - server
            - client
            - module
        source:
          type: string
        lint:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioScriptCommitResponseDataLint"
        draft:
          $ref: "#/components/schemas/GetWorldExperiencePlaceStudioScriptResponseDataDraft"
      required:
        - seq
        - path
        - nodeId
        - class
        - context
        - source
        - lint
      additionalProperties: false
    GetWorldExperiencePlaceStudioScriptResponseDataDraft:
      type: object
      properties:
        source:
          type: string
        baseSource:
          type: string
        stale:
          type: boolean
        updatedAt:
          type: string
        lint:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioScriptCommitResponseDataLint"
      required:
        - source
        - baseSource
        - stale
        - updatedAt
        - lint
      additionalProperties: false
      nullable: true
    GetWorldExperiencePlaceStudioSnapshotResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceStudioSnapshotResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceStudioSnapshotResponseData:
      type: object
      properties:
        view:
          type: string
          enum:
            - top
            - front
        svg:
          type: string
        parts:
          type: number
        bounds:
          $ref: "#/components/schemas/GetWorldExperiencePlaceStudioSnapshotResponseDataBounds"
        floating:
          type: array
          items:
            type: string
          description: Unanchored parts with nothing under them (they will fall at run time).
        spawns:
          type: array
          items:
            type: string
        truncated:
          type: boolean
          description: Drawn parts were capped (the biggest are kept).
        seq:
          type: number
      required:
        - view
        - svg
        - parts
        - floating
        - spawns
        - truncated
        - seq
      additionalProperties: false
    GetWorldExperiencePlaceStudioSnapshotResponseDataBounds:
      type: object
      properties:
        min:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        max:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
      required:
        - min
        - max
      additionalProperties: false
      nullable: true
    GetWorldExperiencePlaceStudioTreeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperiencePlaceStudioTreeResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperiencePlaceStudioTreeResponseData:
      type: object
      properties:
        root:
          type: string
          nullable: true
        depth:
          type: number
        nodes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperiencePlaceStudioTreeResponseDataNodes"
        truncated:
          type: boolean
          description: "Stopped at MAX_TREE_NODES: ask again with a narrower path or smaller depth."
        total:
          type: number
        seq:
          type: number
        role:
          type: string
          enum:
            - owner
            - admin
            - editor
            - scripter
            - builder
            - tester
            - analyst
      required:
        - depth
        - nodes
        - truncated
        - total
        - seq
        - role
      additionalProperties: false
    GetWorldExperiencePlaceStudioTreeResponseDataNodes:
      type: object
      properties:
        path:
          type: string
        id:
          type: string
        class:
          type: string
        name:
          type: string
        hiddenChildren:
          type: number
          description: Children not listed because of `depth` (0 when every child is listed).
        children:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
        sourceChars:
          type: number
          nullable: true
          description: "Scripts: the source length, so an agent knows what to read."
        tags:
          type: array
          items:
            type: string
          nullable: true
      required:
        - path
        - id
        - class
        - name
        - hiddenChildren
      additionalProperties: false
    GetWorldExperienceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceResponseData:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        description:
          type: string
        genre:
          type: string
        rating:
          type: string
        ratingDescriptors:
          type: array
          items:
            type: string
          description: Content descriptors + interactive elements from the rating questionnaire (0860).
        visibility:
          type: string
        status:
          type: string
        iconUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        devices:
          type: array
          items:
            type: string
        languages:
          type: array
          items:
            type: string
          description: "1170: Details (shared/carnival)."
        socialLinks:
          type: array
          items:
            $ref: "#/components/schemas/KindUrl"
        chatSettings:
          $ref: "#/components/schemas/TextChatFilter"
        template:
          type: string
          nullable: true
        reviewed:
          type: boolean
          description: A person has approved a publish of it (needed before it may be opened to the public).
        createdAt:
          type: string
        updatedAt:
          type: string
        places:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencePlacesItem"
        ccu:
          type: number
        servers:
          type: number
      required:
        - id
        - slug
        - name
        - description
        - genre
        - rating
        - ratingDescriptors
        - visibility
        - status
        - tags
        - devices
        - languages
        - socialLinks
        - chatSettings
        - reviewed
        - createdAt
        - updatedAt
        - places
        - ccu
        - servers
      additionalProperties: false
    GetWorldExperienceRevenueResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceRevenueResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceRevenueResponseData:
      type: object
      properties:
        currency:
          type: string
        totals:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf3Lifetime"
        products:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf3Products"
        ledger:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf3Ledger"
      required:
        - currency
        - totals
        - products
        - ledger
      additionalProperties: false
    GetWorldExperienceRewardResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceRewardResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceRewardResponseData:
      type: object
      properties:
        pool:
          $ref: "#/components/schemas/CreateWorldExperienceRewardDepositResponseDataPool"
        today:
          $ref: "#/components/schemas/GetWorldExperienceRewardResponseDataToday"
        definitions:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceRewardDefinitionResponseData"
        limits:
          $ref: "#/components/schemas/GetWorldExperienceRewardResponseDataLimits"
        rates:
          $ref: "#/components/schemas/GetWorldExperienceRewardResponseDataRates"
      required:
        - pool
        - today
        - definitions
        - limits
        - rates
      additionalProperties: false
    GetWorldExperienceRewardResponseDataLimits:
      type: object
      properties:
        minDepositCents:
          type: number
        maxDepositCents:
          type: number
        maxGrantCents:
          type: number
          description: One grant's value.
        maxPlayerDailyCents:
          type: number
        maxPlayerDailyGrants:
          type: number
        maxExperienceDailyCents:
          type: number
        maxPerRewardDaily:
          type: number
        maxDefinitions:
          type: number
      required:
        - minDepositCents
        - maxDepositCents
        - maxGrantCents
        - maxPlayerDailyCents
        - maxPlayerDailyGrants
        - maxExperienceDailyCents
        - maxPerRewardDaily
        - maxDefinitions
      additionalProperties: false
    GetWorldExperienceRewardResponseDataRates:
      type: object
      properties:
        cosm:
          type: string
        cbx:
          type: string
        free:
          type: string
        never:
          type: string
        card:
          type: string
      required:
        - cosm
        - cbx
        - free
        - never
        - card
      additionalProperties: false
    GetWorldExperienceRewardResponseDataToday:
      type: object
      properties:
        day:
          type: string
        grants:
          type: number
        grantedCents:
          type: number
        players:
          type: number
      required:
        - day
        - grants
        - grantedCents
        - players
      additionalProperties: false
    GetWorldExperienceShopResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceShopResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceShopResponseData:
      type: object
      properties:
        experienceId:
          type: string
        username:
          type: string
        displayName:
          type: string
          nullable: true
        href:
          type: string
        listings:
          type: number
      required:
        - experienceId
        - username
        - href
        - listings
      additionalProperties: false
    GetWorldExperienceShowcaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceShowcaseResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceShowcaseResponseData:
      type: object
      properties:
        showcase:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceShowcaseResponseDataShowcase"
        candidates:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceShowcaseResponseDataShowcase"
      required:
        - showcase
        - candidates
      additionalProperties: false
    GetWorldExperienceShowcaseResponseDataShowcase:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        price:
          type: string
        imageUrl:
          type: string
          nullable: true
        href:
          type: string
      required:
        - id
        - title
        - price
        - href
      additionalProperties: false
    GetWorldExperienceSplitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceSplitResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceSplitResponseData:
      type: object
      properties:
        current:
          $ref: "#/components/schemas/GetWorldExperienceSplitResponseDataCurrent"
        scheduled:
          $ref: "#/components/schemas/GetWorldExperienceSplitResponseDataScheduled"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceSplitResponseDataHistory"
      required:
        - current
        - history
      additionalProperties: false
    GetWorldExperienceSplitResponseDataCurrent:
      type: object
      properties:
        version:
          type: number
        shares:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceSplitResponseDataCurrentShares"
        effectiveAt:
          type: string
        announcedAt:
          type: string
      required:
        - version
        - shares
        - effectiveAt
        - announcedAt
      additionalProperties: false
    GetWorldExperienceSplitResponseDataCurrentShares:
      type: object
      properties:
        userId:
          type: string
        handle:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
        bps:
          type: number
      required:
        - userId
        - bps
      additionalProperties: false
    GetWorldExperienceSplitResponseDataHistory:
      type: object
      properties:
        version:
          type: number
        shares:
          type: array
          items:
            type: object
            additionalProperties: {}
        effectiveAt:
          type: string
        announcedAt:
          type: string
      required:
        - version
        - shares
        - effectiveAt
        - announcedAt
      additionalProperties: false
    GetWorldExperienceSplitResponseDataScheduled:
      type: object
      properties:
        version:
          type: number
        shares:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceSplitResponseDataCurrentShares"
        effectiveAt:
          type: string
        announcedAt:
          type: string
      required:
        - version
        - shares
        - effectiveAt
        - announcedAt
      additionalProperties: false
      nullable: true
    GetWorldExperienceStoreResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceStoreResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceStoreResponseData:
      type: object
      properties:
        experienceId:
          type: string
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceStoreResponseDataItems"
      required:
        - experienceId
        - items
      additionalProperties: false
    GetWorldExperienceStoreResponseDataItems:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        name:
          type: string
        description:
          type: string
        iconUrl:
          type: string
          nullable: true
        priceCents:
          type: number
        currency:
          type: string
        recurring:
          type: boolean
        paidRandom:
          type: boolean
        tradeable:
          type: boolean
        odds:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
        dropTableHash:
          type: string
          nullable: true
        owned:
          type: boolean
      required:
        - id
        - kind
        - name
        - description
        - priceCents
        - currency
        - recurring
        - paidRandom
        - tradeable
        - owned
      additionalProperties: false
    GetWorldExperienceTeamResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceTeamResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldExperienceTeamResponseData:
      type: object
      properties:
        you:
          $ref: "#/components/schemas/GetWorldExperienceTeamResponseDataYou"
        owner:
          $ref: "#/components/schemas/CreateWorldExperienceCollaboratorResponseData"
        collaborators:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceCollaboratorResponseData"
        limit:
          $ref: "#/components/schemas/GetWorldExperienceTeamResponseDataLimit"
      required:
        - you
        - owner
        - collaborators
        - limit
      additionalProperties: false
    GetWorldExperienceTeamResponseDataLimit:
      type: object
      properties:
        max:
          type: number
          nullable: true
        used:
          type: number
      required:
        - used
      additionalProperties: false
      description: The owner's plan cap (null = unlimited); invites count.
    GetWorldExperienceTeamResponseDataYou:
      type: object
      properties:
        role:
          type: string
          enum:
            - owner
            - admin
            - editor
            - scripter
            - builder
            - tester
            - analyst
        permissions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceTeamResponseDataYouPermissionsItem"
      required:
        - role
        - permissions
      additionalProperties: false
    GetWorldFireflyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldFireflyResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldFireflyResponseData:
      type: object
      properties:
        day:
          type: string
          description: "Today, UTC: 'YYYY-MM-DD'."
        today:
          type: number
          description: Fireflies everyone has caught today.
        mine:
          $ref: "#/components/schemas/GetWorldFireflyResponseDataMine"
      required:
        - day
        - today
      additionalProperties: false
    GetWorldFireflyResponseDataMine:
      type: object
      properties:
        today:
          type: number
        total:
          type: number
        perDay:
          type: number
      required:
        - today
        - total
        - perDay
      additionalProperties: false
      nullable: true
      description: "Signed in only: your catches today (of perDay) and ever (the pin comes at pinCount)."
    GetWorldFitStatResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldFitStatResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldFitStatResponseData:
      type: object
      properties:
        days:
          type: number
        people:
          type: number
        shops:
          type: number
        offers:
          type: number
      required:
        - days
        - people
        - shops
        - offers
      additionalProperties: false
    GetWorldFitValueResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldFitValueResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldFitValueResponseData:
      type: object
      properties:
        cents:
          type: number
        pieces:
          type: number
        priced:
          type: number
        share:
          type: boolean
      required:
        - cents
        - pieces
        - priced
        - share
      additionalProperties: false
    GetWorldFriendPlayingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldFriendPlayingResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldFriendPlayingResponseData:
      type: object
      properties:
        friends:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldFriendPlayingResponseDataFriends"
        playing:
          type: number
      required:
        - friends
        - playing
      additionalProperties: false
    GetWorldFriendPlayingResponseDataFriends:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        avatarUrl:
          type: string
          nullable: true
        playing:
          $ref: "#/components/schemas/GetWorldFriendPlayingResponseDataFriendsPlaying"
      required:
        - userId
        - name
      additionalProperties: false
    GetWorldFriendPlayingResponseDataFriendsPlaying:
      type: object
      properties:
        key:
          type: string
        title:
          type: string
        href:
          type: string
        thumbnail:
          type: string
          nullable: true
        joinable:
          type: boolean
      required:
        - key
        - title
        - href
        - joinable
      additionalProperties: false
      nullable: true
      description: What they are in right now, when it is an experience the launcher lists.
    GetWorldGameBadgeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGameBadgeResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGameBadgeResponseData:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameBadgeResponseDataItems"
        players:
          type: number
        earned:
          type: number
      required:
        - items
        - players
        - earned
      additionalProperties: false
    GetWorldGameBadgeResponseDataItems:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        iconUrl:
          type: string
          nullable: true
        awardedCount:
          type: number
        rarityPercent:
          type: number
          nullable: true
          description: Share of the game's players who hold it (null before anyone played).
        rarity:
          type: string
        earnedAt:
          type: string
          nullable: true
          description: When the signed-in viewer earned it; null = not yet (or signed out).
        createdAt:
          type: string
      required:
        - id
        - name
        - description
        - awardedCount
        - rarity
        - createdAt
      additionalProperties: false
    GetWorldGameByGameResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGameByGameResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGameByGameResponseData:
      type: object
      properties:
        key:
          type: string
        experienceId:
          type: string
          nullable: true
          description: "The Crossly Carnival game (Worlds engine experience) id (null: a Classic game, card game or table)."
        tile:
          $ref: "#/components/schemas/ListWorldRecentItem"
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        genreLabel:
          type: string
        creator:
          $ref: "#/components/schemas/GetWorldGameByGameResponseDataCreator"
        media:
          type: array
          items:
            type: string
          description: Gallery images, hosted by Crossly; the first is the tile's thumbnail.
        visits:
          type: number
          description: Sessions ever played.
        createdAt:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
        rating:
          $ref: "#/components/schemas/GetWorldGameByGameResponseDataRating"
        places:
          type: number
          description: Places in the experience (Worlds), 1 for anything else.
        serverBrowser:
          type: boolean
          description: "The Servers tab: public servers can be listed and joined one by one (Worlds)."
        store:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameByGameResponseDataStore"
        updates:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameByGameResponseDataUpdates"
        appLink:
          type: string
          nullable: true
          description: Opens it in the Crossly World app (Worlds only).
        showcase:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceShowcaseResponseDataShowcase"
          nullable: true
          description: |-
            Listings the creator showcases on the game's page (1193, Carnival Studio › Details › Showcase): their own live
            Crossly listings, in their order; `href` opens the shop page. Optional: Classic games and older clients have none.
        gallery:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameByGameResponseDataGallery"
          description: |-
            The creator's gallery (screenshots and videos uploaded in Carnival Studio, shown once a
            person approved them; api services/worlds/gallery), in the creator's order. Approved
            screenshots also lead `media`, so a client that only reads `media` still shows them.
        art:
          $ref: "#/components/schemas/GetWorldGameByGameResponseDataArt"
      required:
        - key
        - tile
        - description
        - tags
        - genreLabel
        - creator
        - media
        - visits
        - rating
        - places
        - serverBrowser
        - store
        - updates
        - gallery
      additionalProperties: false
    GetWorldGameByGameResponseDataArt:
      type: object
      properties:
        icon:
          type: string
          nullable: true
        thumbnail:
          type: string
          nullable: true
        trailer:
          $ref: "#/components/schemas/GetWorldGameByGameResponseDataArtTrailer"
      additionalProperties: false
      nullable: true
      description: The game's art by role (1176;
    GetWorldGameByGameResponseDataArtTrailer:
      type: object
      properties:
        url:
          type: string
        posterUrl:
          type: string
          nullable: true
        external:
          $ref: "#/components/schemas/UpdateWorldExperienceGalleryRoleItemExternal"
      required:
        - url
      additionalProperties: false
      nullable: true
      description: "`external`: a YouTube / Vimeo trailer (its privacy-enhanced player, loaded only on a click); null: our own clip."
    GetWorldGameByGameResponseDataCreator:
      type: object
      properties:
        name:
          type: string
          description: "\"Crossly\" for a house experience, else the seller's name or"
        href:
          type: string
          nullable: true
          description: Their shop on Crossly, when they have one.
        house:
          type: boolean
      required:
        - name
        - house
      additionalProperties: false
    GetWorldGameByGameResponseDataGallery:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - image
            - video
        url:
          type: string
          description: The file on Crossly's CDN.
        posterUrl:
          type: string
          nullable: true
          description: "A video's still (null: none; show the game's art)."
        caption:
          type: string
        role:
          type: string
          enum:
            - trailer
            - thumbnail
            - icon
            - gallery
          nullable: true
          description: "Where it shows (1176): the gallery, or the game's icon / thumbnail / trailer (@crosslister/shared/carnival media.ts)."
        external:
          $ref: "#/components/schemas/UpdateWorldExperienceGalleryRoleItemExternal"
      required:
        - id
        - kind
        - url
        - caption
      additionalProperties: false
    GetWorldGameByGameResponseDataRating:
      type: object
      properties:
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        label:
          type: string
        descriptors:
          type: array
          items:
            type: string
          description: What raised the rating (IARC-style descriptors from the creator's questionnaire).
        notices:
          type: array
          items:
            type: string
          description: 'Interactive elements: "Users interact", "In-experience purchases".'
      required:
        - rating
        - label
        - descriptors
        - notices
      additionalProperties: false
    GetWorldGameByGameResponseDataStore:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - product
            - pass
            - subscription
            - private_server
            - paid_access
        name:
          type: string
        description:
          type: string
        iconUrl:
          type: string
          nullable: true
        priceCents:
          type: number
        currency:
          type: string
        recurring:
          type: boolean
        paidRandom:
          type: boolean
          description: "A paid random item: its odds are on the checkout sheet before paying."
        owned:
          type: boolean
          description: "Signed in: you already own it (passes, subscriptions, entry)."
      required:
        - id
        - kind
        - name
        - description
        - priceCents
        - currency
        - recurring
        - paidRandom
        - owned
      additionalProperties: false
    GetWorldGameByGameResponseDataUpdates:
      type: object
      properties:
        number:
          type: number
        notes:
          type: string
        at:
          type: string
      required:
        - number
        - notes
        - at
      additionalProperties: false
    GetWorldGameLeaderboardResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGameLeaderboardResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGameLeaderboardResponseData:
      type: object
      properties:
        packageId:
          type: string
        name:
          type: string
        scoring:
          $ref: "#/components/schemas/GetWorldGameLeaderboardResponseDataScoring"
        weekStartsAt:
          type: string
        week:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameLeaderboardResponseDataWeek"
        all:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameLeaderboardResponseDataWeek"
      required:
        - packageId
        - name
        - weekStartsAt
        - week
        - all
      additionalProperties: false
    GetWorldGameLeaderboardResponseDataScoring:
      type: object
      properties:
        kind:
          type: string
          enum:
            - points
            - wins
            - time
        order:
          type: string
          enum:
            - asc
            - desc
        leaderboard:
          type: boolean
      required:
        - kind
        - order
        - leaderboard
      additionalProperties: false
      nullable: true
      description: "null: this game keeps no leaderboard."
    GetWorldGameLeaderboardResponseDataWeek:
      type: object
      properties:
        rank:
          type: number
        name:
          type: string
        short:
          type: string
        named:
          type: boolean
        value:
          type: number
      required:
        - rank
        - name
        - short
        - named
        - value
      additionalProperties: false
    GetWorldGameMineAssetsUsedResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGameMineAssetsUsedResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGameMineAssetsUsedResponseData:
      type: object
      properties:
        engine:
          type: string
          enum:
            - world
            - classic
        versions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameMineAssetsUsedResponseDataVersions"
          description: "What was read: each place's published version number, or the Classic package version. Empty = not published yet."
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameMineAssetsUsedResponseDataItems"
      required:
        - engine
        - versions
        - items
      additionalProperties: false
    GetWorldGameMineAssetsUsedResponseDataItems:
      type: object
      properties:
        kind:
          type: string
          enum:
            - file
            - image
            - toolbox
            - script
            - sound
            - mesh
        key:
          type: string
          description: "A stable key: the upload's sha256, the Toolbox asset id, or the script / file path."
        name:
          type: string
        path:
          type: string
          nullable: true
          description: The public path an upload is served at (/api/public/mml/assets/<sha>.<ext>); null for scripts and Toolbox rows.
        bytes:
          type: number
          nullable: true
        detail:
          type: string
          nullable: true
          description: 'One line: "1,240 triangles", "Server script", "Paid Toolbox model".'
        places:
          type: array
          items:
            type: string
          description: The places (3D world) whose published version ships it.
      required:
        - kind
        - key
        - name
        - places
      additionalProperties: false
    GetWorldGameMineAssetsUsedResponseDataVersions:
      type: object
      properties:
        place:
          type: string
        version:
          type: string
      required:
        - place
        - version
      additionalProperties: false
    GetWorldGameMineResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGameMineResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGameMineResponseData:
      type: object
      properties:
        id:
          type: string
        engine:
          type: string
          enum:
            - world
            - classic
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - archived
            - unlisted
            - public
            - in_review
            - changes_requested
            - private
            - friends
            - deleted
        role:
          type: string
          enum:
            - owner
            - admin
            - editor
            - scripter
            - builder
            - tester
            - analyst
        permissions:
          type: array
          items:
            type: string
        tabs:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameMineResponseDataTabsItem"
        timeline:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameMineResponseDataTimeline"
        thumbnailUrl:
          type: string
          nullable: true
        playersNow:
          type: number
          nullable: true
        liveServers:
          type: number
        openReports:
          type: number
        moderation:
          $ref: "#/components/schemas/GetWorldGameMineResponseDataModeration"
        latestPublish:
          $ref: "#/components/schemas/GetWorldGameMineResponseDataLatestPublish"
        startPlaceId:
          type: string
          nullable: true
        experience:
          $ref: "#/components/schemas/GetWorldGameMineResponseDataExperience"
        classic:
          type: object
          nullable: true
          description: "Classic: the package with its versions and 30-day stats; 3D: null."
          additionalProperties: {}
        nextSteps:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameMineResponseDataNextSteps"
        deletedAt:
          type: string
          nullable: true
        restorableUntil:
          type: string
          nullable: true
      required:
        - id
        - engine
        - name
        - status
        - role
        - permissions
        - tabs
        - timeline
        - liveServers
        - openReports
        - moderation
        - nextSteps
      additionalProperties: false
    GetWorldGameMineResponseDataExperience:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        description:
          type: string
        genre:
          type: string
        rating:
          type: string
        ratingDescriptors:
          type: array
          items:
            type: string
          description: Content descriptors + interactive elements from the rating questionnaire (0860).
        visibility:
          type: string
        status:
          type: string
        iconUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        devices:
          type: array
          items:
            type: string
        languages:
          type: array
          items:
            type: string
          description: "1170: Details (shared/carnival)."
        socialLinks:
          type: array
          items:
            $ref: "#/components/schemas/KindUrl"
        chatSettings:
          $ref: "#/components/schemas/TextChatFilter"
        template:
          type: string
          nullable: true
        reviewed:
          type: boolean
          description: A person has approved a publish of it (needed before it may be opened to the public).
        createdAt:
          type: string
        updatedAt:
          type: string
        places:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencePlacesItem"
      required:
        - id
        - slug
        - name
        - description
        - genre
        - rating
        - ratingDescriptors
        - visibility
        - status
        - tags
        - devices
        - languages
        - socialLinks
        - chatSettings
        - reviewed
        - createdAt
        - updatedAt
        - places
      additionalProperties: false
      nullable: true
      description: "3D worlds: the experience (Details reads it); Classic: null."
    GetWorldGameMineResponseDataLatestPublish:
      type: object
      properties:
        id:
          type: string
        state:
          type: string
        versionNumber:
          type: number
          nullable: true
        rolloutPercent:
          type: number
        reviewNote:
          type: string
          nullable: true
        at:
          type: string
      required:
        - id
        - state
        - rolloutPercent
        - at
      additionalProperties: false
      nullable: true
    GetWorldGameMineResponseDataModeration:
      type: object
      properties:
        state:
          type: string
        reason:
          type: string
          nullable: true
        at:
          type: string
          nullable: true
      required:
        - state
      additionalProperties: false
    GetWorldGameMineResponseDataNextSteps:
      type: object
      properties:
        id:
          type: string
          enum:
            - thumbnail
            - access
            - publish
            - questionnaire
            - fix_review
        label:
          type: string
        tab:
          type: string
          enum:
            - settings
            - overview
            - details
            - badges
            - rewards
            - access
            - places
            - localization
            - versions
            - assets
            - safety
            - collaborators
            - monetize
            - live-ops
            - servers
        done:
          type: boolean
      required:
        - id
        - label
        - tab
        - done
      additionalProperties: false
    GetWorldGameMineResponseDataTimeline:
      type: object
      properties:
        key:
          type: string
          enum:
            - draft
            - live
            - archived
            - review
        label:
          type: string
        state:
          type: string
          enum:
            - skipped
            - current
            - failed
            - done
            - upcoming
      required:
        - key
        - label
        - state
      additionalProperties: false
    GetWorldGamePackageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGamePackageResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGamePackageResponseData:
      type: object
      properties:
        stats:
          $ref: "#/components/schemas/GetWorldGamePackageResponseDataStats"
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        designId:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        unpublishedAt:
          type: string
          format: date-time
          nullable: true
        versions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGamePackageResponseDataVersions"
      required:
        - id
        - slug
        - name
        - designId
        - createdAt
        - updatedAt
        - versions
      additionalProperties: false
    GetWorldGamePackageResponseDataStats:
      type: object
      properties:
        days:
          type: number
        players:
          type: number
        rounds:
          type: number
        placed:
          type: number
        rewards:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGamePackageResponseDataStatsRewards"
        sales:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGamePackageResponseDataStatsSales"
        contests:
          type: number
        returning:
          type: number
        retention:
          type: number
          nullable: true
        reports:
          $ref: "#/components/schemas/GetWorldGamePackageResponseDataStatsReports"
        stars:
          $ref: "#/components/schemas/AverageCount"
      required:
        - days
        - players
        - rounds
        - placed
        - rewards
        - sales
        - contests
        - returning
        - reports
        - stars
      additionalProperties: false
      nullable: true
    GetWorldGamePackageResponseDataStatsReports:
      type: object
      properties:
        open:
          type: number
        total:
          type: number
      required:
        - open
        - total
      additionalProperties: false
    GetWorldGamePackageResponseDataStatsRewards:
      type: object
      properties:
        rewardId:
          type: string
        granted:
          type: number
      required:
        - rewardId
        - granted
      additionalProperties: false
    GetWorldGamePackageResponseDataStatsSales:
      type: object
      properties:
        itemId:
          type: string
        sold:
          type: number
      required:
        - itemId
        - sold
      additionalProperties: false
    GetWorldGamePackageResponseDataVersions:
      type: object
      properties:
        id:
          type: string
        semver:
          type: string
        state:
          type: string
        note:
          type: string
          nullable: true
        submittedAt:
          type: string
          format: date-time
        report:
          type: object
          additionalProperties: {}
      required:
        - id
        - semver
        - state
        - submittedAt
        - report
      additionalProperties: false
    GetWorldGamePackageStatResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGamePackageStatResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGamePackageStatResponseData:
      type: object
      properties:
        days:
          type: number
        totals:
          $ref: "#/components/schemas/GetWorldGamePackageStatResponseDataTotals"
        playingNow:
          type: number
        score:
          type: number
        testImpressions:
          $ref: "#/components/schemas/GetWorldGamePackageStatResponseDataTestImpressions"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGamePackageStatResponseDataDaily"
      required:
        - days
        - totals
        - playingNow
        - score
        - daily
      additionalProperties: false
    GetWorldGamePackageStatResponseDataDaily:
      type: object
      properties:
        day:
          type: string
        uniques:
          type: number
        sessions:
          type: number
        newPlayers:
          type: number
        playtimeSeconds:
          type: number
        firstPlayBounces:
          type: number
        d1Retained:
          type: number
        d7Retained:
          type: number
        d28Retained:
          type: number
        votes:
          type: number
        reports:
          type: number
        crashes:
          type: number
        spendCents:
          type: number
      required:
        - day
        - uniques
        - sessions
        - newPlayers
        - playtimeSeconds
        - firstPlayBounces
        - d1Retained
        - d7Retained
        - d28Retained
        - votes
        - reports
        - crashes
        - spendCents
      additionalProperties: false
    GetWorldGamePackageStatResponseDataTestImpressions:
      type: object
      properties:
        granted:
          type: number
        served:
          type: number
        done:
          type: boolean
      required:
        - granted
        - served
        - done
      additionalProperties: false
      nullable: true
    GetWorldGamePackageStatResponseDataTotals:
      type: object
      properties:
        days:
          type: number
        players:
          type: number
        rounds:
          type: number
        placed:
          type: number
        rewards:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGamePackageResponseDataStatsRewards"
        sales:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGamePackageResponseDataStatsSales"
        contests:
          type: number
        returning:
          type: number
        retention:
          type: number
          nullable: true
        reports:
          $ref: "#/components/schemas/GetWorldGamePackageResponseDataStatsReports"
        stars:
          $ref: "#/components/schemas/AverageCount"
      required:
        - days
        - players
        - rounds
        - placed
        - rewards
        - sales
        - contests
        - returning
        - reports
        - stars
      additionalProperties: false
    GetWorldGamePackageVersionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGamePackageVersionResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGamePackageVersionResponseData:
      type: object
      properties:
        packageId:
          type: string
        slug:
          type: string
        published:
          type: boolean
        unpublishedAt:
          type: string
          format: date-time
          nullable: true
        liveVersion:
          type: string
          nullable: true
        versions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGamePackageVersionResponseDataVersions"
      required:
        - packageId
        - slug
        - published
        - versions
      additionalProperties: false
    GetWorldGamePackageVersionResponseDataVersions:
      type: object
      properties:
        id:
          type: string
        semver:
          type: string
        state:
          type: string
          enum:
            - draft
            - pending
            - cancelled
            - rejected
            - approved
            - withdrawn
        live:
          type: boolean
        note:
          type: string
          nullable: true
        decidedAt:
          type: string
          format: date-time
          nullable: true
        submittedAt:
          type: string
          format: date-time
        documents:
          type: array
          items:
            type: string
            nullable: true
        maxMinutes:
          type: number
          nullable: true
        report:
          type: object
          additionalProperties: {}
      required:
        - id
        - semver
        - state
        - live
        - submittedAt
        - documents
        - report
      additionalProperties: false
    GetWorldGameResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGameResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGameResponseData:
      type: object
      properties:
        stars:
          $ref: "#/components/schemas/AverageCount"
        myStars:
          type: number
          nullable: true
        store:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameResponseDataStore"
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        version:
          type: string
        description:
          type: string
        mode:
          type: string
          enum:
            - object
            - table
            - arena
        players:
          $ref: "#/components/schemas/MinMax"
        places:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameResponseDataPlacesItem"
        rating:
          type: string
          enum:
            - everyone
            - teen
        scoring:
          $ref: "#/components/schemas/GetWorldGameLeaderboardResponseDataScoring"
        contests:
          $ref: "#/components/schemas/GetWorldGameResponseDataContests"
        rewards:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameResponseDataRewards"
        thumbnail:
          type: string
          nullable: true
        fits:
          type: object
          nullable: true
          additionalProperties: {}
        piece:
          $ref: "#/components/schemas/GetWorldGameResponseDataPiece"
        author:
          type: string
          nullable: true
      required:
        - stars
        - store
        - id
        - slug
        - name
        - version
        - description
        - mode
        - players
        - places
        - rating
        - rewards
        - piece
      additionalProperties: false
    GetWorldGameResponseDataContests:
      type: object
      properties:
        skill:
          type: boolean
        entry:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameResponseDataContestsEntryItem"
      required:
        - skill
        - entry
      additionalProperties: false
      nullable: true
    GetWorldGameResponseDataPiece:
      type: object
      properties:
        model:
          type: string
        decor:
          type: string
        cosmeticId:
          type: string
          nullable: true
      required:
        - model
        - decor
      additionalProperties: false
      description: "The piece people place (and buy in the decor shop: its COSM SKU)."
    GetWorldGameResponseDataRewards:
      type: object
      properties:
        id:
          type: string
        grant:
          type: string
          enum:
            - item
            - cosm
            - decor
            - cbx
            - pin
            - emote
        when:
          type: string
          enum:
            - score
            - win
            - play
        perPlayerPerDay:
          type: number
        amount:
          type: number
          nullable: true
      required:
        - id
        - grant
        - when
        - perPlayerPerDay
      additionalProperties: false
    GetWorldGameResponseDataStore:
      type: object
      properties:
        itemId:
          type: string
        kind:
          type: string
          enum:
            - item
            - pass
        name:
          type: string
        priceCents:
          type: number
        onSale:
          type: boolean
        owned:
          type: boolean
      required:
        - itemId
        - kind
        - name
        - priceCents
        - onSale
        - owned
      additionalProperties: false
    GetWorldGameServerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGameServerResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGameServerResponseData:
      type: object
      properties:
        key:
          type: string
        experienceId:
          type: string
        generatedAt:
          type: string
        servers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameServerResponseDataServers"
          description: Public servers, friends' first, then the fullest that still has room, full ones last.
        total:
          type: number
          description: Live public servers in all (the list is capped).
        privateServers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameServerResponseDataPrivateServers"
      required:
        - key
        - experienceId
        - generatedAt
        - servers
        - total
        - privateServers
      additionalProperties: false
    GetWorldGameServerResponseDataPrivateServers:
      type: object
      properties:
        subscriptionId:
          type: string
        name:
          type: string
        placeId:
          type: string
          nullable: true
        status:
          type: string
        currentPeriodEnd:
          type: string
      required:
        - subscriptionId
        - name
        - status
        - currentPeriodEnd
      additionalProperties: false
    GetWorldGameServerResponseDataServers:
      type: object
      properties:
        id:
          type: string
        placeId:
          type: string
        placeName:
          type: string
        region:
          type: string
        players:
          type: number
        maxPlayers:
          type: number
        full:
          type: boolean
          description: No seat for a stranger right now (players, plus seats held by tickets, at the public limit).
        friends:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Your friends on it (mutual follows).
      required:
        - id
        - placeId
        - placeName
        - region
        - players
        - maxPlayers
        - full
        - friends
      additionalProperties: false
    GetWorldGameTemplateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldGameTemplateResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldGameTemplateResponseData:
      type: object
      properties:
        kind:
          type: string
        files:
          type: array
          items:
            $ref: "#/components/schemas/PathBase64"
      required:
        - kind
        - files
      additionalProperties: false
    GetWorldHallLoanResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldHallLoanResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldHallLoanResponseData:
      type: object
      properties:
        exhibition:
          $ref: "#/components/schemas/GetWorldHallLoanResponseDataExhibition"
        perMember:
          type: number
        loans:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldHallLoanResponseDataLoans"
        eligible:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldHallLoanResponseDataEligible"
      required:
        - exhibition
        - perMember
        - loans
        - eligible
      additionalProperties: false
    GetWorldHallLoanResponseDataEligible:
      type: object
      properties:
        vaultItemId:
          type: string
        skuId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
      required:
        - vaultItemId
        - skuId
        - name
      additionalProperties: false
    GetWorldHallLoanResponseDataExhibition:
      type: object
      properties:
        key:
          type: string
        title:
          type: string
        categorySlug:
          type: string
        endsAt:
          type: string
      required:
        - key
        - title
        - categorySlug
        - endsAt
      additionalProperties: false
    GetWorldHallLoanResponseDataLoans:
      type: object
      properties:
        id:
          type: string
        vaultItemId:
          type: string
        skuId:
          type: string
        name:
          type: string
          nullable: true
        credit:
          type: string
        since:
          type: string
      required:
        - id
        - vaultItemId
        - skuId
        - credit
        - since
      additionalProperties: false
    GetWorldHallResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldHallResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldHallResponseData:
      type: object
      properties:
        exhibition:
          $ref: "#/components/schemas/GetWorldHallResponseDataExhibition"
        exhibits:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldHallResponseDataExhibits"
          description: "In slot order: the first on the centre plinth. Fewer than the slots when the catalogue had fewer."
      required:
        - exhibition
        - exhibits
      additionalProperties: false
    GetWorldHallResponseDataExhibition:
      type: object
      properties:
        key:
          type: string
        title:
          type: string
        blurb:
          type: string
        endsAt:
          type: string
        next:
          type: string
      required:
        - key
        - title
        - blurb
        - endsAt
        - next
      additionalProperties: false
    GetWorldHallResponseDataExhibits:
      type: object
      properties:
        skuId:
          type: string
        name:
          type: string
        brand:
          type: string
          nullable: true
        imageUrl:
          type: string
        thumbUrl:
          type: string
          nullable: true
        retailCents:
          type: number
          nullable: true
        lowestAskCents:
          type: number
          nullable: true
        lastSaleCents:
          type: number
          nullable: true
        model:
          type: string
          nullable: true
          description: The 3D object it stands on its plinth as (shared listing-space.ts catalogueModel). Optional on the wire.
        loan:
          $ref: "#/components/schemas/GetWorldHallResponseDataExhibitsLoan"
      required:
        - skuId
        - name
        - imageUrl
      additionalProperties: false
    GetWorldHallResponseDataExhibitsLoan:
      type: object
      properties:
        lender:
          type: string
        grade:
          type: string
          nullable: true
      required:
        - lender
      additionalProperties: false
      nullable: true
      description: "Lent by a member from their vault (Wave 8.2, hall-loans): their plaque line. Absent on catalogue picks."
    GetWorldHomePlaceableResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldHomePlaceableResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldHomePlaceableResponseData:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldHomePlaceableResponseDataItems"
        furniture:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldHomePlaceableResponseDataItems"
      required:
        - items
        - furniture
      additionalProperties: false
    GetWorldHomePlaceableResponseDataItems:
      type: object
      properties:
        ref:
          $ref: "#/components/schemas/GetWorldHomePlaceableResponseDataItemsRef"
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        grade:
          type: string
          nullable: true
        listed:
          type: boolean
        model:
          type: string
          nullable: true
        crossly:
          type: boolean
          nullable: true
        space:
          type: string
          nullable: true
        market:
          type: string
          nullable: true
        object:
          type: string
          nullable: true
      required:
        - ref
        - title
        - listed
      additionalProperties: false
    GetWorldHomePlaceableResponseDataItemsRef:
      type: object
      properties:
        kind:
          type: string
          enum:
            - inventory
            - vault
            - portal
            - token
            - purchase
            - nft
            - portfolio
        id:
          type: string
      required:
        - kind
        - id
      additionalProperties: false
    GetWorldHuntResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldHuntResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldHuntResponseData:
      type: object
      properties:
        season:
          $ref: "#/components/schemas/GetWorldHuntResponseDataSeason"
        started:
          type: boolean
        held:
          type: number
        keys:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldHuntResponseDataKeys"
        cleared:
          $ref: "#/components/schemas/GetWorldHuntResponseDataCleared"
      required:
        - started
        - held
        - keys
      additionalProperties: false
    GetWorldHuntResponseDataCleared:
      type: object
      properties:
        rank:
          type: number
        at:
          type: string
        titled:
          type: boolean
      required:
        - rank
        - at
        - titled
      additionalProperties: false
      nullable: true
      description: Your place through the Gate this season, when you have cleared it.
    GetWorldHuntResponseDataKeys:
      type: object
      properties:
        key:
          type: string
          enum:
            - copper
            - jade
            - crystal
        name:
          type: string
        colour:
          type: string
        clue:
          type: string
          nullable: true
          description: The riddle, once it is yours to read (the next key's and every held key's); null before.
        heldAt:
          type: string
          nullable: true
          description: When you picked it up (ISO), or null.
      required:
        - key
        - name
        - colour
      additionalProperties: false
    GetWorldHuntResponseDataSeason:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        title:
          type: string
        titleTop:
          type: number
        live:
          type: boolean
          description: False once it has ended (its Scoreboard still shows).
      required:
        - id
        - name
        - startsAt
        - endsAt
        - title
        - titleTop
        - live
      additionalProperties: false
      nullable: true
    GetWorldHuntScoreboardResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldHuntScoreboardResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldHuntScoreboardResponseData:
      type: object
      properties:
        season:
          $ref: "#/components/schemas/GetWorldHuntResponseDataSeason"
        finishers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldHuntScoreboardResponseDataFinishers"
          description: The first GREAT_HUNT_SCOREBOARD_ROWS through the Gate, in order.
        total:
          type: number
          description: Everybody through the Gate this season.
      required:
        - finishers
        - total
      additionalProperties: false
    GetWorldHuntScoreboardResponseDataFinishers:
      type: object
      properties:
        rank:
          type: number
        name:
          type: string
          description: Their room name, only when they chose to be named (leaderboards.ts ANONYMOUS_PLAYER otherwise).
        short:
          type: string
          description: "`name` as the monolith draws it: ASCII, short."
        named:
          type: boolean
        at:
          type: string
        titled:
          type: boolean
          description: "Among the first titleTop: wears the season's title."
      required:
        - rank
        - name
        - short
        - named
        - at
        - titled
      additionalProperties: false
    GetWorldInteractiveDesignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldInteractiveDesignResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldInteractiveDesignResponseData:
      type: object
      properties:
        draftSource:
          type: string
        validation:
          $ref: "#/components/schemas/GetWorldInteractiveDesignResponseDataValidation"
        versions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldInteractiveDesignResponseDataVersions"
        id:
          type: string
        handle:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        footprint:
          type: string
        tint:
          type: string
        priceBaseUnits:
          type: string
        maxSupply:
          type: number
          nullable: true
        model:
          type: string
        decorValue:
          type: string
        cosmeticId:
          type: string
          nullable: true
        liveVersion:
          type: number
          nullable: true
        withdrawnReason:
          type: string
          nullable: true
        archivedAt:
          type: string
          format: date-time
          nullable: true
        draftUpdatedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
      required:
        - draftSource
        - validation
        - versions
        - id
        - handle
        - name
        - footprint
        - tint
        - priceBaseUnits
        - model
        - decorValue
        - draftUpdatedAt
        - createdAt
      additionalProperties: false
    GetWorldInteractiveDesignResponseDataValidation:
      type: object
      properties:
        ok:
          type: boolean
        errors:
          type: array
          items:
            $ref: "#/components/schemas/LineMessage"
        warnings:
          type: array
          items:
            $ref: "#/components/schemas/LineMessage"
        stats:
          $ref: "#/components/schemas/GetWorldInteractiveDesignResponseDataValidationStats"
      required:
        - ok
        - errors
        - warnings
        - stats
      additionalProperties: false
    GetWorldInteractiveDesignResponseDataValidationStats:
      type: object
      properties:
        bytes:
          type: number
        elements:
          type: number
        scripts:
          type: number
        assets:
          type: array
          items:
            type: string
      required:
        - bytes
        - elements
        - scripts
        - assets
      additionalProperties: false
    GetWorldInteractiveDesignResponseDataVersions:
      type: object
      properties:
        source:
          type: string
          nullable: true
        id:
          type: string
        version:
          type: number
        state:
          type: string
        sha256:
          type: string
        bytes:
          type: number
        report:
          $ref: "#/components/schemas/GetWorldInteractiveDesignResponseDataVersionsReport"
        submittedAt:
          type: string
          format: date-time
        decisionNote:
          type: string
          nullable: true
        decidedAt:
          type: string
          format: date-time
          nullable: true
        withdrawnAt:
          type: string
          format: date-time
          nullable: true
        withdrawnReason:
          type: string
          nullable: true
      required:
        - id
        - version
        - state
        - sha256
        - bytes
        - report
        - submittedAt
      additionalProperties: false
    GetWorldInteractiveDesignResponseDataVersionsReport:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
        warnings:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
        stats:
          type: object
          nullable: true
          additionalProperties: {}
        dryRun:
          type: string
          nullable: true
          description: "The dry run's result: 'dryrun_ok', or the reason the document was killed."
      additionalProperties: false
    GetWorldJobResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldJobResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldJobResponseData:
      type: object
      properties:
        shifts:
          type: array
          items:
            $ref: "#/components/schemas/ListJobShiftsItem"
        appraisals:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldJobResponseDataAppraisals"
        mine:
          $ref: "#/components/schemas/GetWorldJobResponseDataMine"
        payOn:
          type: boolean
        payNote:
          type: string
          nullable: true
      required:
        - shifts
        - appraisals
        - mine
        - payOn
      additionalProperties: false
    GetWorldJobResponseDataAppraisals:
      type: object
      properties:
        id:
          type: string
        category:
          type: string
        title:
          type: string
        skuId:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        bountyCents:
          type: number
        rail:
          type: string
          enum:
            - cbx
            - bucks
        status:
          type: string
        closesAt:
          type: string
        createdAt:
          type: string
        answers:
          type: number
        mine:
          type: boolean
        answerList:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: "Answers: every one to the asker, your own to an appraiser."
      required:
        - id
        - category
        - title
        - bountyCents
        - rail
        - status
        - closesAt
        - createdAt
        - answers
        - mine
        - answerList
      additionalProperties: false
    GetWorldJobResponseDataMine:
      type: object
      properties:
        shifts:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldJobResponseDataMineShifts"
        appraisals:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldJobResponseDataAppraisals"
      required:
        - shifts
        - appraisals
      additionalProperties: false
    GetWorldJobResponseDataMineShifts:
      type: object
      properties:
        id:
          type: string
        role:
          type: string
          enum:
            - shop_staff
            - hub_helper
        title:
          type: string
        place:
          type: object
          additionalProperties: {}
        startsAt:
          type: string
        endsAt:
          type: string
        payCents:
          type: number
        rail:
          type: string
          enum:
            - cbx
            - bucks
        status:
          type: string
          enum:
            - cancelled
            - open
            - paid
            - claimed
            - worked
            - missed
        presentSeconds:
          type: number
          description: Seconds the server has seen the worker in the place, and how many count it as worked.
        requiredSeconds:
          type: number
        claimedByYou:
          type: boolean
        postedByYou:
          type: boolean
        worker:
          type: string
          nullable: true
        paid:
          type: boolean
      required:
        - id
        - role
        - title
        - place
        - startsAt
        - endsAt
        - payCents
        - rail
        - status
        - presentSeconds
        - requiredSeconds
        - claimedByYou
        - postedByYou
        - paid
      additionalProperties: false
    GetWorldKiteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldKiteResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldKiteResponseData:
      type: object
      properties:
        day:
          type: string
        today:
          type: number
        mine:
          $ref: "#/components/schemas/GetWorldKiteResponseDataMine"
      required:
        - day
        - today
      additionalProperties: false
    GetWorldKiteResponseDataMine:
      type: object
      properties:
        today:
          type: number
        perDay:
          type: number
        days:
          type: number
      required:
        - today
        - perDay
        - days
      additionalProperties: false
      nullable: true
    GetWorldLauncherResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldLauncherResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldLauncherResponseData:
      type: object
      properties:
        weights:
          type: string
          description: The published weights the scores came from.
        generatedAt:
          type: string
        firstPartyShare:
          type: number
          description: First-party share of the portal ring (capped at FIRST_PARTY_PRIME_SHARE).
        portals:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldLauncherResponseDataPortals"
      required:
        - weights
        - generatedAt
        - firstPartyShare
        - portals
      additionalProperties: false
    GetWorldLauncherResponseDataPortals:
      type: object
      properties:
        key:
          type: string
        kind:
          type: string
          enum:
            - worlds
            - classic
            - first_party
            - tcg_table
        row:
          type: string
          enum:
            - new
            - top
            - friends
            - more
        slot:
          type: number
          description: "Position in the layout: 0..11 the portal ring, then the rest."
        title:
          type: string
        subtitle:
          type: string
          description: "ASCII, short: the creator, or what it is."
        thumbnail:
          type: string
          nullable: true
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        descriptors:
          type: array
          items:
            type: string
          nullable: true
          description: Content descriptors from the rating questionnaire (IARC style), shown with the badge on every surface.
        stars:
          $ref: "#/components/schemas/AverageCount2"
        ccu:
          type: number
          description: Players in it now (every api container, refreshed every few seconds).
        friends:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Your friends in it now (mutual follows), at most five named; `friendsCount` is all of them.
        friendsCount:
          type: number
        firstParty:
          type: boolean
        newAndRising:
          type: boolean
          description: In its guaranteed test impressions ("New & rising").
        score:
          type: number
          description: The ranking composite over the last 28 days (discoveryScore).
        play:
          $ref: "#/components/schemas/HrefPlace"
      required:
        - key
        - kind
        - row
        - slot
        - title
        - subtitle
        - rating
        - ccu
        - friends
        - friendsCount
        - firstParty
        - newAndRising
        - score
        - play
      additionalProperties: false
    GetWorldLinkSellerItem:
      type: object
      properties:
        experienceId:
          type: string
        key:
          type: string
        title:
          type: string
        subtitle:
          type: string
        thumbnail:
          type: string
          nullable: true
        ccu:
          type: number
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        descriptors:
          type: array
          items:
            type: string
          nullable: true
          description: Content descriptors shown with the badge.
        reason:
          type: string
          enum:
            - seller
            - card_game
            - placed
        href:
          type: string
          description: "Where Play goes: `/play/w/<id>?src=<surface>`."
      required:
        - experienceId
        - key
        - title
        - subtitle
        - ccu
        - rating
        - reason
        - href
      additionalProperties: false
    GetWorldManageLedgerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldManageLedgerResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldManageLedgerResponseData:
      type: object
      properties:
        days:
          type: number
        since:
          type: string
        inCents:
          type: number
        outCents:
          type: number
        netCents:
          type: number
        byKind:
          $ref: "#/components/schemas/GetWorldManageLedgerResponseDataByKind"
        lines:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldManageLedgerResponseDataLines"
      required:
        - days
        - since
        - inCents
        - outCents
        - netCents
        - byKind
        - lines
      additionalProperties: false
    GetWorldManageLedgerResponseDataByKind:
      type: object
      properties:
        shift:
          $ref: "#/components/schemas/InCentsOutCents"
        rent:
          $ref: "#/components/schemas/InCentsOutCents"
        stall:
          $ref: "#/components/schemas/InCentsOutCents"
        plot_purchase:
          $ref: "#/components/schemas/InCentsOutCents"
        maintenance:
          $ref: "#/components/schemas/InCentsOutCents"
        deed_sale:
          $ref: "#/components/schemas/InCentsOutCents"
        staff_wage:
          $ref: "#/components/schemas/InCentsOutCents"
      required:
        - shift
        - rent
        - stall
        - plot_purchase
        - maintenance
        - deed_sale
        - staff_wage
      additionalProperties: false
    GetWorldManageLedgerResponseDataLines:
      type: object
      properties:
        at:
          type: string
        kind:
          type: string
          enum:
            - shift
            - rent
            - stall
            - plot_purchase
            - maintenance
            - deed_sale
            - staff_wage
        direction:
          type: string
          enum:
            - out
            - in
        cents:
          type: number
        rail:
          type: string
          enum:
            - card
            - cbx
            - bucks
        ref:
          type: string
          description: The row it came from (a payment's external id, a shift or booking id).
      required:
        - at
        - kind
        - direction
        - cents
        - rail
        - ref
      additionalProperties: false
    GetWorldManageOverviewResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldManageOverviewResponseData:
      type: object
      properties:
        shop:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataShop"
        property:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataProperty"
        staff:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataStaff"
        conventions:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataConventions"
        stalls:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataStalls"
        visitors:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataVisitors"
        money:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataMoney"
      required:
        - property
        - staff
        - conventions
        - stalls
        - money
      additionalProperties: false
    GetWorldManageOverviewResponseDataConventions:
      type: object
      properties:
        hosting:
          type: number
        exhibiting:
          type: number
        invitations:
          type: number
        next:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataConventionsNext"
      required:
        - hosting
        - exhibiting
        - invitations
      additionalProperties: false
    GetWorldManageOverviewResponseDataConventionsNext:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
        role:
          type: string
          enum:
            - host
            - accepted
            - declined
            - applied
            - withdrawn
            - invited
        publicSlug:
          type: string
          nullable: true
      required:
        - id
        - title
        - startsAt
        - endsAt
        - status
        - role
      additionalProperties: false
      nullable: true
    GetWorldManageOverviewResponseDataMoney:
      type: object
      properties:
        days:
          type: number
        inCents:
          type: number
        outCents:
          type: number
        netCents:
          type: number
      required:
        - days
        - inCents
        - outCents
        - netCents
      additionalProperties: false
    GetWorldManageOverviewResponseDataProperty:
      type: object
      properties:
        enabled:
          type: boolean
        deeds:
          type: number
        needsAttention:
          type: number
        leasedOut:
          type: number
        offeredForLease:
          type: number
        listedForSale:
          type: number
        tenancies:
          type: number
        maintenanceWeeklyCents:
          type: number
        rentInWeeklyCents:
          type: number
        rentOutWeeklyCents:
          type: number
      required:
        - enabled
        - deeds
        - needsAttention
        - leasedOut
        - offeredForLease
        - listedForSale
        - tenancies
        - maintenanceWeeklyCents
        - rentInWeeklyCents
        - rentOutWeeklyCents
      additionalProperties: false
    GetWorldManageOverviewResponseDataShop:
      type: object
      properties:
        sceneId:
          type: string
        name:
          type: string
        visibility:
          type: string
        publicSlug:
          type: string
          nullable: true
        addresses:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldManageOverviewResponseDataShopAddresses"
      required:
        - sceneId
        - name
        - visibility
        - addresses
      additionalProperties: false
      nullable: true
    GetWorldManageOverviewResponseDataShopAddresses:
      type: object
      properties:
        street:
          type: string
        name:
          type: string
        address:
          type: string
        label:
          type: string
      required:
        - street
        - name
        - address
        - label
      additionalProperties: false
    GetWorldManageOverviewResponseDataStaff:
      type: object
      properties:
        wagesEnabled:
          type: boolean
        members:
          type: number
        pendingInvites:
          type: number
        wagesWeeklyCents:
          type: number
        shiftsUpcoming:
          type: number
        shiftsOpen:
          type: number
        onShiftNow:
          type: number
        nextShift:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataStaffNextShift"
      required:
        - wagesEnabled
        - members
        - pendingInvites
        - wagesWeeklyCents
        - shiftsUpcoming
        - shiftsOpen
        - onShiftNow
      additionalProperties: false
    GetWorldManageOverviewResponseDataStaffNextShift:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
        worker:
          type: string
          nullable: true
      required:
        - id
        - title
        - startsAt
        - endsAt
        - status
      additionalProperties: false
      nullable: true
    GetWorldManageOverviewResponseDataStalls:
      type: object
      properties:
        upcoming:
          type: number
        liveNow:
          type: number
        next:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataStallsNext"
      required:
        - upcoming
        - liveNow
      additionalProperties: false
    GetWorldManageOverviewResponseDataStallsNext:
      type: object
      properties:
        id:
          type: string
        street:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
      required:
        - id
        - street
        - startsAt
        - endsAt
      additionalProperties: false
      nullable: true
    GetWorldManageOverviewResponseDataVisitors:
      type: object
      properties:
        days:
          type: number
        viewers:
          type: number
        looks:
          type: number
        inspects:
          type: number
        checkouts:
          type: number
        sales:
          type: number
        revenueCents:
          type: number
      required:
        - days
        - viewers
        - looks
        - inspects
        - checkouts
        - sales
        - revenueCents
      additionalProperties: false
      nullable: true
    GetWorldManageVisitorResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldManageVisitorResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldManageVisitorResponseData:
      type: object
      properties:
        days:
          type: number
        shop:
          $ref: "#/components/schemas/GetWorldManageVisitorResponseDataShop"
        funnel:
          $ref: "#/components/schemas/GetWorldManageOverviewResponseDataVisitors"
        daily:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldManageVisitorResponseDataDaily"
        topItems:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldManageVisitorResponseDataTopItems"
        wants:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldManageVisitorResponseDataWants"
      required:
        - days
        - daily
        - topItems
        - wants
      additionalProperties: false
    GetWorldManageVisitorResponseDataDaily:
      type: object
      properties:
        day:
          type: string
        viewers:
          type: number
        looks:
          type: number
        inspects:
          type: number
      required:
        - day
        - viewers
        - looks
        - inspects
      additionalProperties: false
    GetWorldManageVisitorResponseDataShop:
      type: object
      properties:
        sceneId:
          type: string
        name:
          type: string
        visibility:
          type: string
        publicSlug:
          type: string
          nullable: true
      required:
        - sceneId
        - name
        - visibility
      additionalProperties: false
      nullable: true
    GetWorldManageVisitorResponseDataTopItems:
      type: object
      properties:
        itemId:
          type: string
        title:
          type: string
          nullable: true
        viewers:
          type: number
        looks:
          type: number
        inspects:
          type: number
      required:
        - itemId
        - viewers
        - looks
        - inspects
      additionalProperties: false
    GetWorldManageVisitorResponseDataWants:
      type: object
      properties:
        itemId:
          type: string
        title:
          type: string
          nullable: true
        wants:
          type: number
      required:
        - itemId
        - wants
      additionalProperties: false
    GetWorldMarketResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldMarketResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldMarketResponseData:
      type: object
      properties:
        kind:
          type: string
          enum:
            - plot
            - street
        id:
          type: string
        title:
          type: string
        street:
          $ref: "#/components/schemas/GetWorldMarketResponseDataStreet"
        number:
          type: number
          nullable: true
        frontageM:
          type: number
          nullable: true
        size:
          type: string
          enum:
            - small
            - large
            - medium
          nullable: true
        sale:
          $ref: "#/components/schemas/GetWorldMarketResponseDataSale"
        rent:
          $ref: "#/components/schemas/GetWorldMarketResponseDataSale"
        traffic:
          $ref: "#/components/schemas/GetWorldMarketResponseDataTraffic"
        neighbours:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldMarketResponseDataNeighbours"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldMarketResponseDataHistory"
        mine:
          type: boolean
          description: The caller owns it (they see "Manage" instead of Buy).
        visitPath:
          type: string
          description: "Where to walk to it: `/c/<street>/<n>` or `/c/<street>`."
        render:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataRender"
        photo:
          $ref: "#/components/schemas/GetWorldMarketResponseDataPhoto"
      required:
        - kind
        - id
        - title
        - street
        - traffic
        - neighbours
        - history
        - mine
        - visitPath
        - render
      additionalProperties: false
    GetWorldMarketResponseDataHistory:
      type: object
      properties:
        soldAt:
          type: string
        priceCents:
          type: number
        rail:
          type: string
          enum:
            - cash
            - cbx
      required:
        - soldAt
        - priceCents
        - rail
      additionalProperties: false
    GetWorldMarketResponseDataNeighbours:
      type: object
      properties:
        number:
          type: number
        label:
          type: string
        shop:
          type: string
          nullable: true
          description: The shop standing there, by name; null = vacant.
      required:
        - number
        - label
      additionalProperties: false
    GetWorldMarketResponseDataPhoto:
      type: object
      properties:
        url:
          type: string
          nullable: true
          description: The stored image, or null when none was made yet.
        buildKey:
          type: string
          description: The key of what the plot looks like now.
        current:
          type: boolean
          description: The stored image shows what is there now (its key is `buildKey`).
        source:
          type: string
          enum:
            - capture
            - render
          nullable: true
        at:
          type: string
          nullable: true
      required:
        - buildKey
        - current
      additionalProperties: false
      nullable: true
      description: The plot's photo (plot-photo.ts); null for a street.
    GetWorldMarketResponseDataSale:
      type: object
      properties:
        listingId:
          type: string
          nullable: true
          description: deed listing id, lease id, street listing id, or null for Crossly's vacant plot.
        priceCents:
          type: number
        per:
          type: string
          enum:
            - week
            - once
        seller:
          type: string
          enum:
            - crossly
            - owner
        upkeepWeeklyCents:
          type: number
          nullable: true
          description: Plot maintenance after a purchase / a street's weekly upkeep, cents a week.
      required:
        - priceCents
        - per
        - seller
      additionalProperties: false
      nullable: true
    GetWorldMarketResponseDataStreet:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        theme:
          type: string
          nullable: true
        plotCount:
          type: number
        admission:
          type: string
      required:
        - slug
        - name
        - plotCount
        - admission
      additionalProperties: false
    GetWorldMarketResponseDataTraffic:
      type: object
      properties:
        visitors:
          type: number
        band:
          type: string
          enum:
            - quiet
            - steady
            - busy
        days:
          type: number
      required:
        - visitors
        - band
        - days
      additionalProperties: false
    GetWorldMatureResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldMatureResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldMatureResponseData:
      type: object
      properties:
        eligible:
          type: boolean
        showMature:
          type: boolean
        steps:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldMatureResponseDataSteps"
          description: Steps still to take, in order, each with its words and whether the viewer can act on it.
        ageCheck:
          $ref: "#/components/schemas/GetWorldMatureResponseDataAgeCheck"
        restricted:
          type: boolean
        region:
          type: string
      required:
        - eligible
        - showMature
        - steps
        - ageCheck
        - restricted
        - region
      additionalProperties: false
    GetWorldMatureResponseDataAgeCheck:
      type: object
      properties:
        status:
          type: string
        idAgeYears:
          type: number
          nullable: true
      required:
        - status
      additionalProperties: false
      description: "The Stripe Identity age check: none | pending | needs_recheck | verified."
    GetWorldMatureResponseDataSteps:
      type: object
      properties:
        step:
          type: string
          enum:
            - region
            - restricted
            - opt_in
            - sign_in
            - add_birth_month
            - too_young
            - verify_id
            - verify_id_age
            - id_too_young
            - parental
        message:
          type: string
        actionable:
          type: boolean
      required:
        - step
        - message
        - actionable
      additionalProperties: false
    GetWorldMePrefResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldMePrefRequest"
      required:
        - data
      additionalProperties: false
    GetWorldNeighbourhoodClaimResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldNeighbourhoodClaimResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldNeighbourhoodClaimResponseData:
      type: object
      properties:
        eligible:
          type: boolean
        why:
          type: string
          enum:
            - ok
            - not-a-neighbourhood-seller
            - no-sales
            - outranked
        rank:
          type: number
          nullable: true
          description: 1-based; ties share a rank. Null when the seller is not ranked here.
        of:
          type: number
          description: How many shops on the street were ranked.
        sales:
          type: number
        topN:
          type: number
        neighbourhood:
          type: string
        message:
          type: string
      required:
        - eligible
        - why
        - of
        - sales
        - topN
        - neighbourhood
        - message
      additionalProperties: false
    GetWorldPackageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPackageResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPackageResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        latestVersion:
          type: number
        toolboxAssetId:
          type: string
          nullable: true
        archived:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
        places:
          type: number
          description: Places (across your experiences) holding at least one copy, as last indexed.
        versions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPackageResponseDataVersions"
      required:
        - id
        - name
        - description
        - latestVersion
        - archived
        - createdAt
        - updatedAt
        - places
        - versions
      additionalProperties: false
    GetWorldPackageResponseDataVersions:
      type: object
      properties:
        number:
          type: number
        notes:
          type: string
        contentHash:
          type: string
        sha256:
          type: string
        bytes:
          type: number
        nodeCount:
          type: number
        hasScripts:
          type: boolean
        createdAt:
          type: string
      required:
        - number
        - notes
        - contentHash
        - sha256
        - bytes
        - nodeCount
        - hasScripts
        - createdAt
      additionalProperties: false
    GetWorldPackageVersionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPackageVersionResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPackageVersionResponseData:
      type: object
      properties:
        number:
          type: number
        notes:
          type: string
        contentHash:
          type: string
        sha256:
          type: string
        bytes:
          type: number
        nodeCount:
          type: number
        hasScripts:
          type: boolean
        createdAt:
          type: string
        node:
          $ref: "#/components/schemas/CreateToolboxAssetUseResponseDataNodes"
      required:
        - number
        - notes
        - contentHash
        - sha256
        - bytes
        - nodeCount
        - hasScripts
        - createdAt
        - node
      additionalProperties: false
    GetWorldParentalMeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldParentalMeResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldParentalMeResponseData:
      type: object
      properties:
        state:
          type: string
          enum:
            - active
            - pending
            - none
          description: "'none' | 'pending' | 'active'"
        parentName:
          type: string
          nullable: true
        pendingExpiresAt:
          type: string
          nullable: true
        controls:
          $ref: "#/components/schemas/GetWorldParentalMeResponseDataControls"
        applies:
          type: boolean
          description: Controls stop at 18 (by birth month).
      required:
        - state
        - applies
      additionalProperties: false
    GetWorldParentalMeResponseDataControls:
      type: object
      properties:
        maxRating:
          type: string
          enum:
            - everyone
            - teen
        chat:
          type: string
          enum:
            - friends
            - off
            - on
        monthlySpendLimitCents:
          type: number
          nullable: true
          description: Crossly Carnival purchases per calendar month (UTC), cents. null = no limit, 0 = purchases off.
      required:
        - maxRating
        - chat
      additionalProperties: false
      nullable: true
    GetWorldPlaceBoardResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPlaceBoardResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPlaceBoardResponseData:
      type: object
      properties:
        wants:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPlaceBoardResponseDataWants"
        vaultMovers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPlaceBoardResponseDataVaultMovers"
        desk:
          $ref: "#/components/schemas/GetWorldPlaceBoardResponseDataDesk"
        indexes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPlaceBoardResponseDataIndexes"
          nullable: true
      required:
        - wants
        - vaultMovers
      additionalProperties: false
    GetWorldPlaceBoardResponseDataDesk:
      type: object
      properties:
        atAuthentication:
          type: number
        passedThisWeek:
          type: number
        passRate30d:
          type: number
          nullable: true
      required:
        - atAuthentication
        - passedThisWeek
      additionalProperties: false
      nullable: true
    GetWorldPlaceBoardResponseDataIndexes:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        value:
          type: number
        changeBps:
          type: number
          nullable: true
        keys:
          type: number
      required:
        - slug
        - name
        - value
        - keys
      additionalProperties: false
    GetWorldPlaceBoardResponseDataVaultMovers:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        units:
          type: number
        markCents:
          type: number
        change24hBps:
          type: number
          nullable: true
      required:
        - bookKey
        - units
        - markCents
      additionalProperties: false
    GetWorldPlaceBoardResponseDataWants:
      type: object
      properties:
        name:
          type: string
        bidders:
          type: number
        bestBidCents:
          type: number
      required:
        - name
        - bidders
        - bestBidCents
      additionalProperties: false
    GetWorldPlaceCollectionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPlaceCollectionResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPlaceCollectionResponseData:
      type: object
      properties:
        version:
          type: number
        kind:
          type: string
        group:
          $ref: "#/components/schemas/ListWorldPlaceCollectionsItem"
        room:
          $ref: "#/components/schemas/GetWorldPlaceCollectionResponseDataRoom"
        shell:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataShell"
        camera:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataCamera"
        pieces:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPlaceCollectionResponseDataPieces"
      required:
        - version
        - kind
        - group
        - room
        - shell
        - camera
        - pieces
      additionalProperties: false
    GetWorldPlaceCollectionResponseDataPieces:
      type: object
      properties:
        owned:
          type: boolean
        number:
          type: number
          description: "1-based, in the set's order: \"#7\" on an empty plinth."
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        rotationY:
          type: number
        model:
          type: string
          nullable: true
          description: |-
            The object it is drawn as on its plinth (the set's category room's shape
            rules, model-choice.ts: a coin is a coin, a figure a figure), or absent
            for a category with no model, which stays the framed photograph.
        skuId:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        itemId:
          type: string
          nullable: true
          description: The owner's inventory item for this piece, when they have it.
      required:
        - owned
        - number
        - position
        - rotationY
        - skuId
        - title
      additionalProperties: false
    GetWorldPlaceCollectionResponseDataRoom:
      type: object
      properties:
        width:
          type: number
        depth:
          type: number
        ceiling:
          type: number
        floor:
          $ref: "#/components/schemas/GetSpatialSceneWarehouseResponseDataRoomFloor"
      required:
        - width
        - depth
        - ceiling
        - floor
      additionalProperties: false
    GetWorldPlaceDropResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPlaceDropResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPlaceDropResponseData:
      type: object
      properties:
        drop:
          $ref: "#/components/schemas/GetWorldPlaceDropResponseDataDrop"
        waiting:
          type: number
      required:
        - waiting
      additionalProperties: false
    GetWorldPlaceDropResponseDataDrop:
      type: object
      properties:
        name:
          type: string
        coverImageUrl:
          type: string
          nullable: true
        dropAt:
          type: string
        live:
          type: boolean
      required:
        - name
        - dropAt
        - live
      additionalProperties: false
      nullable: true
    GetWorldPlaceItemInterestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPlaceItemInterestResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPlaceItemInterestResponseData:
      type: object
      properties:
        viewersToday:
          type: number
      required:
        - viewersToday
      additionalProperties: false
    GetWorldPlaceLiveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPlaceLiveResponseData"
      additionalProperties: false
    GetWorldPlaceLiveResponseData:
      type: object
      properties:
        stream:
          $ref: "#/components/schemas/GetWorldPlaceLiveResponseDataStream"
        lot:
          $ref: "#/components/schemas/GetMainStageResponseStreamLot"
      additionalProperties: false
      nullable: true
    GetWorldPlaceLiveResponseDataStream:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        playbackUrl:
          type: string
          nullable: true
          description: A direct HLS/MP4 URL a screen can play, or null (a provider embed).
        coverImageUrl:
          type: string
          nullable: true
      required:
        - id
        - title
      additionalProperties: false
      nullable: true
    GetWorldPlaceSellerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPlaceSellerResponseData"
      additionalProperties: false
    GetWorldPlaceSellerResponseData:
      type: object
      properties:
        username:
          type: string
        name:
          type: string
          nullable: true
      required:
        - username
      additionalProperties: false
      nullable: true
    GetWorldPlaceShopPetResponse:
      type: object
      properties:
        data:
          type: string
          enum:
            - cat
            - dog
            - slab_bot
          nullable: true
      additionalProperties: false
    GetWorldPlayerBadgeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPlayerBadgeResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPlayerBadgeResponseData:
      type: object
      properties:
        shown:
          type: boolean
        items:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldBadgeMineResponseDataItems"
      required:
        - shown
        - items
      additionalProperties: false
    GetWorldPlazaResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPlazaResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPlazaResponseData:
      type: object
      properties:
        weights:
          type: string
        generatedAt:
          type: string
        ring:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPlazaResponseDataRing"
          description: The ring, in slot order (<= 12); a sponsored portal can only be the last.
        rising:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPlazaResponseDataRing"
        featured:
          $ref: "#/components/schemas/GetWorldPlazaResponseDataFeatured"
        featuredNote:
          type: string
          nullable: true
          description: The editorial line under the featured stage.
        boards:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPlazaResponseDataBoards"
        firstPartyShare:
          type: number
      required:
        - weights
        - generatedAt
        - ring
        - rising
        - boards
        - firstPartyShare
      additionalProperties: false
    GetWorldPlazaResponseDataBoards:
      type: object
      properties:
        chart:
          type: string
          enum:
            - friends
            - top-playing
            - trending
            - new-rising
            - top-rated
            - most-favorited
        label:
          type: string
        lines:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - chart
        - label
        - lines
      additionalProperties: false
    GetWorldPlazaResponseDataFeatured:
      type: object
      properties:
        genre:
          type: string
          enum:
            - shopping
            - other
            - social
            - strategy
            - hangout
            - simulation
            - obby
            - adventure
            - roleplay
            - sports
            - arcade
            - card_games
        devices:
          type: array
          items:
            type: string
        maxPlayers:
          type: number
          nullable: true
          description: "Most players one server holds (null: unknown)."
        up:
          type: number
        down:
          type: number
        thumbsUp:
          type: number
          nullable: true
          description: "Whole-number thumbs-up percentage (null: no votes yet)."
        favorites:
          type: number
        sponsored:
          type: boolean
          description: 'Paid placement (06 section 9): `label` is then always "Sponsored".'
        label:
          type: string
          nullable: true
        campaignId:
          type: string
          nullable: true
        shop:
          $ref: "#/components/schemas/UsernameHref"
        icon:
          type: string
          nullable: true
          description: |-
            A Carnival game's square icon (1176 media role "icon", approved; falls back to the thumbnail). `thumbnail` is then
            the creator's thumbnail role, else the first approved screenshot, else the experience icon. Absent elsewhere.
        key:
          type: string
        kind:
          type: string
          enum:
            - worlds
            - classic
            - first_party
            - tcg_table
        row:
          type: string
          enum:
            - new
            - top
            - friends
            - more
        slot:
          type: number
          description: "Position in the layout: 0..11 the portal ring, then the rest."
        title:
          type: string
        subtitle:
          type: string
          description: "ASCII, short: the creator, or what it is."
        thumbnail:
          type: string
          nullable: true
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        descriptors:
          type: array
          items:
            type: string
          nullable: true
          description: Content descriptors from the rating questionnaire (IARC style), shown with the badge on every surface.
        stars:
          $ref: "#/components/schemas/AverageCount2"
        ccu:
          type: number
          description: Players in it now (every api container, refreshed every few seconds).
        friends:
          type: array
          items:
            $ref: "#/components/schemas/UserIdName"
          description: Your friends in it now (mutual follows), at most five named; `friendsCount` is all of them.
        friendsCount:
          type: number
        firstParty:
          type: boolean
        newAndRising:
          type: boolean
          description: In its guaranteed test impressions ("New & rising").
        score:
          type: number
          description: The ranking composite over the last 28 days (discoveryScore).
        play:
          $ref: "#/components/schemas/HrefPlace"
      required:
        - genre
        - devices
        - up
        - down
        - favorites
        - sponsored
        - key
        - kind
        - row
        - slot
        - title
        - subtitle
        - rating
        - ccu
        - friends
        - friendsCount
        - firstParty
        - newAndRising
        - score
        - play
      additionalProperties: false
      nullable: true
    GetWorldPlazaResponseDataRing:
      type: object
      properties:
        genre:
          type: string
          enum:
            - shopping
            - other
            - social
            - strategy
            - hangout
            - simulation
            - obby
            - adventure
            - roleplay
            - sports
            - arcade
            - card_games
        devices:
          type: array
          items:
            type: string
        maxPlayers:
          type: number
          nullable: true
          description: "Most players one server holds (null: unknown)."
        up:
          type: number
        down:
          type: number
        thumbsUp:
          type: number
          nullable: true
          description: "Whole-number thumbs-up percentage (null: no votes yet)."
        favorites:
          type: number
        sponsored:
          type: boolean
          description: 'Paid placement (06 section 9): `label` is then always "Sponsored".'
        label:
          type: string
          nullable: true
        campaignId:
          type: string
          nullable: true
        shop:
          $ref: "#/components/schemas/UsernameHref"
        icon:
          type: string
          nullable: true
          description: |-
            A Carnival game's square icon (1176 media role "icon", approved; falls back to the thumbnail). `thumbnail` is then
            the creator's thumbnail role, else the first approved screenshot, else the experience icon. Absent elsewhere.
        key:
          type: string
        kind:
          type: string
          enum:
            - worlds
            - classic
            - first_party
            - tcg_table
        row:
          type: string
          enum:
            - new
            - top
            - friends
            - more
        slot:
          type: number
          description: "Position in the layout: 0..11 the portal ring, then the rest."
        title:
          type: string
        subtitle:
          type: string
          description: "ASCII, short: the creator, or what it is."
        thumbnail:
          type: string
          nullable: true
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        descriptors:
          type: array
          items:
            type: string
          nullable: true
          description: Content descriptors from the rating questionnaire (IARC style), shown with the badge on every surface.
        stars:
          $ref: "#/components/schemas/AverageCount2"
        ccu:
          type: number
          description: Players in it now (every api container, refreshed every few seconds).
        friends:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Your friends in it now (mutual follows), at most five named; `friendsCount` is all of them.
        friendsCount:
          type: number
        firstParty:
          type: boolean
        newAndRising:
          type: boolean
          description: In its guaranteed test impressions ("New & rising").
        score:
          type: number
          description: The ranking composite over the last 28 days (discoveryScore).
        play:
          $ref: "#/components/schemas/HrefPlace"
      required:
        - genre
        - devices
        - up
        - down
        - favorites
        - sponsored
        - key
        - kind
        - row
        - slot
        - title
        - subtitle
        - rating
        - ccu
        - friends
        - friendsCount
        - firstParty
        - newAndRising
        - score
        - play
      additionalProperties: false
    GetWorldPolicyMeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPolicyMeResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPolicyMeResponseData:
      type: object
      properties:
        canPlay:
          type: boolean
          description: May join experiences at all (region not blocked; a parent link where the law needs one).
        playSteps:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPolicyMeResponseDataPlayStepsItem"
          description: What stands in the way of playing ([] when canPlay).
        canChat:
          type: boolean
        chatLevel:
          type: string
          enum:
            - verified
            - standard
            - off
            - strict
        canUseVoice:
          type: boolean
          description: "Voice in experiences is not at launch (07 §4: 13+ with age estimation, later)."
        canBuy:
          type: boolean
        canBuyPaidRandom:
          type: boolean
        canTrade:
          type: boolean
        canSeeExternalLinks:
          type: boolean
          description: crossly.com links only, 13+.
        canSeeAds:
          type: boolean
        canJoinContests:
          type: boolean
          description: "Skill contests with paid entry: 18+, listed jurisdictions only."
        ratingCeiling:
          type: string
          enum:
            - everyone
            - teen
            - mature
        canViewMature:
          type: boolean
          description: Mature experiences show in discovery for this viewer.
        canJoinMature:
          type: boolean
          description: …and may be joined.
        matureSteps:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPolicyMeResponseDataMatureStepsItem"
          description: What still stands between this viewer and Mature, in order ([] when eligible).
        matureMinAge:
          type: number
          description: The Mature minimum age for this viewer's regions (17 only where every region allows it).
        chatFriendsOnly:
          type: boolean
          description: 'Chat only with friends (mutual follows): every under-18 unless a linked parent turned chat "on".'
        monthlySpendLimitCents:
          type: number
          nullable: true
          description: Crossly Carnival purchases per calendar month (parental controls), cents; null = no limit.
        parentalControls:
          type: boolean
          description: A linked parent's controls apply to this account.
        region:
          type: string
          description: The first valid region given (coarse ISO country), '' when unknown.
        ageBand:
          type: string
          enum:
            - unknown
            - under13
            - 13to17
            - adult
        reasons:
          $ref: "#/components/schemas/GetWorldPolicyMeResponseDataReasons"
      required:
        - canPlay
        - playSteps
        - canChat
        - chatLevel
        - canUseVoice
        - canBuy
        - canBuyPaidRandom
        - canTrade
        - canSeeExternalLinks
        - canSeeAds
        - canJoinContests
        - ratingCeiling
        - canViewMature
        - canJoinMature
        - matureSteps
        - matureMinAge
        - chatFriendsOnly
        - parentalControls
        - region
        - ageBand
        - reasons
      additionalProperties: false
    GetWorldPolicyMeResponseDataReasons:
      type: object
      properties:
        canPlay:
          type: string
          nullable: true
        canChat:
          type: string
          nullable: true
        canUseVoice:
          type: string
          nullable: true
        canBuy:
          type: string
          nullable: true
        canBuyPaidRandom:
          type: string
          nullable: true
        canTrade:
          type: string
          nullable: true
        canSeeExternalLinks:
          type: string
          nullable: true
        canSeeAds:
          type: string
          nullable: true
        canJoinContests:
          type: string
          nullable: true
        canViewMature:
          type: string
          nullable: true
        canJoinMature:
          type: string
          nullable: true
      additionalProperties: false
    GetWorldPropertyPlotResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPropertyPlotResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPropertyPlotResponseData:
      type: object
      properties:
        traffic:
          $ref: "#/components/schemas/GetWorldMarketResponseDataTraffic"
        neighbours:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldMarketResponseDataNeighbours"
        render:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataRender"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldMarketResponseDataHistory"
        value:
          $ref: "#/components/schemas/GetWorldPropertyPlotResponseDataValue"
        showrooms:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialShopNeighbourhoodResponseDataOneOf1Shop"
          description: The store's showrooms that may stand here (assign.ts has the last word).
        plotId:
          type: string
        label:
          type: string
        street:
          $ref: "#/components/schemas/NameSlug"
        number:
          type: number
        tenure:
          type: string
          enum:
            - owned
            - rented
        standing:
          type: string
          enum:
            - active
            - grace
            - rented
            - delinquent
            - foreclosed
          description: "owned: the deed's standing; rented: 'active'."
        paidThrough:
          type: string
          nullable: true
        maintenanceWeeklyCents:
          type: number
          nullable: true
        rentWeeklyCents:
          type: number
          nullable: true
        showroom:
          $ref: "#/components/schemas/GetWorldPropertyPlotResponseDataShowroom"
        letting:
          $ref: "#/components/schemas/GetWorldPropertyPlotResponseDataLetting"
        listing:
          $ref: "#/components/schemas/ListingIdPriceCents"
        deedId:
          type: string
          nullable: true
        leaseId:
          type: string
          nullable: true
        visitPath:
          type: string
        photo:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataPhoto"
      required:
        - traffic
        - neighbours
        - render
        - history
        - value
        - showrooms
        - plotId
        - label
        - street
        - number
        - tenure
        - standing
        - visitPath
        - photo
      additionalProperties: false
    GetWorldPropertyPlotResponseDataLetting:
      type: object
      properties:
        leaseId:
          type: string
        status:
          type: string
        rentWeeklyCents:
          type: number
      required:
        - leaseId
        - status
        - rentWeeklyCents
      additionalProperties: false
      nullable: true
      description: "Renting it out: the lease (offered or active). Selling it: the listing."
    GetWorldPropertyPlotResponseDataShowroom:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        visibility:
          type: string
      required:
        - id
        - name
        - visibility
      additionalProperties: false
      nullable: true
    GetWorldPropertyPlotResponseDataValue:
      type: object
      properties:
        lastSaleCents:
          type: number
          nullable: true
        lastSoldAt:
          type: string
          nullable: true
        estimateCents:
          type: number
      required:
        - estimateCents
      additionalProperties: false
    GetWorldPropertyRentalResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPropertyRentalResponseData:
      type: object
      properties:
        payments:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataPayments"
        terms:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataTerms"
        nextPaymentCents:
          type: number
          nullable: true
          description: The next week's rent, due at nextDueAt (null once the lease ended or before a tenant took it).
        weeksPaid:
          type: number
          description: Weeks paid so far (from the payments).
        render:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataRender"
        photo:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataPhoto"
        standing:
          $ref: "#/components/schemas/NameObject2"
        leaseId:
          type: string
        plotId:
          type: string
        label:
          type: string
        street:
          type: string
        number:
          type: number
        status:
          type: string
          enum:
            - active
            - ended
            - offered
        rentWeeklyCents:
          type: number
        paidThrough:
          type: string
          nullable: true
        nextDueAt:
          type: string
          nullable: true
          description: When the next week is due (paid-through), and when an unpaid lease ends (paid-through + one week).
        endsIfUnpaidAt:
          type: string
          nullable: true
        termsFrozenAt:
          type: string
          nullable: true
        createdAt:
          type: string
        endedAt:
          type: string
          nullable: true
        endReason:
          type: string
          nullable: true
        rail:
          type: string
          enum:
            - cash
            - cbx
          nullable: true
        autopay:
          type: boolean
        counterparty:
          type: string
          nullable: true
          description: "Renting out: who rents it. Renting: who owns it. Display name only."
        showroom:
          $ref: "#/components/schemas/IdName2"
      required:
        - payments
        - terms
        - weeksPaid
        - render
        - photo
        - leaseId
        - plotId
        - label
        - street
        - number
        - status
        - rentWeeklyCents
        - createdAt
        - autopay
      additionalProperties: false
    GetWorldPropertyRentalResponseDataPayments:
      type: object
      properties:
        id:
          type: string
        cents:
          type: number
        rail:
          type: string
        status:
          type: string
        at:
          type: string
      required:
        - id
        - cents
        - rail
        - status
        - at
      additionalProperties: false
    GetWorldPropertyRentalResponseDataPhoto:
      type: object
      properties:
        url:
          type: string
          nullable: true
          description: The stored image, or null when none was made yet.
        buildKey:
          type: string
          description: The key of what the plot looks like now.
        current:
          type: boolean
          description: The stored image shows what is there now (its key is `buildKey`).
        source:
          type: string
          enum:
            - capture
            - render
          nullable: true
        at:
          type: string
          nullable: true
      required:
        - buildKey
        - current
      additionalProperties: false
      description: "Its photo: a cached frontage render or an in-world capture (plot-photo.ts)."
    GetWorldPropertyRentalResponseDataRender:
      type: object
      properties:
        plotIndex:
          type: number
          nullable: true
          description: Plot index on its street (side and slot); null draws the whole street.
        streetPlots:
          type: number
        theme:
          type: string
          nullable: true
        shop:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataRenderShop"
      required:
        - streetPlots
      additionalProperties: false
    GetWorldPropertyRentalResponseDataRenderShop:
      type: object
      properties:
        name:
          type: string
        colour:
          type: string
          nullable: true
          description: "`#rrggbb`, or null for the street's default."
      required:
        - name
      additionalProperties: false
      nullable: true
      description: The showroom standing there (public ones only on public reads); null = vacant. Absent on older reads.
    GetWorldPropertyRentalResponseDataTerms:
      type: object
      properties:
        length:
          type: string
        notice:
          type: string
        graceDays:
          type: number
        refundsPaidWeeks:
          type: boolean
      required:
        - length
        - notice
        - graceDays
        - refundsPaidWeeks
      additionalProperties: false
    GetWorldPulseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPulseResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPulseResponseData:
      type: object
      properties:
        busyShops:
          type: array
          items:
            type: string
          description: Public shop slugs with a sale today, most recent first.
        milestones:
          type: array
          items:
            type: string
          description: ISO times of today's milestone sales (the step-th, 2*step-th, ...).
        cares:
          $ref: "#/components/schemas/GetWorldPulseResponseDataCares"
        updatedAt:
          type: string
      required:
        - busyShops
        - milestones
        - cares
        - updatedAt
      additionalProperties: false
    GetWorldPulseResponseDataCares:
      type: object
      properties:
        monthCents:
          type: number
        goalCents:
          type: number
        month:
          type: string
      required:
        - monthCents
        - goalCents
        - month
      additionalProperties: false
    GetWorldPurchaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldPurchaseResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldPurchaseResponseData:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        experience:
          $ref: "#/components/schemas/GetWorldPurchaseResponseDataExperience"
        product:
          $ref: "#/components/schemas/GetWorldPurchaseResponseDataProduct"
        priceCents:
          type: number
        taxCents:
          type: number
        totalCents:
          type: number
        currency:
          type: string
        odds:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceDropTablesItemOdds"
          nullable: true
        dropTableHash:
          type: string
          nullable: true
        creatorSharePct:
          type: number
        expiresAt:
          type: string
      required:
        - id
        - status
        - priceCents
        - taxCents
        - totalCents
        - currency
        - creatorSharePct
        - expiresAt
      additionalProperties: false
    GetWorldPurchaseResponseDataExperience:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        iconUrl:
          type: string
          nullable: true
      required:
        - id
        - name
      additionalProperties: false
      nullable: true
    GetWorldPurchaseResponseDataProduct:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        name:
          type: string
        description:
          type: string
        iconUrl:
          type: string
          nullable: true
        paidRandom:
          type: boolean
        recurring:
          type: boolean
      required:
        - id
        - kind
        - name
        - description
        - paidRandom
        - recurring
      additionalProperties: false
      nullable: true
    GetWorldRailResponse:
      type: object
      properties:
        setting:
          type: string
          enum:
            - both
            - cbx_only
            - cash_only
        cbxLive:
          type: boolean
        effective:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldRailResponseEffectiveItem"
        showCbxNotLive:
          type: boolean
          description: 'Only true when CBX is the ONLY rail and it is not live: the one case to say "CBX is not live yet".'
      required:
        - setting
        - cbxLive
        - effective
        - showCbxNotLive
      additionalProperties: false
    GetWorldRatingQuestionnaireResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldRatingQuestionnaireResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldRatingQuestionnaireResponseData:
      type: object
      properties:
        version:
          type: number
        ratings:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldRatingQuestionnaireResponseDataRatings"
        questions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceMaturityResponseDataQuestions"
        neverAllowed:
          type: array
          items:
            type: string
        matureRules:
          $ref: "#/components/schemas/GetWorldRatingQuestionnaireResponseDataMatureRules"
      required:
        - version
        - ratings
        - questions
        - neverAllowed
        - matureRules
      additionalProperties: false
    GetWorldRatingQuestionnaireResponseDataMatureRules:
      type: object
      properties:
        requires:
          type: array
          items:
            type: string
        humanReview:
          type: string
        regions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldRatingQuestionnaireResponseDataMatureRulesRegions"
      required:
        - requires
        - humanReview
        - regions
      additionalProperties: false
    GetWorldRatingQuestionnaireResponseDataMatureRulesRegions:
      type: object
      properties:
        region:
          type: string
        blocked:
          type: boolean
        minAge:
          type: number
        basis:
          type: string
      required:
        - region
        - blocked
        - minAge
        - basis
      additionalProperties: false
    GetWorldRatingQuestionnaireResponseDataRatings:
      type: object
      properties:
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        label:
          type: string
        minAge:
          type: number
      required:
        - rating
        - label
        - minAge
      additionalProperties: false
    GetWorldRewardTopupResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldRewardTopupResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldRewardTopupResponseData:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        status:
          type: string
          enum:
            - expired
            - cancelled
            - open
            - paid
            - refused
            - paying
        amountCents:
          type: number
        feeCents:
          type: number
        totalCents:
          type: number
        currency:
          type: string
        expiresAt:
          type: string
        paidAt:
          type: string
          nullable: true
        returnedCents:
          type: number
        reversedCents:
          type: number
        checkoutPath:
          type: string
        checkoutUrl:
          type: string
        experienceName:
          type: string
        pool:
          $ref: "#/components/schemas/CreateWorldExperienceRewardCloseResponseDataPool"
      required:
        - id
        - experienceId
        - status
        - amountCents
        - feeCents
        - totalCents
        - currency
        - expiresAt
        - returnedCents
        - reversedCents
        - checkoutPath
        - checkoutUrl
        - experienceName
      additionalProperties: false
    GetWorldRoomFunnelResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldRoomFunnelResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldRoomFunnelResponseData:
      type: object
      properties:
        days:
          type: number
        viewers:
          type: number
        looks:
          type: number
        inspects:
          type: number
        checkouts:
          type: number
        sales:
          type: number
        revenueCents:
          type: number
      required:
        - days
        - viewers
        - looks
        - inspects
        - checkouts
        - sales
        - revenueCents
      additionalProperties: false
    GetWorldSearchResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldSearchResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldSearchResponseData:
      type: object
      properties:
        q:
          type: string
        generatedAt:
          type: string
        results:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldSearchResponseDataResults"
        suggestion:
          $ref: "#/components/schemas/GetWorldSearchResponseDataSuggestion"
      required:
        - q
        - generatedAt
        - results
      additionalProperties: false
    GetWorldSearchResponseDataResults:
      type: object
      properties:
        relevance:
          type: number
        exact:
          type: boolean
        genre:
          type: string
          enum:
            - shopping
            - other
            - social
            - strategy
            - hangout
            - simulation
            - obby
            - adventure
            - roleplay
            - sports
            - arcade
            - card_games
        devices:
          type: array
          items:
            type: string
        maxPlayers:
          type: number
          nullable: true
          description: "Most players one server holds (null: unknown)."
        up:
          type: number
        down:
          type: number
        thumbsUp:
          type: number
          nullable: true
          description: "Whole-number thumbs-up percentage (null: no votes yet)."
        favorites:
          type: number
        sponsored:
          type: boolean
          description: 'Paid placement (06 section 9): `label` is then always "Sponsored".'
        label:
          type: string
          nullable: true
        campaignId:
          type: string
          nullable: true
        shop:
          $ref: "#/components/schemas/UsernameHref"
        icon:
          type: string
          nullable: true
          description: |-
            A Carnival game's square icon (1176 media role "icon", approved; falls back to the thumbnail). `thumbnail` is then
            the creator's thumbnail role, else the first approved screenshot, else the experience icon. Absent elsewhere.
        key:
          type: string
        kind:
          type: string
          enum:
            - worlds
            - classic
            - first_party
            - tcg_table
        row:
          type: string
          enum:
            - new
            - top
            - friends
            - more
        slot:
          type: number
          description: "Position in the layout: 0..11 the portal ring, then the rest."
        title:
          type: string
        subtitle:
          type: string
          description: "ASCII, short: the creator, or what it is."
        thumbnail:
          type: string
          nullable: true
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        descriptors:
          type: array
          items:
            type: string
          nullable: true
          description: Content descriptors from the rating questionnaire (IARC style), shown with the badge on every surface.
        stars:
          $ref: "#/components/schemas/AverageCount2"
        ccu:
          type: number
          description: Players in it now (every api container, refreshed every few seconds).
        friends:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Your friends in it now (mutual follows), at most five named; `friendsCount` is all of them.
        friendsCount:
          type: number
        firstParty:
          type: boolean
        newAndRising:
          type: boolean
          description: In its guaranteed test impressions ("New & rising").
        score:
          type: number
          description: The ranking composite over the last 28 days (discoveryScore).
        play:
          $ref: "#/components/schemas/HrefPlace"
      required:
        - relevance
        - exact
        - genre
        - devices
        - up
        - down
        - favorites
        - sponsored
        - key
        - kind
        - row
        - slot
        - title
        - subtitle
        - rating
        - ccu
        - friends
        - friendsCount
        - firstParty
        - newAndRising
        - score
        - play
      additionalProperties: false
    GetWorldSearchResponseDataSuggestion:
      type: object
      properties:
        chart:
          type: string
          enum:
            - friends
            - top-playing
            - trending
            - new-rising
            - top-rated
            - most-favorited
        label:
          type: string
        blurb:
          type: string
        genre:
          type: string
          enum:
            - shopping
            - other
            - social
            - strategy
            - hangout
            - simulation
            - obby
            - adventure
            - roleplay
            - sports
            - arcade
            - card_games
          nullable: true
        generatedAt:
          type: string
        entries:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldSearchResponseDataSuggestionEntries"
      required:
        - chart
        - label
        - blurb
        - generatedAt
        - entries
      additionalProperties: false
      nullable: true
      description: "With no results: a chart to try instead (06 section 12: zero results suggest charts)."
    GetWorldSearchResponseDataSuggestionEntries:
      type: object
      properties:
        rank:
          type: number
        value:
          type: number
        genre:
          type: string
          enum:
            - shopping
            - other
            - social
            - strategy
            - hangout
            - simulation
            - obby
            - adventure
            - roleplay
            - sports
            - arcade
            - card_games
        devices:
          type: array
          items:
            type: string
        maxPlayers:
          type: number
          nullable: true
          description: "Most players one server holds (null: unknown)."
        up:
          type: number
        down:
          type: number
        thumbsUp:
          type: number
          nullable: true
          description: "Whole-number thumbs-up percentage (null: no votes yet)."
        favorites:
          type: number
        sponsored:
          type: boolean
          description: 'Paid placement (06 section 9): `label` is then always "Sponsored".'
        label:
          type: string
          nullable: true
        campaignId:
          type: string
          nullable: true
        shop:
          type: object
          nullable: true
          description: The seller behind a Worlds experience, linking back to their shop (buyer-led discovery).
          additionalProperties: {}
        icon:
          type: string
          nullable: true
          description: |-
            A Carnival game's square icon (1176 media role "icon", approved; falls back to the thumbnail). `thumbnail` is then
            the creator's thumbnail role, else the first approved screenshot, else the experience icon. Absent elsewhere.
        key:
          type: string
        kind:
          type: string
          enum:
            - worlds
            - classic
            - first_party
            - tcg_table
        row:
          type: string
          enum:
            - new
            - top
            - friends
            - more
        slot:
          type: number
          description: "Position in the layout: 0..11 the portal ring, then the rest."
        title:
          type: string
        subtitle:
          type: string
          description: "ASCII, short: the creator, or what it is."
        thumbnail:
          type: string
          nullable: true
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        descriptors:
          type: array
          items:
            type: string
          nullable: true
          description: Content descriptors from the rating questionnaire (IARC style), shown with the badge on every surface.
        stars:
          type: object
          nullable: true
          additionalProperties: {}
        ccu:
          type: number
          description: Players in it now (every api container, refreshed every few seconds).
        friends:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Your friends in it now (mutual follows), at most five named; `friendsCount` is all of them.
        friendsCount:
          type: number
        firstParty:
          type: boolean
        newAndRising:
          type: boolean
          description: In its guaranteed test impressions ("New & rising").
        score:
          type: number
          description: The ranking composite over the last 28 days (discoveryScore).
        play:
          type: object
          additionalProperties: {}
      required:
        - rank
        - value
        - genre
        - devices
        - up
        - down
        - favorites
        - sponsored
        - key
        - kind
        - row
        - slot
        - title
        - subtitle
        - rating
        - ccu
        - friends
        - friendsCount
        - firstParty
        - newAndRising
        - score
        - play
      additionalProperties: false
    GetWorldShelfResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldShelfResponseData"
      additionalProperties: false
    GetWorldShelfResponseData:
      type: object
      properties:
        roomSlug:
          type: string
        roomName:
          type: string
        itemId:
          type: string
      required:
        - roomSlug
        - roomName
        - itemId
      additionalProperties: false
      nullable: true
    GetWorldSkusCheapestResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldSkusCheapestResponseData"
      additionalProperties: false
    GetWorldSkusCheapestResponseData:
      type: object
      properties:
        listingSlug:
          type: string
        priceCents:
          type: number
        roomSlug:
          type: string
          nullable: true
        itemId:
          type: string
          nullable: true
      required:
        - listingSlug
        - priceCents
      additionalProperties: false
      nullable: true
    GetWorldSpaceCanHostResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldSpaceCanHostResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldSpaceCanHostResponseData:
      type: object
      properties:
        seller:
          type: boolean
        hosted:
          type: number
        max:
          type: number
      required:
        - seller
        - hosted
        - max
      additionalProperties: false
    GetWorldSpaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldSpaceResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldSpaceResponseData:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        venue:
          type: string
          enum:
            - stage
            - gallery
            - card_club
            - sneaker_meet
            - vintage_market
            - clubhouse
        membership:
          type: string
        about:
          type: string
          nullable: true
        host:
          $ref: "#/components/schemas/UserIdName"
        members:
          type: number
        here:
          type: number
          description: People in the Space right now, every copy together.
        presenceSlug:
          type: string
        layout:
          $ref: "#/components/schemas/GetWorldSpaceResponseDataLayout"
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldSpaceResponseDataEvents"
        you:
          $ref: "#/components/schemas/GetWorldSpaceResponseDataYou"
        showcase:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldSpaceResponseDataShowcase"
          description: The host's items for sale (their public shop), stood on the plinths and shelves.
      required:
        - id
        - slug
        - name
        - venue
        - membership
        - host
        - members
        - here
        - presenceSlug
        - layout
        - events
        - showcase
      additionalProperties: false
    GetWorldSpaceResponseDataEvents:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        kind:
          type: string
        about:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
        cancelledAt:
          type: string
          nullable: true
        going:
          type: number
        youGoing:
          type: boolean
        clubOnly:
          type: boolean
          description: For the host's loyalty club members only (Wave 4.10).
      required:
        - id
        - title
        - kind
        - startsAt
        - endsAt
        - going
        - youGoing
        - clubOnly
      additionalProperties: false
    GetWorldSpaceResponseDataLayout:
      type: object
      properties:
        floor:
          $ref: "#/components/schemas/GetHomeResponseRoomFloor"
        spawn:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          description: Where you arrive, and what you look at.
        target:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        props:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldSpaceResponseDataLayoutProps"
        tableSpots:
          type: array
          items:
            type: array
            items:
              type: number
            minItems: 3
            maxItems: 3
          description: Where trade tables and card tables stand in this venue.
        board:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          description: The events board, by the way in.
        interactive:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldSpaceResponseDataLayoutProps"
          description: |-
            The venue's interactive pieces (interactive-objects.ts): live for
            everybody in the Space, its presence slug the place, the host the owner
            (who may wipe their state). Drawn and checked from this same list, so
            the api and both clients agree where each one stands.
      required:
        - floor
        - spawn
        - target
        - props
        - tableSpots
        - board
        - interactive
      additionalProperties: false
    GetWorldSpaceResponseDataLayoutProps:
      type: object
      properties:
        model:
          type: string
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        rotationY:
          type: number
        scale:
          type: number
          nullable: true
      required:
        - model
        - position
        - rotationY
      additionalProperties: false
    GetWorldSpaceResponseDataShowcase:
      type: object
      properties:
        itemId:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        priceCents:
          type: number
        roomSlug:
          type: string
      required:
        - itemId
        - title
        - priceCents
        - roomSlug
      additionalProperties: false
    GetWorldSpaceResponseDataYou:
      type: object
      properties:
        role:
          type: string
        status:
          type: string
      required:
        - role
        - status
      additionalProperties: false
      nullable: true
      description: "Your place in it, when signed in: role and status, or null."
    GetWorldStaffPostingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldStaffPostingsItem"
      required:
        - data
      additionalProperties: false
    GetWorldStaffReputationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldStaffReputationResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldStaffReputationResponseData:
      type: object
      properties:
        score:
          $ref: "#/components/schemas/GetWorldStaffReputationResponseDataScore"
        dimensions:
          $ref: "#/components/schemas/GetWorldStaffReputationResponseDataDimensions"
        ratings:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldStaffReputationResponseDataRatings"
      required:
        - score
        - dimensions
        - ratings
      additionalProperties: false
    GetWorldStaffReputationResponseDataDimensions:
      type: object
      properties:
        paidOnTime:
          type: number
          nullable: true
        accurate:
          type: number
          nullable: true
        conduct:
          type: number
          nullable: true
      additionalProperties: false
    GetWorldStaffReputationResponseDataRatings:
      type: object
      properties:
        shiftId:
          type: string
        shiftTitle:
          type: string
        at:
          type: string
        mean:
          type: number
        scores:
          type: object
          additionalProperties: {}
        comment:
          type: string
          nullable: true
        by:
          type: string
          description: The rater's display name (public employees are named; nothing else about them).
      required:
        - shiftId
        - shiftTitle
        - at
        - mean
        - scores
        - by
      additionalProperties: false
    GetWorldStaffReputationResponseDataScore:
      type: object
      properties:
        stars:
          type: number
          description: 1.0 .. 5.0, one decimal.
        tenths:
          type: number
          description: The same in tenths (the unit postings store `min_worker_rep` in).
        count:
          type: number
        isNew:
          type: boolean
          description: True while too few ratings exist to say much ("New").
      required:
        - stars
        - tenths
        - count
        - isNew
      additionalProperties: false
    GetWorldStandResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldStandResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldStandResponseData:
      type: object
      properties:
        placeSlug:
          type: string
          nullable: true
          description: The place as the drop config stores it (null = the shop).
        showroomId:
          type: string
          nullable: true
          description: The showroom whose fixtures are the stands; null when the plot has no showroom on it yet.
        stands:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldStandResponseDataStands"
      required:
        - stands
      additionalProperties: false
    GetWorldStandResponseDataStands:
      type: object
      properties:
        index:
          type: number
          description: What world.boothSpotIndex stores (0 = the first).
        name:
          type: string
        display:
          type: string
          description: The display it is (space profile label).
        units:
          type: number
        capacity:
          type: number
          description: How many items it shows (its size).
        taken:
          type: boolean
          description: Another drop of the store, not ended, already stands there.
        takenBy:
          $ref: "#/components/schemas/GetWorldStandResponseDataStandsTakenBy"
        priceCents:
          type: number
          nullable: true
          description: "null: a stand in the seller's own place costs nothing extra."
      required:
        - index
        - name
        - display
        - units
        - capacity
        - taken
      additionalProperties: false
    GetWorldStandResponseDataStandsTakenBy:
      type: object
      properties:
        dropId:
          type: string
        name:
          type: string
      required:
        - dropId
        - name
      additionalProperties: false
      nullable: true
    GetWorldStreetFundResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldStreetFundResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldStreetFundResponseData:
      type: object
      properties:
        cents:
          type: number
        windowDays:
          type: number
        unlocked:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldStreetFundResponseDataUnlockedItem"
        next:
          $ref: "#/components/schemas/GetWorldStreetFundResponseDataNext"
      required:
        - cents
        - windowDays
        - unlocked
      additionalProperties: false
    GetWorldStreetFundResponseDataNext:
      type: object
      properties:
        key:
          type: string
          enum:
            - bunting
            - lanterns
            - party-arch
            - festival-lights
        label:
          type: string
        needCents:
          type: number
      required:
        - key
        - label
        - needCents
      additionalProperties: false
      nullable: true
      description: The next tier and how far off it is; null once every tier is unlocked.
    GetWorldStreetOwnedResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldStreetOwnedResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldStreetOwnedResponseData:
      type: object
      properties:
        street:
          $ref: "#/components/schemas/ListSpatialStreetMineItem"
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        store:
          $ref: "#/components/schemas/IdName2"
        admission:
          type: string
        theme:
          type: string
          enum:
            - sneaker-row
            - card-district
            - vintage-alley
            - vinyl-lane
          nullable: true
        themes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldStreetOwnedResponseDataThemes"
        tenants:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldStreetOwnedResponseDataTenantsItem"
        applications:
          type: array
          items:
            $ref: "#/components/schemas/GetSpatialStreetAdmissionResponseDataToDecide"
        upkeep:
          $ref: "#/components/schemas/GetWorldStreetOwnedResponseDataUpkeep"
        look:
          $ref: "#/components/schemas/ListWorldDecorStreetsItem"
        fund:
          $ref: "#/components/schemas/GetWorldStreetOwnedResponseDataFund"
        listing:
          $ref: "#/components/schemas/ListingIdPriceCents"
      required:
        - street
        - id
        - slug
        - name
        - admission
        - themes
        - tenants
        - applications
        - upkeep
        - look
        - fund
      additionalProperties: false
    GetWorldStreetOwnedResponseDataFund:
      type: object
      properties:
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldStreetOwnedResponseDataFundTiers"
        windowDays:
          type: number
        cents:
          type: number
        unlocked:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldStreetOwnedResponseDataFundUnlockedItem"
        next:
          $ref: "#/components/schemas/GetWorldStreetFundResponseDataNext"
      required:
        - tiers
        - windowDays
        - cents
        - unlocked
      additionalProperties: false
    GetWorldStreetOwnedResponseDataFundTiers:
      type: object
      properties:
        key:
          type: string
          enum:
            - bunting
            - lanterns
            - party-arch
            - festival-lights
        cents:
          type: number
          description: Property payments on the street over the window, in cents, that unlock it.
        label:
          type: string
        what:
          type: string
      required:
        - key
        - cents
        - label
        - what
      additionalProperties: false
    GetWorldStreetOwnedResponseDataThemes:
      type: object
      properties:
        id:
          type: string
          enum:
            - sneaker-row
            - card-district
            - vintage-alley
            - vinyl-lane
        label:
          type: string
        meaning:
          type: string
          description: "One line: what a visitor expects on a street with this theme."
      required:
        - id
        - label
        - meaning
      additionalProperties: false
    GetWorldStreetOwnedResponseDataUpkeep:
      type: object
      properties:
        weeklyCents:
          type: number
        paidThrough:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - active
            - grace
            - delinquent
            - foreclosed
          nullable: true
      required:
        - weeklyCents
      additionalProperties: false
    GetWorldStreetTrespassBarrierResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldStreetTrespassBarrierResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldStreetTrespassBarrierResponseData:
      type: object
      properties:
        plotIndexes:
          type: array
          items:
            type: number
      required:
        - plotIndexes
      additionalProperties: false
    GetWorldStudioClassResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldStudioClassResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldStudioClassResponseDataOneOf1Classes:
      type: object
      properties:
        name:
          type: string
        super:
          type: string
          nullable: true
        abstract:
          type: boolean
        service:
          type: boolean
        ownProps:
          type: array
          items:
            type: string
      required:
        - name
        - abstract
        - service
        - ownProps
      additionalProperties: false
    GetWorldStudioClassResponseDataOneOf1Encodings:
      type: object
      properties:
        string:
          type: string
        ref:
          type: string
        enum:
          type: string
        bool:
          type: string
        f32:
          type: string
        f64:
          type: string
        i32:
          type: string
        color3:
          type: string
        cframe:
          type: string
        vector3:
          type: string
        vector2:
          type: string
        udim:
          type: string
        udim2:
          type: string
      required:
        - string
        - ref
        - enum
        - bool
        - f32
        - f64
        - i32
        - color3
        - cframe
        - vector3
        - vector2
        - udim
        - udim2
      additionalProperties: false
    GetWorldStudioClassResponseDataOneOfProps:
      type: object
      properties:
        encoding:
          type: string
        name:
          type: string
        type:
          type: string
          enum:
            - string
            - ref
            - enum
            - bool
            - f32
            - f64
            - i32
            - color3
            - cframe
            - vector3
            - vector2
            - udim
            - udim2
        values:
          type: array
          items:
            type: string
          nullable: true
          description: "enum: the allowed values."
        refClass:
          type: string
          nullable: true
          description: "ref: the class the referenced instance must be (or derive from)."
        max:
          type: number
          nullable: true
          description: "string: the longest value."
        declaredBy:
          type: string
      required:
        - encoding
        - name
        - type
        - declaredBy
      additionalProperties: false
    GetWorldTransparencyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldTransparencyResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldTransparencyResponseData:
      type: object
      properties:
        month:
          type: string
        generatedAt:
          type: string
        totals:
          $ref: "#/components/schemas/GetWorldTransparencyResponseDataTotals"
        reportsByReason:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldTransparencyResponseDataReportsByReason"
        reportsBySource:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldTransparencyResponseDataReportsByReason"
        reportsSevere:
          type: number
        reportsDecided:
          $ref: "#/components/schemas/GetWorldTransparencyResponseDataReportsDecided"
        medianHoursToDecision:
          type: number
          nullable: true
        actionsByKind:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldTransparencyResponseDataReportsByReason"
        actionsByIssuer:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldTransparencyResponseDataReportsByReason"
        altCarries:
          type: number
        appeals:
          $ref: "#/components/schemas/GetWorldTransparencyResponseDataAppeals"
        publishReviews:
          $ref: "#/components/schemas/GetWorldTransparencyResponseDataPublishReviews"
        secondReviews:
          $ref: "#/components/schemas/GetWorldTransparencyResponseDataSecondReviews"
        parentLinks:
          type: number
        matureEligibleAccounts:
          type: number
        publishedAt:
          type: string
      required:
        - month
        - generatedAt
        - totals
        - reportsByReason
        - reportsBySource
        - reportsSevere
        - reportsDecided
        - actionsByKind
        - actionsByIssuer
        - altCarries
        - appeals
        - publishReviews
        - secondReviews
        - parentLinks
        - matureEligibleAccounts
        - publishedAt
      additionalProperties: false
    GetWorldTransparencyResponseDataAppeals:
      type: object
      properties:
        filed:
          type: number
        upheld:
          type: number
        overturned:
          type: number
        open:
          type: number
        overturnRate:
          type: number
          nullable: true
      required:
        - filed
        - upheld
        - overturned
        - open
      additionalProperties: false
    GetWorldTransparencyResponseDataPublishReviews:
      type: object
      properties:
        approved:
          type: number
        rejected:
          type: number
        changesRequested:
          type: number
      required:
        - approved
        - rejected
        - changesRequested
      additionalProperties: false
    GetWorldTransparencyResponseDataReportsByReason:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        count:
          type: number
      required:
        - key
        - label
        - count
      additionalProperties: false
    GetWorldTransparencyResponseDataReportsDecided:
      type: object
      properties:
        actioned:
          type: number
        dismissed:
          type: number
        open:
          type: number
      required:
        - actioned
        - dismissed
        - open
      additionalProperties: false
    GetWorldTransparencyResponseDataSecondReviews:
      type: object
      properties:
        approved:
          type: number
        rejected:
          type: number
      required:
        - approved
        - rejected
      additionalProperties: false
    GetWorldTransparencyResponseDataTotals:
      type: object
      properties:
        reports:
          type: number
        actions:
          type: number
        appeals:
          type: number
      required:
        - reports
        - actions
        - appeals
      additionalProperties: false
    GetWorldTrialLeaderboardResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldTrialLeaderboardResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldTrialLeaderboardResponseData:
      type: object
      properties:
        course:
          $ref: "#/components/schemas/GetWorldTrialLeaderboardResponseDataCourse"
        week:
          type: string
          description: The week shown (its Monday, YYYY-MM-DD).
        weekly:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldTrialLeaderboardResponseDataWeekly"
        allTime:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldTrialLeaderboardResponseDataWeekly"
      required:
        - course
        - week
        - weekly
        - allTime
      additionalProperties: false
    GetWorldTrialLeaderboardResponseDataCourse:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        parMs:
          type: number
        rings:
          type: number
        lengthM:
          type: number
      required:
        - id
        - name
        - parMs
        - rings
        - lengthM
      additionalProperties: false
    GetWorldTrialLeaderboardResponseDataWeekly:
      type: object
      properties:
        rank:
          type: number
        name:
          type: string
          description: Their room name, only when they chose to be named (leaderboards.ts ANONYMOUS_PLAYER otherwise).
        short:
          type: string
          description: "`name` as the board draws it: ASCII, short."
        named:
          type: boolean
        ms:
          type: number
        at:
          type: string
          description: When it was set (ISO).
      required:
        - rank
        - name
        - short
        - named
        - ms
        - at
      additionalProperties: false
    GetWorldTrialMineResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldTrialMineResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldTrialMineResponseData:
      type: object
      properties:
        week:
          type: string
        courses:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldTrialMineResponseDataCourses"
      required:
        - week
        - courses
      additionalProperties: false
    GetWorldTrialMineResponseDataCourses:
      type: object
      properties:
        course:
          $ref: "#/components/schemas/GetWorldTrialLeaderboardResponseDataCourse"
        week:
          $ref: "#/components/schemas/GetWorldTrialMineResponseDataCoursesWeek"
        allTime:
          $ref: "#/components/schemas/GetWorldTrialMineResponseDataCoursesAllTime"
      required:
        - course
      additionalProperties: false
    GetWorldTrialMineResponseDataCoursesAllTime:
      type: object
      properties:
        ms:
          type: number
        rank:
          type: number
        at:
          type: string
      required:
        - ms
        - rank
        - at
      additionalProperties: false
      nullable: true
      description: Your best ever on this course, and its place on the all-time board.
    GetWorldTrialMineResponseDataCoursesWeek:
      type: object
      properties:
        ms:
          type: number
        rank:
          type: number
        laps:
          type: number
        splits:
          type: array
          items:
            type: number
      required:
        - ms
        - rank
        - laps
        - splits
      additionalProperties: false
      nullable: true
      description: "Your best this week: time, place on the weekly board, laps finished, splits."
    GetWorldVenueQuoteResponse:
      type: object
      properties:
        venueId:
          type: string
        startsOn:
          type: string
        endsOn:
          type: string
        days:
          type: number
        dayCents:
          type: number
        totalCents:
          type: number
        fullRefundUntil:
          type: string
          description: The last day a cancellation gives the whole rent back (YYYY-MM-DD).
        available:
          type: boolean
        venue:
          $ref: "#/components/schemas/GetWorldVenueQuoteResponseVenue"
      required:
        - venueId
        - startsOn
        - endsOn
        - days
        - dayCents
        - totalCents
        - fullRefundUntil
        - available
        - venue
      additionalProperties: false
    GetWorldVenueQuoteResponseVenue:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        building:
          type: string
        size:
          type: string
          enum:
            - hall_s
            - hall_m
            - hall_l
            - full_floor
        widthM:
          type: number
        depthM:
          type: number
        maxBooths:
          type: number
        dayCents:
          type: number
      required:
        - id
        - slug
        - name
        - building
        - size
        - widthM
        - depthM
        - maxBooths
        - dayCents
      additionalProperties: false
    GetWorldWalletResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldWalletResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldWalletResponseData:
      type: object
      properties:
        bucksCents:
          type: number
        cbx:
          $ref: "#/components/schemas/GetWorldWalletResponseDataCbx"
        cosm:
          $ref: "#/components/schemas/GetWorldWalletResponseDataCosm"
      required:
        - bucksCents
        - cbx
        - cosm
      additionalProperties: false
    GetWorldWishResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldWishResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldWishResponseData:
      type: object
      properties:
        day:
          type: string
        today:
          type: number
          description: Wishes made today, everyone's.
        mine:
          $ref: "#/components/schemas/GetWorldWishResponseDataMine"
      required:
        - day
        - today
      additionalProperties: false
    GetWorldWishResponseDataMine:
      type: object
      properties:
        madeToday:
          type: boolean
        days:
          type: number
        nextAt:
          type: string
      required:
        - madeToday
        - days
        - nextAt
      additionalProperties: false
      nullable: true
      description: "Signed in only: whether you have made today's, how many days you have wished on, and when the next opens."
    GetWorldWorkEarningResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldWorkEarningResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldWorkEarningResponseData:
      type: object
      properties:
        totals:
          $ref: "#/components/schemas/GetWorldWorkEarningResponseDataTotals"
        lines:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldWorkEarningResponseDataLines"
        connect:
          $ref: "#/components/schemas/GetWorldWorkEarningResponseDataConnect"
      required:
        - totals
        - lines
        - connect
      additionalProperties: false
    GetWorldWorkEarningResponseDataConnect:
      type: object
      properties:
        status:
          type: string
        needsOnboarding:
          type: boolean
      required:
        - status
        - needsOnboarding
      additionalProperties: false
    GetWorldWorkEarningResponseDataLines:
      type: object
      properties:
        assignmentId:
          type: string
        shiftTitle:
          type: string
        place:
          type: string
        endedAt:
          type: string
        rail:
          type: string
          enum:
            - cash
            - cbx
            - bucks
        cents:
          type: number
          nullable: true
        state:
          type: string
          enum:
            - pending
            - failed
            - paid
            - held_for_onboarding
        failure:
          type: string
          nullable: true
      required:
        - assignmentId
        - shiftTitle
        - place
        - endedAt
        - rail
        - state
      additionalProperties: false
    GetWorldWorkEarningResponseDataTotals:
      type: object
      properties:
        cash:
          $ref: "#/components/schemas/GetWorldWorkEarningResponseDataTotalsCash"
        cbx:
          $ref: "#/components/schemas/GetWorldWorkEarningResponseDataTotalsCash"
        bucks:
          $ref: "#/components/schemas/GetWorldWorkEarningResponseDataTotalsCash"
      required:
        - cash
        - cbx
        - bucks
      additionalProperties: false
    GetWorldWorkEarningResponseDataTotalsCash:
      type: object
      properties:
        paidCents:
          type: number
        pendingCents:
          type: number
        heldCents:
          type: number
      required:
        - paidCents
        - pendingCents
        - heldCents
      additionalProperties: false
    GetWorldWorkMineResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldWorkMineResponseData"
      required:
        - data
      additionalProperties: false
    GetWorldWorkMineResponseData:
      type: object
      properties:
        shifts:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldWorkMineResponseDataShifts"
        applications:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldWorkMineResponseDataApplications"
        openJobs:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldWorkMineResponseDataOpenJobs"
      required:
        - shifts
        - applications
        - openJobs
      additionalProperties: false
    GetWorldWorkMineResponseDataApplications:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        appliedAt:
          type: string
        posting:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataApplicationsPosting"
      required:
        - id
        - status
        - appliedAt
        - posting
      additionalProperties: false
    GetWorldWorkMineResponseDataApplicationsPosting:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        target:
          type: object
          additionalProperties: {}
        role:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        visibility:
          type: string
          enum:
            - public
            - private
        pay:
          type: object
          additionalProperties: {}
        timezone:
          type: string
        recurrence:
          type: object
          additionalProperties: {}
        startsAt:
          type: string
        endsAt:
          type: string
        whitelist:
          type: object
          additionalProperties: {}
        blacklist:
          type: array
          items:
            type: string
        minWorkerRep:
          type: number
          nullable: true
        requiredBadges:
          type: array
          items:
            type: string
        maxStaff:
          type: number
        autoApprove:
          type: object
          additionalProperties: {}
        breaks:
          type: object
          nullable: true
          additionalProperties: {}
        checkIn:
          type: object
          additionalProperties: {}
        noShow:
          type: object
          additionalProperties: {}
        notes:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - paused
            - open
            - closed
        createdAt:
          type: string
      required:
        - id
        - target
        - role
        - title
        - visibility
        - pay
        - timezone
        - recurrence
        - startsAt
        - endsAt
        - whitelist
        - blacklist
        - requiredBadges
        - maxStaff
        - autoApprove
        - checkIn
        - noShow
        - status
        - createdAt
      additionalProperties: false
    GetWorldWorkMineResponseDataOpenJobs:
      type: object
      properties:
        employer:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataOpenJobsEmployer"
        nextShift:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataOpenJobsNextShift"
        openSeats:
          type: number
        myApplication:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataOpenJobsMyApplication"
        id:
          type: string
        createdAt:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - paused
            - open
            - closed
        storefrontId:
          type: string
          nullable: true
        role:
          type: string
        title:
          type: string
        endsAt:
          type: string
        target:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataTarget"
        startsAt:
          type: string
        timezone:
          type: string
        visibility:
          type: string
          enum:
            - public
            - private
        recurrence:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataRecurrence"
        checkIn:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataCheckIn"
        breaks:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataBreaks"
        pay:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataPay"
        noShow:
          $ref: "#/components/schemas/PenaltyRepStrikesToBlock"
        minWorkerRep:
          type: number
          nullable: true
        requiredBadges:
          type: array
          items:
            type: string
        maxStaff:
          type: number
      required:
        - employer
        - openSeats
        - id
        - createdAt
        - status
        - role
        - title
        - endsAt
        - target
        - startsAt
        - timezone
        - visibility
        - recurrence
        - checkIn
        - pay
        - noShow
        - requiredBadges
        - maxStaff
      additionalProperties: false
    GetWorldWorkMineResponseDataOpenJobsEmployer:
      type: object
      properties:
        name:
          type: string
        score:
          type: object
          additionalProperties: {}
      required:
        - name
        - score
      additionalProperties: false
    GetWorldWorkMineResponseDataOpenJobsMyApplication:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
      required:
        - id
        - status
      additionalProperties: false
      nullable: true
      description: The viewer's application, if any.
    GetWorldWorkMineResponseDataOpenJobsNextShift:
      type: object
      properties:
        startsAt:
          type: string
        endsAt:
          type: string
      required:
        - startsAt
        - endsAt
      additionalProperties: false
      nullable: true
    GetWorldWorkMineResponseDataShifts:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        shift:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataShiftsShift"
        place:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataShiftsPlace"
        postingId:
          type: string
          nullable: true
        employer:
          type: string
        presentSeconds:
          type: number
        checkedInAt:
          type: string
          nullable: true
        checkedOutAt:
          type: string
          nullable: true
        payCents:
          type: number
          nullable: true
        paid:
          type: boolean
        payFailure:
          type: string
          nullable: true
      required:
        - id
        - status
        - shift
        - place
        - employer
        - presentSeconds
        - paid
      additionalProperties: false
    GetWorldWorkMineResponseDataShiftsPlace:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        kind:
          type: string
      required:
        - slug
        - name
        - kind
      additionalProperties: false
    GetWorldWorkMineResponseDataShiftsShift:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
      required:
        - id
        - title
        - startsAt
        - endsAt
      additionalProperties: false
    HrefPlace:
      type: object
      properties:
        href:
          type: string
        place:
          type: string
          nullable: true
      required:
        - href
      additionalProperties: false
    IdName:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
      additionalProperties: false
    IdName2:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
      additionalProperties: false
      nullable: true
      description: The store that owns the app and is paid what it earns (spec DV1). Null = held until a store is chosen.
    IdResponse:
      type: object
      properties:
        id:
          type: string
      required:
        - id
      additionalProperties: false
    IdStatusResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
      required:
        - id
        - status
      additionalProperties: false
    InCentsOutCents:
      type: object
      properties:
        inCents:
          type: number
        outCents:
          type: number
      required:
        - inCents
        - outCents
      additionalProperties: false
    InventoryItemIdReason:
      type: object
      properties:
        inventoryItemId:
          type: string
        reason:
          type: string
      required:
        - inventoryItemId
        - reason
      additionalProperties: false
    ItemOk:
      type: object
      properties:
        item:
          type: string
        ok:
          type: boolean
      required:
        - item
        - ok
      additionalProperties: false
    KindUrl:
      type: object
      properties:
        kind:
          type: string
        url:
          type: string
      required:
        - kind
        - url
      additionalProperties: false
    LabelUrl:
      type: object
      properties:
        label:
          type: string
        url:
          type: string
      required:
        - label
        - url
      additionalProperties: false
    LabelUrlTrackingCode:
      type: object
      properties:
        labelUrl:
          type: string
        trackingCode:
          type: string
      required:
        - labelUrl
        - trackingCode
      additionalProperties: false
      nullable: true
    LineMessage:
      type: object
      properties:
        line:
          type: number
          nullable: true
          description: 1-based line in the source, when there is one.
        message:
          type: string
      required:
        - message
      additionalProperties: false
    ListAccountsItem:
      type: object
      properties:
        id:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
        label:
          type: string
          nullable: true
        platformUsername:
          type: string
          nullable: true
        status:
          type: string
        lastSyncedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - platform
        - accountSlot
        - status
        - createdAt
      additionalProperties: false
    ListAccountsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListAccountsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListActionLogCallsItem:
      type: object
      properties:
        id:
          type: string
        correlationId:
          type: string
        actionEventId:
          type: string
          nullable: true
        userId:
          type: string
          nullable: true
        platform:
          type: string
        action:
          type: string
        step:
          type: number
          nullable: true
        method:
          type: string
        host:
          type: string
          nullable: true
          description: Platform HOST only — never the path.
        statusCode:
          type: number
          nullable: true
        ok:
          type: boolean
        latencyMs:
          type: number
          nullable: true
        errorClass:
          type: string
          nullable: true
        errorMessage:
          type: string
          nullable: true
        proxyId:
          type: string
          nullable: true
        recipeId:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - correlationId
        - platform
        - action
        - method
        - ok
        - createdAt
      additionalProperties: false
    ListActionLogCallsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListActionLogCallsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListActionLogHistogramItem:
      type: object
      properties:
        at:
          type: string
        count:
          type: number
      required:
        - at
        - count
      additionalProperties: false
    ListActionLogHistogramResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListActionLogHistogramItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListActionLogItem:
      type: object
      properties:
        id:
          type: string
          description: The Crossly event id (Watchtower `idempotency_key` / `metadata.crossly_event_id`).
        correlationId:
          type: string
        userId:
          type: string
          nullable: true
          description: The account (seller or team owner) whose log holds the event.
        actorUserId:
          type: string
          nullable: true
          description: Who acted when it was a person; null for rules, jobs and the system.
        actorDisplayName:
          type: string
          nullable: true
        actorType:
          type: string
          nullable: true
          description: "The cause class (D4): person, rule, sale, bulk, schedule, app, system; or Watchtower's own type word."
        oauthAppId:
          type: string
          nullable: true
        source:
          type: string
        category:
          type: string
        action:
          type: string
        platform:
          type: string
          nullable: true
        track:
          type: string
          nullable: true
        accountSlot:
          type: number
          nullable: true
        targetType:
          type: string
          nullable: true
          description: The event's subject (Watchtower `targets[0]`), when it has one.
        targetId:
          type: string
          nullable: true
        status:
          type: string
        httpStatus:
          type: number
          nullable: true
        errorClass:
          type: string
          nullable: true
        errorMessage:
          type: string
          nullable: true
        latencyMs:
          type: number
          nullable: true
        visibility:
          type: string
          enum:
            - seller
            - internal
        parentEventId:
          type: string
          nullable: true
          description: The bulk job or rule run this event is part of (D10).
        detail:
          $ref: "#/components/schemas/ListActionLogItemDetail"
        debug:
          type: object
          nullable: true
          description: Free-form summaries for support (`metadata.debug`; request/result summaries on older events). Not for display.
          additionalProperties: {}
        metadata:
          type: object
          nullable: true
          description: Legacy free-form metadata of events written before `detail` existed.
          additionalProperties: {}
        coalescedCount:
          type: number
          nullable: true
          description: Watchtower `coalesced.count` on a coalesced summary event (D10).
        createdAt:
          type: string
          format: date-time
        finishedAt:
          type: string
          format: date-time
          nullable: true
        view:
          $ref: "#/components/schemas/ListActionLogItemView"
      required:
        - id
        - correlationId
        - source
        - category
        - action
        - status
        - visibility
        - createdAt
        - view
      additionalProperties: false
    ListActionLogItemDetail:
      type: object
      properties:
        detail_v:
          type: number
        subject:
          $ref: "#/components/schemas/ListActionLogItemDetailSubject"
        initiatedBy:
          $ref: "#/components/schemas/ListActionLogItemDetailInitiatedBy"
        parentEventId:
          type: string
          nullable: true
          description: The bulk job / rule run event this one is part of (D10).
        visibility:
          type: string
          enum:
            - seller
            - internal
          nullable: true
        changes:
          type: array
          items:
            $ref: "#/components/schemas/ListActionLogItemDetailChanges"
          nullable: true
          description: Old → new values (≤ 20 in detail; Watchtower allows 50).
        currency:
          type: string
          nullable: true
          description: Currency for money-like change values (price, cost) and bare-number money fields. Default USD.
      required:
        - detail_v
      additionalProperties: false
      nullable: true
      description: The typed per-action detail (ActivityDetailV1), native fields mapped back in. Null on events written before it.
    ListActionLogItemDetailChanges:
      type: object
      properties:
        field:
          type: string
      required:
        - field
      additionalProperties: false
    ListActionLogItemDetailInitiatedBy:
      type: object
      properties:
        kind:
          type: string
          enum:
            - app
            - person
            - rule
            - sale
            - bulk
            - schedule
            - system
        id:
          type: string
          nullable: true
          description: "person: user id; rule: automation rule id; sale: sale id; bulk: bulk job id; app: OAuth app id."
        name:
          type: string
          nullable: true
          description: "Display name: the person's name, the rule's name (\"Weekly drop\"), the app's name."
      required:
        - kind
      additionalProperties: false
      nullable: true
    ListActionLogItemDetailSubject:
      type: object
      properties:
        title:
          type: string
        thumbUrl:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        saleId:
          type: string
          nullable: true
      required:
        - title
      additionalProperties: false
      nullable: true
    ListActionLogItemView:
      type: object
      properties:
        key:
          type: string
          description: Canonical registry key (`listing.delist`), or `unknown.<category>.<action>` for an unregistered action.
        area:
          type: string
          enum:
            - settings
            - internal
            - listings
            - inventory
            - orders
            - shipping
            - messages
            - automations
            - connections
            - billing
            - account
            - emails
            - shopping
            - trading
            - worlds
            - wallet
            - business
        areaLabel:
          type: string
        title:
          type: string
          description: Status-aware, without the item ("Delisted from Mercari", "Couldn't list on eBay").
        subtitle:
          type: string
          nullable: true
          description: The item title, when the event has one.
        thumbUrl:
          type: string
          nullable: true
        subjectLink:
          $ref: "#/components/schemas/ListActionLogItemViewSubjectLink"
        sentence:
          type: string
          description: One full sentence with the item ("Delisted Nike Air Max 90 from Mercari because it sold on eBay").
        status:
          type: string
          enum:
            - partial
            - pending
            - success
            - failure
            - skipped
        statusLabel:
          type: string
          enum:
            - Done
            - Running
            - Partly done
            - Failed
            - Skipped
        tone:
          type: string
          enum:
            - success
            - neutral
            - info
            - warning
            - danger
        icon:
          type: string
          description: Watchtower/lucide-style icon name (`[a-z0-9-]`, ≤ 32).
        platform:
          $ref: "#/components/schemas/ListActionLogItemViewPlatform"
        by:
          $ref: "#/components/schemas/ListActionLogItemViewBy"
        at:
          type: string
          description: ISO time the action happened (clients format it in the viewer's zone).
        fields:
          type: array
          items:
            $ref: "#/components/schemas/ListActionLogItemViewFields"
        failure:
          $ref: "#/components/schemas/ListActionLogItemViewFailure"
        steps:
          type: array
          items:
            $ref: "#/components/schemas/ListActionLogItemViewSteps"
          nullable: true
        children:
          $ref: "#/components/schemas/ListActionLogItemViewChildren"
        notes:
          type: array
          items:
            type: string
          nullable: true
          description: Muted notes under the details ("Some details for this action weren't kept.").
        technical:
          type: array
          items:
            $ref: "#/components/schemas/ListActionLogItemViewTechnical"
          description: 'Behind "Technical details (for support)": ids, codes, hosts, latency.'
        internal:
          type: boolean
          description: "Support-only event (D9): clients hide it; the viewer session pre-filter keeps it out of seller reads."
      required:
        - key
        - area
        - areaLabel
        - title
        - sentence
        - status
        - statusLabel
        - tone
        - icon
        - by
        - at
        - fields
        - technical
        - internal
      additionalProperties: false
      description: "The rendered event: what every client shows."
    ListActionLogItemViewBy:
      type: object
      properties:
        label:
          type: string
        kind:
          type: string
          enum:
            - app
            - unknown
            - person
            - rule
            - sale
            - bulk
            - schedule
            - system
      required:
        - label
        - kind
      additionalProperties: false
      description: '"You", "Sam (team member)", "Rule “Weekly drop”", "Crossly, automatically".'
    ListActionLogItemViewChildren:
      type: object
      properties:
        count:
          type: number
        sample:
          type: array
          items:
            type: object
            additionalProperties: {}
        href:
          type: string
          nullable: true
      required:
        - count
        - sample
      additionalProperties: false
      nullable: true
    ListActionLogItemViewFailure:
      type: object
      properties:
        headline:
          type: string
        advice:
          type: string
          nullable: true
        cta:
          $ref: "#/components/schemas/ListActionLogItemViewFailureCta"
      required:
        - headline
      additionalProperties: false
      nullable: true
    ListActionLogItemViewFailureCta:
      type: object
      properties:
        kind:
          type: string
          enum:
            - reconnect
            - retry
            - edit_listing
            - open_job
            - upgrade
            - open_settings
            - open_link
        label:
          type: string
        href:
          type: string
          nullable: true
      required:
        - kind
        - label
      additionalProperties: false
      nullable: true
    ListActionLogItemViewFields:
      type: object
      properties:
        label:
          type: string
      required:
        - label
      additionalProperties: false
    ListActionLogItemViewPlatform:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        account:
          type: string
          nullable: true
      required:
        - id
        - name
      additionalProperties: false
      nullable: true
    ListActionLogItemViewSteps:
      type: object
      properties:
        label:
          type: string
        ok:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - label
        - ok
      additionalProperties: false
    ListActionLogItemViewSubjectLink:
      type: object
      properties:
        href:
          type: string
        label:
          type: string
        external:
          type: boolean
      required:
        - href
        - label
        - external
      additionalProperties: false
      nullable: true
      description: Where the item lives in the app (listing editor, order page, ...).
    ListActionLogItemViewTechnical:
      type: object
      properties:
        label:
          type: string
        value:
          type: string
      required:
        - label
        - value
      additionalProperties: false
    ListActionLogResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListActionLogItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListAppsItem:
      type: object
      properties:
        clientId:
          type: string
        slug:
          type: string
          nullable: true
        name:
          type: string
        tagline:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
          description: The one-line description the consent screen shows.
        longDescription:
          type: string
          nullable: true
          description: Markdown. Render it sanitized (no raw HTML).
        category:
          type: string
          nullable: true
        audience:
          type: string
          enum:
            - seller
            - both
            - buyer
        logoUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
        screenshots:
          type: array
          items:
            type: string
        demoVideoUrl:
          type: string
          nullable: true
        verified:
          type: boolean
        featured:
          type: boolean
        developerName:
          type: string
          nullable: true
        scopes:
          type: array
          items:
            type: string
        capabilities:
          type: array
          items:
            $ref: "#/components/schemas/ListAppsItemCapabilities"
          description: "\"What it can access\": each scope in the consent screen's own words."
        monetization:
          type: string
        revShareBps:
          type: number
          nullable: true
        revShareCapCents:
          type: number
          nullable: true
        revShareMinOrderCents:
          type: number
          nullable: true
        revShareSummary:
          type: string
          nullable: true
          description: The consent screen's revenue-share line, or null for a free app.
        pricingNote:
          type: string
          nullable: true
        homepageUrl:
          type: string
          nullable: true
        installUrl:
          type: string
          nullable: true
          description: "Where Install sends a person: the app's install URL, else its https homepage. Null = nowhere."
        supportEmail:
          type: string
          nullable: true
        supportUrl:
          type: string
          nullable: true
        privacyUrl:
          type: string
          nullable: true
        termsUrl:
          type: string
          nullable: true
        docsLinks:
          type: array
          items:
            $ref: "#/components/schemas/LabelUrl"
        installCount:
          type: number
          description: Live connections (grants not revoked).
        listedAt:
          type: string
          nullable: true
        profilePath:
          type: string
          description: The canonical profile path, e.g. `/seller-apps/labelbot`.
      required:
        - clientId
        - name
        - audience
        - screenshots
        - verified
        - featured
        - scopes
        - capabilities
        - monetization
        - docsLinks
        - installCount
        - profilePath
      additionalProperties: false
    ListAppsItemCapabilities:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        description:
          type: string
      required:
        - id
        - label
        - description
      additionalProperties: false
    ListAppsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListAppsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListAuthSessionsItem:
      type: object
      properties:
        userAgent:
          type: string
          nullable: true
        ipCountry:
          type: string
          nullable: true
        lastUsedAt:
          type: string
          nullable: true
          description: = lastActiveAt (the v1 name since before Atlas).
        source:
          type: string
          enum:
            - atlas
            - legacy
          description: "'atlas', or 'legacy' for an old Crossly session the bridge could still revive (v1 only, until 2027-01-15)."
        status:
          type: string
          enum:
            - active
            - expired
        deviceType:
          type: string
          enum:
            - desktop
            - mobile
            - tablet
            - app
            - unknown
        id:
          type: string
        device:
          type: string
          description: '"Chrome on macOS".'
        ipAddress:
          type: string
          nullable: true
        location:
          type: string
          nullable: true
          description: '"New Brunswick, US".'
        createdAt:
          type: string
          nullable: true
        lastActiveAt:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        isCurrent:
          type: boolean
          description: "The session making the call (cookie or bearer: Atlas marks exactly one)."
        signedInWith:
          type: string
          nullable: true
          description: 'How it signed in: "Google", "Password", "Passkey"…; null for a session from before Atlas recorded it.'
        twoStep:
          type: boolean
          description: A second step was proven at sign-in (or by a later step-up).
      required:
        - source
        - status
        - deviceType
        - id
        - device
        - isCurrent
        - twoStep
      additionalProperties: false
    ListAuthSessionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListAuthSessionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListAutomaticDiscountsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
            - quantity
            - mix
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/MinQtyPercentBps"
        appliesTo:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemAppliesTo"
        exclusions:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemExclusions"
        channels:
          type: array
          items:
            $ref: "#/components/schemas/ListAutomaticDiscountsItemChannelsItem"
        schedule:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemSchedule"
        stacking:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemStacking"
        active:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - kind
        - tiers
        - appliesTo
        - exclusions
        - channels
        - schedule
        - stacking
        - active
        - createdAt
        - updatedAt
      additionalProperties: false
    ListAutomaticDiscountsItemAppliesTo:
      type: object
      properties:
        mode:
          type: string
          enum:
            - all
            - selection
        listingIds:
          type: array
          items:
            type: string
        categories:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
        brands:
          type: array
          items:
            type: string
        conditions:
          type: array
          items:
            type: string
        collectionIds:
          type: array
          items:
            type: string
        catalogIds:
          type: array
          items:
            type: string
        priceMinCents:
          type: number
          nullable: true
        priceMaxCents:
          type: number
          nullable: true
      required:
        - mode
        - listingIds
        - categories
        - tags
        - brands
        - conditions
        - collectionIds
        - catalogIds
      additionalProperties: false
    ListAutomaticDiscountsItemExclusions:
      type: object
      properties:
        saleItems:
          type: boolean
        listingIds:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
      required:
        - saleItems
        - listingIds
        - tags
      additionalProperties: false
    ListAutomaticDiscountsItemSchedule:
      type: object
      properties:
        startsAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        windows:
          type: array
          items:
            $ref: "#/components/schemas/ListAutomaticDiscountsItemScheduleWindows"
        timeZone:
          type: string
          enum:
            - store
            - buyer
          description: Whose clock the windows read.
        storeTimeZone:
          type: string
          nullable: true
          description: The store's IANA zone (the api fills it from the store at save time).
      required:
        - windows
        - timeZone
      additionalProperties: false
    ListAutomaticDiscountsItemScheduleWindows:
      type: object
      properties:
        days:
          type: array
          items:
            type: number
          description: 0 = Sunday … 6 = Saturday. Empty = every day.
        startMinute:
          type: number
        endMinute:
          type: number
      required:
        - days
        - startMinute
        - endMinute
      additionalProperties: false
    ListAutomaticDiscountsItemStacking:
      type: object
      properties:
        withAutomatic:
          type: boolean
        withLoyalty:
          type: boolean
        withOtherCodes:
          type: boolean
        priority:
          type: number
          description: Lower runs first when two discounts compete (0..100).
      required:
        - withAutomatic
        - withLoyalty
        - withOtherCodes
        - priority
      additionalProperties: false
    ListAutomaticDiscountsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListAutomaticDiscountsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListAutomationRulesItem:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        name:
          type: string
        isActive:
          type: boolean
        triggerType:
          type: string
        triggerConfig:
          type: object
          additionalProperties: {}
        conditionType:
          type: string
          nullable: true
        conditionConfig:
          type: object
          nullable: true
          additionalProperties: {}
        actionType:
          type: string
        actionConfig:
          type: object
          additionalProperties: {}
        platforms:
          type: array
          items:
            type: string
          nullable: true
        lastRunAt:
          type: string
          format: date-time
          nullable: true
        nextRunAt:
          type: string
          format: date-time
          nullable: true
        runCount:
          type: number
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        workflowId:
          type: string
          description: The workflow this rule is (open it in /v1/workflows).
      required:
        - id
        - userId
        - name
        - isActive
        - triggerType
        - triggerConfig
        - actionType
        - actionConfig
        - runCount
        - createdAt
        - updatedAt
        - workflowId
      additionalProperties: false
    ListAutomationRulesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListAutomationRulesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListAutomationRunsItem:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        ruleId:
          type: string
          nullable: true
        chainId:
          type: string
          nullable: true
        status:
          type: string
        actionType:
          type: string
        summary:
          type: object
          additionalProperties: {}
        errorMessage:
          type: string
          nullable: true
        durationMs:
          type: number
          nullable: true
        createdAt:
          type: string
          format: date-time
        workflowRunId:
          type: string
          nullable: true
          description: Set for runs of the converted workflow.
      required:
        - id
        - userId
        - status
        - actionType
        - summary
        - createdAt
      additionalProperties: false
    ListAutomationRunsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListAutomationRunsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBillingAppAllowancesItem:
      type: object
      properties:
        label:
          type: string
          description: '"12 of 1,000 managed by Infinity (Crossly Shop)", "... this month via Infinity (resets Dec 1)", or "Counts toward your plan".'
        appId:
          type: string
        appName:
          type: string
        limit:
          type: number
        used:
          type: number
        remaining:
          type: number
        platforms:
          type: array
          items:
            type: string
        limitMode:
          type: string
          enum:
            - separate
            - shared
        limitPeriod:
          type: string
          enum:
            - monthly
            - total
        resetsAt:
          type: string
          nullable: true
          description: "Monthly period: ISO instant the count resets (the plan's month boundary); null otherwise."
        storeUsed:
          type: number
          nullable: true
          description: Of `used`, the units in the asked store's plan pool (STORE-SCOPE-PLAN §4.1); null when no store was asked.
      required:
        - label
        - appId
        - appName
        - limit
        - used
        - remaining
        - platforms
        - limitMode
        - limitPeriod
      additionalProperties: false
    ListBillingAppAllowancesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBillingAppAllowancesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBillingInvoicesItem:
      type: object
      properties:
        id:
          type: string
        number:
          type: string
          nullable: true
        status:
          type: string
        amountCents:
          type: number
        currency:
          type: string
        created:
          type: string
          description: ISO 8601.
        hostedUrl:
          type: string
          nullable: true
        pdfUrl:
          type: string
          nullable: true
      required:
        - id
        - status
        - amountCents
        - currency
        - created
      additionalProperties: false
    ListBillingInvoicesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBillingInvoicesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBillingPlansItem:
      type: object
      properties:
        tier:
          type: string
          enum:
            - free
            - scale
            - business
            - starter
            - pro
        name:
          type: string
        monthlyUsd:
          type: number
        yearlyUsd:
          type: number
        priceSource:
          type: string
          enum:
            - stripe
            - catalog
          description: "'stripe' = read from the Price checkout charges; 'catalog' = the PLAN_PRICES fallback."
        features:
          type: array
          items:
            type: string
        limits:
          $ref: "#/components/schemas/ListBillingPlansItemLimits"
      required:
        - tier
        - name
        - monthlyUsd
        - yearlyUsd
        - priceSource
        - features
        - limits
      additionalProperties: false
    ListBillingPlansItemLimits:
      type: object
      properties:
        itemsPerMonth:
          type: number
          nullable: true
        crosspostsPerMonth:
          type: number
          nullable: true
        automationRules:
          type: number
          nullable: true
        emailSaleDetection:
          type: boolean
        aiEnhancements:
          type: number
          nullable: true
        bulkActions:
          type: boolean
        teamMode:
          type: boolean
        visionCallsPerMonth:
          type: number
          nullable: true
          description: Magic List photo identifications a month.
        includedAccounts:
          type: number
          description: Connection addresses (region slots) included before the extra-account add-on.
      required:
        - emailSaleDetection
        - bulkActions
        - teamMode
        - includedAccounts
      additionalProperties: false
      description: PLAN_LIMITS with Infinity as null (JSON has no Infinity).
    ListBillingPlansResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBillingPlansItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBrandDropListingsItem:
      type: object
      properties:
        platformListingId:
          type: string
        listingId:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        status:
          type: string
        slug:
          type: string
          nullable: true
          description: "The Crossly listing's slug (platform_listings.platform_listing_id): what the cart adds by."
        quantity:
          type: number
          nullable: true
          description: "Units the listing offers (null = untracked): a pre-book's reservable quantity."
      required:
        - platformListingId
        - listingId
        - status
      additionalProperties: false
    ListBrandDropListingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandDropListingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBrandDropsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        status:
          type: string
        releasedAt:
          type: string
          format: date-time
          nullable: true
        storefrontId:
          type: string
          nullable: true
        published:
          type: boolean
        endsAt:
          type: string
          format: date-time
          nullable: true
        eventId:
          type: string
          nullable: true
        format:
          type: string
        config:
          type: object
          additionalProperties: {}
        sellerUserId:
          type: string
        coverImageUrl:
          type: string
          nullable: true
        platformListingIds:
          type: array
          items:
            type: string
          nullable: true
        dropAt:
          type: string
          format: date-time
        partnerId:
          type: string
          nullable: true
        wholesaleUnitCostCents:
          type: number
          nullable: true
        unitsPurchased:
          type: number
          nullable: true
        supplierName:
          type: string
          nullable: true
        poReference:
          type: string
          nullable: true
        retailUnitPriceCents:
          type: number
          nullable: true
        buyerApiEnabled:
          type: boolean
        perCustomerLimit:
          type: number
          nullable: true
        previewFrom:
          type: string
          format: date-time
          nullable: true
        publishedAt:
          type: string
          format: date-time
          nullable: true
        reviewNote:
          type: string
          nullable: true
        reviewedAt:
          type: string
          format: date-time
          nullable: true
        placements:
          type: array
          items:
            type: string
        announceAt:
          type: string
          format: date-time
          nullable: true
        countdownAt:
          type: string
          format: date-time
          nullable: true
        pausedAt:
          type: string
          format: date-time
          nullable: true
        liveStreamId:
          type: string
          nullable: true
        spatialDropId:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        featuredStatus:
          type: string
          nullable: true
        audience:
          type: string
        audienceCatalogId:
          type: string
          nullable: true
        dropKind:
          type: string
        depositBps:
          type: number
          nullable: true
        shipBy:
          type: string
          nullable: true
        balanceNetDays:
          type: number
          nullable: true
        listingCount:
          type: number
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - status
        - published
        - format
        - config
        - sellerUserId
        - dropAt
        - buyerApiEnabled
        - placements
        - audience
        - dropKind
        - listingCount
      additionalProperties: false
    ListBrandDropsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandDropsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBrandingBrandSellerSearchItem:
      type: object
      properties:
        sellerUserId:
          type: string
        storefrontId:
          type: string
        storeName:
          type: string
        slug:
          type: string
      required:
        - sellerUserId
        - storefrontId
        - storeName
        - slug
      additionalProperties: false
    ListBrandingBrandSellerSearchResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingBrandSellerSearchItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBrandingBrandSellersItem:
      type: object
      properties:
        storeName:
          type: string
          nullable: true
        storeSlug:
          type: string
          nullable: true
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        storefrontId:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        sellerUserId:
          type: string
        partnerId:
          type: string
        decidedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - status
        - sellerUserId
        - partnerId
      additionalProperties: false
    ListBrandingBrandSellersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingBrandSellersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBrandingDropBuyersItem:
      type: object
      properties:
        buyer:
          type: string
          nullable: true
        units:
          type: number
        purchaseId:
          type: string
          nullable: true
        claimedAt:
          type: string
      required:
        - units
        - claimedAt
      additionalProperties: false
    ListBrandingDropBuyersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropBuyersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBrandingDropsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        status:
          type: string
        phase:
          type: string
          enum:
            - live
            - paused
            - hidden
            - announced
            - countdown
            - over
        format:
          type: string
        placements:
          type: array
          items:
            type: string
        announceAt:
          type: string
          nullable: true
        countdownAt:
          type: string
          nullable: true
        dropAt:
          type: string
        endsAt:
          type: string
          nullable: true
        pausedAt:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        liveStreamId:
          type: string
          nullable: true
        eventId:
          type: string
          nullable: true
        spatialDropId:
          type: string
          nullable: true
        featuredStatus:
          type: string
          nullable: true
        partnerId:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        config:
          $ref: "#/components/schemas/ListBrandingDropsItemConfig"
        waves:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItemWaves"
        counts:
          $ref: "#/components/schemas/ListBrandingDropsItemCounts"
        unitsAvailable:
          type: number
          nullable: true
          description: Units on offer now (released waves, else the format's units), null = the listings' stock.
        currentPriceCents:
          type: number
          nullable: true
          description: The dutch price right now, else the configured price.
        href:
          type: string
        linkedGroupBuy:
          $ref: "#/components/schemas/ListBrandingDropsItemLinkedGroupBuy"
        restockListings:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItemRestockListings"
          nullable: true
          description: "E5: the drop's Crossly listings with their stock now; only set by getSellerDrop."
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - status
        - phase
        - format
        - placements
        - dropAt
        - config
        - waves
        - counts
        - href
        - createdAt
        - updatedAt
      additionalProperties: false
    ListBrandingDropsItemConfig:
      type: object
      properties:
        what:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigWhat"
        where:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigWhere"
        format:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigFormat"
        access:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigAccess"
        limits:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigLimits"
        pricing:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigPricing"
        schedule:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigSchedule"
        promotion:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigPromotion"
        fulfilment:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigFulfilment"
        after:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigAfter"
        world:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigWorld"
      required:
        - what
        - where
        - format
        - access
        - limits
        - pricing
        - schedule
        - promotion
        - fulfilment
        - after
      additionalProperties: false
    ListBrandingDropsItemConfigAccess:
      type: object
      properties:
        modes:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItemConfigAccessModesItem"
        earlyAccess:
          type: boolean
          description: Crossly One members and loyalty members with the early_access_drops perk may buy during the countdown.
        loyaltyTierMin:
          type: string
          nullable: true
        tokenGate:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigAccessTokenGate"
        inviteCode:
          type: string
          nullable: true
        regionsAllowed:
          type: array
          items:
            type: string
          nullable: true
        regionsBlocked:
          type: array
          items:
            type: string
          nullable: true
      required:
        - modes
        - earlyAccess
      additionalProperties: false
    ListBrandingDropsItemConfigAccessTokenGate:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        minBalance:
          type: number
      required:
        - chain
        - contract
        - minBalance
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemConfigAfter:
      type: object
      properties:
        exportBuyers:
          type: boolean
      required:
        - exportBuyers
      additionalProperties: false
    ListBrandingDropsItemConfigFormat:
      type: object
      properties:
        kind:
          type: string
          enum:
            - timed
            - auction
            - waitlist
            - limited_stock
            - limited_time
            - first_come
            - raffle
            - preorder
            - dutch
            - waves
        raffle:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigFormatRaffle"
        auction:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigFormatAuction"
        dutch:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigFormatDutch"
        waves:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
        preorder:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigFormatPreorder"
        units:
          type: number
          nullable: true
          description: "limited_stock / first_come: the units on offer (≤ the listings' stock, checked server-side)."
      required:
        - kind
      additionalProperties: false
    ListBrandingDropsItemConfigFormatAuction:
      type: object
      properties:
        startCents:
          type: number
        preBids:
          type: boolean
        endsAt:
          type: string
      required:
        - startCents
        - preBids
        - endsAt
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemConfigFormatDutch:
      type: object
      properties:
        startCents:
          type: number
        floorCents:
          type: number
        stepCents:
          type: number
        stepMinutes:
          type: number
      required:
        - startCents
        - floorCents
        - stepCents
        - stepMinutes
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemConfigFormatPreorder:
      type: object
      properties:
        shipBy:
          type: string
        depositBps:
          type: number
          nullable: true
      required:
        - shipBy
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemConfigFormatRaffle:
      type: object
      properties:
        entryOpensAt:
          type: string
        entryClosesAt:
          type: string
        drawAt:
          type: string
        winners:
          type: number
        holdMinutes:
          type: number
      required:
        - entryOpensAt
        - entryClosesAt
        - drawAt
        - winners
        - holdMinutes
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemConfigFulfilment:
      type: object
      properties:
        vaultHeld:
          type: boolean
        localPickup:
          type: boolean
        shipBy:
          type: string
          nullable: true
        preorderWindow:
          $ref: "#/components/schemas/FromTo"
      required:
        - vaultHeld
        - localPickup
      additionalProperties: false
    ListBrandingDropsItemConfigLimits:
      type: object
      properties:
        botProtection:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigLimitsBotProtection"
        cartHoldMinutes:
          type: number
        perBuyer:
          type: number
          nullable: true
        perHousehold:
          type: number
          nullable: true
        perPaymentMethod:
          type: number
          nullable: true
      required:
        - botProtection
        - cartHoldMinutes
      additionalProperties: false
    ListBrandingDropsItemConfigLimitsBotProtection:
      type: object
      properties:
        queue:
          type: boolean
        captcha:
          type: boolean
        ratePerMinute:
          type: number
          nullable: true
      required:
        - queue
        - captcha
      additionalProperties: false
    ListBrandingDropsItemConfigPricing:
      type: object
      properties:
        discountCodesAllowed:
          type: boolean
        cbxAccepted:
          type: boolean
        priceCents:
          type: number
          nullable: true
        memberPriceCents:
          type: number
          nullable: true
        rewardsMultiplierBps:
          type: number
          nullable: true
      required:
        - discountCodesAllowed
        - cbxAccepted
      additionalProperties: false
    ListBrandingDropsItemConfigPromotion:
      type: object
      properties:
        featuredRequest:
          type: boolean
        countdownPage:
          type: boolean
        notify:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigPromotionNotify"
        adsCampaignId:
          type: string
          nullable: true
        shareImageUrl:
          type: string
          nullable: true
        pressKitAssetIds:
          type: array
          items:
            type: string
          nullable: true
      required:
        - featuredRequest
        - countdownPage
        - notify
      additionalProperties: false
    ListBrandingDropsItemConfigPromotionNotify:
      type: object
      properties:
        followers:
          type: boolean
        subscribers:
          type: boolean
        email:
          type: boolean
        push:
          type: boolean
      required:
        - followers
        - subscribers
        - email
        - push
      additionalProperties: false
    ListBrandingDropsItemConfigSchedule:
      type: object
      properties:
        timezone:
          type: string
        goLiveAt:
          type: string
        leftovers:
          type: string
          enum:
            - close
            - relist
            - waitlist_next
        announceAt:
          type: string
          nullable: true
        countdownAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
      required:
        - timezone
        - goLiveAt
        - leftovers
      additionalProperties: false
    ListBrandingDropsItemConfigWhat:
      type: object
      properties:
        kinds:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItemConfigWhatKindsItem"
        listingIds:
          type: array
          items:
            type: string
        variantIds:
          type: array
          items:
            type: string
        bundle:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigWhatBundle"
        mysteryBox:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigWhatMysteryBox"
        nftTwin:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigWhatNftTwin"
      required:
        - kinds
        - listingIds
        - variantIds
      additionalProperties: false
    ListBrandingDropsItemConfigWhatBundle:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        priceCents:
          type: number
      required:
        - listingIds
        - priceCents
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemConfigWhatMysteryBox:
      type: object
      properties:
        poolListingIds:
          type: array
          items:
            type: string
        revealAt:
          type: string
          nullable: true
      required:
        - poolListingIds
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemConfigWhatNftTwin:
      type: object
      properties:
        launchId:
          type: string
      required:
        - launchId
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemConfigWhere:
      type: object
      properties:
        placements:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItemConfigWherePlacementsItem"
        liveStreamId:
          type: string
          nullable: true
        embedIds:
          type: array
          items:
            type: string
          nullable: true
        wholesaleOnly:
          type: boolean
          nullable: true
      required:
        - placements
      additionalProperties: false
    ListBrandingDropsItemConfigWorld:
      type: object
      properties:
        purchaseFlow:
          type: string
          enum:
            - handoff
            - in_world_cbx
        countdownObject:
          type: boolean
        worldId:
          type: string
          nullable: true
        placeSlug:
          type: string
          nullable: true
        boothSpotIndex:
          type: number
          nullable: true
        displayModelId:
          type: string
          nullable: true
        avatarGate:
          $ref: "#/components/schemas/ListBrandingDropsItemConfigWorldAvatarGate"
        eventTieId:
          type: string
          nullable: true
        rewardItemIds:
          type: array
          items:
            type: string
          nullable: true
      required:
        - purchaseFlow
        - countdownObject
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemConfigWorldAvatarGate:
      type: object
      properties:
        minLevel:
          type: number
          nullable: true
        wearableIds:
          type: array
          items:
            type: string
          nullable: true
      additionalProperties: false
      nullable: true
    ListBrandingDropsItemCounts:
      type: object
      properties:
        entries:
          type: number
        holding:
          type: number
        sold:
          type: number
        buyers:
          type: number
      required:
        - entries
        - holding
        - sold
        - buyers
      additionalProperties: false
    ListBrandingDropsItemLinkedGroupBuy:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        goal:
          type: number
        committed:
          type: number
        buyers:
          type: number
        percent:
          type: number
          description: committed / goal, 0..100.
        closesAt:
          type: string
        priorityUntil:
          type: string
          nullable: true
          description: Until then only the drop's entrants may join.
        finalPriceCents:
          type: number
          nullable: true
        sharePath:
          type: string
          description: The buyer link the seller shares.
      required:
        - id
        - status
        - goal
        - committed
        - buyers
        - percent
        - closesAt
        - sharePath
      additionalProperties: false
      nullable: true
      description: "E5: only set by getSellerDrop (null when the drop has no restock run)."
    ListBrandingDropsItemRestockListings:
      type: object
      properties:
        platformListingId:
          type: string
        title:
          type: string
        quantity:
          type: number
        active:
          type: boolean
      required:
        - platformListingId
        - title
        - quantity
        - active
      additionalProperties: false
    ListBrandingDropsItemWaves:
      type: object
      properties:
        position:
          type: number
        releaseAt:
          type: string
        units:
          type: number
        releasedAt:
          type: string
          nullable: true
        sold:
          type: number
      required:
        - position
        - releaseAt
        - units
        - sold
      additionalProperties: false
    ListBrandingDropsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBrandingDropsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBreaksItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        format:
          type: string
        status:
          type: string
        slug:
          type: string
        createdAt:
          type: string
          format: date-time
        spots:
          type: number
        paid:
          type: number
      required:
        - id
        - title
        - format
        - status
        - slug
        - createdAt
        - spots
        - paid
      additionalProperties: false
    ListBreaksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBreaksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListBulkBatchesItem:
      type: object
      properties:
        id:
          type: string
        mode:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        status:
          type: string
        lastError:
          type: string
          nullable: true
        startedAt:
          type: string
          format: date-time
          nullable: true
        finishedAt:
          type: string
          format: date-time
          nullable: true
        totalItems:
          type: number
        failedItems:
          type: number
        backSourceImageUrl:
          type: string
          nullable: true
        backFlipAxis:
          type: string
          nullable: true
        vertical:
          type: string
        preset:
          type: string
          nullable: true
        identifyRoute:
          type: string
        stage:
          type: string
        destinations:
          type: array
          items:
            type: string
        resolvedItems:
          type: number
      required:
        - id
        - mode
        - createdAt
        - userId
        - status
        - totalItems
        - failedItems
        - vertical
        - identifyRoute
        - stage
        - destinations
        - resolvedItems
      additionalProperties: false
    ListBulkBatchesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListBulkBatchesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCatalogMatchesItem:
      type: object
      properties:
        id:
          type: string
        inventoryItemId:
          type: string
        status:
          type: string
        source:
          type: string
        score:
          type: number
        imageCosine:
          type: number
          nullable: true
          description: 0–1, null when either photo was never embedded.
        titleScore:
          type: number
          nullable: true
        reasons:
          type: array
          items:
            type: string
        rank:
          type: number
        createdAt:
          type: string
        item:
          $ref: "#/components/schemas/ListCatalogMatchesItemItem"
        product:
          $ref: "#/components/schemas/ListCatalogMatchesItemProduct"
      required:
        - id
        - inventoryItemId
        - status
        - source
        - score
        - reasons
        - rank
        - createdAt
        - item
        - product
      additionalProperties: false
    ListCatalogMatchesItemItem:
      type: object
      properties:
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
      required:
        - title
      additionalProperties: false
    ListCatalogMatchesItemProduct:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        brand:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        categorySlug:
          type: string
          nullable: true
        styleCode:
          type: string
          nullable: true
      required:
        - id
        - name
      additionalProperties: false
    ListCatalogMatchesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCatalogMatchesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCategoryAspectsItem:
      type: object
      properties:
        name:
          type: string
          description: Display + wire name on eBay; the key to use in `itemSpecifics`.
        key:
          type: string
          description: Cross-marketplace normalized key (the aspect mesh's canonical key).
        required:
          type: boolean
        cardinality:
          type: string
          enum:
            - SINGLE
            - MULTI
          description: "'SINGLE' (one value) or 'MULTI'."
        freeText:
          type: boolean
          description: "True when eBay enumerates no values here: any text is accepted."
        values:
          type: array
          items:
            type: string
        valuesTruncated:
          type: boolean
          description: More known values exist than were returned.
        marketplaces:
          type: object
          description: Marketplace -> the attribute name that marketplace's publish wire sends.
          additionalProperties: {}
      required:
        - name
        - key
        - required
        - cardinality
        - freeText
        - values
        - valuesTruncated
        - marketplaces
      additionalProperties: false
    ListCategoryAspectsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCategoryAspectsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCategorySearchItem:
      type: object
      properties:
        id:
          type: string
        path:
          type: string
          description: Root-first, ' > '-joined.
        label:
          type: string
        breadcrumb:
          type: array
          items:
            type: string
      required:
        - id
        - path
        - label
        - breadcrumb
      additionalProperties: false
    ListCategorySearchResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCategorySearchItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxAdCreditLedgerItem:
      type: object
      properties:
        id:
          type: string
        deltaCents:
          type: number
        kind:
          type: string
        baseUnitsPaid:
          type: string
          nullable: true
        centsPerToken:
          type: number
          nullable: true
        txSig:
          type: string
          nullable: true
        externalId:
          type: string
          nullable: true
        memo:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - deltaCents
        - kind
        - createdAt
      additionalProperties: false
    ListCbxAdCreditLedgerResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxAdCreditLedgerItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxBoostsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        targetKind:
          type: string
        targetValue:
          type: string
          nullable: true
        boostedRateBps:
          type: number
        budgetCents:
          type: number
        spentCents:
          type: number
        remainingCents:
          type: number
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
      required:
        - id
        - name
        - targetKind
        - boostedRateBps
        - budgetCents
        - spentCents
        - remainingCents
        - startsAt
        - endsAt
        - status
      additionalProperties: false
    ListCbxBoostsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxBoostsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxCampaignPayoutsItem:
      type: object
      properties:
        subjectId:
          type: string
        weight:
          type: string
        baseUnits:
          type: string
        createdAt:
          type: string
          format: date-time
      required:
        - subjectId
        - weight
        - baseUnits
        - createdAt
      additionalProperties: false
    ListCbxCampaignPayoutsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxCampaignPayoutsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxCampaignsItem:
      type: object
      properties:
        campaignId:
          type: string
        name:
          type: string
        status:
          type: string
        budgetBaseUnits:
          type: string
        windowStart:
          type: string
          format: date-time
        windowEnd:
          type: string
          format: date-time
        previewRecipientCount:
          type: number
          nullable: true
        executedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - campaignId
        - name
        - status
        - budgetBaseUnits
        - windowStart
        - windowEnd
      additionalProperties: false
    ListCbxCampaignsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxCampaignsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxDisbursementProgressItem:
      type: object
      properties:
        ruleId:
          type: string
        name:
          type: string
        poolBaseUnits:
          type: string
        thresholdBaseUnits:
          type: string
        progressBps:
          type: number
        nextEligibleAt:
          type: string
          nullable: true
        lastFiredAt:
          type: string
          nullable: true
      required:
        - ruleId
        - name
        - poolBaseUnits
        - thresholdBaseUnits
        - progressBps
      additionalProperties: false
    ListCbxDisbursementProgressResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxDisbursementProgressItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxDisbursementRulesItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        thresholdBaseUnits:
          type: string
        distributeBps:
          type: number
        checkCadenceHours:
          type: number
        requireCoverageBps:
          type: number
        metric:
          type: string
        lookbackDays:
          type: number
        maxRecipients:
          type: number
        isActive:
          type: boolean
        lastFiredAt:
          type: string
          nullable: true
      required:
        - id
        - name
        - thresholdBaseUnits
        - distributeBps
        - checkCadenceHours
        - requireCoverageBps
        - metric
        - lookbackDays
        - maxRecipients
        - isActive
      additionalProperties: false
    ListCbxDisbursementRulesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxDisbursementRulesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxEarnTiersItem:
      type: object
      properties:
        slug:
          type: string
        label:
          type: string
        maturationDays:
          type: number
        earnRateBps:
          type: number
        isDefault:
          type: boolean
      required:
        - slug
        - label
        - maturationDays
        - earnRateBps
        - isDefault
      additionalProperties: false
    ListCbxEarnTiersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxEarnTiersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxRedemptionServicesItem:
      type: object
      properties:
        serviceKind:
          type: string
        label:
          type: string
          enum:
            - Card / comic grading submission
            - Item authentication
            - Crossly subscription
      required:
        - serviceKind
        - label
      additionalProperties: false
    ListCbxRedemptionServicesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxRedemptionServicesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxStakeTiersItem:
      type: object
      properties:
        slug:
          type: string
        label:
          type: string
        minBaseUnits:
          type: string
        feeDiscountBps:
          type: number
        earnBoostBps:
          type: number
        cooldownDays:
          type: number
      required:
        - slug
        - label
        - minBaseUnits
        - feeDiscountBps
        - earnBoostBps
        - cooldownDays
      additionalProperties: false
    ListCbxStakeTiersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxStakeTiersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxSubjectGrantsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        baseUnits:
          type: string
        remainingBaseUnits:
          type: string
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - kind
        - baseUnits
        - remainingBaseUnits
        - createdAt
      additionalProperties: false
    ListCbxSubjectGrantsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxSubjectGrantsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxSubjectLedgerItem:
      type: object
      properties:
        id:
          type: string
        deltaBaseUnits:
          type: string
        kind:
          type: string
        memo:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - deltaBaseUnits
        - kind
        - createdAt
      additionalProperties: false
    ListCbxSubjectLedgerResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxSubjectLedgerItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCbxWalletPaymentReviewItem:
      type: object
      properties:
        id:
          type: string
        externalId:
          type: string
        payerAddress:
          type: string
        baseUnits:
          type: string
        valueCents:
          type: number
        riskLevel:
          type: string
          nullable: true
        riskExposures:
          type: array
          items:
            type: string
        screeningProvider:
          type: string
          nullable: true
        releaseReason:
          type: string
          nullable: true
        txSig:
          type: string
        confirmedAt:
          type: string
      required:
        - id
        - externalId
        - payerAddress
        - baseUnits
        - valueCents
        - riskExposures
        - txSig
        - confirmedAt
      additionalProperties: false
    ListCbxWalletPaymentReviewResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCbxWalletPaymentReviewItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListChannelAccountsItem:
      type: object
      properties:
        accountId:
          type: string
          nullable: true
          description: The account's own id (the cog's id); null for a legacy channel row with no account left.
        platform:
          type: string
        accountSlot:
          type: number
        storefrontId:
          type: string
          nullable: true
          description: The store these settings belong to (null = a seller with no store yet).
        label:
          type: string
          nullable: true
          description: Account name to show, when we know one.
        connected:
          type: boolean
          description: A live connection exists for this account (false = settings kept for a disconnected account).
        policy:
          $ref: "#/components/schemas/ListChannelAccountsItemPolicy"
        effectiveOutOfStockAction:
          type: string
          enum:
            - delete
            - end
            - zero
          description: What will actually run on sell-out (the requested action, or 'end' where the platform can't).
          x-enum-varnames:
            - delete
            - endOption
            - zero
        exclusions:
          $ref: "#/components/schemas/ListChannelAccountsItemExclusions"
        capabilities:
          $ref: "#/components/schemas/ListChannelAccountsItemCapabilities"
        restock:
          $ref: "#/components/schemas/ListChannelAccountsItemRestock"
        isDefault:
          type: boolean
          description: True when the account has no row of its own (its values are inherited, or the hard defaults).
        inherited:
          type: boolean
          description: |-
            True when, having no row, the account takes the store's existing choice (inherit.ts): the most common settings
            across the store's accounts of this platform, and the old switch when it was off. Saving writes them as its own.
        updatedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - platform
        - accountSlot
        - connected
        - policy
        - effectiveOutOfStockAction
        - exclusions
        - capabilities
        - restock
        - isDefault
        - inherited
      additionalProperties: false
    ListChannelAccountsItemCapabilities:
      type: object
      properties:
        outOfStockActions:
          type: array
          items:
            $ref: "#/components/schemas/ListChannelAccountsItemCapabilitiesOutOfStockActionsItem"
        nativeQuantity:
          type: boolean
      required:
        - outOfStockActions
        - nativeQuantity
      additionalProperties: false
    ListChannelAccountsItemExclusions:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        categories:
          type: array
          items:
            type: string
        setIds:
          type: array
          items:
            type: string
      required:
        - listingIds
        - categories
        - setIds
      additionalProperties: false
    ListChannelAccountsItemPolicy:
      type: object
      properties:
        quantityCap:
          type: number
          nullable: true
          description: Show at most this many on the channel. null = no cap.
        quantityBuffer:
          type: number
          description: Units held back from this channel. 0 = none.
        syncQuantity:
          type: boolean
          description: false = never push a count to this channel (the out-of-stock action still runs).
        outOfStockAction:
          type: string
          enum:
            - delete
            - end
            - zero
          x-enum-varnames:
            - delete
            - endOption
            - zero
      required:
        - quantityBuffer
        - syncQuantity
        - outOfStockAction
      additionalProperties: false
    ListChannelAccountsItemRestock:
      type: object
      properties:
        autoRepublish:
          type: boolean
          description: Republish automatically when stock returns (default on).
        reactivatesInPlace:
          type: boolean
          description: "The marketplace brings the same listing back by itself (Etsy, Shopify, Whatnot, eBay): no setting applies."
      required:
        - autoRepublish
        - reactivatesInPlace
      additionalProperties: false
    ListChannelAccountsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListChannelAccountsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCompWatchlistRecentItem:
      type: object
      properties:
        id:
          type: string
        platform:
          type: string
        title:
          type: string
        brand:
          type: string
          nullable: true
        sold_price:
          type: string
        image_url:
          type: string
          nullable: true
        listing_url:
          type: string
          nullable: true
        scraped_at:
          type: string
        sold_at_approx:
          type: string
          nullable: true
      required:
        - id
        - platform
        - title
        - sold_price
        - scraped_at
      additionalProperties: false
    ListCompWatchlistRecentResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCompWatchlistRecentItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCompWatchlistsItem:
      type: object
      properties:
        id:
          type: string
        brand:
          type: string
          nullable: true
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        categoryMain:
          type: string
          nullable: true
        minPrice:
          type: string
          nullable: true
        maxPrice:
          type: string
          nullable: true
        lastMatchedAt:
          type: string
          format: date-time
          nullable: true
        lastScrapedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - name
        - createdAt
        - userId
      additionalProperties: false
    ListCompWatchlistsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCompWatchlistsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListConnectedAppsItem:
      type: object
      properties:
        grantId:
          type: string
        scopes:
          type: array
          items:
            type: string
        connectedAt:
          type: string
          format: date-time
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
        appId:
          type: string
        appName:
          type: string
        appDescription:
          type: string
          nullable: true
        homepageUrl:
          type: string
          nullable: true
        developerName:
          type: string
          nullable: true
        developerEmail:
          type: string
        revShareBps:
          type: number
          nullable: true
          description: The share of take-home THIS install agreed to (frozen at consent), not the app's current terms. Null = free.
        publisherName:
          type: string
          nullable: true
          description: |-
            Who publishes it (spec DV2 "by publisher"): the store that owns the app (drizzle/1320), else its developer's
            display name for an app still waiting for a store.
        tagline:
          type: string
          nullable: true
          description: '"About this app" (spec DV2): the directory profile when it is listed, else these facts in a dialog.'
        slug:
          type: string
          nullable: true
        listed:
          type: boolean
        verified:
          type: boolean
        supportUrl:
          type: string
          nullable: true
        privacyUrl:
          type: string
          nullable: true
        termsUrl:
          type: string
          nullable: true
      required:
        - grantId
        - scopes
        - connectedAt
        - appId
        - appName
        - developerEmail
        - listed
        - verified
      additionalProperties: false
    ListConnectedAppsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListConnectedAppsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListConnectionEmailEmailsItem:
      type: object
      properties:
        id:
          type: string
        subject:
          type: string
        fromDomain:
          type: string
          nullable: true
        platform:
          type: string
          nullable: true
        event:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - label
            - sale
            - message
            - delist
            - offer
            - shipped
            - notice
            - cancel
            - payout
          nullable: true
        status:
          type: string
        matched:
          type: boolean
        outcome:
          $ref: "#/components/schemas/GetEmailEventResponseDataOutcome"
        title:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        price:
          $ref: "#/components/schemas/AmountCurrency"
        receivedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        reprocessCount:
          type: number
        reprocessedAt:
          type: string
          nullable: true
        previewAvailable:
          type: boolean
        canReprocess:
          type: boolean
      required:
        - id
        - subject
        - status
        - matched
        - outcome
        - createdAt
        - reprocessCount
        - previewAvailable
        - canReprocess
      additionalProperties: false
    ListConnectionEmailEmailsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListConnectionEmailEmailsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListConnectionEmailItem:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
        email:
          type: string
        label:
          type: string
          nullable: true
        host:
          type: string
          nullable: true
        port:
          type: number
          nullable: true
        imapPreset:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        isActive:
          type: boolean
        paused:
          type: boolean
        pausedAt:
          type: string
          nullable: true
        watchedPlatforms:
          type: array
          items:
            type: string
          nullable: true
          description: null = every marketplace Crossly reads email from.
        health:
          type: string
          enum:
            - paused
            - ok
            - trouble
            - needs_reconnect
        healthMessage:
          type: string
          nullable: true
          description: A sentence of ours (never the server's text), null when healthy.
        needsReconnect:
          type: boolean
        push:
          type: boolean
          description: Push notifications live (Gmail Pub/Sub, Outlook Graph); else polled every 10 minutes.
        lastSyncedAt:
          type: string
          nullable: true
        lastScanAt:
          type: string
          nullable: true
        lastScanFound:
          type: number
          nullable: true
        lastErrorAt:
          type: string
          nullable: true
        createdAt:
          type: string
          nullable: true
      required:
        - id
        - provider
        - email
        - isActive
        - paused
        - health
        - needsReconnect
        - push
      additionalProperties: false
    ListConnectionEmailResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListConnectionEmailItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListConnectionOwnAppsItem:
      type: object
      properties:
        platform:
          type: string
        label:
          type: string
        availability:
          type: string
          enum:
            - connect
            - own_app
            - coming_soon
          description: "The card state: an own-app marketplace needs this app to connect; a connect one only may use it."
        secretRequired:
          type: boolean
        where:
          type: string
        note:
          type: string
        redirectUri:
          type: string
          nullable: true
          description: The redirect URI to register on the app; null when the provider takes it per request (Trade Me, eBid).
        params:
          type: array
          items:
            $ref: "#/components/schemas/ListConnectionOwnAppsItemParams"
        secretParams:
          type: array
          items:
            $ref: "#/components/schemas/ListConnectionOwnAppsItemSecretParams"
          description: "Secret parameters: whether one is stored, never its value."
        savedClientId:
          type: string
          nullable: true
        verifiedAt:
          type: string
          format: date-time
          nullable: true
        updatedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - platform
        - label
        - availability
        - secretRequired
        - where
        - note
        - params
        - secretParams
      additionalProperties: false
    ListConnectionOwnAppsItemParams:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        hint:
          type: string
        saved:
          type: string
          nullable: true
      required:
        - key
        - label
        - hint
      additionalProperties: false
    ListConnectionOwnAppsItemSecretParams:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        hint:
          type: string
        saved:
          type: boolean
      required:
        - key
        - label
        - hint
        - saved
      additionalProperties: false
    ListConnectionOwnAppsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListConnectionOwnAppsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListConnectionPolicyManagementItem:
      type: object
      properties:
        connectionId:
          type: string
        platform:
          type: string
          enum:
            - ebay
            - etsy
            - shopify
            - google_shopping
            - allegro
            - trademe
        label:
          type: string
          description: The account's name on the marketplace (username / shop), else the platform.
        marketplaceId:
          type: string
          nullable: true
          description: "eBay only: EBAY_US, EBAY_GB, … (a NULL column means EBAY_US)."
        eligible:
          type: boolean
          description: Whether Crossly can manage this account's policies at all.
        ineligibleReason:
          type: string
          enum:
            - ebay_non_us
            - inactive
          nullable: true
          description: Why not, when `eligible` is false.
        managed:
          type: boolean
        notes:
          type: array
          items:
            $ref: "#/components/schemas/ListConnectionPolicyManagementItemNotes"
          description: Sync notes (adopted Seller Hub edits, skipped destinations), newest last.
      required:
        - connectionId
        - platform
        - label
        - eligible
        - managed
        - notes
      additionalProperties: false
    ListConnectionPolicyManagementItemNotes:
      type: object
      properties:
        message:
          type: string
        presetId:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
          description: e.g. 'adopted' | 'diverged' | 'synced' | 'error'.
        platformPolicyId:
          type: string
          nullable: true
          description: The marketplace's id of the policy/profile the note is about.
        at:
          type: string
          nullable: true
      required:
        - message
      additionalProperties: false
    ListConnectionPolicyManagementResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListConnectionPolicyManagementItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListConnectionsItem:
      type: object
      properties:
        attachedToStore:
          type: boolean
          nullable: true
        id:
          type: string
        platform:
          type: string
        isActive:
          type: boolean
        shopUrl:
          type: string
          nullable: true
        lastSeenActive:
          type: string
          format: date-time
          nullable: true
        tokenExpiresAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - platform
        - isActive
      additionalProperties: false
    ListConnectionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListConnectionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListConversationMessagesItem:
      type: object
      properties:
        id:
          type: string
        conversationId:
          type: string
        platformMessageId:
          type: string
          nullable: true
        sender:
          type: string
        body:
          type: string
          nullable: true
        attachments:
          type: array
          items:
            type: string
          nullable: true
        sentAt:
          type: string
          format: date-time
        readAt:
          type: string
          format: date-time
          nullable: true
        deliveryStatus:
          type: string
          enum:
            - sending
            - sent
            - failed
          nullable: true
      required:
        - id
        - conversationId
        - sender
        - sentAt
      additionalProperties: false
    ListConversationMessagesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListConversationMessagesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListConversationsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
        status:
          type: string
        source:
          type: string
          nullable: true
        labels:
          type: array
          items:
            type: string
        inventoryItemId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        buyerUsername:
          type: string
          nullable: true
        platformConversationId:
          type: string
        buyerPlatformId:
          type: string
          nullable: true
        buyerAvatarUrl:
          type: string
          nullable: true
        subject:
          type: string
          nullable: true
        isRead:
          type: boolean
        isHidden:
          type: boolean
        hasOffer:
          type: boolean
        offerAmount:
          type: string
          nullable: true
        offerStatus:
          type: string
          nullable: true
        platformConversationUrl:
          type: string
          nullable: true
        lastMessageAt:
          type: string
          format: date-time
          nullable: true
        supersededAt:
          type: string
          format: date-time
          nullable: true
        isStarred:
          type: boolean
      required:
        - id
        - createdAt
        - userId
        - platform
        - accountSlot
        - status
        - labels
        - platformConversationId
        - isRead
        - isHidden
        - hasOffer
        - isStarred
      additionalProperties: false
    ListConversationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListConversationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmAttestationsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        periodKey:
          type: string
        periodStart:
          type: string
        periodEnd:
          type: string
        merkleRoot:
          type: string
        leafCount:
          type: number
        totalBaseUnits:
          type: string
        computedAt:
          type: string
        anchoredAt:
          type: string
          nullable: true
        chainSignature:
          type: string
          nullable: true
      required:
        - id
        - kind
        - periodKey
        - periodStart
        - periodEnd
        - merkleRoot
        - leafCount
        - totalBaseUnits
        - computedAt
      additionalProperties: false
    ListCosmAttestationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmAttestationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmAuctionItem:
      type: object
      properties:
        askBaseUnits:
          type: string
        feeBaseUnits:
          type: string
        listingId:
          type: string
        cosmeticId:
          type: string
        sku:
          type: string
        name:
          type: string
        editionNumber:
          type: number
          nullable: true
        expiresAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - askBaseUnits
        - feeBaseUnits
        - listingId
        - cosmeticId
        - sku
        - name
        - createdAt
      additionalProperties: false
    ListCosmAuctionResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmAuctionItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmCosmeticsItem:
      type: object
      properties:
        id:
          type: string
        sku:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        slot:
          type: string
        tier:
          type: string
        priceCents:
          type: number
          nullable: true
        priceBaseUnits:
          type: string
          nullable: true
        minStakeTenureDays:
          type: number
          nullable: true
        maxSupply:
          type: number
          nullable: true
        mintedCount:
          type: number
        fusable:
          type: boolean
        previewImageUrl:
          type: string
          nullable: true
        unlocksKey:
          type: string
          nullable: true
        unlocksValue:
          type: string
          nullable: true
      required:
        - id
        - sku
        - name
        - slot
        - tier
        - mintedCount
        - fusable
      additionalProperties: false
    ListCosmCosmeticsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmCosmeticsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmGoalsItem:
      type: object
      properties:
        goalId:
          type: string
        name:
          type: string
        targetBaseUnits:
          type: string
        currentBaseUnits:
          type: string
        progressBps:
          type: number
          description: Capped at 10000 so a completed bar never reads over 100%.
        reachedAt:
          type: string
          nullable: true
        endsAt:
          type: string
      required:
        - goalId
        - name
        - targetBaseUnits
        - currentBaseUnits
        - progressBps
        - endsAt
      additionalProperties: false
    ListCosmGoalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmGoalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmInventoryItem:
      type: object
      properties:
        ownershipId:
          type: string
        cosmeticId:
          type: string
        sku:
          type: string
        name:
          type: string
        slot:
          type: string
        tier:
          type: string
        acquiredVia:
          type: string
        bound:
          type: boolean
        editionNumber:
          type: number
          nullable: true
        acquiredAt:
          type: string
          format: date-time
        fusable:
          type: boolean
      required:
        - ownershipId
        - cosmeticId
        - sku
        - name
        - slot
        - tier
        - acquiredVia
        - bound
        - acquiredAt
        - fusable
      additionalProperties: false
    ListCosmInventoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmInventoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmPegsItem:
      type: object
      properties:
        id:
          type: string
        platformListingId:
          type: string
        enabled:
          type: boolean
        targetCents:
          type: number
        currentBaseUnits:
          type: string
        floorBaseUnits:
          type: string
          nullable: true
        ceilingBaseUnits:
          type: string
          nullable: true
        maxChangeBps:
          type: number
        minChangeBps:
          type: number
        lastRepricedAt:
          type: string
          nullable: true
        lastReason:
          type: string
          nullable: true
      required:
        - id
        - platformListingId
        - enabled
        - targetCents
        - currentBaseUnits
        - maxChangeBps
        - minChangeBps
      additionalProperties: false
    ListCosmPegsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmPegsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmSupplyEpochsItem:
      type: object
      properties:
        epochIndex:
          type: number
        startsAt:
          type: string
        endsAt:
          type: string
        demanded:
          type: string
        emitted:
          type: string
        ceiling:
          type: string
        trailingBurn:
          type: string
        ceilingBound:
          type: boolean
          description: True when the backstop actually bound. Should be rare.
      required:
        - epochIndex
        - startsAt
        - endsAt
        - demanded
        - emitted
        - ceiling
        - trailingBurn
        - ceilingBound
      additionalProperties: false
    ListCosmSupplyEpochsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmSupplyEpochsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmSupplyScheduleItem:
      type: object
      properties:
        cumulativeMintedAtLeast:
          type: string
        rateMultiplierBps:
          type: number
        label:
          type: string
      required:
        - cumulativeMintedAtLeast
        - rateMultiplierBps
        - label
      additionalProperties: false
    ListCosmSupplyScheduleResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmSupplyScheduleItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmUnlocksItem:
      type: object
      properties:
        key:
          type: string
        value:
          type: string
        sku:
          type: string
        name:
          type: string
      required:
        - key
        - value
        - sku
        - name
      additionalProperties: false
    ListCosmUnlocksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmUnlocksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCosmWithdrawalsItem:
      type: object
      properties:
        id:
          type: string
        baseUnits:
          type: string
        destinationAddress:
          type: string
        status:
          type: string
        signature:
          type: string
          nullable: true
        failureReason:
          type: string
          nullable: true
        requestedAt:
          type: string
        resolvedAt:
          type: string
          nullable: true
      required:
        - id
        - baseUnits
        - destinationAddress
        - status
        - requestedAt
      additionalProperties: false
    ListCosmWithdrawalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCosmWithdrawalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorCardGamesItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        updatedAt:
          type: string
        check:
          $ref: "#/components/schemas/ListCreatorCardGamesItemCheck"
        publishedAt:
          type: string
          nullable: true
        gameId:
          type: string
        sets:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCardGamesItemSets"
          description: The picked sets, as the creator knows them (missing ones dropped; the check names them).
        setCode:
          type: string
        publishedVersion:
          type: number
          nullable: true
        publishedSemver:
          type: string
          nullable: true
        coverCards:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCardGamesItemCoverCards"
          description: "The picked cards that have art: what the cover can be (`cover: { kind: 'card', cardId }`)."
        spec:
          $ref: "#/components/schemas/ListCreatorCardGamesItemSpec"
      required:
        - id
        - name
        - updatedAt
        - check
        - gameId
        - sets
        - setCode
        - coverCards
        - spec
      additionalProperties: false
    ListCreatorCardGamesItemCheck:
      type: object
      properties:
        ok:
          type: boolean
        issues:
          type: array
          items:
            $ref: "#/components/schemas/PathMessage"
        conformance:
          type: array
          items:
            type: string
          description: tcgStaticConformance problems, then bot-game problems when `games` > 0.
        cards:
          type: number
        starters:
          type: number
      required:
        - ok
        - issues
        - conformance
        - cards
        - starters
      additionalProperties: false
    ListCreatorCardGamesItemCoverCards:
      type: object
      properties:
        cardId:
          type: string
        name:
          type: string
        artUrl:
          type: string
          nullable: true
      required:
        - cardId
        - name
      additionalProperties: false
    ListCreatorCardGamesItemSets:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        setCode:
          type: string
        cards:
          type: number
      required:
        - id
        - name
        - setCode
        - cards
      additionalProperties: false
    ListCreatorCardGamesItemSpec:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        gameId:
          type: string
        win:
          $ref: "#/components/schemas/ListCreatorCardGamesItemSpecWin"
        setCode:
          type: string
        setIds:
          type: array
          items:
            type: string
        deckSize:
          type: number
        copiesPerCard:
          type: number
        cover:
          $ref: "#/components/schemas/ListCreatorCardGamesItemSpecCover"
        setTitle:
          type: string
      required:
        - name
        - description
        - gameId
        - win
        - setCode
        - setIds
        - deckSize
        - copiesPerCard
        - cover
        - setTitle
      additionalProperties: false
    ListCreatorCardGamesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCardGamesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorCardSetsItem:
      type: object
      properties:
        id:
          type: string
        gameId:
          type: string
        setCode:
          type: string
        name:
          type: string
        cards:
          type: number
        publishedVersion:
          type: number
          nullable: true
        publishedSemver:
          type: string
          nullable: true
        publishedAt:
          type: string
          nullable: true
        updatedAt:
          type: string
        progress:
          $ref: "#/components/schemas/GetCreatorCardSetProgressResponseData"
      required:
        - id
        - gameId
        - setCode
        - name
        - cards
        - updatedAt
        - progress
      additionalProperties: false
    ListCreatorCardSetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCardSetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorCreationReviewsItem:
      type: object
      properties:
        id:
          type: string
        rating:
          type: number
        body:
          type: string
          nullable: true
        buyerName:
          type: string
          nullable: true
        creatorReply:
          type: string
          nullable: true
        creatorRepliedAt:
          type: string
          nullable: true
        hidden:
          type: boolean
        reported:
          type: boolean
        createdAt:
          type: string
      required:
        - id
        - rating
        - hidden
        - reported
        - createdAt
      additionalProperties: false
    ListCreatorCreationReviewsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCreationReviewsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorCreationsItem:
      type: object
      properties:
        ref:
          type: string
        format:
          type: string
          enum:
            - wearable
            - model
            - decor
            - interactive
            - card
            - classic_game
            - card_game
        kind:
          type: string
          enum:
            - item
            - decor
            - interactive
            - card
            - game
        id:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - live
            - paused
            - in_review
            - changes_requested
            - rejected
            - retired
        collection:
          $ref: "#/components/schemas/NameObject2"
        rail:
          type: string
          enum:
            - cosm
            - cash
          nullable: true
        priceCents:
          type: number
          nullable: true
        priceBaseUnits:
          type: string
          nullable: true
        previewImageUrl:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        earnings:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCreationsItemEarnings"
        rating:
          $ref: "#/components/schemas/ListCreatorCreationsItemRating"
        mint:
          $ref: "#/components/schemas/ListCreatorCreationsItemMint"
        canPause:
          type: boolean
          description: The source has an active flag (wearable / decor cosmetics), so it can be paused and resumed.
        listingId:
          type: string
          nullable: true
          description: The buyer-side catalogue id when it differs from `id` (a template wearable's on-sale colourway).
      required:
        - ref
        - format
        - kind
        - id
        - name
        - status
        - createdAt
        - updatedAt
        - earnings
        - mint
        - canPause
      additionalProperties: false
    ListCreatorCreationsItemEarnings:
      type: object
      properties:
        unit:
          type: string
        amount:
          type: string
        count:
          type: number
      required:
        - unit
        - amount
        - count
      additionalProperties: false
    ListCreatorCreationsItemMint:
      type: object
      properties:
        eligible:
          type: boolean
        stage:
          type: string
          enum:
            - live
            - eligible
            - designed
            - drafted
            - deploying
            - ended
          nullable: true
      required:
        - eligible
      additionalProperties: false
    ListCreatorCreationsItemRating:
      type: object
      properties:
        average:
          type: number
        count:
          type: number
      required:
        - average
        - count
      additionalProperties: false
      nullable: true
      description: "Buyer reviews (creation_reviews; games: world_game_ratings). null = none yet."
    ListCreatorCreationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCreationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorEarningTrendItem:
      type: object
      properties:
        at:
          type: string
          description: The bucket's first day, YYYY-MM-DD (UTC).
        rail:
          type: string
          enum:
            - cosm
            - cash
            - cbx
        unit:
          type: string
          enum:
            - cbx_base_units
            - usd_cents
            - cosm_base_units
        net:
          type: string
        count:
          type: number
      required:
        - at
        - rail
        - unit
        - net
        - count
      additionalProperties: false
    ListCreatorEarningTrendResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorEarningTrendItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorEarningsItem:
      type: object
      properties:
        rail:
          type: string
          enum:
            - cosm
            - cash
            - cbx
        source:
          type: string
          enum:
            - item_sale
            - classic_store
            - vault_creator_code
            - item_royalty
            - card_sale
            - resale_royalty
            - production_royalty
            - world_pass
            - world_product
            - world_subscription
            - world_private_server
            - world_paid_access
            - world_commerce_affiliate
            - toolbox_asset
            - creator_rewards
            - world_ads
        sourceTable:
          type: string
        sourceRowId:
          type: string
        orderRef:
          type: string
          nullable: true
        productRef:
          type: string
          nullable: true
        productName:
          type: string
          nullable: true
        gross:
          type: string
          nullable: true
        shareBps:
          type: number
          nullable: true
        amount:
          type: string
        unit:
          type: string
          enum:
            - cbx_base_units
            - usd_cents
            - cosm_base_units
        state:
          type: string
          enum:
            - available
            - paid
            - reversed
        occurredAt:
          type: string
        gameId:
          type: string
          nullable: true
          description: The Carnival game (experience id) a Crossly Carnival row was earned in; null for every other rail.
      required:
        - rail
        - source
        - sourceTable
        - sourceRowId
        - amount
        - unit
        - state
        - occurredAt
      additionalProperties: false
    ListCreatorEarningsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorEarningsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorExperienceKeysItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        prefix:
          type: string
        environment:
          type: string
        scopes:
          type: array
          items:
            type: string
        experienceIds:
          type: array
          items:
            type: string
        ipAllowlist:
          type: array
          items:
            type: string
        expiresAt:
          type: string
          nullable: true
        lastUsedAt:
          type: string
          nullable: true
        lastUsedIp:
          type: string
          nullable: true
        rotatedFromId:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - name
        - prefix
        - environment
        - scopes
        - experienceIds
        - ipAllowlist
        - createdAt
      additionalProperties: false
    ListCreatorExperienceKeysResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorExperienceKeysItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorItemModelsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        use:
          type: string
          enum:
            - wearable
            - prop
        sha256:
          type: string
        assetPath:
          type: string
        bytes:
          type: number
        triangles:
          type: number
        status:
          type: string
          enum:
            - draft
            - in_review
            - rejected
            - approved
        reviewNote:
          type: string
          nullable: true
        report:
          $ref: "#/components/schemas/ListCreatorItemModelsItemReport"
        submittedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - use
        - sha256
        - assetPath
        - bytes
        - triangles
        - status
        - report
        - createdAt
        - updatedAt
      additionalProperties: false
    ListCreatorItemModelsItemReport:
      type: object
      properties:
        use:
          type: string
          enum:
            - wearable
            - prop
        summary:
          $ref: "#/components/schemas/ListCreatorItemModelsItemReportSummary"
        meshes:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemModelsItemReportMeshes"
          description: Per-mesh triangles, heaviest first (top 10).
        joints:
          type: number
        lines:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemModelsItemReportLines"
        problems:
          type: array
          items:
            type: string
          description: Hard problems that are not a number against a limit (external URIs, rig).
        suggestions:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemModelsItemReportSuggestions"
        ok:
          type: boolean
          description: "Fits phone AND desktop and has no problems: can be submitted."
        fitsPhone:
          type: boolean
        fitsDesktop:
          type: boolean
      required:
        - use
        - summary
        - meshes
        - joints
        - lines
        - problems
        - suggestions
        - ok
        - fitsPhone
        - fitsDesktop
      additionalProperties: false
    ListCreatorItemModelsItemReportLines:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        tier:
          type: string
          enum:
            - desktop
            - phone
            - any
          description: "'any' = a per-file limit that applies everywhere."
        value:
          type: number
        limit:
          type: number
        pass:
          type: boolean
        unit:
          type: string
          enum:
            - count
            - bytes
            - triangles
            - draw calls
            - px
            - bones
      required:
        - key
        - label
        - tier
        - value
        - limit
        - pass
        - unit
      additionalProperties: false
    ListCreatorItemModelsItemReportMeshes:
      type: object
      properties:
        name:
          type: string
        triangles:
          type: number
      required:
        - name
        - triangles
      additionalProperties: false
    ListCreatorItemModelsItemReportSuggestions:
      type: object
      properties:
        kind:
          type: string
          enum:
            - action
            - auto
          description: "'auto' = publish does it for you; 'action' = you must change the file."
        message:
          type: string
      required:
        - kind
        - message
      additionalProperties: false
    ListCreatorItemModelsItemReportSummary:
      type: object
      properties:
        bytes:
          type: number
        nodes:
          type: number
        meshes:
          type: number
        primitives:
          type: number
          description: Primitives = draw calls.
        triangles:
          type: number
        images:
          type: number
        maxTextureEdge:
          type: number
          description: Largest embedded image edge (PNG/JPEG headers), 0 when none could be read.
        animations:
          type: number
        heavyMeshes:
          type: number
          description: Meshes above LOD_TRIANGLE_THRESHOLD.
        externalUris:
          type: number
          description: Anything outside the file (a URI) — refused by intake; reported here too.
      required:
        - bytes
        - nodes
        - meshes
        - primitives
        - triangles
        - images
        - maxTextureEdge
        - animations
        - heavyMeshes
        - externalUris
      additionalProperties: false
    ListCreatorItemModelsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemModelsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorItemWearablesItem:
      type: object
      properties:
        id:
          type: string
        templateKey:
          type: string
        template:
          $ref: "#/components/schemas/ListCreatorItemWearablesItemTemplate"
        slug:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        colourways:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemWearablesItemColourways"
        priceCosm:
          type: number
        maxSupply:
          type: number
          nullable: true
        status:
          type: string
          enum:
            - draft
            - live
            - in_review
            - changes_requested
            - rejected
        checks:
          $ref: "#/components/schemas/ListCreatorItemWearablesItemChecks"
        previewImageUrl:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        cosmetics:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemWearablesItemCosmetics"
        submittedAt:
          type: string
          nullable: true
        updatedAt:
          type: string
      required:
        - id
        - templateKey
        - slug
        - name
        - colourways
        - priceCosm
        - status
        - checks
        - cosmetics
        - updatedAt
      additionalProperties: false
    ListCreatorItemWearablesItemChecks:
      type: object
      properties:
        ok:
          type: boolean
        checks:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemWearablesItemChecksChecks"
      required:
        - ok
        - checks
      additionalProperties: false
    ListCreatorItemWearablesItemChecksChecks:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
        pass:
          type: boolean
        detail:
          type: string
      required:
        - key
        - label
        - pass
        - detail
      additionalProperties: false
    ListCreatorItemWearablesItemColourways:
      type: object
      properties:
        name:
          type: string
        colors:
          type: object
          additionalProperties: {}
      required:
        - name
        - colors
      additionalProperties: false
    ListCreatorItemWearablesItemCosmetics:
      type: object
      properties:
        colourway:
          type: string
        cosmeticId:
          type: string
        sku:
          type: string
        active:
          type: boolean
        review:
          type: string
          nullable: true
      required:
        - colourway
        - cosmeticId
        - sku
        - active
      additionalProperties: false
    ListCreatorItemWearablesItemTemplate:
      type: object
      properties:
        name:
          type: string
        model:
          type: string
        slot:
          type: string
        panels:
          type: array
          items:
            type: string
      required:
        - name
        - model
        - slot
        - panels
      additionalProperties: false
      nullable: true
    ListCreatorItemWearablesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemWearablesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorItemsItem:
      type: object
      properties:
        kind:
          type: string
          enum:
            - wearable
            - model
            - decor
            - interactive
            - classic_game
            - card_game
            - physical_run
        id:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - live
            - in_review
            - changes_requested
            - rejected
            - retired
        rail:
          type: string
          enum:
            - cosm
            - cash
          nullable: true
          description: "How it is priced: cash (cents), cosm (base units), or not sold directly."
        priceCents:
          type: number
          nullable: true
        priceBaseUnits:
          type: string
          nullable: true
        previewImageUrl:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
          description: The latest reviewer note the creator should read, if any.
        createdAt:
          type: string
        earnings:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorCreationsItemEarnings"
          description: What it has earned, from the earnings view, per unit.
        listingId:
          type: string
          nullable: true
          description: The buyer-side catalogue id when it differs from `id` (a template wearable's on-sale colourway).
      required:
        - kind
        - id
        - name
        - status
        - createdAt
        - earnings
      additionalProperties: false
    ListCreatorItemsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorReviewsItem:
      type: object
      properties:
        kind:
          type: string
          enum:
            - item
            - model
            - interactive
            - classic_game
            - card_game
            - toolbox
            - notification
            - game_media
        reviewId:
          type: string
          description: The id the matching admin decision route takes (cosmetic id, MML version id, card game version id).
        subjectId:
          type: string
        subjectName:
          type: string
        version:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - superseded
            - in_review
            - rejected
            - approved
            - withdrawn
        note:
          type: string
          nullable: true
        submittedAt:
          type: string
        decidedAt:
          type: string
          nullable: true
      required:
        - kind
        - reviewId
        - subjectId
        - subjectName
        - state
        - submittedAt
      additionalProperties: false
    ListCreatorReviewsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorReviewsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorRewardMeItem:
      type: object
      properties:
        experiences:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorRewardMeResponseDataOneOfExperiences"
        yourCents:
          type: number
        month:
          type: string
        formulaVersion:
          type: number
        retentionBonusBps:
          type: number
        newPlayerBonusBps:
          type: number
        termsVersion:
          type: number
        poolShareBps:
          type: number
        worldsNetCents:
          type: number
        crosslyTakeCents:
          type: number
        fundedCents:
          type: number
        carriedInCents:
          type: number
        poolCents:
          type: number
        distributedCents:
          type: number
        carriedOutCents:
          type: number
        countedMinutes:
          type: number
        weightedMinutes:
          type: number
        eligibleExperiences:
          type: number
        exclusions:
          type: object
          additionalProperties: {}
        calculatedAt:
          type: string
      required:
        - experiences
        - yourCents
        - month
    ListCreatorRewardMeResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorRewardMeItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCreatorRewardMonthsItem:
      type: object
      properties:
        month:
          type: string
        formulaVersion:
          type: number
        retentionBonusBps:
          type: number
        newPlayerBonusBps:
          type: number
        termsVersion:
          type: number
        poolShareBps:
          type: number
        worldsNetCents:
          type: number
        crosslyTakeCents:
          type: number
        fundedCents:
          type: number
        carriedInCents:
          type: number
        poolCents:
          type: number
        distributedCents:
          type: number
        carriedOutCents:
          type: number
        countedMinutes:
          type: number
        weightedMinutes:
          type: number
        eligibleExperiences:
          type: number
        exclusions:
          type: object
          additionalProperties: {}
        calculatedAt:
          type: string
      required:
        - month
        - formulaVersion
        - retentionBonusBps
        - newPlayerBonusBps
        - termsVersion
        - poolShareBps
        - worldsNetCents
        - crosslyTakeCents
        - fundedCents
        - carriedInCents
        - poolCents
        - distributedCents
        - carriedOutCents
        - countedMinutes
        - weightedMinutes
        - eligibleExperiences
        - exclusions
        - calculatedAt
      additionalProperties: false
    ListCreatorRewardMonthsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorRewardMonthsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCrmIntegrationLogsItem:
      type: object
      properties:
        id:
          type: string
        customerHandle:
          type: string
        status:
          type: string
        externalId:
          type: string
          nullable: true
        errorMessage:
          type: string
          nullable: true
        retryCount:
          type: number
        requestPayload:
          type: string
          nullable: true
        responseBody:
          type: string
          nullable: true
        sentAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - customerHandle
        - status
        - retryCount
        - createdAt
      additionalProperties: false
    ListCrmIntegrationLogsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCrmIntegrationLogsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCrmIntegrationsItem:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
        providerLabel:
          type: string
        name:
          type: string
        enabled:
          type: boolean
        oauth:
          type: boolean
          description: Connected through OAuth (reconnect, not re-key).
        config:
          type: object
          additionalProperties: {}
        sync:
          $ref: "#/components/schemas/ListCrmIntegrationsItemSync"
        storefrontId:
          type: string
          nullable: true
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
        lastErrorAt:
          type: string
          format: date-time
          nullable: true
        lastError:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - provider
        - providerLabel
        - name
        - enabled
        - oauth
        - config
        - sync
        - createdAt
      additionalProperties: false
    ListCrmIntegrationsItemSync:
      type: object
      properties:
        sources:
          type: array
          items:
            $ref: "#/components/schemas/ListCrmIntegrationsItemSyncSourcesItem"
          description: Which buyers flow in automatically. Empty = only manual exports (today's behaviour, the migrated default).
        marketingConsentOnly:
          type: boolean
          description: Only buyers who agreed to marketing (always true for Mailchimp).
        fieldMap:
          type: object
          description: Crossly field → CRM field. Empty = the provider's default mapping.
          additionalProperties: {}
      required:
        - sources
        - marketingConsentOnly
        - fieldMap
      additionalProperties: false
    ListCrmIntegrationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCrmIntegrationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListCustomersItem:
      type: object
      properties:
        normalizedHandle:
          type: string
        platforms:
          type: array
          items:
            type: string
        totalOrders:
          type: number
        totalSpent:
          type: number
        avatarUrl:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
        bestRating:
          $ref: "#/components/schemas/ListCustomersItemBestRating"
      required:
        - normalizedHandle
        - platforms
        - totalOrders
        - totalSpent
      additionalProperties: false
    ListCustomersItemBestRating:
      type: object
      properties:
        value:
          type: number
        count:
          type: number
          nullable: true
        platform:
          type: string
      required:
        - value
        - platform
      additionalProperties: false
      nullable: true
    ListCustomersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListCustomersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDaoProposalsItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        body:
          type: string
        beneficiaryKind:
          type: string
        beneficiaryNote:
          type: string
          nullable: true
        requestedBaseUnits:
          type: string
          nullable: true
        status:
          type: string
        totalVotingPower:
          type: string
        powerFor:
          type: string
        powerAgainst:
          type: string
        powerAbstain:
          type: string
        quorumBps:
          type: number
        passThresholdBps:
          type: number
        opensAt:
          type: string
          nullable: true
        closesAt:
          type: string
          nullable: true
        talliedAt:
          type: string
          nullable: true
        vetoedReason:
          type: string
          nullable: true
        charityGoalId:
          type: string
          nullable: true
        proposalKind:
          type: string
        params:
          type: object
          nullable: true
          additionalProperties: {}
        createdAt:
          type: string
      required:
        - id
        - title
        - body
        - beneficiaryKind
        - status
        - totalVotingPower
        - powerFor
        - powerAgainst
        - powerAbstain
        - quorumBps
        - passThresholdBps
        - proposalKind
        - createdAt
      additionalProperties: false
    ListDaoProposalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDaoProposalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDetectedEventEventsItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - confirmed
            - dismissed
            - failed
            - acted
            - held
            - asked
            - ignored
            - undone
        ruleId:
          type: string
          nullable: true
        ruleName:
          type: string
          nullable: true
        reports:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventEventsItemReports"
        guards:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventEventsItemGuards"
        plan:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventEventsItemPlan"
        actions:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventEventsItemActions"
        canConfirm:
          type: boolean
        canUndo:
          type: boolean
        candidateTitles:
          type: object
          nullable: true
          additionalProperties: {}
        title:
          type: string
          nullable: true
        legacy:
          type: boolean
          nullable: true
          description: A legacy event_policy_decisions row shown in History (read-only, no actions).
        dismissedAt:
          type: string
          nullable: true
          description: Dismiss on an ask (status dismissed).
        orderId:
          type: string
          nullable: true
          description: orders.id the event is about (1460).
        listingId:
          type: string
          nullable: true
          description: "listings.id (the master listing, not the platform row) the event is about: the event page links to it."
        createdAt:
          type: string
      required:
        - id
        - status
        - reports
        - guards
        - plan
        - actions
        - canConfirm
        - canUndo
        - createdAt
      additionalProperties: false
    ListDetectedEventEventsItemActions:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - ignore
            - relist
            - cancel_order
            - ask
            - record_sale
            - void_sale
            - record_event
            - link_to_item
            - unlink_item
            - import_as_item
            - create_stub
            - attach_history_only
            - decrement_stock
            - restore_stock
            - set_stock
            - oversell_alert
            - sync_sibling_qty
            - delist_siblings
            - end_siblings
            - relist_siblings
            - update_siblings
            - end_this_listing
            - apply_remote_change
            - revert_remote_change
            - mark_ended
            - record_platform_change
            - share
            - apply_order_event
            - accept_cancel_request
            - decline_cancel_request
            - mark_shipped
            - mark_delivered
            - record_refund
            - restock_on_return
            - track_with_crossly
            - accept_offer
            - decline_offer
            - counter_offer
            - send_offer_to_likers
            - reply
            - auto_reply_vacation
            - leave_feedback
            - await_confirmation
            - fire_automation
            - outbound_webhook
            - notify
            - confirm_job
            - log_only
        targetLabel:
          type: string
        mode:
          type: string
          enum:
            - direct
            - ask
            - relay
            - skip
          nullable: true
        outcome:
          type: string
          enum:
            - pending
            - skipped
            - failed
            - done
            - asked
            - undone
        detail:
          type: string
          nullable: true
        reversible:
          type: boolean
      required:
        - id
        - type
        - targetLabel
        - outcome
        - reversible
      additionalProperties: false
    ListDetectedEventEventsItemGuards:
      type: object
      properties:
        guard:
          type: string
          enum:
            - backfill
            - self_echo
            - stale_catch_up
            - weak_evidence
            - paid_order
            - conflict
        message:
          type: string
        held:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventEventsItemGuardsHeldItem"
          description: Actions the guard held back (moved into an ask, or dropped).
        loosen:
          type: string
          enum:
            - allowWeakEvidence
            - loosen.backfill
            - loosen.staleCatchUp
          nullable: true
          description: The rule field that loosens it; null when it never loosens.
      required:
        - guard
        - message
        - held
      additionalProperties: false
    ListDetectedEventEventsItemPlan:
      type: object
      properties:
        action:
          type: string
          enum:
            - ignore
            - relist
            - cancel_order
            - ask
            - record_sale
            - void_sale
            - record_event
            - link_to_item
            - unlink_item
            - import_as_item
            - create_stub
            - attach_history_only
            - decrement_stock
            - restore_stock
            - set_stock
            - oversell_alert
            - sync_sibling_qty
            - delist_siblings
            - end_siblings
            - relist_siblings
            - update_siblings
            - end_this_listing
            - apply_remote_change
            - revert_remote_change
            - mark_ended
            - record_platform_change
            - share
            - apply_order_event
            - accept_cancel_request
            - decline_cancel_request
            - mark_shipped
            - mark_delivered
            - record_refund
            - restock_on_return
            - track_with_crossly
            - accept_offer
            - decline_offer
            - counter_offer
            - send_offer_to_likers
            - reply
            - auto_reply_vacation
            - leave_feedback
            - await_confirmation
            - fire_automation
            - outbound_webhook
            - notify
            - confirm_job
            - log_only
        target:
          type: string
        targetLabel:
          type: string
        verb:
          type: string
          enum:
            - delist
            - update
            - relist
            - ask
            - end
            - sync_qty
            - leave
          nullable: true
          x-enum-varnames:
            - delist
            - update
            - relist
            - ask
            - endOption
            - sync_qty
            - leave
        mode:
          type: string
          enum:
            - direct
            - ask
            - relay
            - skip
          nullable: true
        subRuleIndex:
          type: number
          nullable: true
      required:
        - action
        - target
        - targetLabel
      additionalProperties: false
    ListDetectedEventEventsItemReports:
      type: object
      properties:
        id:
          type: string
        channel:
          type: string
          enum:
            - email
            - manual
            - extension
            - platform_webhook
            - platform_poll
            - cookie_poll
            - health_probe
            - listing_discovery
            - app_push
        receivedAt:
          type: string
        correlation:
          type: string
          enum:
            - exact
            - fuzzy
            - first
        score:
          type: number
          nullable: true
        enriched:
          type: array
          items:
            type: string
          nullable: true
        contradicts:
          type: boolean
      required:
        - id
        - channel
        - receivedAt
        - correlation
        - contradicts
      additionalProperties: false
    ListDetectedEventEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDetectedEventRulesItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        enabled:
          type: boolean
        order:
          type: number
        filter:
          $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseDataFilter"
        then:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventRulesItemThenItem"
        else:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventRulesItemElseItem"
          nullable: true
        continue:
          type: boolean
          nullable: true
        allowWeakEvidence:
          type: boolean
          nullable: true
          description: "Guard 1 grant: destructive actions may run on a similarity match / fuzzy correlation / bare email."
        loosen:
          $ref: "#/components/schemas/BackfillStaleCatchUp"
        target:
          $ref: "#/components/schemas/ListDetectedEventRulesItemTarget"
        candidatePool:
          $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponseDataCandidatePool"
        source:
          type: string
          enum:
            - default
            - legacy
            - seller
          nullable: true
        defaultKey:
          type: string
          nullable: true
          description: 'Default rules: the default this rule restores on "reset".'
        meta:
          type: object
          nullable: true
          description: Client-owned passthrough (the grid's `meta.grid` split state); stored with the rule, ignored by the resolver.
          additionalProperties: {}
      required:
        - id
        - name
        - enabled
        - order
        - filter
        - then
      additionalProperties: false
    ListDetectedEventRulesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventRulesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDetectedEventSituationsItem:
      type: object
      properties:
        key:
          type: string
        topic:
          type: string
        topicLabel:
          type: string
        title:
          type: string
        common:
          type: boolean
        readOnly:
          type: boolean
        why:
          type: string
          nullable: true
        ruleRef:
          type: string
        choices:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventSituationsItemChoices"
      required:
        - key
        - topic
        - topicLabel
        - title
        - common
        - readOnly
        - ruleRef
        - choices
      additionalProperties: false
    ListDetectedEventSituationsItemChoices:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        description:
          type: string
        recommended:
          type: boolean
        body:
          $ref: "#/components/schemas/ListDetectedEventSituationsItemChoicesBody"
      required:
        - id
        - label
        - description
        - recommended
        - body
      additionalProperties: false
    ListDetectedEventSituationsItemChoicesBody:
      type: object
      properties:
        then:
          type: array
          items: {}
        filter:
          type: object
          additionalProperties: {}
        continue:
          type: boolean
          nullable: true
        else:
          type: array
          items: {}
          nullable: true
        allowWeakEvidence:
          type: boolean
          nullable: true
          description: "Guard 1 grant: destructive actions may run on a similarity match / fuzzy correlation / bare email."
        loosen:
          type: object
          nullable: true
          description: "Guard 2/3 loosening: act on backfill events; act on a stale catch-up as written."
          additionalProperties: {}
        candidatePool:
          type: object
          nullable: true
          additionalProperties: {}
        enabled:
          type: boolean
          nullable: true
      required:
        - then
        - filter
      additionalProperties: false
    ListDetectedEventSituationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDetectedEventSituationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDeveloperAppClientVersionsItem:
      type: object
      properties:
        id:
          type: string
        appId:
          type: string
        clientVersion:
          type: string
        previousVersion:
          type: string
          nullable: true
        buildUrl:
          type: string
          nullable: true
        releaseNotes:
          type: string
        status:
          type: string
          enum:
            - superseded
            - failed
            - running
            - rejected
            - approved
            - awaiting_run
            - carried
            - ops_review
        rule:
          type: string
          nullable: true
        ruleText:
          type: string
          nullable: true
        runId:
          type: string
          nullable: true
        checks:
          type: object
          nullable: true
          additionalProperties: {}
        decidedAt:
          type: string
          nullable: true
        decisionNotes:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - appId
        - clientVersion
        - releaseNotes
        - status
        - createdAt
        - updatedAt
      additionalProperties: false
    ListDeveloperAppClientVersionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDeveloperAppClientVersionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDeveloperAppConformanceRunsItem:
      type: object
      properties:
        phase:
          type: string
          enum:
            - expired
            - failed
            - report
            - waiting
            - policy
            - chat
            - movement
            - rejoin
            - passed
            - aborted
        instruction:
          type: string
        mode:
          type: string
          enum:
            - live
            - scripted
        serverId:
          type: string
        connections:
          type: number
        expiresAt:
          type: string
        checks:
          type: array
          items:
            $ref: "#/components/schemas/ListDeveloperAppConformanceRunsItemChecks"
        counters:
          $ref: "#/components/schemas/ListDeveloperAppConformanceRunsItemCounters"
        id:
          type: string
        certificationId:
          type: string
        appId:
          type: string
        experienceId:
          type: string
        placeId:
          type: string
        clientVersion:
          type: string
        createdAt:
          type: string
        finishedAt:
          type: string
          nullable: true
      required:
        - phase
        - instruction
        - mode
        - serverId
        - connections
        - expiresAt
        - checks
        - counters
        - id
        - certificationId
        - appId
        - experienceId
        - placeId
        - clientVersion
        - createdAt
      additionalProperties: false
    ListDeveloperAppConformanceRunsItemChecks:
      type: object
      properties:
        at:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - pending
            - pass
            - fail
        detail:
          type: string
          description: One sentence a developer can act on.
        id:
          type: string
          enum:
            - handshake
            - snapshot_acks
            - input_rate
            - input_sequence
            - ping_rate
            - stats_rate
            - frame_limits
            - chat_via_platform
            - chat_rate_limit
            - reporting_ui
            - join_backoff
            - policy_fetch
            - policy_respected
      required:
        - status
        - detail
        - id
      additionalProperties: false
    ListDeveloperAppConformanceRunsItemCounters:
      type: object
      properties:
        lastStatsAt:
          type: string
          nullable: true
        frames:
          type: number
        inputs:
          type: number
        maxInputsPerSecond:
          type: number
        lastInputSeq:
          type: number
        snapshotsSent:
          type: number
        snapshotsAcked:
          type: number
        pings:
          type: number
        maxPingsPerSecond:
          type: number
        stats:
          type: number
        chats:
          type: number
      required:
        - frames
        - inputs
        - maxInputsPerSecond
        - lastInputSeq
        - snapshotsSent
        - snapshotsAcked
        - pings
        - maxPingsPerSecond
        - stats
        - chats
      additionalProperties: false
    ListDeveloperAppConformanceRunsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDeveloperAppConformanceRunsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDeveloperAppsItem:
      type: object
      properties:
        installs:
          type: number
        lifetimeEarningsCents:
          type: number
        status:
          type: string
          enum:
            - live
            - listed
            - in_review
            - revoked
            - needs_store
        storeName:
          type: string
          nullable: true
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        homepageUrl:
          type: string
          nullable: true
        logoUrl:
          type: string
          nullable: true
        clientId:
          type: string
        clientSecretPrefix:
          type: string
        secretRotatedAt:
          type: string
          format: date-time
          nullable: true
        redirectUris:
          type: array
          items:
            type: string
        scopes:
          type: array
          items:
            type: string
        isPublic:
          type: boolean
        tagline:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        screenshots:
          type: array
          items:
            type: string
        supportEmail:
          type: string
          nullable: true
        supportUrl:
          type: string
          nullable: true
        privacyUrl:
          type: string
          nullable: true
        termsUrl:
          type: string
          nullable: true
        listingStatus:
          type: string
        slug:
          type: string
          nullable: true
        audience:
          type: string
        audienceOverride:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
        longDescription:
          type: string
          nullable: true
        docsLinks:
          type: array
          items:
            $ref: "#/components/schemas/LabelUrl"
        demoVideoUrl:
          type: string
          nullable: true
        pricingNote:
          type: string
          nullable: true
        installUrl:
          type: string
          nullable: true
        featured:
          type: boolean
        listedAt:
          type: string
          format: date-time
          nullable: true
        verified:
          type: boolean
        verifiedAt:
          type: string
          format: date-time
          nullable: true
        monetization:
          type: string
        revShareBps:
          type: number
          nullable: true
        revShareCapCents:
          type: number
          nullable: true
        revShareMinOrderCents:
          type: number
          nullable: true
        payoutMethod:
          type: string
        payoutState:
          type: string
        ownerStorefrontId:
          type: string
          nullable: true
        needsStoreChoice:
          type: boolean
        createdAt:
          type: string
          format: date-time
        revokedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - installs
        - lifetimeEarningsCents
        - status
        - id
        - name
        - clientId
        - clientSecretPrefix
        - redirectUris
        - scopes
        - isPublic
        - screenshots
        - listingStatus
        - audience
        - docsLinks
        - featured
        - verified
        - monetization
        - payoutMethod
        - payoutState
        - needsStoreChoice
        - createdAt
      additionalProperties: false
    ListDeveloperAppsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDeveloperAppsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDevicesItem:
      type: object
      properties:
        capabilities:
          type: array
          items:
            type: string
        lastSeenAt:
          type: string
          nullable: true
        createdAt:
          type: string
        id:
          type: string
        name:
          type: string
        os:
          type: string
          nullable: true
        version:
          type: string
          nullable: true
      required:
        - capabilities
        - createdAt
        - id
        - name
      additionalProperties: false
    ListDevicesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDevicesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDiscountCodeRedemptionsItem:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        orderId:
          type: string
          nullable: true
        buyer:
          type: string
        country:
          type: string
          nullable: true
        region:
          type: string
          nullable: true
        channel:
          type: string
        subtotalCents:
          type: number
        discountCents:
          type: number
        refunded:
          type: boolean
        createdAt:
          type: string
      required:
        - id
        - code
        - buyer
        - channel
        - subtotalCents
        - discountCents
        - refunded
        - createdAt
      additionalProperties: false
    ListDiscountCodeRedemptionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDiscountCodeRedemptionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDiscountCodesItem:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        name:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - fixed
            - percent
            - free_shipping
            - bxgy
            - spend_tiers
            - fixed_price_set
        status:
          type: string
          enum:
            - active
            - expired
            - paused
            - archived
            - scheduled
            - exhausted
        rules:
          $ref: "#/components/schemas/ListDiscountCodesItemRules"
        usage:
          $ref: "#/components/schemas/ListDiscountCodesItemUsage"
        generatedCount:
          type: number
        createdAt:
          type: string
        updatedAt:
          type: string
        discountType:
          type: string
          enum:
            - fixed
            - percent
        percentOffBps:
          type: number
          nullable: true
        fixedOffCents:
          type: number
          nullable: true
        minOrderCents:
          type: number
        redemptionCount:
          type: number
        maxRedemptions:
          type: number
          nullable: true
        expiresAt:
          type: string
          nullable: true
        active:
          type: boolean
      required:
        - id
        - code
        - kind
        - status
        - rules
        - usage
        - generatedCount
        - createdAt
        - updatedAt
        - discountType
        - minOrderCents
        - redemptionCount
        - active
      additionalProperties: false
    ListDiscountCodesItemRules:
      type: object
      properties:
        value:
          $ref: "#/components/schemas/ListDiscountCodesItemRulesValue"
        bxgy:
          $ref: "#/components/schemas/ListDiscountCodesItemRulesBxgy"
        spendTiers:
          type: array
          items:
            $ref: "#/components/schemas/CreateDiscountCodeRequestRulesSpendTiers"
        fixedPriceSet:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRulesFixedPriceSet"
        requirements:
          $ref: "#/components/schemas/ListDiscountCodesItemRulesRequirements"
        appliesTo:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemAppliesTo"
        exclusions:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemExclusions"
        limits:
          $ref: "#/components/schemas/ListDiscountCodesItemRulesLimits"
        schedule:
          $ref: "#/components/schemas/ListDiscountCodesItemRulesSchedule"
        stacking:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemStacking"
        delivery:
          type: string
          enum:
            - code
            - auto_apply
            - unique_bulk
        channels:
          type: array
          items:
            $ref: "#/components/schemas/ListDiscountCodesItemRulesChannelsItem"
        display:
          $ref: "#/components/schemas/ListDiscountCodesItemRulesDisplay"
      required:
        - value
        - spendTiers
        - requirements
        - appliesTo
        - exclusions
        - limits
        - schedule
        - stacking
        - delivery
        - channels
        - display
      additionalProperties: false
    ListDiscountCodesItemRulesBxgy:
      type: object
      properties:
        buyQty:
          type: number
        getQty:
          type: number
        target:
          type: string
          enum:
            - same
            - chosen
          description: "`same`: the Y items come from the same eligible set; `chosen`: only the listings in getListingIds."
        getListingIds:
          type: array
          items:
            type: string
        reward:
          type: string
          enum:
            - free
            - percent
        rewardBps:
          type: number
          nullable: true
        maxApplications:
          type: number
          nullable: true
          description: How many times one order can use it (null = as often as the cart allows).
      required:
        - buyQty
        - getQty
        - target
        - getListingIds
        - reward
      additionalProperties: false
      nullable: true
    ListDiscountCodesItemRulesDisplay:
      type: object
      properties:
        badge:
          type: boolean
        banner:
          type: boolean
        bannerText:
          type: string
          nullable: true
        hidden:
          type: boolean
          description: "Code only: never advertised anywhere."
      required:
        - badge
        - banner
        - hidden
      additionalProperties: false
    ListDiscountCodesItemRulesLimits:
      type: object
      properties:
        totalUses:
          type: number
          nullable: true
        usesPerBuyer:
          type: number
          nullable: true
        usesPerDay:
          type: number
          nullable: true
        budgetCents:
          type: number
          nullable: true
          description: Total $ the code may give away, across every order.
        onePerOrder:
          type: boolean
        regions:
          $ref: "#/components/schemas/ListDiscountCodesItemRulesLimitsRegions"
      required:
        - onePerOrder
        - regions
      additionalProperties: false
    ListDiscountCodesItemRulesLimitsRegions:
      type: object
      properties:
        allowCountries:
          type: array
          items:
            type: string
        blockCountries:
          type: array
          items:
            type: string
        allowStates:
          type: array
          items:
            type: string
        blockStates:
          type: array
          items:
            type: string
        allowPostalPrefixes:
          type: array
          items:
            type: string
        blockPostalPrefixes:
          type: array
          items:
            type: string
        caps:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - allowCountries
        - blockCountries
        - allowStates
        - blockStates
        - allowPostalPrefixes
        - blockPostalPrefixes
        - caps
      additionalProperties: false
    ListDiscountCodesItemRulesRequirements:
      type: object
      properties:
        minSubtotalCents:
          type: number
        minItemCount:
          type: number
        firstOrderOnly:
          type: boolean
        returningOnly:
          type: boolean
        mustFollowStore:
          type: boolean
        loyaltyTierMinId:
          type: string
          nullable: true
          description: "A loyalty tier id: the buyer's tier must be this one or above."
        verifiedTradeBuyer:
          type: boolean
        channel:
          type: string
          enum:
            - retail
            - any
            - wholesale
      required:
        - minSubtotalCents
        - minItemCount
        - firstOrderOnly
        - returningOnly
        - mustFollowStore
        - verifiedTradeBuyer
        - channel
      additionalProperties: false
    ListDiscountCodesItemRulesSchedule:
      type: object
      properties:
        startsAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        windows:
          type: array
          items:
            type: object
            additionalProperties: {}
        timeZone:
          type: string
          enum:
            - store
            - buyer
          description: Whose clock the windows read.
        storeTimeZone:
          type: string
          nullable: true
          description: The store's IANA zone (the api fills it from the store at save time).
      required:
        - windows
        - timeZone
      additionalProperties: false
    ListDiscountCodesItemRulesValue:
      type: object
      properties:
        percentBps:
          type: number
          nullable: true
        amountCents:
          type: number
          nullable: true
        maxDiscountCents:
          type: number
          nullable: true
          description: The most one order can get off, whatever the % says.
        rounding:
          type: string
          enum:
            - none
            - down_dollar
            - nearest_dollar
      required:
        - rounding
      additionalProperties: false
    ListDiscountCodesItemUsage:
      type: object
      properties:
        usesTotal:
          type: number
        givenCents:
          type: number
        buyers:
          type: number
      required:
        - usesTotal
        - givenCents
        - buyers
      additionalProperties: false
    ListDiscountCodesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDiscountCodesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDiscountHoldersItem:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        name:
          type: string
        kind:
          type: string
        holder:
          $ref: "#/components/schemas/ListDiscountHoldersItemHolder"
        percentBps:
          type: number
        appliesTo:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemAppliesTo"
        exclusions:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemExclusions"
        channels:
          type: array
          items:
            $ref: "#/components/schemas/ListDiscountHoldersItemChannelsItem"
        schedule:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemSchedule"
        stacking:
          $ref: "#/components/schemas/ListAutomaticDiscountsItemStacking"
        limits:
          $ref: "#/components/schemas/ListDiscountHoldersItemLimits"
        active:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - kind
        - holder
        - percentBps
        - appliesTo
        - exclusions
        - channels
        - schedule
        - stacking
        - limits
        - active
        - createdAt
        - updatedAt
      additionalProperties: false
    ListDiscountHoldersItemHolder:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        collectionName:
          type: string
          nullable: true
      required:
        - chain
        - contract
      additionalProperties: false
    ListDiscountHoldersItemLimits:
      type: object
      properties:
        perBuyerUses:
          type: number
          nullable: true
        totalUses:
          type: number
          nullable: true
        budgetCents:
          type: number
          nullable: true
      additionalProperties: false
    ListDiscountHoldersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDiscountHoldersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListDropMineItem:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        stats:
          $ref: "#/components/schemas/ListDropMineItemStats"
        editable:
          type: boolean
        id:
          type: string
        title:
          type: string
        status:
          type: string
          enum:
            - cancelled
            - scheduled
            - closed
            - line_open
            - released
        units:
          type: number
        eligibility:
          type: string
          enum:
            - verified
            - signed_in
        opensLineAt:
          type: string
        releaseAt:
          type: string
        seedHash:
          type: string
          nullable: true
          description: sha256(seed), hex; null until the line opens.
        seed:
          type: string
          nullable: true
          description: Revealed at release.
        drawVersion:
          type: string
        entries:
          type: number
        entryIds:
          type: array
          items:
            type: string
          nullable: true
          description: Sorted entry ids and the draw order, after release (capped; `truncated` says so).
        order:
          type: array
          items:
            type: string
          nullable: true
        truncated:
          type: boolean
        claimed:
          type: number
        seller:
          $ref: "#/components/schemas/ListDropMineItemSeller"
        listings:
          type: array
          items:
            $ref: "#/components/schemas/ListDropMineItemListings"
        street:
          $ref: "#/components/schemas/ListDropMineItemStreet"
      required:
        - listingIds
        - stats
        - editable
        - id
        - title
        - status
        - units
        - eligibility
        - opensLineAt
        - releaseAt
        - drawVersion
        - entries
        - truncated
        - claimed
        - seller
        - listings
      additionalProperties: false
    ListDropMineItemListings:
      type: object
      properties:
        listingId:
          type: string
        slug:
          type: string
        title:
          type: string
        priceCents:
          type: number
        imageUrl:
          type: string
          nullable: true
      required:
        - listingId
        - slug
        - title
        - priceCents
      additionalProperties: false
    ListDropMineItemSeller:
      type: object
      properties:
        name:
          type: string
        shop:
          $ref: "#/components/schemas/NameSlug2"
      required:
        - name
      additionalProperties: false
    ListDropMineItemStats:
      type: object
      properties:
        entries:
          type: number
        won:
          type: number
        claimed:
          type: number
        waitlist:
          type: number
        expired:
          type: number
      required:
        - entries
        - won
        - claimed
        - waitlist
        - expired
      additionalProperties: false
    ListDropMineItemStreet:
      type: object
      properties:
        slug:
          type: string
        plotIndex:
          type: number
          nullable: true
        stallSpotIndex:
          type: number
          nullable: true
      required:
        - slug
      additionalProperties: false
      nullable: true
      description: Where on the street the line stands, when the seller has a street address.
    ListDropMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListDropMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListEmailEventsItem:
      type: object
      properties:
        id:
          type: string
        platform:
          type: string
          nullable: true
        event:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
          description: 'What the email said, for the card line ("Possible sale on Grailed: <title>, $15").'
        price:
          $ref: "#/components/schemas/AmountCurrency"
        detail:
          type: string
          nullable: true
        createdAt:
          type: string
        candidates:
          type: array
          items:
            $ref: "#/components/schemas/ListEmailEventsItemCandidates"
          description: The seller's listings it could be about. One = obvious; several = the seller picks.
        detectedEventId:
          type: string
          nullable: true
          description: "The detected event the email was reported as (email_events.detected_event_id): the card's \"Open in History\"."
      required:
        - id
        - createdAt
        - candidates
      additionalProperties: false
    ListEmailEventsItemCandidates:
      type: object
      properties:
        platformListingDbId:
          type: string
        title:
          type: string
        accountSlot:
          type: number
      required:
        - platformListingDbId
        - title
        - accountSlot
      additionalProperties: false
    ListEmailEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListEmailEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListEmailProvidersItem:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
        providerLabel:
          type: string
        label:
          type: string
        fromEmail:
          type: string
        fromName:
          type: string
          nullable: true
        replyTo:
          type: string
          nullable: true
        configPreview:
          type: object
          additionalProperties: {}
        isDefault:
          type: boolean
        lastTestedAt:
          type: string
          format: date-time
          nullable: true
        lastTestOk:
          type: boolean
          nullable: true
        lastTestError:
          type: string
          nullable: true
          description: A sanitized line (spec SE4), never the provider's own text.
        storefrontId:
          type: string
          nullable: true
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
        uses:
          type: array
          items:
            type: string
          description: "What it sends (migration 1483; store-send.ts EMAIL_SENDER_USES): lookbooks, and on request invoices, receipts."
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - provider
        - providerLabel
        - label
        - fromEmail
        - configPreview
        - isDefault
        - uses
        - createdAt
      additionalProperties: false
    ListEmailProvidersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListEmailProvidersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListEmbedKeysItem:
      type: object
      properties:
        id:
          type: string
        key:
          type: string
        name:
          type: string
        allowedOrigins:
          type: array
          items:
            type: string
        environment:
          type: string
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - key
        - name
        - allowedOrigins
        - environment
        - createdAt
      additionalProperties: false
    ListEmbedKeysResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListEmbedKeysItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListEventAttendeesItem:
      type: object
      properties:
        userId:
          type: string
        status:
          type: string
        createdAt:
          type: string
        name:
          type: string
        username:
          type: string
          nullable: true
        avatarUrl:
          type: string
          nullable: true
      required:
        - userId
        - status
        - createdAt
        - name
      additionalProperties: false
    ListEventAttendeesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListEventAttendeesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListEventPolicyDecisionsItem:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
          enum:
            - email
            - manual
            - webhook
            - poller
            - app_relay
        sourceRef:
          type: string
          nullable: true
        platform:
          type: string
        externalId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        event:
          type: string
          enum:
            - sale
            - message
            - refunded
            - offer
            - order_cancelled
            - return_opened
            - label_ready
            - shipped
            - delivered
            - payout_sent
            - listing_ended
        ownership:
          type: string
          enum:
            - crossly
            - imported
            - other_tool
            - app_managed
            - untracked
        action:
          type: string
          enum:
            - record
            - ignore
            - review
            - mark_ended
            - notify
            - record_and_delist
            - import_and_record
            - mark_ended_and_delist
            - import
            - apply
            - apply_and_restock
        requestedAction:
          type: string
          enum:
            - record
            - ignore
            - review
            - mark_ended
            - notify
            - record_and_delist
            - import_and_record
            - mark_ended_and_delist
            - import
            - apply
            - apply_and_restock
        scope:
          type: string
          enum:
            - default
            - app
            - platform
            - global
        ruleId:
          type: string
          nullable: true
        outcome:
          type: string
          enum:
            - skipped
            - failed
            - review
            - done
        detail:
          type: object
          additionalProperties: {}
        title:
          type: string
          nullable: true
          description: "The item's name for the feed: its listing's title, else the title the event carried (detail.title), else null."
        canConfirm:
          type: boolean
          description: A non-email 'review' decision the seller can still confirm (POST /api/event-policies/decisions/:id/confirm).
        createdAt:
          type: string
      required:
        - id
        - source
        - platform
        - event
        - ownership
        - action
        - requestedAction
        - scope
        - outcome
        - detail
        - canConfirm
        - createdAt
      additionalProperties: false
    ListEventPolicyDecisionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListEventPolicyDecisionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListEventsItem:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        kind:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
          nullable: true
        locationType:
          type: string
        locationText:
          type: string
          nullable: true
        locationUrl:
          type: string
          nullable: true
        status:
          type: string
        phase:
          type: string
          enum:
            - live
            - ended
            - upcoming
        rsvpEnabled:
          type: boolean
        capacity:
          type: number
          nullable: true
        listingIds:
          type: array
          items:
            type: string
        liveStreamId:
          type: string
          nullable: true
        dropRef:
          $ref: "#/components/schemas/TypeId2"
        discountCodeId:
          type: string
          nullable: true
        featureOnStorefront:
          type: boolean
        notifyFollowers:
          type: boolean
        notifiedAt:
          type: string
          nullable: true
        viewCount:
          type: number
        goingCount:
          type: number
        interestedCount:
          type: number
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - slug
        - kind
        - title
        - startsAt
        - locationType
        - status
        - phase
        - rsvpEnabled
        - listingIds
        - featureOnStorefront
        - notifyFollowers
        - viewCount
        - goingCount
        - interestedCount
        - createdAt
        - updatedAt
      additionalProperties: false
    ListEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListFestivalsItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        tagline:
          type: string
          nullable: true
        decor:
          type: string
          enum:
            - fair
            - valentine
            - spring
            - summer
            - school
            - halloween
            - holiday
            - winter
        startsAt:
          type: string
        endsAt:
          type: string
        cancelledAt:
          type: string
          nullable: true
      required:
        - id
        - title
        - decor
        - startsAt
        - endsAt
      additionalProperties: false
    ListFestivalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListFestivalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListFieldRulesItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
          nullable: true
        enabled:
          type: boolean
        position:
          type: number
        target:
          type: string
        targetKey:
          type: string
          nullable: true
        stopAfter:
          type: boolean
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - userId
        - platform
        - enabled
        - position
        - target
        - stopAfter
      additionalProperties: false
    ListFieldRulesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListFieldRulesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListFundingApprovalsItem:
      type: object
      properties:
        approvalsNeeded:
          type: number
        approvals:
          type: array
          items:
            $ref: "#/components/schemas/ListFundingApprovalsItemApprovals"
        id:
          type: string
        purpose:
          type: string
        channel:
          type: string
        amountCents:
          type: number
        aprBps:
          type: number
        estFeeCents:
          type: number
        dueAt:
          type: string
          nullable: true
        supplierName:
          type: string
          nullable: true
        invoiceRef:
          type: string
          nullable: true
        invoiceUrl:
          type: string
          nullable: true
        invoiceFile:
          $ref: "#/components/schemas/ListFundingDrawsItemInvoiceFile"
        paymentRef:
          type: string
          nullable: true
        status:
          type: string
        reversedCents:
          type: number
        stage:
          type: string
        stageLabel:
          type: string
        use:
          type: string
          nullable: true
        counterpartyUserId:
          type: string
          nullable: true
        requestedByUserId:
          type: string
          nullable: true
        forMemberUserId:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        spentCents:
          type: number
        timeline:
          type: array
          items:
            $ref: "#/components/schemas/ListFundingDrawsItemTimeline"
        createdAt:
          type: string
      required:
        - approvalsNeeded
        - approvals
        - id
        - purpose
        - channel
        - amountCents
        - aprBps
        - estFeeCents
        - status
        - reversedCents
        - stage
        - stageLabel
        - spentCents
        - timeline
        - createdAt
      additionalProperties: false
    ListFundingApprovalsItemApprovals:
      type: object
      properties:
        approverUserId:
          type: string
        decision:
          type: string
          enum:
            - reject
            - approve
        note:
          type: string
          nullable: true
        at:
          type: string
      required:
        - approverUserId
        - decision
        - at
      additionalProperties: false
    ListFundingApprovalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListFundingApprovalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListFundingDrawsItem:
      type: object
      properties:
        id:
          type: string
        purpose:
          type: string
        channel:
          type: string
        amountCents:
          type: number
        aprBps:
          type: number
        estFeeCents:
          type: number
        dueAt:
          type: string
          nullable: true
        supplierName:
          type: string
          nullable: true
        invoiceRef:
          type: string
          nullable: true
        invoiceUrl:
          type: string
          nullable: true
        invoiceFile:
          $ref: "#/components/schemas/ListFundingDrawsItemInvoiceFile"
        paymentRef:
          type: string
          nullable: true
        status:
          type: string
        reversedCents:
          type: number
        stage:
          type: string
        stageLabel:
          type: string
        use:
          type: string
          nullable: true
        counterpartyUserId:
          type: string
          nullable: true
        requestedByUserId:
          type: string
          nullable: true
        forMemberUserId:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        spentCents:
          type: number
        timeline:
          type: array
          items:
            $ref: "#/components/schemas/ListFundingDrawsItemTimeline"
        createdAt:
          type: string
      required:
        - id
        - purpose
        - channel
        - amountCents
        - aprBps
        - estFeeCents
        - status
        - reversedCents
        - stage
        - stageLabel
        - spentCents
        - timeline
        - createdAt
      additionalProperties: false
    ListFundingDrawsItemInvoiceFile:
      type: object
      properties:
        id:
          type: string
        fileName:
          type: string
        contentType:
          type: string
        sizeBytes:
          type: number
      required:
        - id
        - fileName
        - contentType
        - sizeBytes
      additionalProperties: false
      nullable: true
    ListFundingDrawsItemTimeline:
      type: object
      properties:
        stage:
          type: string
          enum:
            - requested
            - rejected
            - reversed
            - approved
            - disbursed
            - spent
            - repaid
        label:
          type: string
        at:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - skipped
            - current
            - done
            - upcoming
      required:
        - stage
        - label
        - state
      additionalProperties: false
    ListFundingDrawsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListFundingDrawsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListFundingReceiptsItem:
      type: object
      properties:
        id:
          type: string
        use:
          type: string
        subjectType:
          type: string
        subjectRef:
          type: string
          nullable: true
        idempotencyKey:
          type: string
        amountCents:
          type: number
        chargedCents:
          type: number
        drawId:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - pending
            - failed
            - paid
        error:
          type: string
          nullable: true
        memo:
          type: string
          nullable: true
        actorUserId:
          type: string
          nullable: true
        createdAt:
          type: string
        paidAt:
          type: string
          nullable: true
      required:
        - id
        - use
        - subjectType
        - idempotencyKey
        - amountCents
        - chargedCents
        - status
        - createdAt
      additionalProperties: false
    ListFundingReceiptsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListFundingReceiptsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListFundingRepaymentsItem:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        amountCents:
          type: number
        appliedCents:
          type: number
        refundedCents:
          type: number
        status:
          type: string
        stripePaymentIntentId:
          type: string
          nullable: true
        failure:
          type: string
          nullable: true
        createdAt:
          type: string
        settledAt:
          type: string
          nullable: true
      required:
        - id
        - source
        - amountCents
        - appliedCents
        - refundedCents
        - status
        - createdAt
      additionalProperties: false
    ListFundingRepaymentsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListFundingRepaymentsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListGameBreakUpcomingItem:
      type: object
      properties:
        breakId:
          type: string
        title:
          type: string
        product:
          type: string
          nullable: true
        status:
          type: string
        startsAt:
          type: string
          nullable: true
          description: Scheduled start (ISO), and whether the seller is breaking right now.
        doorsOpenAt:
          type: string
          nullable: true
          description: |-
            When the viewer gets in (ISO): the start, or earlier for a loyalty member with the seller's `live_early_entry`
            perk. Null with no start. Optional: a board read without a viewer leaves it at the start.
        live:
          type: boolean
        shop:
          $ref: "#/components/schemas/NameSlug"
        buyUrl:
          type: string
          nullable: true
          description: The listing the spots are bought through, on crossly.net. Never a world checkout.
        spotsLeft:
          type: number
        spots:
          type: array
          items:
            $ref: "#/components/schemas/ListGameBreakUpcomingItemSpots"
        hits:
          type: array
          items:
            $ref: "#/components/schemas/ListGameBreakUpcomingItemHits"
      required:
        - breakId
        - title
        - status
        - live
        - shop
        - spotsLeft
        - spots
        - hits
      additionalProperties: false
    ListGameBreakUpcomingItemHits:
      type: object
      properties:
        id:
          type: string
        breakId:
          type: string
        spotId:
          type: string
        spot:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        buyer:
          type: string
          nullable: true
        at:
          type: string
      required:
        - id
        - breakId
        - spotId
        - spot
        - title
        - at
      additionalProperties: false
    ListGameBreakUpcomingItemSpots:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        taken:
          type: boolean
        buyer:
          type: string
          nullable: true
      required:
        - id
        - label
        - taken
      additionalProperties: false
    ListGameBreakUpcomingResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListGameBreakUpcomingItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListGameCouponsItem:
      type: object
      properties:
        id:
          type: string
        game:
          type: string
        valueCents:
          type: number
        status:
          type: string
          enum:
            - expired
            - live
            - redeemed
        earnedAt:
          type: number
        expiresAt:
          type: number
        paidCents:
          type: number
          nullable: true
          description: Bucks it paid, once redeemed.
      required:
        - id
        - game
        - valueCents
        - status
        - earnedAt
        - expiresAt
      additionalProperties: false
    ListGameCouponsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListGameCouponsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListGameHuntMineItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        placeSlug:
          type: string
        stallBookingId:
          type: string
          nullable: true
        code:
          type: string
          nullable: true
        eventId:
          type: string
          nullable: true
        endsAt:
          type: string
        endedAt:
          type: string
          nullable: true
        live:
          type: boolean
        draft:
          type: boolean
        tokens:
          type: array
          items:
            $ref: "#/components/schemas/ListGameHuntMineItemTokens"
        finishers:
          type: number
      required:
        - id
        - title
        - placeSlug
        - endsAt
        - live
        - draft
        - tokens
        - finishers
      additionalProperties: false
    ListGameHuntMineItemTokens:
      type: object
      properties:
        id:
          type: string
        x:
          type: number
        z:
          type: number
      required:
        - id
        - x
        - z
      additionalProperties: false
    ListGameHuntMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListGameHuntMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListGameHuntsItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        shop:
          $ref: "#/components/schemas/NameSlug"
        stall:
          $ref: "#/components/schemas/ListGameHuntsItemStall"
        tokens:
          type: number
        reward:
          type: string
          description: '"10% off" / "$5 off": what finishing it unlocks, never the code itself.'
        endsAt:
          type: string
        finishers:
          type: number
        rules:
          $ref: "#/components/schemas/ListGameHuntsItemRules"
      required:
        - id
        - title
        - shop
        - tokens
        - reward
        - endsAt
        - finishers
      additionalProperties: false
    ListGameHuntsItemRules:
      type: object
      properties:
        ordered:
          type: boolean
        hints:
          type: boolean
        timeLimitMinutes:
          type: number
          nullable: true
        winners:
          type: number
        winnersLeft:
          type: number
      required:
        - ordered
        - hints
        - winners
        - winnersLeft
      additionalProperties: false
      nullable: true
      description: "A hunt built in the world (hunt-config.ts): its rules as a player needs them. Absent on older hunts."
    ListGameHuntsItemStall:
      type: object
      properties:
        bookingId:
          type: string
      required:
        - bookingId
      additionalProperties: false
      nullable: true
      description: Set when the tokens are at a pop-up stall on that street (the booking), not in a boutique.
    ListGameHuntsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListGameHuntsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListGameResultMineItem:
      type: object
      properties:
        id:
          type: string
        game:
          type: string
          enum:
            - price_guess
            - price_guess_solo
            - hunt
            - speed_trade
            - break_host
            - pack_break
        refId:
          type: string
          description: The round, hunt, table or break it was.
        score:
          type: number
        won:
          type: boolean
        prizeCents:
          type: number
        detail:
          type: object
          additionalProperties: {}
        createdAt:
          type: string
      required:
        - id
        - game
        - refId
        - score
        - won
        - prizeCents
        - detail
        - createdAt
      additionalProperties: false
    ListGameResultMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListGameResultMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListGradingRateCardItem:
      type: object
      properties:
        graderSlug:
          type: string
        graderName:
          type: string
        tierSlug:
          type: string
        tierName:
          type: string
        priceCents:
          type: number
          nullable: true
        minCards:
          type: number
        maxDeclaredCents:
          type: number
          nullable: true
        source:
          type: string
          nullable: true
      required:
        - graderSlug
        - graderName
        - tierSlug
        - tierName
        - minCards
      additionalProperties: false
    ListGradingRateCardResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListGradingRateCardItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListGradingRunsItem:
      type: object
      properties:
        id:
          type: string
        graderSlug:
          type: string
        graderName:
          type: string
        tierSlug:
          type: string
        tierName:
          type: string
        priceCents:
          type: number
        handlingCents:
          type: number
        shippingCents:
          type: number
        minCards:
          type: number
        capacity:
          type: number
        held:
          type: number
        cutoffAt:
          type: string
        status:
          type: string
        savingsCents:
          type: number
          nullable: true
          description: Against sending the same card alone at the grader's cheapest single-card tier.
        note:
          type: string
          nullable: true
      required:
        - id
        - graderSlug
        - graderName
        - tierSlug
        - tierName
        - priceCents
        - handlingCents
        - shippingCents
        - minCards
        - capacity
        - held
        - cutoffAt
        - status
      additionalProperties: false
    ListGradingRunsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListGradingRunsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListGradingSubmissionsItem:
      type: object
      properties:
        id:
          type: string
        mode:
          type: string
          enum:
            - direct
            - order
            - run
        orderId:
          type: string
          nullable: true
          description: The grading order (submission through Crossly) this card is in.
        runId:
          type: string
          nullable: true
        runCutoffAt:
          type: string
          nullable: true
        runStatus:
          type: string
          nullable: true
        graderSlug:
          type: string
        graderName:
          type: string
        tierSlug:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        title:
          type: string
        declaredValueCents:
          type: number
        prescreen:
          type: boolean
        status:
          type: string
          enum:
            - refunded
            - received
            - released
            - reserved
            - charged
            - shipped_to_hub
            - prescreen_failed
            - at_grader
            - graded
            - returning
            - returned
            - vaulted
        missMode:
          type: string
        returnMode:
          type: string
        chargedCents:
          type: number
        refundedCents:
          type: number
        inboundLabelUrl:
          type: string
          nullable: true
        inboundTracking:
          type: string
          nullable: true
        returnTracking:
          type: string
          nullable: true
        prescreenNote:
          type: string
          nullable: true
        grading:
          $ref: "#/components/schemas/CreateBulkBatchItemResponseGrading"
        certVerified:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - mode
        - graderSlug
        - graderName
        - title
        - declaredValueCents
        - prescreen
        - status
        - missMode
        - returnMode
        - chargedCents
        - refundedCents
        - certVerified
        - createdAt
        - updatedAt
      additionalProperties: false
    ListGradingSubmissionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListGradingSubmissionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListGroupBuysItem:
      type: object
      properties:
        qtyTiers:
          type: array
          items:
            $ref: "#/components/schemas/MinQtyPriceCents"
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/CreateGroupBuyRequestTiers"
        minBuyers:
          type: number
        maxBuyers:
          type: number
        joined:
          type: number
        id:
          type: string
        slug:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        listingTitle:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        status:
          type: string
        closedReason:
          type: string
          nullable: true
        createdAt:
          type: string
        endsAt:
          type: string
        msLeft:
          type: number
        opensToAllAt:
          type: string
          nullable: true
        basePriceCents:
          type: number
        progress:
          type: array
          items:
            $ref: "#/components/schemas/GetGroupBuyResponseDataProgress"
        goalQty:
          type: number
        minQtyToProceed:
          type: number
        perBuyerMax:
          type: number
        maxQty:
          type: number
        paymentMode:
          type: string
        goalMiss:
          type: string
        extendDays:
          type: number
        extended:
          type: boolean
        visibility:
          type: string
        visibilityTierId:
          type: string
          nullable: true
        placement:
          $ref: "#/components/schemas/GetGroupBuyResponseDataPlacement"
        shareCopy:
          type: string
          nullable: true
        shareImageUrl:
          type: string
          nullable: true
        committedQty:
          type: number
        buyers:
          type: number
        currentPriceCents:
          type: number
        finalPriceCents:
          type: number
          nullable: true
        next:
          $ref: "#/components/schemas/GetGroupBuyResponseDataNext"
        minimumMet:
          type: boolean
      required:
        - qtyTiers
        - tiers
        - minBuyers
        - maxBuyers
        - joined
        - id
        - status
        - createdAt
        - endsAt
        - msLeft
        - basePriceCents
        - progress
        - goalQty
        - minQtyToProceed
        - perBuyerMax
        - maxQty
        - paymentMode
        - goalMiss
        - extendDays
        - extended
        - visibility
        - placement
        - committedQty
        - buyers
        - currentPriceCents
        - minimumMet
      additionalProperties: false
    ListGroupBuysResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListGroupBuysItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListHomeMineBuildersItem:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        friends:
          type: boolean
          description: "False once the friendship ended: listed so the owner sees it, but powerless."
      required:
        - userId
        - name
        - friends
      additionalProperties: false
    ListHomeMineBuildersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListHomeMineBuildersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListHomeOfTheWeekItem:
      type: object
      properties:
        slug:
          type: string
        ownerName:
          type: string
        visitors:
          type: number
        here:
          type: number
      required:
        - slug
        - ownerName
        - visitors
        - here
      additionalProperties: false
    ListHomeOfTheWeekResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListHomeOfTheWeekItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListImportsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
        status:
          type: string
        lastError:
          type: string
          nullable: true
        startedAt:
          type: string
          format: date-time
          nullable: true
        finishedAt:
          type: string
          format: date-time
          nullable: true
        filters:
          $ref: "#/components/schemas/ListImportsItemFilters"
        importMode:
          type: string
        includeInactive:
          type: boolean
        mergeIntoExistingListing:
          type: boolean
        mergeIntoExistingInventory:
          type: boolean
        totalCount:
          type: number
        importedCount:
          type: number
        skippedCount:
          type: number
        errorCount:
          type: number
        batchId:
          type: string
          nullable: true
        listOnCrossly:
          type: boolean
        crosslyListedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - platform
        - status
        - importMode
        - includeInactive
        - mergeIntoExistingListing
        - mergeIntoExistingInventory
        - totalCount
        - importedCount
        - skippedCount
        - errorCount
        - listOnCrossly
      additionalProperties: false
    ListImportsItemFilters:
      type: object
      properties:
        listedAfter:
          type: string
          nullable: true
        listedBefore:
          type: string
          nullable: true
        minPrice:
          type: number
          nullable: true
        maxPrice:
          type: number
          nullable: true
        conditionIncludes:
          type: array
          items:
            type: string
          nullable: true
        maxImport:
          type: number
          nullable: true
      additionalProperties: false
      nullable: true
    ListImportsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListImportsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListInboxItem:
      type: object
      properties:
        canSendOffer:
          type: boolean
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
        status:
          type: string
        source:
          type: string
          nullable: true
        labels:
          type: array
          items:
            type: string
        inventoryItemId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        buyerUsername:
          type: string
          nullable: true
        platformConversationId:
          type: string
        buyerPlatformId:
          type: string
          nullable: true
        buyerAvatarUrl:
          type: string
          nullable: true
        subject:
          type: string
          nullable: true
        isRead:
          type: boolean
        isHidden:
          type: boolean
        hasOffer:
          type: boolean
        offerAmount:
          type: string
          nullable: true
        offerStatus:
          type: string
          nullable: true
        platformConversationUrl:
          type: string
          nullable: true
        lastMessageAt:
          type: string
          format: date-time
          nullable: true
        supersededAt:
          type: string
          format: date-time
          nullable: true
        isStarred:
          type: boolean
      required:
        - canSendOffer
        - id
        - createdAt
        - userId
        - platform
        - accountSlot
        - status
        - labels
        - platformConversationId
        - isRead
        - isHidden
        - hasOffer
        - isStarred
      additionalProperties: false
    ListInboxResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListInboxItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListInsightByPlatformItem:
      type: object
      properties:
        platform:
          type: string
        sales:
          type: number
        gross_cents:
          type: number
        avg_days_to_sale:
          type: number
          nullable: true
        avg_sale_cents:
          type: number
          nullable: true
        net_cents:
          type: number
        net_profit_cents:
          type: number
          nullable: true
      required:
        - platform
        - sales
        - gross_cents
        - net_cents
      additionalProperties: false
    ListInsightByPlatformResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListInsightByPlatformItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListInventoryActivityItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        type:
          type: string
        delta:
          type: number
          nullable: true
        quantityBefore:
          type: number
          nullable: true
        quantityAfter:
          type: number
          nullable: true
        saleId:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - type
      additionalProperties: false
    ListInventoryActivityResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListInventoryActivityItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListInventoryHoldIssuesItem:
      type: object
      properties:
        kind:
          type: string
          enum:
            - held_but_listed
            - expired_hold_unreleased
        inventoryItemId:
          type: string
        title:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        heldQty:
          type: number
          description: Units under holds that are still in force (active or lapsed).
        quantityAvailable:
          type: number
        liveListings:
          type: number
          description: "held_but_listed: how many marketplace listings are live."
        holdIds:
          type: array
          items:
            type: string
          description: "expired_hold_unreleased: the lapsed holds."
      required:
        - kind
        - inventoryItemId
        - heldQty
        - quantityAvailable
        - liveListings
        - holdIds
      additionalProperties: false
    ListInventoryHoldIssuesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListInventoryHoldIssuesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListInventoryHoldsItem:
      type: object
      properties:
        id:
          type: string
        inventoryItemId:
          type: string
        unitId:
          type: string
          nullable: true
        qty:
          type: number
        sourceKind:
          type: string
          enum:
            - manual
            - wholesale_quote
            - rental_booking
            - live_lineup
            - cart
            - vault_submission
            - consignment
        sourceId:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
          description: The seller-readable name of what holds it ("Quote for Acme Boutique").
        note:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        releasedAt:
          type: string
          nullable: true
        releaseReason:
          type: string
          enum:
            - expired
            - cancelled
            - superseded
            - released
            - converted
          nullable: true
        createdAt:
          type: string
        state:
          type: string
          enum:
            - active
            - released
            - lapsed
      required:
        - id
        - inventoryItemId
        - qty
        - sourceKind
        - createdAt
        - state
      additionalProperties: false
    ListInventoryHoldsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListInventoryHoldsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListInventoryIdsItem:
      type: string
    ListInventoryItem:
      type: object
      properties:
        id:
          type: string
        brand:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        status:
          type: string
        notes:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        source:
          type: string
        images:
          type: array
          items:
            type: string
        sku:
          type: string
          nullable: true
        quantity:
          type: number
        quantityAvailable:
          type: number
        quantityReserved:
          type: number
        wholesaleReserve:
          type: number
        quantitySold:
          type: number
        originalPrice:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        material:
          type: string
          nullable: true
        style:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        department:
          type: string
          nullable: true
        gender:
          type: string
          nullable: true
        itemType:
          type: string
          nullable: true
        sizeSystem:
          type: string
          nullable: true
        color:
          type: array
          items:
            type: string
        defaultTitle:
          type: string
        videoUrl:
          type: string
          nullable: true
        provenanceReceiptId:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        labels:
          type: array
          items:
            type: string
        customLabel:
          type: string
          nullable: true
        warehouseLocation:
          type: string
          nullable: true
        storageBin:
          type: string
          nullable: true
        storageNote:
          type: string
          nullable: true
        marketSkuId:
          type: string
          nullable: true
        marketVariantId:
          type: string
          nullable: true
        gradeKey:
          type: string
          nullable: true
        vaultSellFrom:
          type: string
          enum:
            - vault_first
            - warehouse_first
            - cheapest
          nullable: true
        grading:
          $ref: "#/components/schemas/CreateBulkBatchItemResponseGrading"
        firstListedAt:
          type: string
          format: date-time
          nullable: true
        includeTaxInLanded:
          type: boolean
        costBasisCents:
          type: number
          nullable: true
        supplier:
          $ref: "#/components/schemas/ListInventoryItemSupplier"
        priceFloorCents:
          type: number
          nullable: true
        floorIsNet:
          type: boolean
        acquiredAt:
          type: string
          format: date-time
          nullable: true
        acquiredSource:
          type: string
          nullable: true
        weightLb:
          type: string
          nullable: true
        weightOz:
          type: string
          nullable: true
        dimensionLIn:
          type: string
          nullable: true
        dimensionWIn:
          type: string
          nullable: true
        dimensionHIn:
          type: string
          nullable: true
        parcelSource:
          type: string
          nullable: true
        allowanceAppId:
          type: string
          nullable: true
        assigneeMemberId:
          type: string
          nullable: true
        category:
          $ref: "#/components/schemas/MainSub"
      required:
        - id
        - createdAt
        - updatedAt
        - userId
        - status
        - source
        - images
        - quantity
        - quantityAvailable
        - quantityReserved
        - wholesaleReserve
        - quantitySold
        - color
        - defaultTitle
        - tags
        - labels
        - includeTaxInLanded
        - floorIsNet
      additionalProperties: false
    ListInventoryItemSupplier:
      type: object
      properties:
        name:
          type: string
          description: e.g. "walmart", "amazon", "acme-wholesale".
        kind:
          type: string
          enum:
            - wholesale
            - retailer
          nullable: true
          description: retailer (sells to consumers) or wholesale (distributor/manufacturer). Undeclared reads as retailer.
        productUrl:
          type: string
          nullable: true
        productId:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        handlingTimeDays:
          type: number
          nullable: true
          description: Business days from order to the supplier shipping it.
        shipFromRegion:
          type: string
          nullable: true
          description: 'Where the supplier ships from: ISO 3166 country, optionally with a region ("US", "US-CA", "CN").'
      required:
        - name
      additionalProperties: false
      nullable: true
    ListInventoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListInventoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListInventoryUnitsItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        orderId:
          type: string
          nullable: true
        soldAt:
          type: string
          format: date-time
          nullable: true
        notes:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        identifiers:
          type: array
          items:
            $ref: "#/components/schemas/ListInventoryUnitsItemIdentifiers"
      required:
        - id
        - status
        - createdAt
        - identifiers
      additionalProperties: false
    ListInventoryUnitsItemIdentifiers:
      type: object
      properties:
        namespace:
          type: string
        value:
          type: string
        source:
          type: string
        recordedAt:
          type: string
          format: date-time
        strength:
          type: string
          enum:
            - strong
            - good
            - weak
      required:
        - namespace
        - value
        - source
        - recordedAt
        - strength
      additionalProperties: false
    ListInventoryUnitsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListInventoryUnitsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListJobAppraisalsItem:
      type: object
      properties:
        id:
          type: string
        category:
          type: string
        title:
          type: string
        skuId:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        bountyCents:
          type: number
        rail:
          type: string
          enum:
            - cbx
            - bucks
        status:
          type: string
        closesAt:
          type: string
        createdAt:
          type: string
        answers:
          type: number
        mine:
          type: boolean
        answerList:
          type: array
          items:
            $ref: "#/components/schemas/ListJobAppraisalsItemAnswerList"
          description: "Answers: every one to the asker, your own to an appraiser."
      required:
        - id
        - category
        - title
        - bountyCents
        - rail
        - status
        - closesAt
        - createdAt
        - answers
        - mine
        - answerList
      additionalProperties: false
    ListJobAppraisalsItemAnswerList:
      type: object
      properties:
        id:
          type: string
        valueCents:
          type: number
        note:
          type: string
          nullable: true
        accepted:
          type: boolean
        paid:
          type: boolean
        yours:
          type: boolean
      required:
        - id
        - valueCents
        - accepted
        - paid
        - yours
      additionalProperties: false
    ListJobAppraisalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListJobAppraisalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListJobShiftsItem:
      type: object
      properties:
        id:
          type: string
        role:
          type: string
          enum:
            - shop_staff
            - hub_helper
        title:
          type: string
        place:
          $ref: "#/components/schemas/NameSlug"
        startsAt:
          type: string
        endsAt:
          type: string
        payCents:
          type: number
        rail:
          type: string
          enum:
            - cbx
            - bucks
        status:
          type: string
          enum:
            - cancelled
            - open
            - paid
            - claimed
            - worked
            - missed
        presentSeconds:
          type: number
          description: Seconds the server has seen the worker in the place, and how many count it as worked.
        requiredSeconds:
          type: number
        claimedByYou:
          type: boolean
        postedByYou:
          type: boolean
        worker:
          type: string
          nullable: true
        paid:
          type: boolean
      required:
        - id
        - role
        - title
        - place
        - startsAt
        - endsAt
        - payCents
        - rail
        - status
        - presentSeconds
        - requiredSeconds
        - claimedByYou
        - postedByYou
        - paid
      additionalProperties: false
    ListJobShiftsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListJobShiftsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLayawaysItem:
      type: object
      properties:
        id:
          type: string
        purchaseId:
          type: string
        status:
          type: string
        title:
          type: string
        slug:
          type: string
          nullable: true
        imageUrl:
          type: string
        priceCents:
          type: number
        depositCents:
          type: number
        paidCents:
          type: number
        remainingCents:
          type: number
        nextDueAt:
          type: string
          nullable: true
        finalDueAt:
          type: string
        lastError:
          type: string
          nullable: true
        cancelFeeCents:
          type: number
        paidInFullAt:
          type: string
          nullable: true
        cancelledAt:
          type: string
          nullable: true
        schedule:
          type: array
          items:
            $ref: "#/components/schemas/ListLayawaysItemSchedule"
      required:
        - id
        - purchaseId
        - status
        - title
        - imageUrl
        - priceCents
        - depositCents
        - paidCents
        - remainingCents
        - finalDueAt
        - cancelFeeCents
        - schedule
      additionalProperties: false
    ListLayawaysItemSchedule:
      type: object
      properties:
        dueAt:
          type: string
        cents:
          type: number
        paid:
          type: boolean
      required:
        - dueAt
        - cents
        - paid
      additionalProperties: false
    ListLayawaysResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLayawaysItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListListingAdCampaignsItem:
      type: object
      properties:
        platform:
          type: string
        id:
          type: string
        name:
          type: string
        program:
          type: string
          enum:
            - none
            - promoted_listing_rate
            - cpc_campaign
            - bump
            - boost
        fundingModel:
          type: string
        status:
          type: string
        ratePct:
          type: number
          nullable: true
        dailyBudgetCents:
          type: number
          nullable: true
        startsAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        syncedAt:
          type: string
      required:
        - platform
        - id
        - name
        - program
        - fundingModel
        - status
        - syncedAt
      additionalProperties: false
    ListListingAdCampaignsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListListingAdCampaignsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListListingAdPlatformsItem:
      type: object
      properties:
        platform:
          type: string
        connected:
          type: boolean
        supported:
          type: boolean
        track:
          type: string
          enum:
            - api
            - cookie
            - native
          description: "`native` = Crossly's own engine (/api/sponsored-ads), never the dispatcher."
        programs:
          type: array
          items:
            $ref: "#/components/schemas/ListListingAdPlatformsItemPrograms"
        verbs:
          $ref: "#/components/schemas/ListListingAdPlatformsItemVerbs"
        uxPath:
          type: string
          nullable: true
          description: Where the seller manages it on the marketplace itself, shown beside "coming soon".
        note:
          type: string
          nullable: true
      required:
        - platform
        - connected
        - supported
        - track
        - programs
        - verbs
      additionalProperties: false
    ListListingAdPlatformsItemPrograms:
      type: object
      properties:
        kind:
          type: string
          enum:
            - none
            - promoted_listing_rate
            - cpc_campaign
            - bump
            - boost
        label:
          type: string
        scope:
          type: string
          enum:
            - listing
            - shop
          description: "`listing` = each listing is added on its own; `shop` = one shop-wide program the seller turns on (Poshmark Recurring Boost)."
        fundingModel:
          type: string
          enum:
            - bump
            - boost
            - cps
            - cpc
          description: "How the marketplace charges: a % of the sale, per click, a flat boost or a paid bump."
        campaignFields:
          type: array
          items:
            type: object
            additionalProperties: {}
        listingFields:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - kind
        - label
        - scope
        - fundingModel
        - campaignFields
        - listingFields
      additionalProperties: false
    ListListingAdPlatformsItemVerbs:
      type: object
      properties:
        listAdCampaigns:
          type: string
          enum:
            - unsupported
            - wired
            - needs_har
        createAdCampaign:
          type: string
          enum:
            - unsupported
            - wired
            - needs_har
        addToCampaign:
          type: string
          enum:
            - unsupported
            - wired
            - needs_har
        removeFromCampaign:
          type: string
          enum:
            - unsupported
            - wired
            - needs_har
        setAdRate:
          type: string
          enum:
            - unsupported
            - wired
            - needs_har
        getAdStatus:
          type: string
          enum:
            - unsupported
            - wired
            - needs_har
      required:
        - listAdCampaigns
        - createAdCampaign
        - addToCampaign
        - removeFromCampaign
        - setAdRate
        - getAdStatus
      additionalProperties: false
    ListListingAdPlatformsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListListingAdPlatformsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListListingAiDetectionsItem:
      type: object
      properties:
        id:
          type: string
        url:
          type: string
        verdict:
          type: string
          enum:
            - review
            - ai
            - clear
        flagged:
          type: boolean
          description: coalesce(resolution, verdict) = 'ai' — what the shop tag uses.
        status:
          type: string
          enum:
            - review
            - clear
            - flagged
            - disputed
            - cleared
          description: "'flagged' | 'review' | 'disputed' | 'cleared' | 'clear' — one word for a UI chip."
        source:
          type: string
        score:
          type: number
          nullable: true
        generator:
          type: string
          nullable: true
        evidence:
          type: array
          items:
            type: string
        disputedAt:
          type: string
          nullable: true
        resolvedAt:
          type: string
          nullable: true
        resolution:
          type: string
          enum:
            - ai
            - clear
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - url
        - verdict
        - flagged
        - status
        - source
        - evidence
        - createdAt
      additionalProperties: false
    ListListingAiDetectionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListListingAiDetectionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListListingCommandsItem:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - delist
            - update
            - relist
            - submit_tracking
            - remove_tracking
            - cancel_order
            - refund_order
            - message_buyer
        state:
          type: string
          enum:
            - expired
            - pending
            - completed
            - cancelled
            - failed
            - acked
        listingId:
          type: string
        platform:
          type: string
        externalId:
          type: string
        orderId:
          type: string
          nullable: true
          description: "Order commands: the Crossly order and the marketplace's order id. Null on listing commands."
        platformOrderId:
          type: string
          nullable: true
        payload:
          type: object
          description: |-
            delist: { reason }; update: { changes }; relist: { price?, quantity? }
            submit_tracking: { trackingNumber, carrier, previousTrackingNumber? }
            remove_tracking: { trackingNumber, carrier }
            cancel_order: { reason? }
            refund_order: { refundId, amount, full, reason? }   (amount in major units)
            message_buyer: { body, subject?, buyerUsername?, conversationId?, messageId? }
          additionalProperties: {}
        reason:
          type: string
          nullable: true
        createdAt:
          type: string
        ackedAt:
          type: string
          nullable: true
        completedAt:
          type: string
          nullable: true
        expiresAt:
          type: string
      required:
        - id
        - type
        - state
        - listingId
        - platform
        - externalId
        - payload
        - createdAt
        - expiresAt
      additionalProperties: false
    ListListingCommandsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListListingCommandsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListListingDiscrepanciesItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
        marketplaceId:
          type: string
        source:
          type: string
        listingId:
          type: string
        lastError:
          type: string
          nullable: true
        field:
          type: string
        ourValue:
          type: string
          nullable: true
        remoteValue:
          type: string
          nullable: true
        firstDetectedAt:
          type: string
          format: date-time
        lastDetectedAt:
          type: string
          format: date-time
        dismissedAt:
          type: string
          format: date-time
          nullable: true
        dismissedRemoteValue:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - userId
        - platform
        - accountSlot
        - marketplaceId
        - source
        - listingId
        - field
        - firstDetectedAt
        - lastDetectedAt
      additionalProperties: false
    ListListingDiscrepanciesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListListingDiscrepanciesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListListingIdsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListInventoryIdsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListListingTagSuggestItem:
      type: object
      properties:
        tag:
          type: string
        known:
          type: boolean
      required:
        - tag
        - known
      additionalProperties: false
    ListListingTagSuggestResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListListingTagSuggestItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListListingTagsItem:
      type: object
      properties:
        tag:
          type: string
        count:
          type: number
      required:
        - tag
        - count
      additionalProperties: false
    ListListingTagsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListListingTagsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListListingsItem:
      type: object
      properties:
        aiMedia:
          type: boolean
        aiMediaDetected:
          type: boolean
        pricing:
          $ref: "#/components/schemas/ListListingsItemPricing"
        id:
          type: string
        brand:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
        currency:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        source:
          type: string
        images:
          type: array
          items:
            type: string
          nullable: true
        sku:
          type: string
          nullable: true
        quantity:
          type: number
        quantityAvailable:
          type: number
        condition:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        material:
          type: string
          nullable: true
        style:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        department:
          type: string
          nullable: true
        gender:
          type: string
          nullable: true
        itemType:
          type: string
          nullable: true
        sizeSystem:
          type: string
          nullable: true
        color:
          type: array
          items:
            type: string
        videoUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        gradeKey:
          type: string
          nullable: true
        grading:
          $ref: "#/components/schemas/CreateBulkBatchItemResponseGrading"
        priceFloorCents:
          type: number
          nullable: true
        floorIsNet:
          type: boolean
        weightLb:
          type: string
          nullable: true
        weightOz:
          type: string
          nullable: true
        dimensionLIn:
          type: string
          nullable: true
        dimensionWIn:
          type: string
          nullable: true
        dimensionHIn:
          type: string
          nullable: true
        assigneeMemberId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        descriptionHtml:
          type: string
          nullable: true
        price:
          type: string
          nullable: true
        aiMediaUrls:
          type: array
          items:
            type: string
        aiMediaDeclared:
          type: boolean
        aiMediaDetectedUrls:
          type: array
          items:
            type: string
        isDigital:
          type: boolean
        publishAt:
          type: string
          format: date-time
          nullable: true
        scheduledPlatforms:
          type: array
          items:
            type: string
          nullable: true
        parentListingId:
          type: string
          nullable: true
        groupKind:
          type: string
          enum:
            - bundle
            - variation
            - group
          nullable: true
        isBundle:
          type: boolean
        automationAssignedRuleIds:
          type: array
          items:
            type: string
        automationBlockedRuleIds:
          type: array
          items:
            type: string
        automationAssignedChainIds:
          type: array
          items:
            type: string
        automationBlockedChainIds:
          type: array
          items:
            type: string
        workflowBlockedIds:
          type: array
          items:
            type: string
        workflowAssignedIds:
          type: array
          items:
            type: string
        hsCode:
          type: string
          nullable: true
        countryOfOrigin:
          type: string
          nullable: true
        delistedAt:
          type: string
          format: date-time
          nullable: true
        soldAt:
          type: string
          format: date-time
          nullable: true
        ebayAttributesEnrichedAt:
          type: string
          format: date-time
          nullable: true
        duplicateOfListingId:
          type: string
          nullable: true
        clientDraftId:
          type: string
          nullable: true
        attributedOauthAppId:
          type: string
          nullable: true
        attributedGrantId:
          type: string
          nullable: true
        quotaBucket:
          type: string
          nullable: true
      required:
        - aiMedia
        - aiMediaDetected
        - pricing
        - id
        - createdAt
        - updatedAt
        - userId
        - status
        - source
        - quantity
        - quantityAvailable
        - color
        - tags
        - floorIsNet
        - aiMediaUrls
        - aiMediaDeclared
        - aiMediaDetectedUrls
        - isDigital
        - isBundle
        - automationAssignedRuleIds
        - automationBlockedRuleIds
        - automationAssignedChainIds
        - automationBlockedChainIds
        - workflowBlockedIds
        - workflowAssignedIds
      additionalProperties: false
    ListListingsItemPricing:
      type: object
      properties:
        avgAsking:
          $ref: "#/components/schemas/ListListingsItemPricingAvgAsking"
        avgSale:
          $ref: "#/components/schemas/ListListingsItemPricingAvgAsking"
      additionalProperties: false
    ListListingsItemPricingAvgAsking:
      type: object
      properties:
        amount:
          type: string
        currency:
          type: string
        count:
          type: number
          description: "Samples behind the average: marketplace rows (asking) or units sold (sale)."
      required:
        - amount
        - currency
        - count
      additionalProperties: false
      nullable: true
    ListListingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListListingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLiveShipmentsItem:
      type: object
      properties:
        id:
          type: string
        streamId:
          type: string
        streamTitle:
          type: string
        status:
          type: string
        buyerName:
          type: string
          nullable: true
        trackingNumber:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        labelUrl:
          type: string
          nullable: true
        refundedPostageCents:
          type: number
        orders:
          type: array
          items:
            $ref: "#/components/schemas/ListLiveShipmentsItemOrders"
      required:
        - id
        - streamId
        - streamTitle
        - status
        - refundedPostageCents
        - orders
      additionalProperties: false
    ListLiveShipmentsItemOrders:
      type: object
      properties:
        orderId:
          type: string
        purchaseId:
          type: string
        title:
          type: string
          nullable: true
        shippingCents:
          type: number
        orderStatus:
          type: string
          nullable: true
      required:
        - orderId
        - purchaseId
        - shippingCents
      additionalProperties: false
    ListLiveShipmentsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLiveShipmentsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLiveStreamsItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        status:
          type: string
        scheduledAt:
          type: string
        startedAt:
          type: string
          nullable: true
        endedAt:
          type: string
          nullable: true
        replayUrl:
          type: string
          nullable: true
        pinnedPlatformListingId:
          type: string
          nullable: true
        connectionMethod:
          type: string
          nullable: true
        peakViewers:
          type: number
      required:
        - id
        - title
        - status
        - scheduledAt
        - peakViewers
      additionalProperties: false
    ListLiveStreamsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLiveStreamsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLookbookCampaignRecipientsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        sentAt:
          type: string
          format: date-time
          nullable: true
        error:
          type: string
          nullable: true
        attempts:
          type: number
        emailLower:
          type: string
        handleLower:
          type: string
          nullable: true
        campaignId:
          type: string
        skipReason:
          type: string
          nullable: true
        providerMessageId:
          type: string
          nullable: true
        firstOpenedAt:
          type: string
          format: date-time
          nullable: true
        openCount:
          type: number
        firstClickedAt:
          type: string
          format: date-time
          nullable: true
        clickCount:
          type: number
        bouncedAt:
          type: string
          format: date-time
          nullable: true
        complainedAt:
          type: string
          format: date-time
          nullable: true
        unsubscribedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - status
        - attempts
        - emailLower
        - campaignId
        - openCount
        - clickCount
      additionalProperties: false
    ListLookbookCampaignRecipientsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLookbookCampaignRecipientsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLookbookCampaignsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        subject:
          type: string
        startedAt:
          type: string
          format: date-time
          nullable: true
        finishedAt:
          type: string
          format: date-time
          nullable: true
        skippedCount:
          type: number
        error:
          type: string
          nullable: true
        sellerUserId:
          type: string
        scheduledAt:
          type: string
          format: date-time
        designVersion:
          type: number
        collectionId:
          type: string
        idempotencyKey:
          type: string
          nullable: true
        credentialId:
          type: string
          nullable: true
        preheader:
          type: string
          nullable: true
        intro:
          type: string
          nullable: true
        footerAddress:
          type: string
        recipientsTotal:
          type: number
        sentCount:
          type: number
        failedCount:
          type: number
        openedCount:
          type: number
        clickedCount:
          type: number
        bouncedCount:
          type: number
        unsubscribedCount:
          type: number
        createdVia:
          type: string
      required:
        - id
        - createdAt
        - status
        - subject
        - skippedCount
        - sellerUserId
        - scheduledAt
        - designVersion
        - collectionId
        - footerAddress
        - recipientsTotal
        - sentCount
        - failedCount
        - openedCount
        - clickedCount
        - bouncedCount
        - unsubscribedCount
        - createdVia
      additionalProperties: false
    ListLookbookCampaignsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLookbookCampaignsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLookbooksItem:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        isPublished:
          type: boolean
        designVersion:
          type: number
        designUpdatedAt:
          type: string
          format: date-time
          nullable: true
        updatedAt:
          type: string
          format: date-time
        itemCount:
          type: number
      required:
        - id
        - slug
        - title
        - isPublished
        - designVersion
        - updatedAt
        - itemCount
      additionalProperties: false
    ListLookbooksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLookbooksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLoyaltyAirdropsItem:
      type: object
      properties:
        id:
          type: string
        grantId:
          type: string
        buyerUserId:
          type: string
        buyerName:
          type: string
          nullable: true
        collectionId:
          type: string
        quantity:
          type: number
        status:
          type: string
          enum:
            - cancelled
            - sent
            - failed
            - queued
            - submitted
        chain:
          type: string
          nullable: true
        recipient:
          type: string
          nullable: true
        launchId:
          type: string
          nullable: true
        txHash:
          type: string
          nullable: true
        signatures:
          type: array
          items:
            type: string
        attempts:
          type: number
        checks:
          type: number
        error:
          type: string
          nullable: true
        createdAt:
          type: string
        submittedAt:
          type: string
          nullable: true
        sentAt:
          type: string
          nullable: true
      required:
        - id
        - grantId
        - buyerUserId
        - collectionId
        - quantity
        - status
        - signatures
        - attempts
        - checks
        - createdAt
      additionalProperties: false
    ListLoyaltyAirdropsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLoyaltyAirdropsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLoyaltyMembersItem:
      type: object
      properties:
        buyerUserId:
          type: string
        name:
          type: string
        spendCents:
          type: number
        orders:
          type: number
        tier:
          type: string
          nullable: true
        joinedAt:
          type: string
      required:
        - buyerUserId
        - name
        - spendCents
        - orders
        - joinedAt
      additionalProperties: false
    ListLoyaltyMembersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLoyaltyMembersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLoyaltyProgramInviteCandidatesItem:
      type: object
      properties:
        buyerUserId:
          type: string
        name:
          type: string
        orders:
          type: number
        spendCents:
          type: number
        lastPurchaseAt:
          type: string
          nullable: true
      required:
        - buyerUserId
        - name
        - orders
        - spendCents
      additionalProperties: false
    ListLoyaltyProgramInviteCandidatesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLoyaltyProgramInviteCandidatesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLoyaltyProgramMemberPointsItem:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        points:
          type: number
        line:
          type: string
        at:
          type: string
      required:
        - id
        - source
        - points
        - line
        - at
      additionalProperties: false
    ListLoyaltyProgramMemberPointsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLoyaltyProgramMemberPointsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLoyaltyProgramMembersItem:
      type: object
      properties:
        id:
          type: string
        buyerUserId:
          type: string
        name:
          type: string
        tierId:
          type: string
          nullable: true
        tierName:
          type: string
          nullable: true
        spendCents:
          type: number
        orders:
          type: number
        points:
          type: number
        graceUntil:
          type: string
          nullable: true
        overridden:
          type: boolean
        joinedAt:
          type: string
      required:
        - id
        - buyerUserId
        - name
        - spendCents
        - orders
        - points
        - overridden
        - joinedAt
      additionalProperties: false
    ListLoyaltyProgramMembersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLoyaltyProgramMembersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListLoyaltyRewardsItem:
      type: object
      properties:
        redeemed:
          type: number
        left:
          type: number
          nullable: true
          description: Stock left (null = unlimited).
        id:
          type: string
        perk:
          $ref: "#/components/schemas/ListLoyaltyRewardsItemPerk"
        pointsCost:
          type: number
        perMemberLimit:
          type: number
          nullable: true
          description: How many times one member may redeem it (null = no limit).
        stock:
          type: number
          nullable: true
          description: How many are left across every member (null = unlimited).
        active:
          type: boolean
      required:
        - redeemed
        - id
        - perk
        - pointsCost
        - active
      additionalProperties: false
    ListLoyaltyRewardsItemPerkOneOfScope:
      type: object
      properties:
        mode:
          type: string
          enum:
            - all
            - selection
        listingIds:
          type: array
          items:
            type: string
        categories:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
        brands:
          type: array
          items:
            type: string
        conditions:
          type: array
          items:
            type: string
        collectionIds:
          type: array
          items:
            type: string
        catalogIds:
          type: array
          items:
            type: string
        priceMinCents:
          type: number
          nullable: true
        priceMaxCents:
          type: number
          nullable: true
      required:
        - mode
        - listingIds
        - categories
        - tags
        - brands
        - conditions
        - collectionIds
        - catalogIds
      additionalProperties: false
      nullable: true
    ListLoyaltyRewardsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListLoyaltyRewardsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMagicAutoRunDecisionsItem:
      type: object
      properties:
        id:
          type: string
        runId:
          type: string
        itemRef:
          type: string
        version:
          type: number
        actor:
          type: string
          enum:
            - seller
            - auto
        mode:
          type: string
          enum:
            - auto
            - off
            - review_all
          nullable: true
        verdict:
          type: string
          enum:
            - accept
            - none
            - review
          nullable: true
        acceptedKeys:
          type: array
          items:
            type: string
        rejectedKeys:
          type: array
          items:
            type: string
        score:
          type: number
          nullable: true
        thresholdVersion:
          type: string
          nullable: true
        draftId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        undoneAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - runId
        - itemRef
        - version
        - actor
        - acceptedKeys
        - rejectedKeys
        - createdAt
      additionalProperties: false
    ListMagicAutoRunDecisionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMagicAutoRunDecisionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMagicRecentItem:
      type: object
      properties:
        id:
          type: string
        imageUrl:
          type: string
        createdAt:
          type: string
          format: date-time
        topMatchTitle:
          type: string
        matchCount:
          type: number
      required:
        - id
        - imageUrl
        - createdAt
        - topMatchTitle
        - matchCount
      additionalProperties: false
    ListMagicRecentResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMagicRecentItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMainStageEventsItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        kind:
          type: string
          enum:
            - brand_launch
            - creator_meetup
            - festival
            - talk
            - live_sale
        about:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
        cancelledAt:
          type: string
          nullable: true
        lineup:
          type: array
          items:
            $ref: "#/components/schemas/GetMainStageResponseLiveLineup"
        festivalId:
          type: string
          nullable: true
          description: The festival this show is part of, if any.
      required:
        - id
        - title
        - kind
        - startsAt
        - endsAt
        - lineup
      additionalProperties: false
    ListMainStageEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMainStageEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMarketBullionItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        path:
          type: string
        imageUrl:
          type: string
          nullable: true
        thumbUrl:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
        metal:
          type: string
          enum:
            - gold
            - silver
            - platinum
            - palladium
        form:
          type: string
          enum:
            - bullion_coin
            - bar
            - round
        size:
          type: string
          enum:
            - fractional
            - quarter
            - half
            - one
            - two-five
            - ten
            - kilo
            - large
        fineTroyOz:
          type: number
        lowestAskCents:
          type: number
          nullable: true
          description: Lowest open ask in any condition; null = nobody is selling it yet.
        lastSaleCents:
          type: number
          nullable: true
        meltCents:
          type: number
          nullable: true
        premiumCents:
          type: number
          nullable: true
        premiumPct:
          type: number
          nullable: true
        pricePerOzCents:
          type: number
          nullable: true
        popularity:
          type: number
      required:
        - id
        - name
        - path
        - metal
        - form
        - size
        - fineTroyOz
        - popularity
      additionalProperties: false
    ListMarketBullionResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMarketBullionItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMarketGradersItem:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        categorySlugs:
          type: array
          items:
            type: string
        scale:
          type: string
          enum:
            - numeric
            - sheldon
            - dual
            - hundred
        grades:
          type: array
          items:
            type: string
        qualifiers:
          type: array
          items:
            type: string
        sealGrades:
          type: array
          items:
            type: string
      required:
        - slug
        - name
        - categorySlugs
        - scale
        - grades
        - qualifiers
        - sealGrades
      additionalProperties: false
    ListMarketGradersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMarketGradersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMarketMetalSpotItem:
      type: object
      properties:
        metal:
          type: string
          enum:
            - gold
            - silver
            - platinum
            - palladium
        priceCents:
          type: number
          nullable: true
        fetchedAt:
          type: string
          nullable: true
        stale:
          type: boolean
      required:
        - metal
        - stale
      additionalProperties: false
    ListMarketMetalSpotResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMarketMetalSpotItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMarketProductsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        brand:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
        categorySlug:
          type: string
        styleCode:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        lowestAskCentsFrom:
          type: number
          nullable: true
        highestBidCents:
          type: number
          nullable: true
        lastSaleCents:
          type: number
          nullable: true
        tradesCount:
          type: number
        gradedGradeKeys:
          type: array
          items:
            type: string
      required:
        - id
        - name
        - categorySlug
        - tradesCount
        - gradedGradeKeys
      additionalProperties: false
    ListMarketProductsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMarketProductsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMarketVariantTiersItem:
      type: object
      properties:
        label:
          type: string
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
          description: null = ungraded, which is the tier every pre-grading order sits in.
        lowestAskCents:
          type: number
          nullable: true
        highestBidCents:
          type: number
          nullable: true
        openAsks:
          type: number
        openBids:
          type: number
        lastSaleCents:
          type: number
          nullable: true
        lastSaleAt:
          type: string
          format: date-time
          nullable: true
        tradesCount:
          type: number
      required:
        - label
        - condition
        - openAsks
        - openBids
        - tradesCount
      additionalProperties: false
    ListMarketVariantTiersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMarketVariantTiersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMeTemplatesItem:
      type: object
      properties:
        id:
          type: string
        brand:
          type: string
          nullable: true
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        description:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        isDefault:
          type: boolean
        condition:
          type: string
          nullable: true
        size:
          type: string
          nullable: true
        material:
          type: string
          nullable: true
        style:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        department:
          type: string
          nullable: true
        gender:
          type: string
          nullable: true
        itemType:
          type: string
          nullable: true
        sizeSystem:
          type: string
          nullable: true
        color:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          nullable: true
        weightOz:
          type: number
          nullable: true
        title:
          type: string
          nullable: true
        sortOrder:
          type: number
        scope:
          type: string
        descriptionVariants:
          type: array
          items:
            type: string
          nullable: true
        titleVariants:
          type: array
          items:
            type: string
          nullable: true
        defaultForCategory:
          type: string
          nullable: true
        shareToken:
          type: string
          nullable: true
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - userId
        - isDefault
        - sortOrder
        - scope
      additionalProperties: false
    ListMeTemplatesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMeTemplatesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMileageItem:
      type: object
      properties:
        date:
          type: string
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        notes:
          type: string
          nullable: true
        miles:
          type: string
        purpose:
          type: string
        startLocation:
          type: string
          nullable: true
        endLocation:
          type: string
          nullable: true
      required:
        - date
        - id
        - createdAt
        - userId
        - miles
        - purpose
      additionalProperties: false
    ListMileageResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMileageItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListMobilePushTokensItem:
      type: object
      properties:
        token:
          type: string
        platform:
          type: string
        createdAt:
          type: string
          format: date-time
        lastUsedAt:
          type: string
          format: date-time
      required:
        - token
        - platform
        - createdAt
        - lastUsedAt
      additionalProperties: false
    ListMobilePushTokensResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListMobilePushTokensItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListNeighbourhoodsItem:
      type: object
      properties:
        slug:
          type: string
          enum:
            - sneaker-row
            - card-district
            - vintage-alley
            - vinyl-lane
        name:
          type: string
        tagline:
          type: string
        who:
          type: string
        anchor:
          $ref: "#/components/schemas/ListNeighbourhoodsItemAnchor"
        accent:
          type: string
        open:
          type: boolean
          description: "Open by the shared rule: NEIGHBOURHOOD_MIN_SHOPS businesses, or a street event on now."
        status:
          type: string
          description: '"Open - 7 shops" / "Opening soon - 2 of 6 shops".'
        shops:
          type: number
        stallsToday:
          type: number
        openStalls:
          type: number
        minShops:
          type: number
        nextEvent:
          $ref: "#/components/schemas/ListNeighbourhoodsItemNextEvent"
        url:
          type: string
          description: Where it is on the web (`/c/<slug>`); the app opens crossly.net + this.
      required:
        - slug
        - name
        - tagline
        - who
        - anchor
        - accent
        - open
        - status
        - shops
        - stallsToday
        - openStalls
        - minShops
        - url
      additionalProperties: false
    ListNeighbourhoodsItemAnchor:
      type: object
      properties:
        kind:
          type: string
        label:
          type: string
      required:
        - kind
        - label
      additionalProperties: false
    ListNeighbourhoodsItemNextEvent:
      type: object
      properties:
        id:
          type: string
        live:
          type: boolean
        kind:
          type: string
          enum:
            - night_market
            - swap_meet
        title:
          type: string
        endsAt:
          type: string
        startsAt:
          type: string
      required:
        - id
        - live
        - kind
        - title
        - endsAt
        - startsAt
      additionalProperties: false
      nullable: true
    ListNeighbourhoodsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListNeighbourhoodsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListNetworkPoolLogItem:
      type: object
      properties:
        id:
          type: string
        platform:
          type: string
        actionType:
          type: string
        targetUserId:
          type: string
        engagerUserId:
          type: string
        targetListingId:
          type: string
          nullable: true
        targetPlatformListingId:
          type: string
          nullable: true
        ruleId:
          type: string
          nullable: true
        performedAt:
          type: string
          format: date-time
      required:
        - id
        - platform
        - actionType
        - targetUserId
        - engagerUserId
        - performedAt
      additionalProperties: false
    ListNetworkPoolLogResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListNetworkPoolLogItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListNotificationIntegrationsItem:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
        kind:
          type: string
        name:
          type: string
        enabled:
          type: boolean
        config:
          type: object
          additionalProperties: {}
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - provider
        - kind
        - name
        - enabled
        - config
        - createdAt
      additionalProperties: false
    ListNotificationIntegrationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListNotificationIntegrationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListOrderPickupReadyItem:
      type: object
      properties:
        carrier:
          type: string
        orders:
          type: array
          items:
            $ref: "#/components/schemas/ListOrderPickupReadyItemOrders"
      required:
        - carrier
        - orders
      additionalProperties: false
    ListOrderPickupReadyItemOrders:
      type: object
      properties:
        orderId:
          type: string
        trackingNumber:
          type: string
          nullable: true
      required:
        - orderId
      additionalProperties: false
    ListOrderPickupReadyResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListOrderPickupReadyItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListOrderPickupsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        status:
          type: string
        carrier:
          type: string
        confirmation:
          type: string
          nullable: true
        orderIds:
          type: array
          items:
            type: string
        minTime:
          type: string
        maxTime:
          type: string
        instructions:
          type: string
          nullable: true
        shippoPickupId:
          type: string
        pickupDate:
          type: string
        confirmedStart:
          type: string
          format: date-time
          nullable: true
        confirmedEnd:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - status
        - carrier
        - orderIds
        - minTime
        - maxTime
        - shippoPickupId
        - pickupDate
      additionalProperties: false
    ListOrderPickupsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListOrderPickupsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListOrderRefundsItem:
      type: object
      properties:
        id:
          type: string
        orderId:
          type: string
        amount:
          type: number
        full:
          type: boolean
        reason:
          type: string
          nullable: true
        lineItems:
          type: array
          items:
            $ref: "#/components/schemas/ListOrderRefundsItemLineItems"
          nullable: true
        status:
          type: string
        platform:
          type: string
        platformRefundId:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
        source:
          type: string
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - orderId
        - amount
        - full
        - status
        - platform
        - source
        - createdAt
      additionalProperties: false
    ListOrderRefundsItemLineItems:
      type: object
      properties:
        orderId:
          type: string
          nullable: true
          description: This order's id. An order is one line, so a line item names how many of its units.
        quantity:
          type: number
        amount:
          type: number
          nullable: true
          description: Dollars for this line; defaults to the unit price × quantity.
      required:
        - quantity
      additionalProperties: false
    ListOrderRefundsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListOrderRefundsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListOrderScanFormsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        status:
          type: string
        carrier:
          type: string
        orderIds:
          type: array
          items:
            type: string
        warnings:
          type: array
          items:
            type: string
        shipDate:
          type: string
        shippoManifestId:
          type: string
        documentUrl:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - status
        - carrier
        - orderIds
        - warnings
        - shipDate
        - shippoManifestId
      additionalProperties: false
    ListOrderScanFormsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListOrderScanFormsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListOrderUnitsItem:
      type: object
      properties:
        unitId:
          type: string
        identifiers:
          type: array
          items:
            $ref: "#/components/schemas/ListInventoryUnitsItemIdentifiers"
      required:
        - unitId
        - identifiers
      additionalProperties: false
    ListOrderUnitsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListOrderUnitsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListOrdersItem:
      type: object
      properties:
        appShare:
          $ref: "#/components/schemas/GetOrderResponseAppShare"
        trade:
          $ref: "#/components/schemas/GetOrderResponseTrade"
        buyerCompany:
          $ref: "#/components/schemas/GetOrderResponseBuyerCompany"
        salePrice:
          type: number
          nullable: true
          description: DOLLARS (numbers, as order.created sends them). null = not known (no sale row, or details pending).
        platformFee:
          type: number
          nullable: true
        taxCollected:
          type: number
          nullable: true
        shippingCharged:
          type: number
          nullable: true
        feeSource:
          type: string
          nullable: true
          description: "'exact' (the marketplace's charged fee) | 'estimated'."
        detailsPending:
          type: boolean
        sku:
          type: string
          nullable: true
          description: The listing's SKU (order.created `sku`).
        quantity:
          type: number
          description: |-
            Units purchased in this order (default 1). Drives how many units the
            Available→Reserved→Sold state machine moves. See migration 0139.
            Units on the order (order.created `quantity`).
        lineItems:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderResponseLineItems"
          nullable: true
        id:
          type: string
        userId:
          type: string
        inventoryItemId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        platform:
          type: string
        platformOrderId:
          type: string
          nullable: true
        orderNumber:
          type: string
          nullable: true
          description: "1570: a Crossly sale's readable checkout number (services/order-numbers); null elsewhere. platformOrderId = pi id."
        reportedByAppId:
          type: string
          nullable: true
          description: |-
            1066 (order relay): the developer app that reported this order through an
            inbound item.sold (FK oauth_apps.id ON DELETE SET NULL in SQL). Null for
            every order Crossly detected itself. Read by action authority.
        storefrontId:
          type: string
          nullable: true
          description: |-
            Crossly orders only: the seller's storefront this sale came from.
            Null for every non-crossly platform. See db/schema/storefronts.ts.
        buyerUsername:
          type: string
          nullable: true
        pickupPoint:
          type: object
          nullable: true
          description: "C8 (0448): the carrier location the parcel is held at — services/pickup-points.ts."
          additionalProperties: {}
        consolidationId:
          type: string
          nullable: true
          description: "D4 (0448): set when this seller ships to the consolidation hub, not the buyer — services/hub/."
        dutiesCents:
          type: number
          description: "X4 (0479): import duties + taxes + fees the buyer paid at checkout for this parcel (services/landed-cost/); the label ships DDP."
        dutiesRefundedAt:
          type: string
          format: date-time
          nullable: true
          description: "X4: refunded because the order never shipped."
        status:
          type: string
        salesChannel:
          type: string
          description: |-
            Where the sale happened, as distinct from which platform it was on.

            Shopify POS orders arrive through the same Orders API as web orders,
            so before this they were detected as ordinary online sales and landed
            in `needs_fulfillment` — queued for a shipment that will never happen,
            because the customer already walked out with the item.

            'online' for everything else, which is what every pre-existing row is.
        channelLocationId:
          type: string
          nullable: true
          description: POS location that rang it up. Null for online sales.
        channel:
          type: string
          description: |-
            1121 — which BUSINESS channel sold it: retail | wholesale | auction | live | world | pos
            (@crosslister/shared/wholesale ORDER_CHANNELS). Orthogonal to `salesChannel` (online vs in person):
            a wholesale order is usually online. Written at sale record time (sale/detect/order-write.ts).
        invoiceId:
          type: string
          nullable: true
          description: 1121 — the on-account invoice this order was placed on (crossly_invoices.id).
        buyerCompanyId:
          type: string
          nullable: true
          description: 1121 — the buyer company (W7 crossly_buyer_companies; no FK until that table exists).
        packagePresetId:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        service:
          type: string
          nullable: true
        trackingNumber:
          type: string
          nullable: true
        easypostShipmentId:
          type: string
          nullable: true
        easypostTrackerId:
          type: string
          nullable: true
        easypostRateId:
          type: string
          nullable: true
        shippingLabelUrl:
          type: string
          nullable: true
        labelPurchasedAt:
          type: string
          format: date-time
          nullable: true
        shippedAt:
          type: string
          format: date-time
          nullable: true
        estimatedDelivery:
          type: string
          nullable: true
        deliveredAt:
          type: string
          format: date-time
          nullable: true
        carrierStatus:
          type: string
          nullable: true
        carrierStatusDetail:
          type: string
          nullable: true
        trackingHistory:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderResponseTrackingHistory"
          nullable: true
          description: |-
            Every carrier scan, newest first (migration 0243).

            The two columns above are the CURRENT state, overwritten on each
            refresh. For a dispute that proves nothing: "delivered" with no date,
            no location and no chain of scans is a claim, not evidence. Shippo
            returns the full history on every track call; it used to be discarded.
        deliveryLocation:
          type: string
          nullable: true
          description: Where the carrier says it was left, when they say.
        deliverySignature:
          type: string
          nullable: true
          description: |-
            Signature name, where the service captured one. Most residential
            deliveries have none — absence is not evidence of non-delivery.
        trackingSubmittedAt:
          type: string
          format: date-time
          nullable: true
        trackingSubmitStatus:
          type: string
          nullable: true
        labelCost:
          type: string
          nullable: true
        costOfGoods:
          type: string
          nullable: true
        requestedCarrier:
          type: string
          nullable: true
        requestedService:
          type: string
          nullable: true
        handlingTimeDays:
          type: number
          nullable: true
        shipByAt:
          type: string
          format: date-time
          nullable: true
        shipByAlertedAt:
          type: string
          format: date-time
          nullable: true
        oversoldBy:
          type: number
          description: |-
            Units this order could NOT be covered from stock — an oversell (0 =
            normal). Set at detection by recordSale's shortfall; the seller must
            cancel or refund. See migration 0156.
        lastStatusCheckAt:
          type: string
          format: date-time
          nullable: true
          description: |-
            Last time this order's status was reconciled against the platform.
            NULL = never. Drives the targeted sweeper for orders that fall off
            page 1 of the sold-list walk. See migration 0157.
        lastChatCheckAt:
          type: string
          format: date-time
          nullable: true
          description: |-
            Last time this order's platform CHAT thread was pulled. NULL = never.
            Separate from lastStatusCheckAt because the cadences differ by an order
            of magnitude — a buyer question needs answering in minutes, a status
            reconcile can wait an hour. See migration 0158.
        lastTrackingCheckAt:
          type: string
          format: date-time
          nullable: true
          description: |-
            Last time the shipping-tracking poller refreshed this order's tracking. NULL = never. The sweep's cursor
            (oldest first, NULLS FIRST) so in-transit orders past the batch size can't starve. See migration 1611.
        isDisputed:
          type: boolean
        disputeReason:
          type: string
          nullable: true
        disputePlatformCaseId:
          type: string
          nullable: true
        disputeResolvedAt:
          type: string
          format: date-time
          nullable: true
        refundAmount:
          type: string
          nullable: true
        refundReason:
          type: string
          nullable: true
        refundPlatformId:
          type: string
          nullable: true
        refundedAt:
          type: string
          format: date-time
          nullable: true
        cancelledAt:
          type: string
          format: date-time
          nullable: true
        cancellationReason:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        arrivalConditionRequestedAt:
          type: string
          format: date-time
          nullable: true
          description: |-
            The arrival-condition ask, recorded on the ORDER rather than read off
            the seller's toggle at review time. The seller can flip that toggle
            later; what a reviewer needs is what was asked of THIS buyer on THIS
            delivery — including that they were asked and declined.
        arrivalConditionSubmittedAt:
          type: string
          format: date-time
          nullable: true
        arrivalConditionDeclinedAt:
          type: string
          format: date-time
          nullable: true
        deliveryPhotoUrl:
          type: string
          nullable: true
          description: |-
            The courier's proof-of-delivery photo, when one can be obtained.
            Third-party provenance, which makes it the strongest seal frame we can
            get — see services/evidence/delivery-photo.ts.
        deliveryPhotoSource:
          type: string
          nullable: true
          description: "Where it came from: 'carrier_api:ups' | 'trackified' | 'platform:<p>' | 'pasted' | 'uploaded' (shared delivery-photo-source.ts)."
        purchaseOrderRef:
          type: string
          nullable: true
          description: |-
            The buyer's OWN purchase-order reference.

            A trade buyer's accounts department reconciles on their number, not
            ours. An order without it is one somebody has to chase by hand, which is
            the difference between getting paid on day 30 and day 75.
        arrivalConditionPhotos:
          type: array
          items:
            type: string
          description: Buyer's arrival photos. Always read as a set, for one delivery.
        buyerEmail:
          type: string
          nullable: true
        fulfillmentMethod:
          type: string
          description: |-
            `'ship'` | `'pickup'` | `'mixed'` — a DERIVED summary of this order's
            lines, for reads that only need the headline.

            The authority is `crossly_order_items.fulfillment_method`: a buyer can
            collect part of one seller's order and have the rest posted, so the
            order-level value is 'mixed' whenever its lines disagree. Anything that
            acts on the difference — buying a label, packing a parcel — must read
            the lines, not this (migrations 0219, 0220).
        source:
          type: string
          nullable: true
          description: |-
            1074 — 'email' = the sale was found by the email monitor, not reported by the platform: the order is
            incomplete (no buyer address, label or confirmed fees) until the platform reports it. NULL = platform-reported.
        platformConfirmedAt:
          type: string
          format: date-time
          nullable: true
          description: 1074 — when the platform itself reported this email-found order (same order id). Clears the banner.
        assigneeMemberId:
          type: string
          nullable: true
          description: |-
            The teammate this order is assigned to (team_members.id, migration 1613); NULL = unassigned. Written only
            through the work-assignment service (api-orders services/work-assignment). Hot table: nullable, no default;
            the partial index is built CONCURRENTLY in 1613.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        deletedAt:
          type: string
          format: date-time
          nullable: true
          description: |-
            Soft-delete tombstone for bulk-delete on /orders. UI list +
            count queries filter WHERE deleted_at IS NULL.
      required:
        - detailsPending
        - quantity
        - id
        - userId
        - platform
        - dutiesCents
        - status
        - salesChannel
        - channel
        - oversoldBy
        - isDisputed
        - arrivalConditionPhotos
        - fulfillmentMethod
        - createdAt
        - updatedAt
      additionalProperties: false
    ListOrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListOrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPassportEventsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        source:
          type: string
        data:
          type: object
          additionalProperties: {}
        occurredAt:
          type: string
      required:
        - id
        - kind
        - source
        - data
        - occurredAt
      additionalProperties: false
    ListPassportEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPassportEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPassportPrintTargetsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        online:
          type: boolean
        printers:
          type: array
          items:
            type: string
        defaultPrinter:
          type: string
          nullable: true
        media:
          type: array
          items:
            type: string
        templates:
          type: array
          items:
            type: string
      required:
        - id
        - name
        - online
        - printers
        - media
        - templates
      additionalProperties: false
    ListPassportPrintTargetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPassportPrintTargetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPassportsItem:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        url:
          type: string
        nfcUrl:
          type: string
        qrUrl:
          type: string
        platformListingId:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        inventoryUnitId:
          type: string
          nullable: true
        draftId:
          type: string
          nullable: true
        status:
          type: string
        custody:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        photos:
          type: array
          items:
            type: string
        details:
          type: object
          additionalProperties: {}
        grading:
          $ref: "#/components/schemas/ListPassportsItemGrading"
        tagUid:
          type: string
          nullable: true
        tagLocked:
          type: boolean
        tagWrittenAt:
          type: string
          nullable: true
        nfcScans:
          type: number
        qrScans:
          type: number
        lastScannedAt:
          type: string
          nullable: true
        printCount:
          type: number
        lastPrintedAt:
          type: string
          nullable: true
        claimedAt:
          type: string
          nullable: true
        activatedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - code
        - url
        - nfcUrl
        - qrUrl
        - status
        - custody
        - photos
        - details
        - tagLocked
        - nfcScans
        - qrScans
        - printCount
        - createdAt
      additionalProperties: false
    ListPassportsItemGrading:
      type: object
      properties:
        graderSlug:
          type: string
        grade:
          type: string
        certNumber:
          type: string
          nullable: true
        verifiedAt:
          type: string
          nullable: true
      required:
        - graderSlug
        - grade
      additionalProperties: false
      nullable: true
    ListPassportsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPassportsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPatItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        prefix:
          type: string
        scopes:
          type: array
          items:
            type: string
        environment:
          type: string
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
        expiresAt:
          type: string
          format: date-time
          nullable: true
        revokedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - prefix
        - scopes
        - environment
        - createdAt
      additionalProperties: false
    ListPatResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPatItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPayoutCompareItem:
      type: object
      properties:
        platform:
          type: string
        grossCents:
          type: number
        feeCents:
          type: number
        feeSource:
          type: string
          enum:
            - exact
            - estimated
        shippingCents:
          type: number
        shippingSource:
          type: string
          enum:
            - unknown
            - none
            - quoted
            - platform_label
            - buyer_paid
        netCents:
          type: number
        takeHomePct:
          type: number
          description: Net as a percentage of gross, for comparing across price points.
        assumptions:
          type: array
          items:
            type: string
          description: What we assumed, in the seller's words. Never empty when we guessed.
      required:
        - platform
        - grossCents
        - feeCents
        - feeSource
        - shippingCents
        - shippingSource
        - netCents
        - takeHomePct
        - assumptions
      additionalProperties: false
    ListPayoutCompareResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPayoutCompareItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPlatformsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        track:
          type: string
          enum:
            - api
            - cookie
        availability:
          type: string
          enum:
            - connect
            - own_app
            - coming_soon
        action:
          type: string
        chips:
          type: array
          items:
            $ref: "#/components/schemas/ListPlatformsItemChips"
        multiAccount:
          type: boolean
        ownApp:
          type: string
          nullable: true
        connectFlow:
          type: string
          enum:
            - cookie
            - oauth
            - credentials
            - dialog
      required:
        - id
        - name
        - track
        - availability
        - action
        - chips
        - multiAccount
        - connectFlow
      additionalProperties: false
    ListPlatformsItemChips:
      type: object
      properties:
        id:
          type: string
          enum:
            - beta
            - listing_soon
            - orders_soon
            - messages_soon
            - labels_soon
        label:
          type: string
          description: Two or three words, shown in the chip.
        detail:
          type: string
          description: The sentence shown on hover / tap. Seller-facing, never developer text.
      required:
        - id
        - label
        - detail
      additionalProperties: false
    ListPlatformsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPlatformsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPolicyPresetAccountsItem:
      type: object
      properties:
        platform:
          type: string
        platformName:
          type: string
        accountSlot:
          type: number
          nullable: true
        connectionId:
          type: string
          nullable: true
        label:
          type: string
        managedPlatform:
          type: boolean
          description: Crossly can push a policy of this kind as the marketplace's own object (business policy, profile…).
        listsMarketplacePolicies:
          type: boolean
          description: The marketplace's API lists its own policies, so one can be picked (eBay business policies).
      required:
        - platform
        - platformName
        - label
        - managedPlatform
        - listsMarketplacePolicies
      additionalProperties: false
    ListPolicyPresetAccountsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPolicyPresetAccountsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPolicyPresetsItem:
      type: object
      properties:
        summary:
          type: string
        incomplete:
          type: boolean
        listingCount:
          type: number
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        isDefault:
          type: boolean
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
        revision:
          type: number
        hasDomesticRules:
          type: boolean
      required:
        - summary
        - incomplete
        - listingCount
        - id
        - name
        - createdAt
        - updatedAt
        - userId
        - isDefault
        - kind
        - revision
        - hasDomesticRules
      additionalProperties: false
    ListPolicyPresetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPolicyPresetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPolicyReturnsItem:
      type: object
      properties:
        orderId:
          type: string
          nullable: true
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        carrier:
          type: string
          nullable: true
        shippedAt:
          type: string
          format: date-time
          nullable: true
        refundedAt:
          type: string
          format: date-time
          nullable: true
        note:
          type: string
          nullable: true
        buyerUserId:
          type: string
        reason:
          type: string
        receivedAt:
          type: string
          format: date-time
          nullable: true
        labelUrl:
          type: string
          nullable: true
        sellerUserId:
          type: string
        refundStripeId:
          type: string
          nullable: true
        purchaseId:
          type: string
        feeCents:
          type: number
        trackingCode:
          type: string
          nullable: true
        fit:
          type: string
          nullable: true
        refundCents:
          type: number
        prepaidLabel:
          type: boolean
      required:
        - id
        - createdAt
        - status
        - buyerUserId
        - reason
        - sellerUserId
        - purchaseId
        - feeCents
        - refundCents
        - prepaidLabel
      additionalProperties: false
    ListPolicyReturnsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPolicyReturnsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPriceRulesItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
          nullable: true
        categoryPrefix:
          type: string
          nullable: true
        enabled:
          type: boolean
        adjustPercent:
          type: number
          nullable: true
        adjustFixed:
          type: number
          nullable: true
        rounding:
          type: string
          enum:
            - none
            - "99"
            - "95"
            - whole
        minPrice:
          type: number
          nullable: true
        maxPrice:
          type: number
          nullable: true
        targetCurrency:
          type: string
          nullable: true
        fxBufferPercent:
          type: number
      required:
        - id
        - createdAt
        - updatedAt
        - platform
        - enabled
        - rounding
        - fxBufferPercent
      additionalProperties: false
    ListPriceRulesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPriceRulesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPrintMailCredentialsItem:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
        providerLabel:
          type: string
        mode:
          type: string
        label:
          type: string
        keyLast4:
          type: string
        returnAddress:
          $ref: "#/components/schemas/ListPrintMailCredentialsItemReturnAddress"
        piecePriceCents:
          type: object
          additionalProperties: {}
        storefrontId:
          type: string
          nullable: true
        lastTestedAt:
          type: string
          format: date-time
          nullable: true
        lastTestOk:
          type: boolean
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - provider
        - providerLabel
        - mode
        - label
        - keyLast4
        - piecePriceCents
        - createdAt
      additionalProperties: false
    ListPrintMailCredentialsItemReturnAddress:
      type: object
      properties:
        name:
          type: string
        company:
          type: string
          nullable: true
        line1:
          type: string
        line2:
          type: string
          nullable: true
        city:
          type: string
        state:
          type: string
        zip:
          type: string
        country:
          type: string
          description: ISO 3166-1 alpha-2.
      required:
        - name
        - line1
        - city
        - state
        - zip
        - country
      additionalProperties: false
      nullable: true
    ListPrintMailCredentialsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPrintMailCredentialsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListPrintMailJobsItem:
      type: object
      properties:
        id:
          type: string
        sellerUserId:
          type: string
        collectionId:
          type: string
        designVersion:
          type: number
        credentialId:
          type: string
          nullable: true
        provider:
          type: string
        mode:
          type: string
        format:
          type: string
        recipientCount:
          type: number
        pdfUrl:
          type: string
          nullable: true
        estimateCents:
          type: number
          nullable: true
        estimateBasis:
          type: string
          nullable: true
        status:
          type: string
        confirmedAt:
          type: string
          format: date-time
          nullable: true
        confirmedByUserId:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - sellerUserId
        - collectionId
        - designVersion
        - provider
        - mode
        - format
        - recipientCount
        - status
        - createdAt
        - updatedAt
      additionalProperties: false
    ListPrintMailJobsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListPrintMailJobsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListProductFeedsItem:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        channel:
          type: string
          enum:
            - json
            - google
            - tiktok
            - meta
            - pinterest
            - bing
            - snapchat
            - rss
            - csv
        channelLabel:
          type: string
        kind:
          type: string
          enum:
            - marketplace
            - generic
        name:
          type: string
        format:
          type: string
          enum:
            - json
            - csv
            - xml
            - tsv
            - atom
        formats:
          type: array
          items:
            $ref: "#/components/schemas/ListProductFeedsItemFormatsItem"
        formatLabels:
          $ref: "#/components/schemas/ListProductFeedsItemFormatLabels"
        enabled:
          type: boolean
        url:
          type: string
        urls:
          $ref: "#/components/schemas/ListProductFeedsItemFormatLabels"
        destination:
          type: string
        recommendedSchedule:
          type: string
        filters:
          $ref: "#/components/schemas/ListProductFeedsItemFilters"
        settings:
          $ref: "#/components/schemas/ListProductFeedsItemSettings"
        tokenRotatedAt:
          type: string
          nullable: true
        previousUrlExpiresAt:
          type: string
          nullable: true
          description: While the previous URL still answers (a rotation's grace window), its end.
        lastFetchedAt:
          type: string
          nullable: true
        lastFetchedBy:
          type: string
          nullable: true
        fetchCount:
          type: number
        lastItemCount:
          type: number
          nullable: true
        lastStats:
          $ref: "#/components/schemas/ListProductFeedsItemLastStats"
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - channel
        - channelLabel
        - kind
        - name
        - format
        - formats
        - formatLabels
        - enabled
        - url
        - urls
        - destination
        - recommendedSchedule
        - filters
        - settings
        - fetchCount
        - createdAt
        - updatedAt
      additionalProperties: false
    ListProductFeedsItemFilters:
      type: object
      properties:
        includeCategories:
          type: array
          items:
            type: string
          nullable: true
          description: Only listings in one of these categories, at ANY level (main, sub or leaf name).
        excludeCategories:
          type: array
          items:
            type: string
          nullable: true
          description: Never listings in one of these categories, at any level.
        includeBrands:
          type: array
          items:
            type: string
          nullable: true
          description: Only these brands.
        excludeBrands:
          type: array
          items:
            type: string
          nullable: true
          description: Never these brands.
        includeTags:
          type: array
          items:
            type: string
          nullable: true
          description: Only listings carrying at least one of these tags.
        excludeTags:
          type: array
          items:
            type: string
          nullable: true
          description: Never listings carrying any of these tags.
        includeListingIds:
          type: array
          items:
            type: string
          nullable: true
          description: Only these listings (listing ids).
        excludeListingIds:
          type: array
          items:
            type: string
          nullable: true
          description: Never these listings (listing ids) — the per-item "leave out" switch.
        minPrice:
          type: number
          nullable: true
          description: Price floor in the FEED's currency (settings.currency, USD when unset), on the shop price.
        maxPrice:
          type: number
          nullable: true
          description: Price ceiling in the feed's currency.
        includeOutOfStock:
          type: boolean
          nullable: true
          description: Keep listings with no stock as availability=out_of_stock (default true). Off drops them.
        minQuantity:
          type: number
          nullable: true
          description: Only listings with at least this many in stock (0/absent = no floor).
        statuses:
          type: array
          items:
            $ref: "#/components/schemas/ListProductFeedsItemFiltersStatusesItem"
          nullable: true
          description: "Stock / sale status: empty = all. `on_sale` = a storefront sale is running on it."
        conditions:
          type: array
          items:
            $ref: "#/components/schemas/ListProductFeedsItemFiltersConditionsItem"
          nullable: true
          description: "Item condition as the channels read it: empty = all."
        onPlatforms:
          type: array
          items:
            type: string
          nullable: true
          description: Only listings ALSO live on one of these marketplaces (platform ids, e.g. 'ebay').
        notOnPlatforms:
          type: array
          items:
            type: string
          nullable: true
          description: Never listings live on any of these marketplaces.
        listedWithinDays:
          type: number
          nullable: true
          description: Only listings put on the storefront in the last N days (new arrivals).
      additionalProperties: false
    ListProductFeedsItemFormatLabels:
      type: object
      properties:
        json:
          type: string
          nullable: true
        csv:
          type: string
          nullable: true
        xml:
          type: string
          nullable: true
        tsv:
          type: string
          nullable: true
        atom:
          type: string
          nullable: true
      additionalProperties: false
    ListProductFeedsItemLastStats:
      type: object
      properties:
        items:
          type: number
        itemsWithErrors:
          type: number
          description: Items written with at least one error-severity issue (the channel will reject them).
        issues:
          $ref: "#/components/schemas/ListProductFeedsItemLastStatsIssues"
        generatedAt:
          type: string
      required:
        - items
        - itemsWithErrors
        - issues
        - generatedAt
      additionalProperties: false
      nullable: true
    ListProductFeedsItemLastStatsIssues:
      type: object
      properties:
        missing_image:
          type: number
          nullable: true
        missing_title:
          type: number
          nullable: true
        missing_price:
          type: number
          nullable: true
        missing_description:
          type: number
          nullable: true
        missing_brand:
          type: number
          nullable: true
        missing_gtin:
          type: number
          nullable: true
        missing_category:
          type: number
          nullable: true
        invalid_gtin:
          type: number
          nullable: true
        missing_link:
          type: number
          nullable: true
        invalid_link:
          type: number
          nullable: true
        title_too_long:
          type: number
          nullable: true
        description_too_long:
          type: number
          nullable: true
      additionalProperties: false
    ListProductFeedsItemSettings:
      type: object
      properties:
        fallbackBrand:
          type: string
          nullable: true
          description: |-
            Brand to send when a listing has none. Google and Meta both want a brand;
            a shop's own goods are legitimately branded with the shop name.
        idPrefix:
          type: string
          nullable: true
          description: Prefix added to every item id, so two feeds into one catalogue cannot collide.
        fieldMap:
          type: object
          nullable: true
          description: "Per output column: where its value comes from (absent column = Crossly's own mapping)."
          additionalProperties: {}
        defaultGoogleCategory:
          type: string
          nullable: true
          description: Google product category id sent when none can be derived from the listing's category.
        columns:
          type: array
          items:
            type: string
          nullable: true
          description: "Generic CSV / JSON / RSS feeds: which columns, in order (absent = all)."
        currency:
          type: string
          nullable: true
          description: ISO 4217 currency the prices are sent in (converted at the daily rate). Absent = USD, no conversion.
        targetCountry:
          type: string
          nullable: true
          description: ISO 3166-1 alpha-2 country the feed targets (shipping rows default to it).
        language:
          type: string
          nullable: true
          description: BCP 47 language of the content ("en", "en-GB"); generic RSS/Atom/JSON carry it.
        shipping:
          type: array
          items:
            $ref: "#/components/schemas/ListProductFeedsItemSettingsShipping"
          nullable: true
          description: Flat shipping rates to state per item.
        images:
          $ref: "#/components/schemas/ListProductFeedsItemSettingsImages"
        utm:
          $ref: "#/components/schemas/ListProductFeedsItemSettingsUtm"
        refresh:
          $ref: "#/components/schemas/ListProductFeedsItemSettingsRefresh"
        rotationGraceHours:
          type: number
          nullable: true
          description: "Rotation grace: how long the old URL keeps answering after a rotation, in hours (0 = dead at once)."
      additionalProperties: false
    ListProductFeedsItemSettingsImages:
      type: object
      properties:
        primaryIndex:
          type: number
          nullable: true
          description: Which photo (0-based) is the main image; falls back to the first when the listing has fewer.
        maxAdditional:
          type: number
          nullable: true
          description: How many more photos to send (the channel's own maximum caps it).
        skipVideos:
          type: boolean
          nullable: true
          description: Leave video files out of the image links.
      additionalProperties: false
      nullable: true
      description: Image choice.
    ListProductFeedsItemSettingsShipping:
      type: object
      properties:
        country:
          type: string
          description: ISO 3166-1 alpha-2.
        region:
          type: string
          nullable: true
        service:
          type: string
          nullable: true
        price:
          type: number
          description: In the feed's currency.
      required:
        - country
        - price
      additionalProperties: false
    ListProductFeedsItemSettingsUtm:
      type: object
      properties:
        enabled:
          type: boolean
          nullable: true
        source:
          type: string
          nullable: true
        medium:
          type: string
          nullable: true
        campaign:
          type: string
          nullable: true
        content:
          type: string
          nullable: true
        term:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
      description: UTM / tracking parameters added to every item link. Values may use {id}, {sku}, {channel}.
    ListProductFeedsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListProductFeedsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListProductSetMembersItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        price:
          type: string
          nullable: true
        status:
          type: string
        quantityAvailable:
          type: number
          nullable: true
        image:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - status
        - createdAt
      additionalProperties: false
    ListProductSetMembersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListProductSetMembersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListProductSetsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        filters:
          $ref: "#/components/schemas/ListProductSetsItemFilters"
        includedCount:
          type: number
        excludedCount:
          type: number
        memberCount:
          type: number
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - includedCount
        - excludedCount
        - memberCount
        - createdAt
        - updatedAt
      additionalProperties: false
    ListProductSetsItemFilters:
      type: object
      properties:
        search:
          type: string
          nullable: true
        statuses:
          type: array
          items:
            $ref: "#/components/schemas/ListProductSetsItemFiltersStatusesItem"
          nullable: true
        categories:
          type: array
          items:
            type: string
          nullable: true
        brands:
          type: array
          items:
            type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          nullable: true
        tagsMatch:
          type: string
          enum:
            - all
            - any
          nullable: true
        minPrice:
          type: number
          nullable: true
        maxPrice:
          type: number
          nullable: true
        listedOn:
          type: array
          items:
            type: string
          nullable: true
        notListedOn:
          type: array
          items:
            type: string
          nullable: true
        stock:
          type: string
          enum:
            - in_stock
            - out_of_stock
          nullable: true
        minQuantity:
          type: number
          nullable: true
        maxQuantity:
          type: number
          nullable: true
        minAgeDays:
          type: number
          nullable: true
        maxAgeDays:
          type: number
          nullable: true
      additionalProperties: false
      nullable: true
    ListProductSetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListProductSetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListProfileMilestonesItem:
      type: object
      properties:
        key:
          type: string
          enum:
            - first_sale
            - gmv_10k
            - gmv_50k
            - gmv_100k
            - gmv_250k
            - gmv_500k
            - gmv_1m
            - gmv_5m
            - items_100
            - items_1k
            - items_10k
            - items_100k
            - platforms_3
            - platforms_5
            - platforms_10
            - streak_12w
            - streak_52w
            - years_1
            - years_3
            - years_5
            - best_sale_1k
            - best_sale_10k
            - countries_10
            - countries_25
            - repeat_buyers_100
            - vault_10
            - vault_100
            - graded_100
            - wholesale_10k
        achievedAt:
          type: string
        verified:
          type: boolean
        hidden:
          type: boolean
          nullable: true
      required:
        - key
        - achievedAt
        - verified
      additionalProperties: false
    ListProfileMilestonesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListProfileMilestonesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListProfileSourcesItem:
      type: object
      properties:
        ownerUserId:
          type: string
        ownerHandle:
          type: string
          nullable: true
        role:
          type: string
          enum:
            - team
            - self
        stores:
          type: array
          items:
            $ref: "#/components/schemas/ListProfileSourcesItemStores"
        connections:
          type: array
          items:
            $ref: "#/components/schemas/ListProfileSourcesItemConnections"
      required:
        - ownerUserId
        - role
        - stores
        - connections
      additionalProperties: false
    ListProfileSourcesItemConnections:
      type: object
      properties:
        id:
          type: string
        platform:
          type: string
        username:
          type: string
          nullable: true
        active:
          type: boolean
      required:
        - id
        - platform
        - active
      additionalProperties: false
    ListProfileSourcesItemStores:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        isPublic:
          type: boolean
      required:
        - id
        - name
        - slug
        - isPublic
      additionalProperties: false
    ListProfileSourcesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListProfileSourcesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListProfileStatsItem:
      type: object
      properties:
        key:
          type: string
          enum:
            - orders
            - net_profit
            - rating
            - gmv
            - items_sold
            - avg_sale_price
            - best_sale
            - best_month
            - sell_through_rate
            - median_days_to_sale
            - repeat_buyers
            - repeat_buyer_rate
            - feedback_count
            - top_categories
            - top_brands
            - platform_split
            - marketplaces
            - sales_streak_current
            - sales_streak_longest
            - active_listings
            - vault_value
            - vault_items
            - graded_items
            - wholesale_gmv
            - countries_shipped
            - followers
            - response_time
            - member_since
            - years_selling
        range:
          $ref: "#/components/schemas/GetBookExpenseResponseDataRange"
        display:
          $ref: "#/components/schemas/ListProfileStatsItemDisplay"
        value:
          type: number
          nullable: true
          description: "Public: present only when display.mode === 'exact'. Owner: always."
        items:
          type: array
          items:
            $ref: "#/components/schemas/ListProfileStatsItemItems"
          nullable: true
          description: list / split stats. `value` only in exact owner views.
        series:
          type: array
          items:
            $ref: "#/components/schemas/ListProfileStatsItemSeries"
          nullable: true
          description: "Trend points. Public non-exact: normalised 0..1."
        detail:
          $ref: "#/components/schemas/ListProfileStatsItemDetail"
        perPlatform:
          type: array
          items:
            $ref: "#/components/schemas/ListProfileStatsItemPerPlatform"
          nullable: true
          description: |-
            Additive to the C0 contract (stats track): the same stat per shown marketplace, for gmv / items_sold /
            orders / avg_sale_price (the platforms block). `text` is in this value's display mode; `value` follows the
            same public rule as the top-level `value`.
        compare:
          $ref: "#/components/schemas/ListProfileStatsItemCompare"
        verified:
          type: boolean
        basis:
          type: string
          enum:
            - all
            - verified
        coverage:
          $ref: "#/components/schemas/ListProfileStatsItemCoverage"
        asOf:
          type: string
          description: Snapshot computed_at, ISO.
      required:
        - key
        - range
        - display
        - verified
        - basis
        - coverage
        - asOf
      additionalProperties: false
    ListProfileStatsItemCompare:
      type: object
      properties:
        range:
          $ref: "#/components/schemas/CreateListingTagRenameRequest"
        text:
          type: string
        value:
          type: number
          nullable: true
        deltaBps:
          type: number
          nullable: true
      required:
        - range
        - text
      additionalProperties: false
      nullable: true
      description: |-
        Additive to the C0 contract: the equally long period before `range` (a spotlight's "vs previous period"),
        for timeframed sales scalars on a range other than `all`. Public: `value` only in exact mode.
    ListProfileStatsItemCoverage:
      type: object
      properties:
        rows:
          type: number
        verifiedShare:
          type: number
      required:
        - rows
        - verifiedShare
      additionalProperties: false
      description: "Owner: exact row count. Public: rows is a bucket (0, 1 or 10 meaning '0' | '1+' | '10+'), verifiedShare 0."
    ListProfileStatsItemDetail:
      type: object
      properties:
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        platform:
          type: string
          nullable: true
        date:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
      description: best_sale, member_since, best_month.
    ListProfileStatsItemDisplay:
      type: object
      properties:
        mode:
          type: string
          enum:
            - tier
            - exact
            - rounded
        text:
          type: string
        band:
          $ref: "#/components/schemas/ListProfileStatsItemDisplayBand"
      required:
        - mode
        - text
      additionalProperties: false
    ListProfileStatsItemDisplayBand:
      type: object
      properties:
        min:
          type: number
        max:
          type: number
          nullable: true
      required:
        - min
      additionalProperties: false
      nullable: true
    ListProfileStatsItemItems:
      type: object
      properties:
        label:
          type: string
        share:
          type: number
        value:
          type: number
          nullable: true
      required:
        - label
        - share
      additionalProperties: false
    ListProfileStatsItemPerPlatform:
      type: object
      properties:
        platform:
          type: string
        text:
          type: string
        value:
          type: number
          nullable: true
        share:
          type: number
      required:
        - platform
        - text
        - share
      additionalProperties: false
    ListProfileStatsItemSeries:
      type: object
      properties:
        t:
          type: string
        v:
          type: number
      required:
        - t
        - v
      additionalProperties: false
    ListProfileStatsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListProfileStatsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListReferenceCountriesItem:
      type: object
      properties:
        code:
          type: string
        name:
          type: string
        currency:
          type: string
        regions:
          type: array
          items:
            type: string
        hasPostal:
          type: boolean
        postalRequired:
          type: boolean
        postalLabel:
          type: string
        stateRequired:
          type: boolean
        stateLabel:
          type: string
        subdivisions:
          type: array
          items:
            $ref: "#/components/schemas/CodeName"
          nullable: true
        embargoed:
          type: boolean
      required:
        - code
        - name
        - currency
        - regions
        - hasPostal
        - postalRequired
        - postalLabel
        - stateRequired
        - stateLabel
        - embargoed
      additionalProperties: false
    ListReferenceCountriesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListReferenceCountriesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListReferenceMetrosItem:
      type: object
      properties:
        level:
          type: string
          enum:
            - csa
            - cbsa
        code:
          type: string
        title:
          type: string
        states:
          type: array
          items:
            type: string
          description: Two-letter state codes the area touches, sorted.
        zipCount:
          type: number
          description: ZIP codes mapped to the area.
      required:
        - level
        - code
        - title
        - states
        - zipCount
      additionalProperties: false
    ListReferenceMetrosResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListReferenceMetrosItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListRentalHistoryItem:
      type: object
      properties:
        statusLabel:
          type: string
        overdue:
          type: boolean
        renterName:
          type: string
          nullable: true
        shippedAt:
          type: string
          nullable: true
        returnedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        shipTo:
          type: object
          nullable: true
          additionalProperties: {}
        platformListingId:
          type: string
          nullable: true
        payoutTiming:
          type: string
          nullable: true
        payoutReleasedAt:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        crosslyFeeCents:
          type: number
          nullable: true
        id:
          type: string
        status:
          type: string
        slug:
          type: string
          nullable: true
        title:
          type: string
        imageUrl:
          type: string
        startDate:
          type: string
        endDate:
          type: string
        days:
          type: number
        rentCents:
          type: number
        shippingCents:
          type: number
        depositCents:
          type: number
        outboundTracking:
          type: string
          nullable: true
        returnTracking:
          type: string
          nullable: true
        labelUrl:
          type: string
          nullable: true
        claimCents:
          type: number
        claimNote:
          type: string
          nullable: true
        claimPhotos:
          type: array
          items:
            type: string
        claimDisputed:
          type: boolean
        conditionPhotosOut:
          type: array
          items:
            type: string
        conditionPhotosIn:
          type: array
          items:
            type: string
        approvalDueAt:
          type: string
          nullable: true
        depositRefundedCents:
          type: number
        unit:
          type: number
        fulfilment:
          type: string
        cleaningFeeCents:
          type: number
        damageWaiver:
          type: boolean
        damageWaiverCents:
          type: number
        lateFeeCents:
          type: number
        rentRefundedCents:
          type: number
        buyoutCents:
          type: number
          nullable: true
        charges:
          type: object
          additionalProperties: {}
        conditionPhotosReturn:
          type: array
          items:
            type: string
        approvedAt:
          type: string
          nullable: true
        deliveredAt:
          type: string
          nullable: true
        returnShippedAt:
          type: string
          nullable: true
        inspectedAt:
          type: string
          nullable: true
        boughtOutAt:
          type: string
          nullable: true
      required:
        - statusLabel
        - overdue
        - createdAt
        - id
        - status
        - title
        - imageUrl
        - startDate
        - endDate
        - days
        - rentCents
        - shippingCents
        - depositCents
        - claimCents
        - claimPhotos
        - claimDisputed
        - conditionPhotosOut
        - conditionPhotosIn
        - depositRefundedCents
        - unit
        - fulfilment
        - cleaningFeeCents
        - damageWaiver
        - damageWaiverCents
        - lateFeeCents
        - rentRefundedCents
        - charges
        - conditionPhotosReturn
      additionalProperties: false
    ListRentalHistoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListRentalHistoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListRentalOffersItem:
      type: object
      properties:
        policy:
          $ref: "#/components/schemas/GetRentalPolicyResponseData"
        slug:
          type: string
        listingId:
          type: string
        title:
          type: string
        imageUrl:
          type: string
        createdAt:
          type: string
        updatedAt:
          type: string
        active:
          type: boolean
        storefrontId:
          type: string
          nullable: true
        quantity:
          type: number
        platformListingId:
          type: string
        options:
          type: object
          additionalProperties: {}
        sellerUserId:
          type: string
        depositCents:
          type: number
        minDays:
          type: number
        maxDays:
          type: number
        dailyCents:
          type: number
        weeklyCents:
          type: number
          nullable: true
        bufferDays:
          type: number
        rentOnly:
          type: boolean
        requireApproval:
          type: boolean
        blackoutRanges:
          type: array
          items:
            $ref: "#/components/schemas/StartEnd"
        returnPolicy:
          type: string
          nullable: true
      required:
        - slug
        - listingId
        - title
        - imageUrl
        - createdAt
        - updatedAt
        - active
        - quantity
        - platformListingId
        - options
        - sellerUserId
        - depositCents
        - minDays
        - maxDays
        - dailyCents
        - bufferDays
        - rentOnly
        - requireApproval
        - blackoutRanges
      additionalProperties: false
    ListRentalOffersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListRentalOffersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListRentalsItem:
      type: object
      properties:
        shippedAt:
          type: string
          nullable: true
        returnedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        shipTo:
          type: object
          nullable: true
          additionalProperties: {}
        platformListingId:
          type: string
          nullable: true
        payoutTiming:
          type: string
          nullable: true
        payoutReleasedAt:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        crosslyFeeCents:
          type: number
          nullable: true
        id:
          type: string
        status:
          type: string
        slug:
          type: string
          nullable: true
        title:
          type: string
        imageUrl:
          type: string
        startDate:
          type: string
        endDate:
          type: string
        days:
          type: number
        rentCents:
          type: number
        shippingCents:
          type: number
        depositCents:
          type: number
        outboundTracking:
          type: string
          nullable: true
        returnTracking:
          type: string
          nullable: true
        labelUrl:
          type: string
          nullable: true
        claimCents:
          type: number
        claimNote:
          type: string
          nullable: true
        claimPhotos:
          type: array
          items:
            type: string
        claimDisputed:
          type: boolean
        conditionPhotosOut:
          type: array
          items:
            type: string
        conditionPhotosIn:
          type: array
          items:
            type: string
        approvalDueAt:
          type: string
          nullable: true
        depositRefundedCents:
          type: number
        unit:
          type: number
        fulfilment:
          type: string
        cleaningFeeCents:
          type: number
        damageWaiver:
          type: boolean
        damageWaiverCents:
          type: number
        lateFeeCents:
          type: number
        rentRefundedCents:
          type: number
        buyoutCents:
          type: number
          nullable: true
        charges:
          type: object
          additionalProperties: {}
        conditionPhotosReturn:
          type: array
          items:
            type: string
        approvedAt:
          type: string
          nullable: true
        deliveredAt:
          type: string
          nullable: true
        returnShippedAt:
          type: string
          nullable: true
        inspectedAt:
          type: string
          nullable: true
        boughtOutAt:
          type: string
          nullable: true
      required:
        - createdAt
        - id
        - status
        - title
        - imageUrl
        - startDate
        - endDate
        - days
        - rentCents
        - shippingCents
        - depositCents
        - claimCents
        - claimPhotos
        - claimDisputed
        - conditionPhotosOut
        - conditionPhotosIn
        - depositRefundedCents
        - unit
        - fulfilment
        - cleaningFeeCents
        - damageWaiver
        - damageWaiverCents
        - lateFeeCents
        - rentRefundedCents
        - charges
        - conditionPhotosReturn
      additionalProperties: false
    ListRentalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListRentalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListRepriceEventsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        reason:
          type: string
        ruleId:
          type: string
          nullable: true
        floorCents:
          type: number
          nullable: true
        decidedAt:
          type: string
          format: date-time
          nullable: true
        strategy:
          type: string
        approval:
          type: string
          nullable: true
        oldPriceCents:
          type: number
          nullable: true
        newPriceCents:
          type: number
          nullable: true
        changed:
          type: boolean
        floorWasNet:
          type: boolean
      required:
        - id
        - createdAt
        - userId
        - reason
        - strategy
        - changed
        - floorWasNet
      additionalProperties: false
    ListRepriceEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListRepriceEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListRepricingAssignmentsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        scope:
          $ref: "#/components/schemas/ListRepricingAssignmentsItemScope"
        scopeLabel:
          type: string
        strategy:
          type: string
        strategyLabel:
          type: string
        params:
          type: object
          additionalProperties: {}
        floorCents:
          type: number
          nullable: true
        breakEvenFloor:
          type: boolean
        approvalMode:
          type: string
          enum:
            - auto
            - ask
        checkEveryHours:
          type: number
        enabled:
          type: boolean
          description: The workflow's `active` flag.
        workflowId:
          type: string
        lastRunAt:
          type: string
          nullable: true
        nextCheckAt:
          type: string
          nullable: true
        lastMove:
          $ref: "#/components/schemas/ListRepricingAssignmentsItemLastMove"
        waiting:
          type: number
          description: Proposals waiting for the seller.
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - scope
        - scopeLabel
        - strategy
        - strategyLabel
        - params
        - breakEvenFloor
        - approvalMode
        - checkEveryHours
        - enabled
        - workflowId
        - waiting
        - createdAt
        - updatedAt
      additionalProperties: false
    ListRepricingAssignmentsItemLastMove:
      type: object
      properties:
        eventId:
          type: string
        listingId:
          type: string
          nullable: true
        platform:
          type: string
          nullable: true
        oldPriceCents:
          type: number
          nullable: true
        newPriceCents:
          type: number
          nullable: true
        at:
          type: string
      required:
        - eventId
        - at
      additionalProperties: false
      nullable: true
      description: The newest price this assignment changed.
    ListRepricingAssignmentsItemScopeOneOf2Filters:
      type: object
      properties:
        search:
          type: string
          nullable: true
        platforms:
          type: array
          items:
            type: string
          nullable: true
        notOnPlatforms:
          type: array
          items:
            type: string
          nullable: true
        labelsAny:
          type: array
          items:
            type: string
          nullable: true
        tagsAny:
          type: array
          items:
            type: string
          nullable: true
        productSetId:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
    ListRepricingAssignmentsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListRepricingAssignmentsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListRestockPromptsItem:
      type: object
      properties:
        id:
          type: string
        listingId:
          type: string
        inventoryItemId:
          type: string
          nullable: true
        platforms:
          type: array
          items:
            type: string
        newQuantity:
          type: number
        createdAt:
          type: string
          format: date-time
        listingTitle:
          type: string
          nullable: true
        listingImages:
          type: array
          items:
            type: string
          nullable: true
        listingPrice:
          type: string
          nullable: true
      required:
        - id
        - listingId
        - platforms
        - newQuantity
        - createdAt
      additionalProperties: false
    ListRestockPromptsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListRestockPromptsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListReturnsItem:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        platform:
          type: string
        orderId:
          type: string
          nullable: true
        purchaseId:
          type: string
        reason:
          type: string
        buyerNote:
          type: string
          nullable: true
        photoUrls:
          type: array
          items:
            type: string
        state:
          type: string
        awaitingParty:
          type: string
          nullable: true
        actionable:
          type: boolean
          description: The seller can accept or decline it now (false once it is with Crossly).
        respondBy:
          type: string
          format: date-time
          nullable: true
        returnLabelUrl:
          type: string
          nullable: true
        returnTracking:
          $ref: "#/components/schemas/ListReturnsItemReturnTracking"
        returnRecordId:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - source
        - platform
        - purchaseId
        - reason
        - photoUrls
        - state
        - actionable
        - createdAt
        - updatedAt
      additionalProperties: false
    ListReturnsItemReturnTracking:
      type: object
      properties:
        carrier:
          type: string
          nullable: true
        code:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        deliveredAt:
          type: string
          format: date-time
          nullable: true
      additionalProperties: false
      nullable: true
    ListReturnsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListReturnsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSalesItem:
      type: object
      properties:
        appShare:
          $ref: "#/components/schemas/GetOrderResponseAppShare"
        id:
          type: string
        userId:
          type: string
        platform:
          type: string
        currency:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        variantId:
          type: string
          nullable: true
        netProfit:
          type: string
          nullable: true
        shippingCost:
          type: string
          nullable: true
        shippingCharged:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        platformOrderId:
          type: string
          nullable: true
        costOfGoods:
          type: string
          nullable: true
        cancelledAt:
          type: string
          format: date-time
          nullable: true
        deletedAt:
          type: string
          format: date-time
          nullable: true
        orderId:
          type: string
          nullable: true
        salePrice:
          type: string
          nullable: true
        platformFee:
          type: string
          nullable: true
        taxCollected:
          type: string
          nullable: true
        feeSource:
          type: string
          nullable: true
        detectedBy:
          type: string
        detectedAt:
          type: string
          format: date-time
        documents:
          type: array
          items:
            $ref: "#/components/schemas/ListSalesItemDocuments"
          nullable: true
        refundedAmount:
          type: string
          nullable: true
        detailsPending:
          type: boolean
        variantSku:
          type: string
          nullable: true
      required:
        - id
        - userId
        - platform
        - detectedBy
        - detectedAt
        - detailsPending
      additionalProperties: false
    ListSalesItemDocuments:
      type: object
      properties:
        url:
          type: string
        name:
          type: string
      required:
        - url
        - name
      additionalProperties: false
    ListSalesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSalesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSandboxEventsItem:
      type: object
      properties:
        id:
          type: string
        verb:
          type: string
        platform:
          type: string
          nullable: true
        outcome:
          type: string
        latencyMs:
          type: number
        detail:
          type: object
          additionalProperties: {}
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - verb
        - outcome
        - latencyMs
        - detail
        - createdAt
      additionalProperties: false
    ListSandboxEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSandboxEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSavedViewsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        isDefault:
          type: boolean
        sortOrder:
          type: number
        resource:
          type: string
        viewMode:
          type: string
          nullable: true
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - userId
        - isDefault
        - sortOrder
        - resource
      additionalProperties: false
    ListSavedViewsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSavedViewsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListScanCapturesItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        archetype:
          type: string
        mode:
          type: string
        inventoryItemId:
          type: string
          nullable: true
        marketSkuId:
          type: string
          nullable: true
        variantId:
          type: string
          nullable: true
        qualityScore:
          type: number
          nullable: true
        rejectReason:
          type: string
          nullable: true
        generationSkipped:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - status
        - archetype
        - mode
        - createdAt
      additionalProperties: false
    ListScanCapturesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListScanCapturesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListScanModelsItem:
      type: object
      properties:
        variantId:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        modelUrl:
          type: string
          nullable: true
        textureUrl:
          type: string
          nullable: true
        fidelity:
          type: string
        longestEdgeMm:
          type: number
          nullable: true
      required:
        - fidelity
      additionalProperties: false
    ListScanModelsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListScanModelsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListShowroomItemSearchItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        listingId:
          type: string
          nullable: true
        badges:
          type: array
          items:
            $ref: "#/components/schemas/ListShowroomItemSearchItemBadgesItem"
      required:
        - id
        - title
        - badges
      additionalProperties: false
    ListShowroomItemSearchResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListShowroomItemSearchItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListShowroomsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        position:
          type: number
          description: 0 = the primary.
        visibility:
          type: string
          enum:
            - unlisted
            - public
            - private
        publicSlug:
          type: string
          nullable: true
        autoIncludeInventory:
          type: boolean
        pinnedCount:
          type: number
          description: Pinned items (what is configured), not the automatic overflow.
        fixtureCount:
          type: number
        billing:
          $ref: "#/components/schemas/ListShowroomsItemBilling"
        placements:
          type: array
          items:
            $ref: "#/components/schemas/CreateShowroomPlacementResponseDataPlacements"
        createdAt:
          type: string
      required:
        - id
        - name
        - position
        - visibility
        - autoIncludeInventory
        - pinnedCount
        - fixtureCount
        - billing
        - placements
        - createdAt
      additionalProperties: false
    ListShowroomsItemBilling:
      type: object
      properties:
        status:
          type: string
          enum:
            - active
            - cancelled
            - included
            - past_due
        rail:
          type: string
          enum:
            - cash
            - cbx
          nullable: true
        monthlyCents:
          type: number
        paidThrough:
          type: string
          nullable: true
      required:
        - status
        - monthlyCents
      additionalProperties: false
    ListShowroomsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListShowroomsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSkuPresetsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        template:
          type: string
        isDefault:
          type: boolean
        storefrontId:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - template
        - isDefault
        - createdAt
        - updatedAt
      additionalProperties: false
    ListSkuPresetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSkuPresetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSourceSyncEventsItem:
      type: object
      properties:
        id:
          type: string
        platform:
          type: string
        trigger:
          type: string
        topic:
          type: string
          nullable: true
        sourceProductId:
          type: string
          nullable: true
        outcome:
          type: string
        fields:
          type: array
          items:
            type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - platform
        - trigger
        - outcome
        - createdAt
      additionalProperties: false
    ListSourceSyncEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSourceSyncEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSourceSyncItem:
      type: object
      properties:
        platform:
          type: string
        connected:
          type: boolean
        webhooks:
          type: boolean
        settings:
          $ref: "#/components/schemas/ListSourceSyncItemSettings"
        webhooksRegisteredAt:
          type: string
          format: date-time
          nullable: true
        webhookError:
          type: string
          nullable: true
        lastEventAt:
          type: string
          format: date-time
          nullable: true
        lastReconciledAt:
          type: string
          format: date-time
          nullable: true
        lastError:
          type: string
          nullable: true
        linkedProducts:
          type: number
      required:
        - platform
        - connected
        - webhooks
        - settings
        - linkedProducts
      additionalProperties: false
    ListSourceSyncItemSettings:
      type: object
      properties:
        enabled:
          type: boolean
        sourceOwnedFields:
          type: array
          items:
            type: string
        importNewProducts:
          type: boolean
        onSourceDelete:
          type: string
        autoExportEnabled:
          type: boolean
        autoExportPlatforms:
          type: array
          items:
            type: string
      required:
        - enabled
        - sourceOwnedFields
        - importNewProducts
        - onSourceDelete
        - autoExportEnabled
        - autoExportPlatforms
      additionalProperties: false
    ListSourceSyncResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSourceSyncItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSourcingDemandItem:
      type: object
      properties:
        namespace:
          type: string
        identifierValue:
          type: string
        looks:
          type: number
          description: How many times anybody looked, in the window.
        misses:
          type: number
          description: How many of those we had nothing for.
        retailers:
          type: number
          description: Distinct retailers it was seen on — breadth, not just volume.
        medianPageCents:
          type: number
          nullable: true
          description: What the retailers were charging, median of what we saw.
        lastSeenAt:
          type: string
          format: date-time
      required:
        - namespace
        - identifierValue
        - looks
        - misses
        - retailers
        - lastSeenAt
      additionalProperties: false
    ListSourcingDemandMineItem:
      type: object
      properties:
        identifierValue:
          type: string
        lookers:
          type: number
          description: How many distinct shoppers looked, in the window.
        misses:
          type: number
          description: How many of those looks Crossly could not answer at all.
        medianRetailCents:
          type: number
          nullable: true
          description: What the retailers were charging, median of what Scout saw.
        relation:
          type: string
          enum:
            - in_stock
            - sold_before
          description: "'in_stock' — it is in their inventory. 'sold_before' — they have sold one."
        inventoryItemId:
          type: string
          nullable: true
          description: Their own row, for the link.
        title:
          type: string
          nullable: true
        lastSoldCents:
          type: number
          nullable: true
          description: What they got for it last time, when they have sold one.
        lastSoldAt:
          type: string
          format: date-time
          nullable: true
      required:
        - identifierValue
        - lookers
        - misses
        - relation
      additionalProperties: false
    ListSourcingDemandMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSourcingDemandMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSourcingDemandResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSourcingDemandItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialAuctionRoomLotsItem:
      type: object
      properties:
        id:
          type: string
        lotNumber:
          type: number
        title:
          type: string
          nullable: true
        startingCents:
          type: number
        currentBidCents:
          type: number
        bidIncrementCents:
          type: number
        minimumNextBidCents:
          type: number
          description: |-
            What the bid transaction will actually demand. Not recomputed on the
            client — see the docblock on why one copy of this rule exists.
        reserveMet:
          type: boolean
        hammerAt:
          type: string
          format: date-time
          nullable: true
        skipped:
          type: boolean
        isDigital:
          type: boolean
          description: The discriminator the whole boundary is written in terms of.
      required:
        - id
        - lotNumber
        - startingCents
        - currentBidCents
        - bidIncrementCents
        - minimumNextBidCents
        - reserveMet
        - skipped
        - isDigital
      additionalProperties: false
    ListSpatialAuctionRoomLotsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialAuctionRoomLotsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialAuctionRoomsItem:
      type: object
      properties:
        sceneId:
          type: string
        sceneName:
          type: string
        publicSlug:
          type: string
          nullable: true
        visibility:
          type: string
        sessionId:
          type: string
        sessionTitle:
          type: string
        status:
          type: string
        scheduledAt:
          type: string
          format: date-time
        startedAt:
          type: string
          format: date-time
          nullable: true
        endedAt:
          type: string
          format: date-time
          nullable: true
        linkedAt:
          type: string
          format: date-time
        topics:
          $ref: "#/components/schemas/AuctionRoom"
      required:
        - sceneId
        - sceneName
        - visibility
        - sessionId
        - sessionTitle
        - status
        - scheduledAt
        - linkedAt
        - topics
      additionalProperties: false
    ListSpatialAuctionRoomsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialAuctionRoomsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialDeedListingsItem:
      type: object
      properties:
        id:
          type: string
        priceCents:
          type: number
        feeCents:
          type: number
        address:
          type: string
        label:
          type: string
        maintenanceWeeklyCents:
          type: number
        paidThrough:
          type: string
        status:
          type: string
          enum:
            - active
            - grace
            - delinquent
            - foreclosed
        occupied:
          type: boolean
        sellerUserId:
          type: string
      required:
        - id
        - priceCents
        - feeCents
        - address
        - label
        - maintenanceWeeklyCents
        - paidThrough
        - status
        - occupied
        - sellerUserId
      additionalProperties: false
    ListSpatialDeedListingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialDeedListingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialEmployeeSessionsItem:
      type: object
      properties:
        id:
          type: string
        sceneId:
          type: string
        startedAt:
          type: string
        endedAt:
          type: string
          nullable: true
        endReason:
          type: string
          nullable: true
          description: "'disengaged' | 'idle' | 'max_duration' | 'superseded', or null."
        engagements:
          type: number
          description: How many things the employee reacted to. Never billed on.
        engagedMs:
          type: number
          nullable: true
          description: Server-measured. Null while the conversation is still running.
        billedCents:
          type: number
        burnBaseUnits:
          type: string
        poolBaseUnits:
          type: string
        settledAt:
          type: string
          nullable: true
        unpaidReason:
          type: string
          nullable: true
      required:
        - id
        - sceneId
        - startedAt
        - engagements
        - billedCents
        - burnBaseUnits
        - poolBaseUnits
      additionalProperties: false
    ListSpatialEmployeeSessionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialEmployeeSessionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialEmployeeUsageItem:
      type: object
      properties:
        sceneId:
          type: string
        sceneName:
          type: string
          nullable: true
          description: The room's name at read time. A display label, never a key.
        conversations:
          type: number
          description: Conversations STARTED in the window.
        openConversations:
          type: number
          description: Of those, still open — measured but not yet billed.
        engagedMs:
          type: number
          description: Server-measured engaged time across the ended conversations.
        billedCents:
          type: number
          description: COSM cents actually charged. Zero for anything unsettled.
        burnBaseUnits:
          type: string
          description: "Destroyed half, in COSM base units. A string: it is a bigint."
        poolBaseUnits:
          type: string
          description: Half that moved to the employee-tax pool, in base units.
        unpaidConversations:
          type: number
          description: Settled but unpaid — the seller was short, or COSM is not live.
      required:
        - sceneId
        - conversations
        - openConversations
        - engagedMs
        - billedCents
        - burnBaseUnits
        - poolBaseUnits
        - unpaidConversations
      additionalProperties: false
    ListSpatialEmployeeUsageResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialEmployeeUsageItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialLeasesItem:
      type: object
      properties:
        address:
          type: string
        label:
          type: string
        maintenanceWeeklyCents:
          type: number
        id:
          type: string
        plotIndex:
          type: number
        rentWeeklyCents:
          type: number
        streetSlug:
          type: string
        streetName:
          type: string
      required:
        - address
        - label
        - maintenanceWeeklyCents
        - id
        - plotIndex
        - rentWeeklyCents
        - streetSlug
        - streetName
      additionalProperties: false
    ListSpatialLeasesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialLeasesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialMomentsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - handshake
            - unbox
            - slab_flip
        payload:
          $ref: "#/components/schemas/GetSpatialEmoteResponseMomentsPayload"
        earnedAt:
          type: string
        playedAt:
          type: string
          nullable: true
      required:
        - id
        - kind
        - payload
        - earnedAt
      additionalProperties: false
    ListSpatialMomentsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialMomentsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialPublicItem:
      type: object
      properties:
        name:
          type: string
        publicSlug:
          type: string
        categorySlug:
          type: string
        itemCount:
          type: number
          description: Unsold stock that lands in this room. The same predicate the room uses.
        forSaleCount:
          type: number
          description: How many of those a visitor could buy right now.
        priceFromCents:
          type: number
          nullable: true
          description: |-
            The cheapest and dearest thing for sale, in cents.

            A BAND, deliberately, and never a quote: `listPublicSceneOffers` is the
            only authority on what a given object costs. Null when nothing is for sale
            — zero would read as free.
        priceToCents:
          type: number
          nullable: true
        previewImages:
          type: array
          items:
            type: string
          description: Up to PREVIEW_IMAGES item images. Catalog art first, seller photo else.
        updatedAt:
          type: string
          nullable: true
          description: Last time the room itself changed. ISO, or null if the row has no date.
        visitorsWeek:
          type: number
          description: People who walked it in the last 7 days (spatial_item_attention).
        accentColour:
          type: string
          nullable: true
          description: |-
            The room's accent colour, as a hex string, or null.

            Its cove colour — described in `shared/spatial/cosmetics.ts` as the single
            most character-defining knob a seller has. Sent so the HALL can use it: a
            seller who spends an afternoon choosing a colour should be able to
            recognise their own door in a directory, and customisation that stops at
            the walls of a room nobody has entered yet is customisation nobody sees.

            Null when the room has no cosmetics, which is most of them — the door then
            keeps its default plaque rather than inventing a colour.
        shopfront:
          type: string
          enum:
            - full
            - none
            - fascia
            - awning
            - neon_fascia
            - gilded_fascia
            - scalloped_awning
          nullable: true
          description: |-
            How this room's door presents itself in the hall — see SHOPFRONT_STYLES.

            Null is "the seller never chose", NOT "bare opening". The hall resolves
            null to `SHOPFRONT_DEFAULT`; `'none'` is the explicit bare opening. Those
            are different answers and collapsing them here would take away the only
            way to ask for a plain door.
        shopfrontColour:
          type: string
          nullable: true
          description: |-
            The awning's canvas colour as hex, or null. Distinct from accentColour:
            the cove lights the inside, this is fabric seen from the street.
        facade:
          type: string
          enum:
            - market
            - classic
            - modern
            - boutique
            - art_deco
            - victorian
            - brutalist
          nullable: true
          description: |-
            Which BUILDING this shop stands in — see FACADE_STYLES in shared.

            A different axis from `shopfront`: that dresses the doorway, this is the
            architecture the doorway is cut into. Both are sent because a seller picks
            both, and the street composes this with the size their stake bought.

            Null is "never chose", resolved to `FACADE_DEFAULT` by the renderer for
            the same reason `shopfront` is not resolved here — a server that filled in
            the default would make the stored value unreadable.
        signStyle:
          type: string
          enum:
            - painted
            - neon
            - gold_leaf
            - blade_sign
            - lightbox
          nullable: true
          description: How the name is lettered (shared shop-decor.ts SIGN_STYLES); null = painted.
        signFont:
          type: string
          enum:
            - classic
            - script
            - roman
            - condensed
            - slab
            - deco
            - brush
            - marker
          nullable: true
          description: The sign's typeface (shared sign-lettering.ts SIGN_FONTS); null = the style's own.
        windowMood:
          type: string
          enum:
            - none
            - party
            - warm
            - candle
            - cool
          nullable: true
          description: The street window's lighting preset (shared WINDOW_MOODS); null = none.
        occupants:
          type: number
          description: |-
            How many people are standing in this room RIGHT NOW.

            The single most metaverse-shaped number in this payload: a directory of
            rooms is a menu, and a directory that says somebody is already inside one
            is a place. `roomOccupancy` has been able to answer this since presence
            shipped — nothing asked it.

            Live, never stored: it comes from the socket table in `presence.ts`, so it
            cannot drift the way a counter column does, and it is 0 for every room on
            a process that holds no sockets for it.
        closed:
          type: boolean
          description: |-
            The shop is shut — the seller is on vacation.

            Sourced from `users.vacation_mode` / `vacation_ends_at` — Settings ›
            Vacation mode, the same flag checkout blocks new orders on
            (services/vacation/seller-vacation.ts, settings IA audit B3). The old
            `seller_profiles.vacation_mode` copy had no writer any client used.

            A closed room is still WALKABLE on purpose. Vacation pauses selling, it
            does not hide a collection, and a door that refuses to open is a worse
            answer than one that opens onto a shop with the shutter down — you can
            still look, you just cannot buy.
      required:
        - name
        - publicSlug
        - categorySlug
        - itemCount
        - forSaleCount
        - previewImages
        - visitorsWeek
        - occupants
        - closed
      additionalProperties: false
    ListSpatialPublicOffersItem:
      type: object
      properties:
        itemId:
          type: string
        listingSlug:
          type: string
          description: platform_listings.platform_listing_id — what POST /cart/items takes.
        priceCents:
          type: number
        currency:
          type: string
        available:
          type: number
          nullable: true
          description: Remaining stock, when the listing declares one. Null = unknown.
        condition:
          type: string
          nullable: true
          description: What a buyer is entitled to know before they add it.
        gradeKey:
          type: string
          nullable: true
          description: Canonical grade key when the item is slabbed, e.g. `psa-10`.
      required:
        - itemId
        - listingSlug
        - priceCents
        - currency
      additionalProperties: false
    ListSpatialPublicOffersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialPublicOffersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialPublicResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialPublicItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialSceneGrantsItem:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
          nullable: true
        role:
          type: string
        expiresAt:
          type: string
          format: date-time
          nullable: true
        acceptedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
        pending:
          type: boolean
          description: An unaccepted invite is an open door; the UI shows it differently.
      required:
        - id
        - role
        - createdAt
        - pending
      additionalProperties: false
    ListSpatialSceneGrantsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialSceneGrantsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialSceneMovementsItem:
      type: object
      properties:
        id:
          type: string
        at:
          type: string
        kind:
          type: string
        source:
          type: string
        quantity:
          type: number
        itemId:
          type: string
        unitId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        fromNodeId:
          type: string
          nullable: true
        toNodeId:
          type: string
          nullable: true
        fromCode:
          type: string
          nullable: true
        toCode:
          type: string
          nullable: true
        actorId:
          type: string
          nullable: true
          description: |-
            NULL when nothing human did it, OR when attribution is redacted for this
            caller. `actorsRedacted` on the payload distinguishes the two.
      required:
        - id
        - at
        - kind
        - source
        - quantity
        - itemId
      additionalProperties: false
    ListSpatialSceneMovementsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialSceneMovementsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialSceneWarehouseUnplacedItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        qty:
          type: number
        sku:
          type: string
          nullable: true
      required:
        - id
        - title
        - qty
      additionalProperties: false
    ListSpatialSceneWarehouseUnplacedResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialSceneWarehouseUnplacedItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialScenesItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        name:
          type: string
        categorySlug:
          type: string
          nullable: true
        visibility:
          type: string
        publicSlug:
          type: string
          nullable: true
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - kind
        - name
        - visibility
        - updatedAt
      additionalProperties: false
    ListSpatialScenesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialScenesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialSharedWithMeItem:
      type: object
      properties:
        sceneId:
          type: string
        name:
          type: string
        kind:
          type: string
        publicSlug:
          type: string
          nullable: true
        ownerId:
          type: string
        role:
          type: string
      required:
        - sceneId
        - name
        - kind
        - ownerId
        - role
      additionalProperties: false
    ListSpatialSharedWithMeResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialSharedWithMeItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialShopAddressesItem:
      type: object
      properties:
        street:
          type: string
        name:
          type: string
        index:
          type: number
        address:
          type: string
        label:
          type: string
      required:
        - street
        - name
        - index
        - address
        - label
      additionalProperties: false
    ListSpatialShopAddressesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialShopAddressesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialStaffingItem:
      type: object
      properties:
        wagePaidThrough:
          type: string
          nullable: true
        sceneId:
          type: string
        name:
          type: string
        kind:
          type: string
        wageWeeklyCents:
          type: number
          nullable: true
      required:
        - sceneId
        - name
        - kind
      additionalProperties: false
    ListSpatialStaffingResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialStaffingItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialStreetMineItem:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        admission:
          type: string
        status:
          type: string
        upkeep:
          type: string
          nullable: true
          description: Upkeep clock (shared deedStatus) once founded, else null.
        paidThrough:
          type: string
          nullable: true
        priceCents:
          type: number
        maintenanceWeeklyCents:
          type: number
        plotCount:
          type: number
        occupied:
          type: number
        reviewNote:
          type: string
          nullable: true
        foundedAt:
          type: string
          nullable: true
        pendingApplications:
          type: number
          description: Applications waiting on the owner (street-admissions.ts).
      required:
        - id
        - slug
        - name
        - admission
        - status
        - priceCents
        - maintenanceWeeklyCents
        - plotCount
        - occupied
        - pendingApplications
      additionalProperties: false
    ListSpatialStreetMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialStreetMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSpatialStreetsItem:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        admission:
          type: string
        plotCount:
          type: number
        occupied:
          type: number
        platform:
          type: boolean
          description: A platform street (no owner) — Main Street.
      required:
        - slug
        - name
        - admission
        - plotCount
        - occupied
        - platform
      additionalProperties: false
    ListSpatialStreetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSpatialStreetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSponsoredAdBillingHistoryItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - topup
            - refund
            - credit
            - charge
            - boost_fee
        at:
          type: string
        amountCents:
          type: number
          description: "Signed from the seller's side: money in is positive, spend negative."
        label:
          type: string
        status:
          type: string
          nullable: true
          description: "Top-ups: status and receipt; charges: the rail split."
        receiptNumber:
          type: string
          nullable: true
        topupId:
          type: string
          nullable: true
        split:
          $ref: "#/components/schemas/ListSponsoredAdBillingHistoryItemSplit"
      required:
        - id
        - kind
        - at
        - amountCents
        - label
      additionalProperties: false
    ListSponsoredAdBillingHistoryItemSplit:
      type: object
      properties:
        cashCents:
          type: number
        creditCents:
          type: number
        cbxCents:
          type: number
        writtenOffCents:
          type: number
      required:
        - cashCents
        - creditCents
        - cbxCents
        - writtenOffCents
      additionalProperties: false
      nullable: true
    ListSponsoredAdBillingHistoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSponsoredAdBillingHistoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSponsoredAdBillingStatementsItem:
      type: object
      properties:
        month:
          type: string
      required:
        - month
      additionalProperties: false
    ListSponsoredAdBillingStatementsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSponsoredAdBillingStatementsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSponsoredAdBoostsItem:
      type: object
      properties:
        feesCents:
          type: number
        sales:
          type: number
        platformListingId:
          type: string
        slug:
          type: string
        title:
          type: string
        thumbnail:
          type: string
          nullable: true
        priceCents:
          type: number
        suggestedBidCents:
          type: number
        boostBps:
          type: number
          nullable: true
      required:
        - feesCents
        - sales
        - platformListingId
        - slug
        - title
        - priceCents
        - suggestedBidCents
      additionalProperties: false
    ListSponsoredAdBoostsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSponsoredAdBoostsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSponsoredAdCampaignsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - active
            - draft
            - paused
            - ended
            - out_of_budget
        statusReason:
          type: string
          nullable: true
        pacing:
          $ref: "#/components/schemas/SponsoredAdCampaignResponseDataPacing"
        dailyBudgetCents:
          type: number
        totalBudgetCents:
          type: number
          nullable: true
        spentTotalCents:
          type: number
        defaultBidCents:
          type: number
        bidStrategy:
          type: string
          enum:
            - manual
            - auto
        startsAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        placements:
          type: array
          items:
            $ref: "#/components/schemas/ListSponsoredAdCampaignsItemPlacementsItem"
        goal:
          type: string
          enum:
            - sales
            - visits
        targetCategories:
          type: array
          items:
            type: string
        targetRegions:
          type: array
          items:
            type: string
        targetDevices:
          type: array
          items:
            type: string
        targetType:
          type: string
          enum:
            - listings
            - wholesale_catalog
        targetCatalogId:
          type: string
          nullable: true
        listingCount:
          type: number
        stats:
          $ref: "#/components/schemas/SponsoredAdCampaignResponseDataStats"
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - status
        - pacing
        - dailyBudgetCents
        - spentTotalCents
        - defaultBidCents
        - bidStrategy
        - placements
        - goal
        - targetCategories
        - targetRegions
        - targetDevices
        - targetType
        - listingCount
        - stats
        - createdAt
        - updatedAt
      additionalProperties: false
    ListSponsoredAdCampaignsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSponsoredAdCampaignsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListSponsoredAdListingsItem:
      type: object
      properties:
        title:
          type: string
        thumbnail:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
        campaigns:
          type: number
        spendCents:
          type: number
        impressions:
          type: number
        clicks:
          type: number
        ctr:
          type: number
          description: clicks / impressions, 0..1
        avgCpcCents:
          type: number
          description: spend / clicks, cents
        orders:
          type: number
        revenueCents:
          type: number
        roas:
          type: number
          nullable: true
          description: revenue / spend; null with no spend
        platformListingId:
          type: string
      required:
        - title
        - campaigns
        - spendCents
        - impressions
        - clicks
        - ctr
        - avgCpcCents
        - orders
        - revenueCents
        - platformListingId
      additionalProperties: false
    ListSponsoredAdListingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListSponsoredAdListingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStallListingSearchItem:
      type: object
      properties:
        listingId:
          type: string
        slug:
          type: string
        title:
          type: string
        priceCents:
          type: number
        imageUrl:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        allowed:
          type: boolean
          description: False when the street only takes some categories and this is not one of them.
      required:
        - listingId
        - slug
        - title
        - priceCents
        - allowed
      additionalProperties: false
    ListStallListingSearchResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStallListingSearchItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStallMineItem:
      type: object
      properties:
        stats:
          $ref: "#/components/schemas/ListStallMineItemStats"
        upcoming:
          type: boolean
        drawnBooth:
          $ref: "#/components/schemas/CreateStallBookResponseBookingBooth"
        boothTrimmed:
          type: array
          items:
            $ref: "#/components/schemas/ListStallMineItemBoothTrimmed"
        id:
          type: string
        street:
          type: string
        spotIndex:
          type: number
        unit:
          type: string
          enum:
            - day
            - event
        units:
          type: array
          items:
            $ref: "#/components/schemas/CreateStallBookResponseBookingUnits"
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
          enum:
            - cancelled
            - ended
            - booked
            - folded
        rail:
          type: string
          enum:
            - card
            - cbx
            - bucks
        owner:
          $ref: "#/components/schemas/CreateStallBookResponseBookingOwner"
        quote:
          $ref: "#/components/schemas/ListStallMineItemQuote"
        totalCents:
          type: number
        refundedCents:
          type: number
        cancellable:
          type: boolean
        listingIds:
          type: array
          items:
            type: string
        boothKind:
          type: string
          enum:
            - cart
            - booth
            - pavilion
        capacity:
          type: number
        awning:
          $ref: "#/components/schemas/ColourPattern"
        booth:
          $ref: "#/components/schemas/CreateStallBookResponseBookingBooth"
        sign:
          type: string
          nullable: true
        attendant:
          type: boolean
        createdAt:
          type: string
      required:
        - stats
        - upcoming
        - boothTrimmed
        - id
        - street
        - spotIndex
        - unit
        - units
        - startsAt
        - endsAt
        - status
        - rail
        - owner
        - quote
        - totalCents
        - refundedCents
        - cancellable
        - listingIds
        - boothKind
        - capacity
        - attendant
        - createdAt
      additionalProperties: false
    ListStallMineItemBoothTrimmed:
      type: object
      properties:
        field:
          type: string
        key:
          type: string
        value:
          type: string
        label:
          type: string
      required:
        - field
        - key
        - value
        - label
      additionalProperties: false
    ListStallMineItemQuote:
      type: object
      properties:
        rate:
          type: string
          enum:
            - day
            - night
          description: "'day' rate or 'night' rate, per unit."
        count:
          type: number
        unitCents:
          type: array
          items:
            type: number
          description: What each unit costs, in order.
        lines:
          type: array
          items:
            $ref: "#/components/schemas/ListStallMineItemQuoteLines"
        totalCents:
          type: number
        premiumMultiplier:
          type: number
        demandPricing:
          type: boolean
        mode:
          type: string
          enum:
            - both
            - share
            - rent
        shareBps:
          type: number
          description: Owner's share of stall sales, bps; 0 in rent mode.
      required:
        - rate
        - count
        - unitCents
        - lines
        - totalCents
        - premiumMultiplier
        - demandPricing
        - mode
        - shareBps
      additionalProperties: false
    ListStallMineItemQuoteLines:
      type: object
      properties:
        label:
          type: string
        cents:
          type: number
      required:
        - label
        - cents
      additionalProperties: false
    ListStallMineItemStats:
      type: object
      properties:
        sales:
          type: number
        visits:
          type: number
        offers:
          type: number
      required:
        - sales
        - visits
        - offers
      additionalProperties: false
    ListStallMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStallMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStockxCatalogVariantsItem:
      type: object
      properties:
        variantId:
          type: string
        size:
          type: string
          description: The size as StockX names it ("10", "M", "One Size").
        gtins:
          type: array
          items:
            type: string
      required:
        - variantId
        - size
        - gtins
      additionalProperties: false
    ListStockxCatalogVariantsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStockxCatalogVariantsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStorefrontHighlightsItem:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/ListStorefrontHighlightsItemItems"
        id:
          type: string
        storefrontId:
          type: string
        title:
          type: string
        coverUrl:
          type: string
          nullable: true
          description: Custom cover, else the first item's media.
        position:
          type: number
      required:
        - items
        - id
        - storefrontId
        - title
        - position
      additionalProperties: false
    ListStorefrontHighlightsItemItems:
      type: object
      properties:
        caption:
          type: string
          nullable: true
        fit:
          type: string
          enum:
            - cover
            - contain
        mediaTransform:
          $ref: "#/components/schemas/ListStorefrontHighlightsItemItemsMediaTransform"
        listing:
          $ref: "#/components/schemas/ListStorefrontHighlightsItemItemsListing"
        stickerListings:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Every product the slide's stickers name, resolved, so a sticker on the slide is tappable too.
        sourceStoryId:
          type: string
          nullable: true
          description: "Owner reads only: the story it was copied from (the picker marks those as already added)."
        id:
          type: string
        mediaUrl:
          type: string
        mediaType:
          type: string
          enum:
            - image
            - video
        listingId:
          type: string
          nullable: true
          description: Optional product tie-in (tap → the listing).
        durationMs:
          type: number
        postedAt:
          type: string
          description: When the original story was posted.
      required:
        - fit
        - mediaTransform
        - stickerListings
        - id
        - mediaUrl
        - mediaType
        - durationMs
        - postedAt
      additionalProperties: false
    ListStorefrontHighlightsItemItemsListing:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        title:
          type: string
        priceCents:
          type: number
        image:
          type: string
          nullable: true
      required:
        - id
        - slug
        - title
        - priceCents
      additionalProperties: false
      nullable: true
      description: The tie-in, resolved (null when `listingId` is null or the listing is no longer live).
    ListStorefrontHighlightsItemItemsMediaTransform:
      type: object
      properties:
        scale:
          type: number
        x:
          type: number
        y:
          type: number
      required:
        - scale
        - x
        - y
      additionalProperties: false
    ListStorefrontHighlightsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStorefrontHighlightsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStorefrontSectionsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
        title:
          type: string
        visible:
          type: boolean
        position:
          type: number
        listingIds:
          type: array
          items:
            type: string
      required:
        - id
        - createdAt
        - updatedAt
        - userId
        - kind
        - title
        - visible
        - position
        - listingIds
      additionalProperties: false
    ListStorefrontSiteVersionsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
        reason:
          type: string
          enum:
            - template
            - publish
            - autosave
            - restore
          description: "'publish' | 'autosave' | 'restore' | 'template'."
        label:
          type: string
          nullable: true
        byName:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - reason
      additionalProperties: false
    ListStorefrontSiteVersionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStorefrontSiteVersionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStorefrontStoryArchiveItem:
      type: object
      properties:
        id:
          type: string
        mediaUrl:
          type: string
        mediaKind:
          type: string
          enum:
            - image
            - video
        caption:
          type: string
          nullable: true
        fit:
          type: string
          enum:
            - cover
            - contain
        mediaTransform:
          $ref: "#/components/schemas/ListStorefrontHighlightsItemItemsMediaTransform"
        taggedListingIds:
          type: array
          items:
            type: string
        postedAt:
          type: string
        expiresAt:
          type: string
        active:
          type: boolean
          description: Still up (crossly_seller_stories) vs archived (crossly_story_archive).
      required:
        - id
        - mediaUrl
        - mediaKind
        - fit
        - mediaTransform
        - taggedListingIds
        - postedAt
        - expiresAt
        - active
      additionalProperties: false
    ListStorefrontStoryArchiveResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStorefrontStoryArchiveItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStorefrontTeamAccessItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        revokedAt:
          type: string
          format: date-time
          nullable: true
        scopes:
          type: array
          items:
            type: string
        ownerUserId:
          type: string
        storefrontId:
          type: string
          nullable: true
        memberUserId:
          type: string
        spendingCapCents:
          type: number
          nullable: true
        limits:
          type: object
          additionalProperties: {}
        updatedByUserId:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - scopes
        - ownerUserId
        - memberUserId
        - limits
      additionalProperties: false
    ListStorefrontTeamAccessResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStorefrontTeamAccessItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStorefrontsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - draft
            - live
            - paused
            - archived
        isDefault:
          type: boolean
        ownerUserId:
          type: string
        slug:
          type: string
        nameAuto:
          type: boolean
        onboardedAt:
          type: string
          format: date-time
          nullable: true
        currency:
          type: string
          nullable: true
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - status
        - isDefault
        - ownerUserId
        - slug
        - nameAuto
      additionalProperties: false
    ListStorefrontsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStorefrontsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStoriesItem:
      type: object
      properties:
        id:
          type: string
        mediaUrl:
          type: string
        mediaKind:
          type: string
        caption:
          type: string
          nullable: true
        taggedListingIds:
          type: array
          items:
            type: string
        overlays:
          type: array
          items:
            $ref: "#/components/schemas/ListStoriesItemOverlaysItem"
        fit:
          type: string
        mediaTransform:
          $ref: "#/components/schemas/ListStorefrontHighlightsItemItemsMediaTransform"
        audience:
          type: string
        batchId:
          type: string
          nullable: true
        position:
          type: number
        viewCount:
          type: number
        expiresAt:
          type: string
        createdAt:
          type: string
      required:
        - id
        - mediaUrl
        - mediaKind
        - taggedListingIds
        - overlays
        - fit
        - mediaTransform
        - audience
        - position
        - viewCount
        - expiresAt
        - createdAt
      additionalProperties: false
    ListStoriesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStoriesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStreetDropsItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        status:
          type: string
          enum:
            - cancelled
            - scheduled
            - closed
            - line_open
            - released
        opensLineAt:
          type: string
        releaseAt:
          type: string
        units:
          type: number
        entries:
          type: number
        plotIndex:
          type: number
          nullable: true
          description: "Exactly one is set: the seller's plot, or their stall standing now."
        stallSpotIndex:
          type: number
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - id
        - title
        - status
        - opensLineAt
        - releaseAt
        - units
        - entries
      additionalProperties: false
    ListStreetDropsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStreetDropsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStreetEventsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - night_market
            - swap_meet
        title:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        live:
          type: boolean
        scheduled:
          type: boolean
          description: Weekly platform event (true) or owner-scheduled (false).
      required:
        - id
        - kind
        - title
        - startsAt
        - endsAt
        - live
        - scheduled
      additionalProperties: false
    ListStreetEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStreetEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListStreetStallsItem:
      type: object
      properties:
        bookingId:
          type: string
        spotIndex:
          type: number
        kind:
          type: string
          enum:
            - day
            - night_market
            - swap_meet
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        rotationY:
          type: number
        footprint:
          $ref: "#/components/schemas/ListStreetStallsItemFootprint"
        opensAt:
          type: string
        closesAt:
          type: string
        open:
          type: boolean
        awning:
          $ref: "#/components/schemas/ColourPattern"
        booth:
          $ref: "#/components/schemas/CreateStallBookResponseBookingBooth"
        piece:
          $ref: "#/components/schemas/GetWorldArcadeResponseDataCabinetsPiece"
        sign:
          type: string
          nullable: true
        attendant:
          type: boolean
        seller:
          $ref: "#/components/schemas/ListStreetStallsItemSeller"
        listings:
          type: array
          items:
            $ref: "#/components/schemas/ListStreetStallsItemListings"
        soldToday:
          type: number
      required:
        - bookingId
        - spotIndex
        - kind
        - position
        - rotationY
        - footprint
        - opensAt
        - closesAt
        - open
        - attendant
        - seller
        - listings
        - soldToday
      additionalProperties: false
    ListStreetStallsItemFootprint:
      type: object
      properties:
        w:
          type: number
        d:
          type: number
      required:
        - w
        - d
      additionalProperties: false
    ListStreetStallsItemListings:
      type: object
      properties:
        listingId:
          type: string
        slug:
          type: string
        title:
          type: string
        priceCents:
          type: number
        imageUrl:
          type: string
          nullable: true
        model:
          type: string
      required:
        - listingId
        - slug
        - title
        - priceCents
        - model
      additionalProperties: false
    ListStreetStallsItemSeller:
      type: object
      properties:
        name:
          type: string
        shop:
          $ref: "#/components/schemas/NameSlug2"
        level:
          type: number
      required:
        - name
        - level
      additionalProperties: false
    ListStreetStallsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStreetStallsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTaxCrosslyCollectsItem:
      type: object
      properties:
        country:
          type: string
          description: ISO 3166-1 alpha-2, upper case.
        state:
          type: string
          nullable: true
          description: US state (upper case) for a US registration; null elsewhere.
        type:
          type: string
          nullable: true
          description: Stripe's registration type (`state_sales_tax`, `oss_union`, `standard`, ...).
        activeFrom:
          type: string
          description: ISO timestamps.
        expiresAt:
          type: string
          nullable: true
      required:
        - country
        - activeFrom
      additionalProperties: false
    ListTaxCrosslyCollectsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTaxCrosslyCollectsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTaxSalesTaxNotCollectedItem:
      type: object
      properties:
        purchaseId:
          type: string
        orderId:
          type: string
          nullable: true
        platformOrderId:
          type: string
          nullable: true
        soldAt:
          type: string
        collectedBy:
          type: string
          enum:
            - crossly
            - not_collected
        reason:
          type: string
          enum:
            - unavailable
            - not_registered
            - exempt
            - not_taxable
            - cross_border
          nullable: true
        country:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        source:
          type: string
          enum:
            - ship_to
            - pickup
        jurisdiction:
          type: string
          nullable: true
          description: '"NJ" / "GB" / null.'
        taxCents:
          type: number
        grossCents:
          type: number
          description: What the buyer paid less the tax (item + shipping).
        shippingCents:
          type: number
        mayOwe:
          type: boolean
      required:
        - purchaseId
        - soldAt
        - collectedBy
        - source
        - taxCents
        - grossCents
        - shippingCents
        - mayOwe
      additionalProperties: false
    ListTaxSalesTaxNotCollectedResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTaxSalesTaxNotCollectedItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTaxonomyEbayCharitiesItem:
      type: object
      properties:
        charityOrgId:
          type: string
          description: What the listing's `charityId` takes.
        name:
          type: string
        missionStatement:
          type: string
          nullable: true
        logoUrl:
          type: string
          nullable: true
        website:
          type: string
          nullable: true
        location:
          type: string
          nullable: true
          description: '"Nashville, TN" — whatever of city / state / country eBay returns.'
        registrationId:
          type: string
          nullable: true
      required:
        - charityOrgId
        - name
      additionalProperties: false
    ListTaxonomyEbayCharitiesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTaxonomyEbayCharitiesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTaxonomySuggestItem:
      type: object
      properties:
        externalId:
          type: string
        name:
          type: string
        level:
          type: number
        breadcrumb:
          type: string
          description: '"Women > Tops > Blouses", root first.'
        leaf:
          type: boolean
          description: "No category under it: what a listing can actually be filed in."
      required:
        - externalId
        - name
        - level
        - breadcrumb
        - leaf
      additionalProperties: false
    ListTaxonomySuggestResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTaxonomySuggestItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTcgCardsItem:
      type: object
      properties:
        id:
          type: string
          description: "`<set>-<slug>`, lowercase. Stable forever (it names the NFT)."
        set:
          type: string
          description: Set code, e.g. `GH1`.
        no:
          type: number
          description: Collector number within the set.
        name:
          type: string
        type:
          type: string
          description: Game-defined type (hunter, move, ...).
        rarity:
          type: string
          enum:
            - common
            - uncommon
            - rare
            - legendary
        faction:
          type: string
          nullable: true
          description: Faction / colour / house, when the game has them.
        text:
          type: array
          items:
            type: string
          description: Rules text, one line per paragraph -- what the card frame prints.
        flavor:
          type: string
          nullable: true
          description: Flavour line, optional.
        art:
          type: string
          nullable: true
          description: "Art: a path inside the package (creator games) or our CDN key."
      required:
        - id
        - set
        - no
        - name
        - type
        - rarity
        - text
      additionalProperties: false
    ListTcgCardsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTcgCardsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTcgCreatorGamePacksItem:
      type: object
      properties:
        packId:
          type: string
        acquiredAt:
          type: string
          format: date-time
      required:
        - packId
        - acquiredAt
      additionalProperties: false
    ListTcgCreatorGamePacksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTcgCreatorGamePacksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTcgCreatorGamesItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        setCode:
          type: string
        set:
          $ref: "#/components/schemas/CodeName"
        description:
          type: string
        minutes:
          type: number
        rating:
          type: string
          enum:
            - everyone
            - teen
        frame:
          $ref: "#/components/schemas/GetTcgCreatorGameResponseDataFrame"
        thumbUrl:
          type: string
          nullable: true
        releasedAt:
          type: string
          format: date-time
          nullable: true
        creatorUserId:
          type: string
      required:
        - id
        - name
        - setCode
        - set
        - description
        - minutes
        - rating
        - creatorUserId
      additionalProperties: false
    ListTcgCreatorGamesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTcgCreatorGamesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTcgCreatorMineItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        setCode:
          type: string
        status:
          type: string
        liveVersion:
          type: number
          nullable: true
        releasedAt:
          type: string
          format: date-time
          nullable: true
        versions:
          type: array
          items:
            $ref: "#/components/schemas/ListTcgCreatorMineItemVersions"
      required:
        - id
        - name
        - setCode
        - status
        - versions
      additionalProperties: false
    ListTcgCreatorMineItemVersions:
      type: object
      properties:
        version:
          type: number
        semver:
          type: string
        status:
          type: string
        reviewNote:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        reviewedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - version
        - semver
        - status
        - createdAt
      additionalProperties: false
    ListTcgCreatorMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTcgCreatorMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTcgGamesItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        seats:
          $ref: "#/components/schemas/MinMax"
        cards:
          type: number
        starters:
          type: array
          items:
            $ref: "#/components/schemas/ListTcgGamesItemStarters"
      required:
        - id
        - name
        - seats
        - cards
        - starters
      additionalProperties: false
    ListTcgGamesItemStarters:
      type: object
      properties:
        key:
          type: string
        name:
          type: string
      required:
        - key
        - name
      additionalProperties: false
    ListTcgGamesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTcgGamesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTcgNftsItem:
      type: object
      properties:
        id:
          type: string
        game:
          type: string
        cardId:
          type: string
        soulbound:
          type: boolean
        status:
          type: string
        assetId:
          type: string
          nullable: true
        owner:
          type: string
          nullable: true
        mintedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - game
        - cardId
        - soulbound
        - status
      additionalProperties: false
    ListTcgNftsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTcgNftsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTcgTournamentsItem:
      type: object
      properties:
        players:
          type: number
        id:
          type: string
        game:
          type: string
        name:
          type: string
        status:
          type: string
        rounds:
          type: number
        round:
          type: number
        topCut:
          type: number
        roundMinutes:
          type: number
        maxPlayers:
          type: number
        startsAt:
          type: string
          nullable: true
        roundEndsAt:
          type: string
          nullable: true
        hostId:
          type: string
      required:
        - players
        - id
        - game
        - name
        - status
        - rounds
        - round
        - topCut
        - roundMinutes
        - maxPlayers
        - hostId
      additionalProperties: false
    ListTcgTournamentsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTcgTournamentsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTeamInvitesItem:
      type: object
      properties:
        id:
          type: string
        email:
          type: string
        role:
          type: string
        status:
          type: string
          enum:
            - expired
            - pending
            - accepted
            - revoked
        delivery:
          type: string
          nullable: true
        createdAt:
          type: string
        expiresAt:
          type: string
        invitedByUserId:
          type: string
          nullable: true
        invitedByName:
          type: string
          nullable: true
        perStore:
          type: boolean
          description: False for an invitation from before stores were picked (its access is account-wide, as it was).
        stores:
          type: array
          items:
            $ref: "#/components/schemas/ListTeamInvitesItemStores"
      required:
        - id
        - email
        - role
        - status
        - createdAt
        - expiresAt
        - perStore
        - stores
      additionalProperties: false
    ListTeamInvitesItemStores:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
        key:
          type: string
        storeName:
          type: string
        permissions:
          type: array
          items:
            type: string
        limits:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataAccessLimits"
        summary:
          type: string
      required:
        - key
        - storeName
        - permissions
        - limits
        - summary
      additionalProperties: false
    ListTeamInvitesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTeamInvitesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTeamMembersItem:
      type: object
      properties:
        id:
          type: string
        memberUserId:
          type: string
        email:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
        avatarUrl:
          type: string
          nullable: true
        role:
          type: string
        addedAt:
          type: string
        lastActiveAt:
          type: string
          nullable: true
        stores:
          type: array
          items:
            $ref: "#/components/schemas/GetTeamMemberResponseDataStores"
      required:
        - id
        - memberUserId
        - role
        - addedAt
        - stores
      additionalProperties: false
    ListTeamMembersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTeamMembersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListTeamStoresItem:
      type: object
      properties:
        canInvite:
          type: boolean
        canManage:
          type: boolean
        id:
          type: string
        name:
          type: string
        status:
          type: string
      required:
        - canInvite
        - canManage
        - id
        - name
        - status
      additionalProperties: false
    ListTeamStoresResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListTeamStoresItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListToolboxAssetsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - package
            - image
            - model
            - script
            - sound
            - animation
        name:
          type: string
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        priceCents:
          type: number
        author:
          $ref: "#/components/schemas/ListWorldTransferRequestsItemFrom"
        installs:
          type: number
        rating:
          $ref: "#/components/schemas/AverageCount"
        thumbnailUrl:
          type: string
          nullable: true
        version:
          type: number
          description: Live version number (0 while the first is in review).
        updatedAt:
          type: string
        owned:
          type: boolean
          description: "May the viewer insert it: free, theirs, or licensed."
      required:
        - id
        - kind
        - name
        - description
        - tags
        - priceCents
        - author
        - installs
        - rating
        - version
        - updatedAt
        - owned
      additionalProperties: false
    ListToolboxAssetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListToolboxAssetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListToolboxLibraryItem:
      type: object
      properties:
        asset:
          $ref: "#/components/schemas/ListToolboxAssetsItem"
        licence:
          type: string
          enum:
            - free
            - purchased
            - own
        purchase:
          $ref: "#/components/schemas/ListToolboxLibraryItemPurchase"
        lastUsedAt:
          type: string
          nullable: true
      required:
        - asset
        - licence
      additionalProperties: false
    ListToolboxLibraryItemPurchase:
      type: object
      properties:
        id:
          type: string
        paidAt:
          type: string
          nullable: true
      required:
        - id
      additionalProperties: false
      nullable: true
    ListToolboxLibraryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListToolboxLibraryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListToolboxMineItem:
      type: object
      properties:
        status:
          type: string
        latestVersion:
          $ref: "#/components/schemas/ListToolboxMineItemLatestVersion"
        earningsCents:
          type: number
          description: Author's credited total from creator_ledger (80% of net, after refunds).
        id:
          type: string
        kind:
          type: string
          enum:
            - package
            - image
            - model
            - script
            - sound
            - animation
        name:
          type: string
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        priceCents:
          type: number
        author:
          $ref: "#/components/schemas/ListWorldTransferRequestsItemFrom"
        installs:
          type: number
        rating:
          $ref: "#/components/schemas/AverageCount"
        thumbnailUrl:
          type: string
          nullable: true
        version:
          type: number
          description: Live version number (0 while the first is in review).
        updatedAt:
          type: string
        owned:
          type: boolean
          description: "May the viewer insert it: free, theirs, or licensed."
      required:
        - status
        - earningsCents
        - id
        - kind
        - name
        - description
        - tags
        - priceCents
        - author
        - installs
        - rating
        - version
        - updatedAt
        - owned
      additionalProperties: false
    ListToolboxMineItemLatestVersion:
      type: object
      properties:
        number:
          type: number
        reviewState:
          type: string
        reviewNote:
          type: string
          nullable: true
      required:
        - number
        - reviewState
      additionalProperties: false
      nullable: true
    ListToolboxMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListToolboxMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListToolboxSalesItem:
      type: object
      properties:
        purchaseId:
          type: string
        asset:
          $ref: "#/components/schemas/IdName"
        grossCents:
          type: number
        netCents:
          type: number
        authorCents:
          type: number
        status:
          type: string
          enum:
            - expired
            - cancelled
            - open
            - refunded
            - paid
            - revoked
            - paying
        paidAt:
          type: string
          nullable: true
      required:
        - purchaseId
        - asset
        - grossCents
        - netCents
        - authorCents
        - status
      additionalProperties: false
    ListToolboxSalesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListToolboxSalesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVariationGroupsItem:
      type: object
      properties:
        members:
          type: array
          items:
            $ref: "#/components/schemas/CreateVariationGroupResponseDataMembers"
        rollup:
          $ref: "#/components/schemas/CreateVariationGroupResponseDataRollup"
        id:
          type: string
        title:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - bundle
            - variation
            - group
          nullable: true
      required:
        - members
        - rollup
        - id
      additionalProperties: false
    ListVariationGroupsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVariationGroupsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketAccountsItem:
      type: object
      properties:
        accountId:
          type: string
        kind:
          type: string
          enum:
            - individual
            - subaccount
        label:
          type: string
        entityId:
          type: string
          nullable: true
        subaccountId:
          type: string
          nullable: true
        role:
          type: string
          enum:
            - viewer
            - trader
            - admin
            - risk
            - ops
          nullable: true
      required:
        - accountId
        - kind
        - label
      additionalProperties: false
    ListVaultMarketAccountsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketAccountsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketAdlEventsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - cash
            - unit
          description: "'unit' = closed at the bankruptcy price against an opposite position; 'cash' = a settlement-time loss covered from a profit."
        bookKey:
          type: string
        role:
          type: string
          enum:
            - bankrupt
            - counterparty
          description: "'bankrupt' = your position went under water; 'counterparty' = yours was first in line."
        side:
          type: string
          enum:
            - short
            - long
        positionId:
          type: string
        priceCents:
          type: number
        units:
          type: number
        cents:
          type: number
        markCents:
          type: number
        status:
          type: string
        createdAt:
          type: string
        settledAt:
          type: string
          nullable: true
      required:
        - id
        - kind
        - bookKey
        - role
        - side
        - positionId
        - priceCents
        - units
        - cents
        - markCents
        - status
        - createdAt
      additionalProperties: false
    ListVaultMarketAdlEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketAdlEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketAdlPositionsItem:
      type: object
      properties:
        positionId:
          type: string
        bookKey:
          type: string
        kind:
          type: string
          enum:
            - short
            - long
        status:
          type: string
        lights:
          type: number
          description: 5 = first in line, 1 = last, 0 = not in the queue (not in profit, or no mark).
        rank:
          type: number
          nullable: true
          description: 1 = first in line; null when not in the queue.
        of:
          type: number
          description: How many positions are in this key's queue on this side.
        pnlBps:
          type: number
          nullable: true
        effLeverageX100:
          type: number
          nullable: true
        markCents:
          type: number
          nullable: true
        text:
          type: string
      required:
        - positionId
        - bookKey
        - kind
        - status
        - lights
        - of
        - text
      additionalProperties: false
    ListVaultMarketAdlPositionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketAdlPositionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketAgentDraftsItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        title:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        limitCents:
          type: number
        notionalCents:
          type: number
        funding:
          type: string
          enum:
            - vault
            - card
            - custodian
        cardLabel:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        bestBidCents:
          type: number
          nullable: true
        bestAskCents:
          type: number
          nullable: true
        marketable:
          type: boolean
          description: Fills at once at up to the limit (a buy at or over the lowest ask, a sell at or under the best bid).
        status:
          type: string
          enum:
            - expired
            - cancelled
            - drafted
            - rejected
            - placing
            - placed
        orderId:
          type: string
          nullable: true
        rejectReason:
          type: string
          nullable: true
        expiresAt:
          type: string
        notes:
          type: array
          items:
            type: string
        marketHref:
          type: string
        orderBody:
          $ref: "#/components/schemas/ListVaultMarketAgentDraftsItemOrderBody"
        completeWith:
          type: string
      required:
        - id
        - bookKey
        - title
        - side
        - quantity
        - limitCents
        - notionalCents
        - funding
        - marketable
        - status
        - expiresAt
        - notes
        - marketHref
        - orderBody
        - completeWith
      additionalProperties: false
    ListVaultMarketAgentDraftsItemOrderBody:
      type: object
      properties:
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
        tif:
          type: string
        quantity:
          type: number
        limitCents:
          type: number
        funding:
          type: string
          enum:
            - card
            - custodian
          nullable: true
        stripePaymentMethodId:
          type: string
          nullable: true
        clientOrderId:
          type: string
      required:
        - bookKey
        - side
        - type
        - tif
        - quantity
        - limitCents
        - clientOrderId
      additionalProperties: false
    ListVaultMarketAgentDraftsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketAgentDraftsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketAgentWatchesItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        label:
          type: string
          nullable: true
        metric:
          type: string
          enum:
            - ask
            - last
            - mark
            - bid
        direction:
          type: string
          enum:
            - above
            - below
        thresholdCents:
          type: number
        lastCents:
          type: number
          nullable: true
        status:
          type: string
          enum:
            - expired
            - live
            - cancelled
            - fired
        firedAt:
          type: string
          nullable: true
        firedCents:
          type: number
          nullable: true
        sessionId:
          type: string
          nullable: true
        createdAt:
          type: string
        expiresAt:
          type: string
      required:
        - id
        - bookKey
        - metric
        - direction
        - thresholdCents
        - status
        - createdAt
        - expiresAt
      additionalProperties: false
    ListVaultMarketAgentWatchesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketAgentWatchesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketAlertLogItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - fill
            - account
            - price
            - auction
            - follow
            - prediction
            - option_expiry
            - margin_call
            - adl
            - p2p_loan
            - market_open
            - receipt_token
            - set_goal
            - share_offering
            - share_vote
            - option_settlement
            - prediction_odds
        label:
          type: string
        title:
          type: string
        body:
          type: string
          nullable: true
        href:
          type: string
          nullable: true
        sent:
          type: array
          items:
            type: string
        held:
          type: array
          items:
            type: string
        emailState:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - kind
        - label
        - title
        - sent
        - held
        - createdAt
      additionalProperties: false
    ListVaultMarketAlertLogResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketAlertLogItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketAlertsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        thresholdCents:
          type: number
        bookKey:
          type: string
        direction:
          type: string
        firedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - thresholdCents
        - bookKey
        - direction
      additionalProperties: false
    ListVaultMarketAlertsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketAlertsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketAuctionsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - weekly
            - premier
        title:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
        biddingOpen:
          type: boolean
        lots:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketAuctionsItemLots"
      required:
        - id
        - kind
        - title
        - startsAt
        - endsAt
        - status
        - biddingOpen
        - lots
      additionalProperties: false
    ListVaultMarketAuctionsItemLots:
      type: object
      properties:
        id:
          type: string
        lotNumber:
          type: number
        status:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        priceCents:
          type: number
          nullable: true
        bidCount:
          type: number
        endsAt:
          type: string
        hasReserve:
          type: boolean
        featuredStreamId:
          type: string
          nullable: true
      required:
        - id
        - lotNumber
        - status
        - bookKey
        - bidCount
        - endsAt
        - hasReserve
      additionalProperties: false
    ListVaultMarketAuctionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketAuctionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketBlocksItem:
      type: object
      properties:
        orderId:
          type: string
        entityId:
          type: string
        status:
          type: string
        note:
          type: string
          nullable: true
        fixAllocId:
          type: string
          nullable: true
        order:
          $ref: "#/components/schemas/ListVaultMarketBlocksItemOrder"
        lines:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketBlocksItemLines"
        createdAt:
          type: string
        allocatedAt:
          type: string
          nullable: true
        method:
          type: string
      required:
        - orderId
        - entityId
        - status
        - lines
        - createdAt
        - method
      additionalProperties: false
    ListVaultMarketBlocksItemLines:
      type: object
      properties:
        subaccountId:
          type: string
        accountId:
          type: string
        lead:
          type: boolean
        plannedQuantity:
          type: number
        allocatedQuantity:
          type: number
          nullable: true
        avgPriceCents:
          type: number
          nullable: true
        cashCents:
          type: number
          nullable: true
        status:
          type: string
        error:
          type: string
          nullable: true
        allocatedAt:
          type: string
          nullable: true
      required:
        - subaccountId
        - accountId
        - lead
        - plannedQuantity
        - status
      additionalProperties: false
    ListVaultMarketBlocksItemOrder:
      type: object
      properties:
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        filledQuantity:
          type: number
        avgFillCents:
          type: number
          nullable: true
        status:
          type: string
        limitCents:
          type: number
          nullable: true
      required:
        - bookKey
        - side
        - quantity
        - filledQuantity
        - status
      additionalProperties: false
      nullable: true
    ListVaultMarketBlocksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketBlocksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketBullionFamilyPegsItem:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        condition:
          type: string
        side:
          type: string
        quantity:
          type: number
        filled:
          type: number
        remaining:
          type: number
        kind:
          type: string
        premiumCents:
          type: number
          nullable: true
        premiumBps:
          type: number
          nullable: true
        floorCents:
          type: number
          nullable: true
        capCents:
          type: number
          nullable: true
        peg:
          type: string
        funding:
          type: string
        status:
          type: string
        stoppedReason:
          type: string
          nullable: true
        note:
          type: string
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketBullionPegsItem"
        resting:
          type: number
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - slug
        - condition
        - side
        - quantity
        - filled
        - remaining
        - kind
        - peg
        - funding
        - status
        - note
        - legs
        - resting
        - createdAt
        - updatedAt
      additionalProperties: false
    ListVaultMarketBullionFamilyPegsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketBullionFamilyPegsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketBullionKeysItem:
      type: object
      properties:
        slug:
          type: string
        label:
          type: string
        metal:
          type: string
          enum:
            - gold
            - silver
            - platinum
            - palladium
        form:
          type: string
        size:
          type: string
        sizeLabel:
          type: string
        mint:
          type: string
          nullable: true
        fineMg:
          type: number
        members:
          type: number
        vaultUnits:
          type: number
          description: Units stored or listed in the vault across the family's books.
        bestBidCents:
          type: number
          nullable: true
          description: Best resting prices across the family's books (a pegged order on stale spot is left out).
        bestAskCents:
          type: number
          nullable: true
        meltReferenceCents:
          type: number
          nullable: true
          description: "What one unit's metal is worth at spot: a reference, not a price."
        spot:
          $ref: "#/components/schemas/GetVaultMarketBullionForResponseSpot"
      required:
        - slug
        - label
        - metal
        - form
        - size
        - sizeLabel
        - fineMg
        - members
        - vaultUnits
      additionalProperties: false
    ListVaultMarketBullionKeysResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketBullionKeysItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketBullionPegsItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        side:
          type: string
        quantity:
          type: number
        filled:
          type: number
        kind:
          type: string
        premiumCents:
          type: number
          nullable: true
        premiumBps:
          type: number
          nullable: true
        floorCents:
          type: number
          nullable: true
        capCents:
          type: number
          nullable: true
        peg:
          type: string
        funding:
          type: string
        orderId:
          type: string
          nullable: true
        status:
          type: string
        pulledReason:
          type: string
          nullable: true
        lastPriceCents:
          type: number
          nullable: true
        lastSpotCents:
          type: number
          nullable: true
        pricedAt:
          type: string
          nullable: true
        familyPegId:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - bookKey
        - side
        - quantity
        - filled
        - kind
        - peg
        - funding
        - status
        - createdAt
        - updatedAt
      additionalProperties: false
    ListVaultMarketBullionPegsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketBullionPegsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketCollectionWorthItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        skuId:
          type: string
          nullable: true
        variantId:
          type: string
          nullable: true
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        bookKey:
          type: string
          nullable: true
        mark:
          $ref: "#/components/schemas/GetVaultMarketValueResponseKeysMark"
        watching:
          type: boolean
        depositable:
          type: boolean
      required:
        - id
        - title
        - condition
        - mark
        - watching
        - depositable
      additionalProperties: false
    ListVaultMarketCollectionWorthResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketCollectionWorthItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketConfirmationsItem:
      type: object
      properties:
        tradeId:
          type: string
        at:
          type: string
        bookKey:
          type: string
        title:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        priceCents:
          type: number
        feeCents:
          type: number
        netCents:
          type: number
        liquidity:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        vaultItemId:
          type: string
          nullable: true
        receiptNo:
          type: string
          nullable: true
        status:
          type: string
        venue:
          type: string
      required:
        - tradeId
        - at
        - bookKey
        - title
        - side
        - priceCents
        - feeCents
        - netCents
        - status
        - venue
      additionalProperties: false
    ListVaultMarketConfirmationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketConfirmationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketCreatorCohostInvitesItem:
      type: object
      properties:
        key:
          $ref: "#/components/schemas/ListVaultMarketCreatorCohostInvitesItemKey"
        guidance:
          type: string
        id:
          type: string
        keyId:
          type: string
        roomId:
          type: string
        status:
          type: string
          enum:
            - accepted
            - declined
            - withdrawn
            - invited
        note:
          type: string
          nullable: true
        invitedAt:
          type: string
        respondedAt:
          type: string
          nullable: true
        onShow:
          type: boolean
      required:
        - key
        - guidance
        - id
        - keyId
        - roomId
        - status
        - invitedAt
        - onShow
      additionalProperties: false
    ListVaultMarketCreatorCohostInvitesItemKey:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        title:
          type: string
        status:
          type: string
          enum:
            - live
            - cancelled
            - opening
            - planned
            - inviting
        bookKey:
          type: string
        opensAt:
          type: string
          nullable: true
        liveStreamId:
          type: string
          nullable: true
        openingHref:
          type: string
        showHref:
          type: string
          nullable: true
      required:
        - id
        - slug
        - title
        - status
        - bookKey
        - openingHref
      additionalProperties: false
    ListVaultMarketCreatorCohostInvitesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketCreatorCohostInvitesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketCreditItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - loan
            - advance
        status:
          type: string
        closeReason:
          type: string
          nullable: true
        principalCents:
          type: number
        outstandingCents:
          type: number
        interestAccruedCents:
          type: number
        interestPaidCents:
          type: number
        owedCents:
          type: number
        aprBps:
          type: number
          nullable: true
        poolAprBps:
          type: number
          nullable: true
        memberDiscountBps:
          type: number
        collateralCents:
          type: number
        ltvBps:
          type: number
        maxLtvBps:
          type: number
        liquidationLtvBps:
          type: number
        liquidationAtCents:
          type: number
          nullable: true
          description: Below this collateral value the loan is called.
        calledAt:
          type: string
          nullable: true
        callReason:
          type: string
          nullable: true
        sellFromAt:
          type: string
          nullable: true
        interestFreeUntil:
          type: string
          nullable: true
        dueAt:
          type: string
          nullable: true
        shortfallCents:
          type: number
        writedownCents:
          type: number
          description: A loss recognised while a sell-off rests on its floor unsold (0 otherwise).
        openedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        units:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketCreditResponseUnits"
      required:
        - id
        - kind
        - status
        - principalCents
        - outstandingCents
        - interestAccruedCents
        - interestPaidCents
        - owedCents
        - memberDiscountBps
        - collateralCents
        - ltvBps
        - maxLtvBps
        - liquidationLtvBps
        - shortfallCents
        - writedownCents
        - createdAt
        - units
      additionalProperties: false
    ListVaultMarketCreditResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketCreditItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketDealerBandsItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        bandBps:
          type: number
        units:
          type: number
        maxPriceCents:
          type: number
        funding:
          type: string
        orderId:
          type: string
          nullable: true
        active:
          type: boolean
        state:
          type: string
        stateReason:
          type: string
          nullable: true
        checkedAt:
          type: string
          nullable: true
      required:
        - id
        - bookKey
        - bandBps
        - units
        - maxPriceCents
        - funding
        - active
        - state
      additionalProperties: false
    ListVaultMarketDealerBandsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerBandsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketDealerBidsItem:
      type: object
      properties:
        dealerBid:
          type: boolean
        bandId:
          type: string
          nullable: true
        id:
          type: string
        clientOrderId:
          type: string
          nullable: true
        source:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
          enum:
            - limit
            - market
            - stop
            - stop_limit
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
            - fok
        postOnly:
          type: boolean
        quantity:
          type: number
        filledQuantity:
          type: number
        avgFillCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        stopCents:
          type: number
          nullable: true
        displayQuantity:
          type: number
          nullable: true
        algo:
          type: string
          enum:
            - twap
            - vwap
          nullable: true
        algoEndsAt:
          type: string
          nullable: true
        funding:
          type: string
        status:
          type: string
        rejectReason:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        holderAccountId:
          type: string
          nullable: true
          description: The firm sub-account's holder account it is booked to (null = your own account).
      required:
        - dealerBid
        - id
        - source
        - bookKey
        - side
        - type
        - tif
        - postOnly
        - quantity
        - filledQuantity
        - funding
        - status
        - createdAt
        - updatedAt
      additionalProperties: false
    ListVaultMarketDealerBidsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerBidsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketDealerPoolFillsItem:
      type: object
      properties:
        orderId:
          type: string
        side:
          type: string
        priceCents:
          type: number
        spotAfterCents:
          type: number
          nullable: true
        at:
          type: string
      required:
        - orderId
        - side
        - priceCents
        - at
      additionalProperties: false
    ListVaultMarketDealerPoolFillsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerPoolFillsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketDealerPoolsItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        kind:
          type: string
        delta:
          type: number
        feeBps:
          type: number
        spotCents:
          type: number
        startSpotCents:
          type: number
        depth:
          type: number
        units:
          type: number
        cashCents:
          type: number
        minPriceCents:
          type: number
          nullable: true
        maxPriceCents:
          type: number
          nullable: true
        unitsBought:
          type: number
        unitsSold:
          type: number
        boughtCents:
          type: number
        soldCents:
          type: number
        valueCents:
          type: number
        status:
          type: string
        state:
          type: string
        stateReason:
          type: string
          nullable: true
        recycleProceeds:
          type: boolean
        recycle:
          $ref: "#/components/schemas/ListVaultMarketDealerPoolsItemRecycle"
        opsPause:
          $ref: "#/components/schemas/ListVaultMarketDealerPoolsItemOpsPause"
        ladder:
          $ref: "#/components/schemas/ListVaultMarketDealerPoolsItemLadder"
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerPoolsItemLegs"
        checkedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        closedAt:
          type: string
          nullable: true
      required:
        - id
        - bookKey
        - kind
        - delta
        - feeBps
        - spotCents
        - startSpotCents
        - depth
        - units
        - cashCents
        - unitsBought
        - unitsSold
        - boughtCents
        - soldCents
        - valueCents
        - status
        - state
        - recycleProceeds
        - recycle
        - ladder
        - legs
        - createdAt
      additionalProperties: false
    ListVaultMarketDealerPoolsItemLadder:
      type: object
      properties:
        bids:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerPoolsItemLadderBids"
        asks:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerPoolsItemLadderBids"
        bidLimit:
          type: string
          enum:
            - floor
            - ceiling
            - no_units
            - no_cash
            - curve_end
          nullable: true
        askLimit:
          type: string
          enum:
            - floor
            - ceiling
            - no_units
            - no_cash
            - curve_end
          nullable: true
      required:
        - bids
        - asks
      additionalProperties: false
    ListVaultMarketDealerPoolsItemLadderBids:
      type: object
      properties:
        side:
          type: string
          enum:
            - ask
            - bid
        level:
          type: number
          description: 0 = nearest the spot.
        priceCents:
          type: number
        spotAfterCents:
          type: number
          description: Spot once this level fills.
      required:
        - side
        - level
        - priceCents
        - spotAfterCents
      additionalProperties: false
    ListVaultMarketDealerPoolsItemLegs:
      type: object
      properties:
        orderId:
          type: string
        side:
          type: string
        level:
          type: number
        priceCents:
          type: number
        createdAt:
          type: string
      required:
        - orderId
        - side
        - level
        - priceCents
        - createdAt
      additionalProperties: false
    ListVaultMarketDealerPoolsItemOpsPause:
      type: object
      properties:
        at:
          type: string
        reason:
          type: string
          nullable: true
      required:
        - at
      additionalProperties: false
      nullable: true
    ListVaultMarketDealerPoolsItemRecycle:
      type: object
      properties:
        recycledCents:
          type: number
        pendingCents:
          type: number
        problems:
          type: number
      required:
        - recycledCents
        - pendingCents
        - problems
      additionalProperties: false
    ListVaultMarketDealerPoolsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDealerPoolsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketDigestHistoryItem:
      type: object
      properties:
        week:
          type: string
        status:
          type: string
        channels:
          type: array
          items:
            type: string
        summary:
          type: object
          nullable: true
          additionalProperties: {}
        createdAt:
          type: string
          format: date-time
      required:
        - week
        - status
        - channels
        - createdAt
      additionalProperties: false
    ListVaultMarketDigestHistoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketDigestHistoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketEntityAuditItem:
      type: object
      properties:
        seq:
          type: number
        prevHash:
          type: string
        hash:
          type: string
        at:
          type: string
        kind:
          type: string
        actorUserId:
          type: string
          nullable: true
        accountId:
          type: string
          nullable: true
        entityId:
          type: string
          nullable: true
        apiKeyId:
          type: string
          nullable: true
        ip:
          type: string
          nullable: true
        sessionId:
          type: string
          nullable: true
        source:
          type: string
        refType:
          type: string
          nullable: true
        refId:
          type: string
          nullable: true
        detail:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - seq
        - prevHash
        - hash
        - at
        - kind
        - source
      additionalProperties: false
    ListVaultMarketEntityAuditResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketEntityAuditItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketEntityConversionsItem:
      type: object
      properties:
        rewardInstructionId:
          type: string
        status:
          type: string
        cents:
          type: number
        account:
          type: string
        createdAt:
          type: string
      required:
        - rewardInstructionId
        - status
        - cents
        - account
        - createdAt
      additionalProperties: false
    ListVaultMarketEntityConversionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketEntityConversionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketEstimatesAccuracyItem:
      type: object
      properties:
        method:
          type: string
        categorySlug:
          type: string
        liquidityBucket:
          type: string
        n:
          type: number
        fsd:
          type: number
          nullable: true
        bias:
          type: number
          nullable: true
        shown:
          type: boolean
        computedAt:
          type: string
      required:
        - method
        - categorySlug
        - liquidityBucket
        - n
        - shown
        - computedAt
      additionalProperties: false
    ListVaultMarketEstimatesAccuracyResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketEstimatesAccuracyItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketFeedItem:
      type: object
      properties:
        id:
          type: string
        at:
          type: string
        by:
          $ref: "#/components/schemas/ListVaultMarketFeedItemBy"
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        mark:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemMark"
        buyHref:
          type: string
      required:
        - id
        - at
        - by
        - bookKey
        - mark
        - buyHref
      additionalProperties: false
    ListVaultMarketFeedResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketFeedItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketFollowCopyWatchAlertsItem:
      type: object
      properties:
        id:
          type: string
        by:
          $ref: "#/components/schemas/ListVaultMarketFollowCopyWatchAlertsItemBy"
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        limitCents:
          type: number
          nullable: true
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        placedAt:
          type: string
        at:
          type: string
        read:
          type: boolean
        stillResting:
          type: boolean
        marketHref:
          type: string
      required:
        - id
        - by
        - side
        - quantity
        - bookKey
        - placedAt
        - at
        - read
        - stillResting
        - marketHref
      additionalProperties: false
    ListVaultMarketFollowCopyWatchAlertsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketFollowCopyWatchAlertsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketFollowCopyWatchItem:
      type: object
      properties:
        person:
          $ref: "#/components/schemas/ListVaultMarketFollowCopyWatchItemPerson"
        since:
          type: string
        active:
          type: boolean
      required:
        - person
        - since
        - active
      additionalProperties: false
    ListVaultMarketFollowCopyWatchResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketFollowCopyWatchItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketFollowFeedItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - sale
            - deposit
            - buy
            - hall_loan
        verb:
          type: string
        at:
          type: string
        by:
          $ref: "#/components/schemas/ListVaultMarketFollowFeedItemBy"
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        mark:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemMark"
        exhibition:
          $ref: "#/components/schemas/ListVaultMarketFollowFeedItemExhibition"
        buyHref:
          type: string
      required:
        - id
        - kind
        - verb
        - at
        - by
        - bookKey
        - mark
        - buyHref
      additionalProperties: false
    ListVaultMarketFollowFeedItemExhibition:
      type: object
      properties:
        key:
          type: string
        title:
          type: string
      required:
        - key
        - title
      additionalProperties: false
      nullable: true
    ListVaultMarketFollowFeedResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketFollowFeedItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketFollowFollowingItem:
      type: object
      properties:
        person:
          $ref: "#/components/schemas/ListVaultMarketFollowFollowingItemPerson"
        since:
          type: string
          nullable: true
        shares:
          $ref: "#/components/schemas/ListVaultMarketFollowFollowingItemShares"
        copyWatching:
          type: boolean
      required:
        - person
        - shares
        - copyWatching
      additionalProperties: false
    ListVaultMarketFollowFollowingItemShares:
      type: object
      properties:
        buys:
          type: boolean
        deposits:
          type: boolean
        sales:
          type: boolean
        hallLoans:
          type: boolean
        orders:
          type: boolean
      required:
        - buys
        - deposits
        - sales
        - hallLoans
        - orders
      additionalProperties: false
    ListVaultMarketFollowFollowingResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketFollowFollowingItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketFollowLeaderboardsItem:
      type: object
      properties:
        rank:
          type: number
        person:
          $ref: "#/components/schemas/ListVaultMarketFollowLeaderboardsItemPerson"
        returnBps:
          type: number
        volatilityBps:
          type: number
        riskAdjusted:
          type: number
        maxDrawdownBps:
          type: number
        days:
          type: number
        markets:
          type: number
        isMe:
          type: boolean
      required:
        - rank
        - person
        - returnBps
        - volatilityBps
        - riskAdjusted
        - maxDrawdownBps
        - days
        - markets
        - isMe
      additionalProperties: false
    ListVaultMarketFollowLeaderboardsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketFollowLeaderboardsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketGiftsItem:
      type: object
      properties:
        id:
          type: string
        direction:
          type: string
          enum:
            - sent
            - received
        status:
          type: string
        vaultItemId:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        note:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        decidedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - direction
        - status
        - vaultItemId
        - createdAt
      additionalProperties: false
    ListVaultMarketGiftsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketGiftsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketGradeToVaultItem:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
          enum:
            - inventory
            - vault_unit
        step:
          type: string
          enum:
            - grading
            - listed
            - ended
            - picked
            - in_vault
        stepLabel:
          type: string
        nextAction:
          type: string
          enum:
            - none
            - book
            - ship_to_hub
            - wait_for_grade
            - confirm_price
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        vaultItemId:
          type: string
          nullable: true
        submissionId:
          type: string
          nullable: true
        runId:
          type: string
          nullable: true
        declaredValueCents:
          type: number
          nullable: true
        targetPriceCents:
          type: number
          nullable: true
        prescreen:
          type: boolean
        missMode:
          type: string
        submission:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemSubmission"
        unit:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemUnit"
        gradeKey:
          type: string
          nullable: true
        market:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemMarket"
        ask:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemAsk"
        listedPriceCents:
          type: number
          nullable: true
        priceConfirmedAt:
          type: string
          nullable: true
        endReason:
          type: string
          nullable: true
        endReasonText:
          type: string
          nullable: true
        lastError:
          type: string
          nullable: true
        evidence:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemEvidence"
        gates:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGates"
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - source
        - step
        - stepLabel
        - nextAction
        - prescreen
        - missMode
        - gates
        - createdAt
        - updatedAt
      additionalProperties: false
    ListVaultMarketGradeToVaultItemAsk:
      type: object
      properties:
        id:
          type: string
        priceCents:
          type: number
        status:
          type: string
      required:
        - id
        - priceCents
        - status
      additionalProperties: false
      nullable: true
    ListVaultMarketGradeToVaultItemEvidence:
      type: object
      properties:
        scans:
          type: number
        grades:
          type: number
        verifiedGrade:
          type: boolean
      required:
        - scans
        - grades
        - verifiedGrade
      additionalProperties: false
      nullable: true
    ListVaultMarketGradeToVaultItemGates:
      type: object
      properties:
        gradingRuns:
          $ref: "#/components/schemas/ListVaultMarketGradeToVaultItemGatesGradingRuns"
      required:
        - gradingRuns
      additionalProperties: false
    ListVaultMarketGradeToVaultItemGatesGradingRuns:
      type: object
      properties:
        open:
          type: boolean
        missing:
          type: array
          items:
            type: string
      required:
        - open
        - missing
      additionalProperties: false
    ListVaultMarketGradeToVaultItemMarket:
      type: object
      properties:
        markCents:
          type: number
          nullable: true
        bestBidCents:
          type: number
          nullable: true
        notes:
          type: array
          items:
            type: string
      required:
        - notes
      additionalProperties: false
      nullable: true
      description: "From the book only: the mark and the best bid for the unit's grade."
    ListVaultMarketGradeToVaultItemSubmission:
      type: object
      properties:
        status:
          type: string
        graderSlug:
          type: string
        graderName:
          type: string
        tierSlug:
          type: string
          nullable: true
        inboundLabelUrl:
          type: string
          nullable: true
        inboundTracking:
          type: string
          nullable: true
        chargedCents:
          type: number
        runCutoffAt:
          type: string
          nullable: true
      required:
        - status
        - graderSlug
        - graderName
        - chargedCents
      additionalProperties: false
      nullable: true
    ListVaultMarketGradeToVaultItemUnit:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        gradeKey:
          type: string
          nullable: true
        bookKey:
          type: string
          nullable: true
      required:
        - id
        - status
      additionalProperties: false
      nullable: true
    ListVaultMarketGradeToVaultResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketGradeToVaultItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketGradingCandidatesItem:
      type: object
      properties:
        source:
          type: string
        id:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        declaredValueCents:
          type: number
          nullable: true
        eligible:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - source
        - id
        - eligible
    ListVaultMarketGradingCandidatesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketGradingCandidatesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketGradingItem:
      type: object
      properties:
        id:
          type: string
        vaultItemId:
          type: string
        submissionId:
          type: string
        status:
          type: string
          enum:
            - active
            - graded
            - returned
        submissionStatus:
          type: string
        graderSlug:
          type: string
        tierSlug:
          type: string
          nullable: true
        runId:
          type: string
          nullable: true
        chargedCents:
          type: number
        gradeKey:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        createdAt:
          type: string
        closedAt:
          type: string
          nullable: true
      required:
        - id
        - vaultItemId
        - submissionId
        - status
        - submissionStatus
        - graderSlug
        - chargedCents
        - createdAt
      additionalProperties: false
    ListVaultMarketGradingOrdersItem:
      type: object
      properties:
        id:
          type: string
        number:
          type: string
        status:
          type: string
          enum:
            - draft
            - grading
            - cancelled
            - paid
            - received
            - graded
            - returned
            - shipped_to_grader
        statusLabel:
          type: string
        graderSlug:
          type: string
        graderName:
          type: string
        tierSlug:
          type: string
        tierName:
          type: string
        cardCount:
          type: number
        gradedCount:
          type: number
        totalCents:
          type: number
        paidCents:
          type: number
        thumbnails:
          type: array
          items:
            type: string
          description: Up to four card pictures, the contents at a glance.
        titles:
          type: array
          items:
            type: string
          description: Up to three card names.
        createdAt:
          type: string
        paidAt:
          type: string
          nullable: true
        updatedAt:
          type: string
      required:
        - id
        - number
        - status
        - statusLabel
        - graderSlug
        - graderName
        - tierSlug
        - tierName
        - cardCount
        - gradedCount
        - totalCents
        - paidCents
        - thumbnails
        - titles
        - createdAt
        - updatedAt
      additionalProperties: false
    ListVaultMarketGradingOrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketGradingOrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketGradingResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketGradingItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketHallLendersItem:
      type: object
      properties:
        skuId:
          type: string
        name:
          type: string
        imageUrl:
          type: string
        grade:
          type: string
          nullable: true
        lender:
          type: string
        plate:
          type: array
          items:
            type: string
        exhibitions:
          type: number
      required:
        - skuId
        - name
        - imageUrl
        - lender
        - plate
        - exhibitions
      additionalProperties: false
    ListVaultMarketHallLendersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketHallLendersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketHoldingsItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        situation:
          type: string
          description: What is really going on (lent, pledged, in_grading…), else the status.
        past:
          type: boolean
        source:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        variantLabel:
          type: string
          nullable: true
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        bookKey:
          type: string
          nullable: true
        location:
          type: string
          nullable: true
        valueCents:
          type: number
          nullable: true
        valueSource:
          type: string
          enum:
            - none
            - last_sale
            - mark
            - declared
        markCents:
          type: number
          nullable: true
        lastSaleCents:
          type: number
          nullable: true
        declaredValueCents:
          type: number
          nullable: true
        insuredValueCents:
          type: number
          nullable: true
        storageAccruedCents:
          type: number
        askPriceCents:
          type: number
          nullable: true
        earlyWithdrawFeeCents:
          type: number
        withdrawSpeed:
          type: string
          nullable: true
        withdrawTracking:
          type: string
          nullable: true
        receivedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        deposit:
          $ref: "#/components/schemas/ListVaultMarketHoldingsItemDeposit"
        inventoryItemId:
          type: string
          nullable: true
          description: "The seller's inventory item for this unit (p5-13: a holding opens its item page): the one it was sent in from,\r

            else the one it got when it was bought on the book (migration 1496). 1496 backfilled older units."
        actions:
          $ref: "#/components/schemas/ListVaultMarketHoldingsItemActions"
      required:
        - id
        - status
        - situation
        - past
        - source
        - condition
        - valueSource
        - storageAccruedCents
        - earlyWithdrawFeeCents
        - createdAt
        - updatedAt
        - actions
      additionalProperties: false
    ListVaultMarketHoldingsItemActions:
      type: object
      properties:
        canList:
          type: boolean
        canUnlist:
          type: boolean
        canWithdraw:
          type: boolean
        canToggle:
          type: boolean
      required:
        - canList
        - canUnlist
        - canWithdraw
        - canToggle
      additionalProperties: false
    ListVaultMarketHoldingsItemDeposit:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        autoListBps:
          type: number
          nullable: true
        lendWhenIdle:
          type: boolean
        batchId:
          type: string
          nullable: true
        setupNote:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
      required:
        - id
        - status
        - lendWhenIdle
      additionalProperties: false
      nullable: true
    ListVaultMarketHoldingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketHoldingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketIndexCommitteeMinutesItem:
      type: object
      properties:
        id:
          type: string
        meetingAt:
          type: string
        kind:
          type: string
          enum:
            - quarterly
            - ad_hoc
            - annual_review
        quorum:
          type: boolean
        attendees:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexCommitteeMinutesItemAttendees"
        agenda:
          type: string
          nullable: true
        minutes:
          type: string
        decisions:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexCommitteeMinutesItemDecisions"
        cycleId:
          type: string
          nullable: true
        publishedAt:
          type: string
          nullable: true
      required:
        - id
        - meetingAt
        - kind
        - quorum
        - attendees
        - minutes
        - decisions
      additionalProperties: false
    ListVaultMarketIndexCommitteeMinutesItemAttendees:
      type: object
      properties:
        userId:
          type: string
          nullable: true
        name:
          type: string
        role:
          type: string
        independent:
          type: boolean
      required:
        - name
        - role
        - independent
      additionalProperties: false
    ListVaultMarketIndexCommitteeMinutesItemDecisions:
      type: object
      properties:
        decision:
          type: string
        vote:
          type: string
          nullable: true
      required:
        - decision
      additionalProperties: false
    ListVaultMarketIndexCommitteeMinutesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexCommitteeMinutesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketIndexComplaintsItem:
      type: object
      properties:
        id:
          type: string
        index:
          type: string
          nullable: true
        subject:
          type: string
        body:
          type: string
        status:
          type: string
          enum:
            - open
            - closed
            - answered
        response:
          type: string
          nullable: true
        respondedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - subject
        - body
        - status
        - createdAt
      additionalProperties: false
    ListVaultMarketIndexComplaintsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexComplaintsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketIndexConsultationsItem:
      type: object
      properties:
        comments:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexConsultationsItemComments"
          nullable: true
        id:
          type: string
        title:
          type: string
        summary:
          type: string
        proposal:
          type: string
        fromVersion:
          type: string
        toVersion:
          type: string
        opensAt:
          type: string
        closesAt:
          type: string
        status:
          type: string
          enum:
            - open
            - closed
            - withdrawn
            - adopted
        outcome:
          type: string
          nullable: true
        decidedAt:
          type: string
          nullable: true
      required:
        - id
        - title
        - summary
        - proposal
        - fromVersion
        - toVersion
        - opensAt
        - closesAt
        - status
      additionalProperties: false
    ListVaultMarketIndexConsultationsItemComments:
      type: object
      properties:
        body:
          type: string
        at:
          type: string
      required:
        - body
        - at
      additionalProperties: false
    ListVaultMarketIndexConsultationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexConsultationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketIndexEventsItem:
      type: object
      properties:
        id:
          type: string
        index:
          type: string
          nullable: true
        indexName:
          type: string
          nullable: true
        kind:
          type: string
        announcedAt:
          type: string
        effectiveAt:
          type: string
        methodVersion:
          type: string
        reason:
          type: string
          nullable: true
      required:
        - id
        - kind
        - announcedAt
        - effectiveAt
        - methodVersion
      additionalProperties: false
    ListVaultMarketIndexEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketIndexJudgmentsItem:
      type: object
      properties:
        at:
          type: string
        id:
          type: string
        action:
          type: string
          enum:
            - method
            - resume
            - halt
            - exclude_key
            - void_trade
            - restate
            - retire
        slug:
          type: string
          nullable: true
        target:
          type: string
          nullable: true
        reason:
          type: string
        detail:
          type: object
          additionalProperties: {}
      required:
        - at
        - id
        - action
        - reason
        - detail
      additionalProperties: false
    ListVaultMarketIndexJudgmentsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexJudgmentsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketIndexLevelSeriesItem:
      type: object
      properties:
        day:
          type: string
        value:
          type: number
        keysPriced:
          type: number
        status:
          type: string
        methodVersion:
          type: string
        restated:
          type: boolean
        periodStart:
          type: string
        level:
          type: number
        logSe:
          type: number
          nullable: true
        band95:
          $ref: "#/components/schemas/ListVaultMarketIndexLevelSeriesItemOneOf1Band95"
        n:
          $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponseEnginesPublicationGate"
      required:
        - status
        - methodVersion
        - restated
    ListVaultMarketIndexLevelSeriesItemOneOf1Band95:
      type: object
      properties:
        low:
          type: number
        high:
          type: number
      required:
        - low
        - high
      additionalProperties: false
      nullable: true
    ListVaultMarketIndexLevelSeriesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexLevelSeriesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketIndexLicenceMineItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        indexSlugs:
          type: array
          items:
            type: string
          nullable: true
        since:
          type: string
      required:
        - id
        - name
        - since
      additionalProperties: false
    ListVaultMarketIndexLicenceMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexLicenceMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketIndexMembersItem:
      type: object
      properties:
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        prevCents:
          type: number
          nullable: true
        shares:
          type: number
          nullable: true
        weightBps:
          type: number
        returnBps:
          type: number
          nullable: true
        contributionBps:
          type: number
        effectiveFrom:
          type: string
          nullable: true
        effectiveTo:
          type: string
          nullable: true
        gradeKey:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - bookKey
        - weightBps
        - contributionBps
      additionalProperties: false
    ListVaultMarketIndexMembersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexMembersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketIndexesItem:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - custom
            - brand
            - category
            - segment
            - curated
            - composite
        weighting:
          type: string
          enum:
            - mark
            - equal
            - vault_cap
            - turnover
        label:
          type: string
        baseValue:
          type: number
        isPublic:
          type: boolean
        mine:
          type: boolean
        keys:
          type: number
        keysPriced:
          type: number
        value:
          type: number
          nullable: true
        changeBps:
          type: number
          nullable: true
        notice:
          type: string
          nullable: true
        lastClose:
          $ref: "#/components/schemas/GetVaultMarketIndexResponseLastClose"
        methodVersion:
          type: string
        inceptionDay:
          type: string
          nullable: true
        rebalancedAt:
          type: string
          nullable: true
        halted:
          type: boolean
        retiredAt:
          type: string
          nullable: true
      required:
        - slug
        - name
        - kind
        - weighting
        - label
        - baseValue
        - isPublic
        - mine
        - keys
        - keysPriced
        - methodVersion
        - halted
      additionalProperties: false
    ListVaultMarketIndexesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketIndexesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketInstantExitHistoryItem:
      type: object
      properties:
        key:
          $ref: "#/components/schemas/CreateVaultMarketMmLpResponseKey"
        createdAt:
          type: string
        id:
          type: string
        userId:
          type: string
        status:
          type: string
        orderId:
          type: string
          nullable: true
        vaultItemId:
          type: string
          nullable: true
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        quotedCents:
          type: number
        filledCents:
          type: number
          nullable: true
      required:
        - createdAt
        - id
        - userId
        - status
        - bookKey
        - quotedCents
      additionalProperties: false
    ListVaultMarketInstantExitHistoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketInstantExitHistoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketInstantExitHoldingsItem:
      type: object
      properties:
        unitsHeld:
          type: number
        sellableUnitIds:
          type: array
          items:
            type: string
        available:
          type: boolean
        reason:
          type: string
          nullable: true
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        bestBidCents:
          type: number
          nullable: true
        unitsAtBest:
          type: number
          description: Units bid at the best price (how many can go at once).
        shareOfMarkBps:
          type: number
          nullable: true
        dealerBid:
          type: boolean
          description: A verified dealer's standing bid is at the best price.
        committedDealers:
          type: number
          description: Dealers keeping an Instant Exit band on this key right now.
        levels:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketInstantExitResponseQuoteLevels"
        floorBps:
          type: number
          description: The lowest share of the mark this key's Instant Exit sells at (its tier's band).
      required:
        - unitsHeld
        - sellableUnitIds
        - available
        - bookKey
        - unitsAtBest
        - dealerBid
        - committedDealers
        - levels
        - floorBps
      additionalProperties: false
    ListVaultMarketInstantExitHoldingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketInstantExitHoldingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketJointTradesItem:
      type: object
      properties:
        id:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        bookKey:
          type: string
        quantity:
          type: number
        limitCents:
          type: number
        status:
          type: string
        refuseReason:
          type: string
          nullable: true
        orderId:
          type: string
          nullable: true
        orderStatus:
          type: string
          nullable: true
        filledQuantity:
          type: number
        avgFillCents:
          type: number
          nullable: true
        initiatorUserId:
          type: string
        ownerUserId:
          type: string
        createdAt:
          type: string
      required:
        - id
        - side
        - bookKey
        - quantity
        - limitCents
        - status
        - filledQuantity
        - initiatorUserId
        - ownerUserId
        - createdAt
      additionalProperties: false
    ListVaultMarketJointTradesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketJointTradesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketLargeTraderReportsItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        heldUnits:
          type: number
        sharePct:
          type: number
        notionalCents:
          type: number
          nullable: true
        status:
          type: string
        action:
          type: string
          enum:
            - none
            - file
            - amend
            - refile
        filedAt:
          type: string
          nullable: true
        filedVia:
          type: string
          nullable: true
        filing:
          type: object
          nullable: true
          additionalProperties: {}
        reviewedAt:
          type: string
          nullable: true
        firstFlaggedAt:
          type: string
        lastSeenAt:
          type: string
      required:
        - id
        - bookKey
        - heldUnits
        - sharePct
        - status
        - action
        - firstFlaggedAt
        - lastSeenAt
      additionalProperties: false
    ListVaultMarketLargeTraderReportsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketLargeTraderReportsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketLendingStatementsItem:
      type: object
      properties:
        day:
          type: string
        loans:
          type: number
        belowFloor:
          type: number
        minCoverageBps:
          type: number
          nullable: true
      required:
        - day
        - loans
        - belowFloor
      additionalProperties: false
    ListVaultMarketLendingStatementsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketLendingStatementsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketLoansItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        status:
          type: string
        aprBps:
          type: number
        markCentsAtOpen:
          type: number
        feesAccruedCents:
          type: string
        feesPaidCents:
          type: number
        recallDueAt:
          type: string
          format: date-time
          nullable: true
        openedAt:
          type: string
          format: date-time
        closedAt:
          type: string
          format: date-time
          nullable: true
        returnedVaultItemId:
          type: string
          nullable: true
      required:
        - id
        - bookKey
        - status
        - aprBps
        - markCentsAtOpen
        - feesAccruedCents
        - feesPaidCents
        - openedAt
      additionalProperties: false
    ListVaultMarketLoansResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketLoansItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketLocateMineItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        requested:
          type: number
        held:
          type: number
        termDays:
          type: number
          nullable: true
        aprBps:
          type: number
        status:
          type: string
        heldUntil:
          type: string
        collateral:
          $ref: "#/components/schemas/ListVaultMarketLocateMineItemCollateral"
        createdAt:
          type: string
      required:
        - id
        - bookKey
        - requested
        - held
        - aprBps
        - status
        - heldUntil
        - collateral
        - createdAt
      additionalProperties: false
    ListVaultMarketLocateMineItemCollateral:
      type: object
      properties:
        returnInKindUnits:
          type: number
        standardUnits:
          type: number
        standardBps:
          type: number
        returnInKindBps:
          type: number
      required:
        - returnInKindUnits
        - standardUnits
        - standardBps
        - returnInKindBps
      additionalProperties: false
    ListVaultMarketLocateMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketLocateMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketMidpointItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        minQuantity:
          type: number
        filledQuantity:
          type: number
        limitCents:
          type: number
          nullable: true
        funding:
          type: string
        status:
          type: string
        expiresAt:
          type: string
        createdAt:
          type: string
      required:
        - id
        - bookKey
        - side
        - quantity
        - minQuantity
        - filledQuantity
        - funding
        - status
        - expiresAt
        - createdAt
      additionalProperties: false
    ListVaultMarketMidpointResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketMidpointItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketMoversItem:
      type: object
      properties:
        bookKey:
          type: string
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        units:
          type: number
        markCents:
          type: number
        markQuality:
          type: string
        change24hBps:
          type: number
          nullable: true
      required:
        - bookKey
        - units
        - markCents
        - markQuality
      additionalProperties: false
    ListVaultMarketMoversResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketMoversItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketNavHistoryItem:
      type: object
      properties:
        day:
          type: string
        markNavCents:
          type: number
        bidNavCents:
          type: number
        liquidationNavCents:
          type: number
        level2Cents:
          type: number
        level3Cents:
          type: number
        units:
          type: number
      required:
        - day
        - markNavCents
        - bidNavCents
        - liquidationNavCents
        - level2Cents
        - level3Cents
        - units
      additionalProperties: false
    ListVaultMarketNavHistoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketNavHistoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOffersItem:
      type: object
      properties:
        bookKey:
          type: string
        key:
          $ref: "#/components/schemas/CreateVaultMarketMmLpResponseKey"
        unitsHeld:
          type: number
        markCents:
          type: number
          nullable: true
        bestBidCents:
          type: number
          nullable: true
        unitsAtBest:
          type: number
        totalBidUnits:
          type: number
        depth:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketInstantExitResponseQuoteLevels"
        shareOfMarkBps:
          type: number
          nullable: true
        dealerBid:
          type: boolean
        committedDealers:
          type: number
        alertCents:
          type: number
          nullable: true
        muted:
          type: boolean
        instantExit:
          $ref: "#/components/schemas/ListVaultMarketOffersItemInstantExit"
      required:
        - bookKey
        - unitsHeld
        - unitsAtBest
        - totalBidUnits
        - depth
        - dealerBid
        - committedDealers
        - muted
        - instantExit
      additionalProperties: false
    ListVaultMarketOffersItemInstantExit:
      type: object
      properties:
        available:
          type: boolean
        reason:
          type: string
          nullable: true
        sellableUnitIds:
          type: array
          items:
            type: string
      required:
        - available
        - sellableUnitIds
      additionalProperties: false
    ListVaultMarketOffersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOffersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOpeningItem:
      type: object
      properties:
        slug:
          type: string
        title:
          type: string
        blurb:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - live
            - cancelled
            - opening
            - planned
            - inviting
        bookKey:
          type: string
        key:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemKey"
        name:
          type: string
          nullable: true
        variantLabel:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        opensAt:
          type: string
          nullable: true
        unitsOnShelf:
          type: number
        dealersQuoting:
          type: number
        waitlist:
          type: number
        mark:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemMark"
        marketHref:
          type: string
        me:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemMe"
        earlyAccess:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemEarlyAccess"
      required:
        - slug
        - title
        - status
        - bookKey
        - key
        - unitsOnShelf
        - dealersQuoting
        - waitlist
        - mark
        - marketHref
      additionalProperties: false
    ListVaultMarketOpeningItemEarlyAccess:
      type: object
      properties:
        openedAt:
          type: string
        everyoneFrom:
          type: string
          nullable: true
        you:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemEarlyAccessYou"
      required:
        - openedAt
      additionalProperties: false
      nullable: true
      description: "Just opened: Crossly One members trade first; when everyone (and you) can. Null outside that window."
    ListVaultMarketOpeningItemEarlyAccessYou:
      type: object
      properties:
        allowed:
          type: boolean
        at:
          type: string
          nullable: true
      required:
        - allowed
      additionalProperties: false
      nullable: true
    ListVaultMarketOpeningItemKey:
      type: object
      properties:
        variantId:
          type: string
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
      required:
        - variantId
        - condition
      additionalProperties: false
    ListVaultMarketOpeningItemMark:
      type: object
      properties:
        cents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        asOf:
          type: string
          nullable: true
      required:
        - quality
      additionalProperties: false
    ListVaultMarketOpeningItemMe:
      type: object
      properties:
        refCode:
          type: string
        invites:
          type: number
        position:
          type: number
        of:
          type: number
      required:
        - refCode
        - invites
        - position
        - of
      additionalProperties: false
      nullable: true
    ListVaultMarketOpeningResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOpeningItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionComboRfqItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - expired
            - cancelled
            - open
            - filled
        closedAt:
          type: string
          format: date-time
          nullable: true
        holderAccountId:
          type: string
          nullable: true
        side:
          type: string
          enum:
            - buy
            - sell
        seriesId:
          type: string
        strategy:
          type: string
        comboKey:
          type: string
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionCombosItemLegs"
        qtyMilli:
          type: number
        limitCents:
          type: number
          nullable: true
        requesterUserId:
          type: string
        comboFillId:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - expiresAt
        - status
        - side
        - seriesId
        - strategy
        - comboKey
        - legs
        - qtyMilli
        - requesterUserId
      additionalProperties: false
    ListVaultMarketOptionComboRfqResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionComboRfqItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionCombosItem:
      type: object
      properties:
        id:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        strategy:
          type: string
        comboKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionCombosItemLegs"
          description: The legs as you hold them.
        netCents:
          type: number
          description: "Per combo unit, in your terms: + you pay (a debit), - you receive (a credit)."
        canonicalPriceCents:
          type: number
        qtyMilli:
          type: number
        filledMilli:
          type: number
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        expiresAt:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - cancelled
            - rejected
            - filled
            - working
            - partially_filled
        cancelReason:
          type: string
          nullable: true
        rollOfPositionId:
          type: string
          nullable: true
        clientOrderId:
          type: string
          nullable: true
        holderAccountId:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - venue
        - strategy
        - comboKey
        - side
        - legs
        - netCents
        - canonicalPriceCents
        - qtyMilli
        - filledMilli
        - tif
        - status
        - createdAt
        - updatedAt
      additionalProperties: false
    ListVaultMarketOptionCombosItemLegs:
      type: object
      properties:
        contractId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        ratio:
          type: number
      required:
        - contractId
        - side
        - ratio
      additionalProperties: false
    ListVaultMarketOptionCombosResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionCombosItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionContractDailyItem:
      type: object
      properties:
        day:
          type: string
        priceCents:
          type: number
        method:
          type: string
        iv:
          type: number
          nullable: true
        underlyingCents:
          type: number
          nullable: true
        openInterestMilli:
          type: number
        volumeMilli:
          type: number
        hash:
          type: string
      required:
        - day
        - priceCents
        - method
        - openInterestMilli
        - volumeMilli
        - hash
      additionalProperties: false
    ListVaultMarketOptionContractDailyResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionContractDailyItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionMmQuotesItem:
      type: object
      properties:
        contractId:
          type: string
        bidOrderId:
          type: string
          nullable: true
        askOrderId:
          type: string
          nullable: true
        cancelOnDisconnect:
          type: boolean
        heartbeatAt:
          type: string
      required:
        - contractId
        - cancelOnDisconnect
        - heartbeatAt
      additionalProperties: false
    ListVaultMarketOptionMmQuotesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionMmQuotesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionNoticesItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - expiry_warning
            - auto_close
            - exercised
            - assigned
            - abandoned
            - rolled
        text:
          type: string
        positionId:
          type: string
          nullable: true
        contractId:
          type: string
        symbol:
          type: string
          nullable: true
        qtyMilli:
          type: number
        settleCents:
          type: number
          nullable: true
        cashCents:
          type: number
          nullable: true
        detail:
          type: object
          additionalProperties: {}
        at:
          type: string
      required:
        - id
        - kind
        - text
        - contractId
        - qtyMilli
        - detail
        - at
      additionalProperties: false
    ListVaultMarketOptionNoticesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionNoticesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionOrdersItem:
      type: object
      properties:
        symbol:
          type: string
        id:
          type: string
        contractId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
        side:
          type: string
          enum:
            - buy
            - sell
        priceCents:
          type: number
        qtyMilli:
          type: number
        filledMilli:
          type: number
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        postOnly:
          type: boolean
        expiresAt:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - cancelled
            - rejected
            - filled
            - working
            - partially_filled
            - routed
        cancelReason:
          type: string
          nullable: true
        quoteMode:
          type: string
          enum:
            - price
            - iv
        iv:
          type: number
          nullable: true
        source:
          type: string
        forced:
          type: boolean
        clientOrderId:
          type: string
          nullable: true
        partnerOrderRef:
          type: string
          nullable: true
        holderAccountId:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - symbol
        - id
        - contractId
        - venue
        - side
        - priceCents
        - qtyMilli
        - filledMilli
        - tif
        - postOnly
        - status
        - quoteMode
        - source
        - forced
        - createdAt
        - updatedAt
      additionalProperties: false
    ListVaultMarketOptionOrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionOrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionPracticeFillsItem:
      type: object
      properties:
        id:
          type: string
        orderId:
          type: string
        contractId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        priceCents:
          type: number
        qtyMilli:
          type: number
        source:
          type: string
        at:
          type: string
      required:
        - id
        - orderId
        - contractId
        - side
        - priceCents
        - qtyMilli
        - source
        - at
      additionalProperties: false
    ListVaultMarketOptionPracticeFillsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionPracticeFillsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionPracticeOrdersItem:
      type: object
      properties:
        id:
          type: string
        contractId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        priceCents:
          type: number
        qtyMilli:
          type: number
        filledMilli:
          type: number
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        quoteMode:
          type: string
          enum:
            - price
            - iv
        iv:
          type: number
          nullable: true
        status:
          type: string
        cancelReason:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - contractId
        - side
        - priceCents
        - qtyMilli
        - filledMilli
        - tif
        - quoteMode
        - status
        - createdAt
      additionalProperties: false
    ListVaultMarketOptionPracticeOrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionPracticeOrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionRfqItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - expired
            - cancelled
            - open
            - filled
        closedAt:
          type: string
          format: date-time
          nullable: true
        side:
          type: string
          enum:
            - buy
            - sell
        qtyMilli:
          type: number
        filledMilli:
          type: number
        contractId:
          type: string
        limitCents:
          type: number
          nullable: true
        requesterUserId:
          type: string
      required:
        - id
        - createdAt
        - expiresAt
        - status
        - side
        - qtyMilli
        - filledMilli
        - contractId
        - requesterUserId
      additionalProperties: false
    ListVaultMarketOptionRfqResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionRfqItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionSeriesItem:
      type: object
      properties:
        id:
          type: string
        underlyingKind:
          type: string
          enum:
            - key
            - share
            - index
        underlying:
          type: string
        code:
          type: string
        name:
          type: string
        status:
          type: string
        eligibility:
          type: object
          additionalProperties: {}
        eligibleAt:
          type: string
          nullable: true
        refVol:
          type: number
          nullable: true
      required:
        - id
        - underlyingKind
        - underlying
        - code
        - name
        - status
        - eligibility
      additionalProperties: false
    ListVaultMarketOptionSeriesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionSeriesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOptionStrategiesItem:
      type: object
      properties:
        defaultDirection:
          type: string
        name:
          type: string
        long:
          type: string
        short:
          type: string
        strikes:
          type: number
        expiries:
          type: number
        needsType:
          type: boolean
        kind:
          type: string
          enum:
            - custom
            - vertical
            - calendar
            - diagonal
            - straddle
            - strangle
            - butterfly
            - iron_condor
            - collar
            - roll
      required:
        - defaultDirection
        - name
        - long
        - short
        - strikes
        - expiries
        - needsType
        - kind
      additionalProperties: false
    ListVaultMarketOptionStrategiesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOptionStrategiesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketOracleHistoryItem:
      type: object
      properties:
        id:
          type: string
        indexSlug:
          type: string
        network:
          type: string
        feedId:
          type: string
        status:
          type: string
          enum:
            - skipped
            - published
            - failed
        reason:
          type: string
          nullable: true
        reasonText:
          type: string
          nullable: true
        level:
          type: number
          nullable: true
        price:
          type: string
          nullable: true
        conf:
          type: string
          nullable: true
        exponent:
          type: number
        confidenceBps:
          type: number
          nullable: true
        stalenessSec:
          type: number
          nullable: true
        coverageBps:
          type: number
          nullable: true
        keys:
          type: number
          nullable: true
        basis:
          type: string
          nullable: true
        publishTimeUs:
          type: number
          nullable: true
        signer:
          type: string
          nullable: true
        httpStatus:
          type: number
          nullable: true
        error:
          type: string
          nullable: true
        at:
          type: string
      required:
        - id
        - indexSlug
        - network
        - feedId
        - status
        - exponent
        - at
      additionalProperties: false
    ListVaultMarketOracleHistoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketOracleHistoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketP2pLoansItem:
      type: object
      properties:
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        id:
          type: string
        role:
          type: string
          enum:
            - viewer
            - borrower
            - lender
        status:
          type: string
          enum:
            - active
            - cancelled
            - funding
            - auction
            - repaid
            - foreclosed
            - repaying
            - refinancing
            - refi_pending
            - refinanced
        closeReason:
          type: string
          nullable: true
        bookKey:
          type: string
        vaultItemId:
          type: string
        principalCents:
          type: number
        aprBps:
          type: number
        dailyInterestCents:
          type: number
        owed:
          $ref: "#/components/schemas/GetVaultMarketP2pLoanResponseOwed"
        payoffCents:
          type: number
          nullable: true
        interestPaidCents:
          type: number
        principalRepaidCents:
          type: number
        minRepayCents:
          type: number
          nullable: true
        startedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        auction:
          $ref: "#/components/schemas/GetVaultMarketP2pLoanResponseAuction"
        refiAuction:
          $ref: "#/components/schemas/GetVaultMarketP2pLoanResponseAuction"
        refinancedFromLoanId:
          type: string
          nullable: true
        refinancedToLoanId:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        markQuality:
          type: string
          nullable: true
        ltvBps:
          type: number
          nullable: true
      required:
        - id
        - role
        - status
        - bookKey
        - vaultItemId
        - principalCents
        - aprBps
        - dailyInterestCents
        - interestPaidCents
        - principalRepaidCents
        - createdAt
      additionalProperties: false
    ListVaultMarketP2pLoansResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketP2pLoansItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketP2pOffersItem:
      type: object
      properties:
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        id:
          type: string
        bookKey:
          type: string
          nullable: true
        vaultItemId:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - item
            - unit
        principalCents:
          type: number
        aprBps:
          type: number
        dailyInterestCents:
          type: number
        maxLoans:
          type: number
        loansTaken:
          type: number
        loansLeft:
          type: number
        status:
          type: string
        closeReason:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
        mine:
          type: boolean
      required:
        - id
        - kind
        - principalCents
        - aprBps
        - dailyInterestCents
        - maxLoans
        - loansTaken
        - loansLeft
        - status
        - createdAt
        - mine
      additionalProperties: false
    ListVaultMarketP2pOffersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketP2pOffersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketP2pUnitsItem:
      type: object
      properties:
        vaultItemId:
          type: string
        bookKey:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        eligible:
          type: boolean
        reason:
          type: string
          nullable: true
        offers:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketP2pOffersItem"
        loanId:
          type: string
          nullable: true
        loanStatus:
          type: string
          nullable: true
      required:
        - vaultItemId
        - eligible
        - offers
      additionalProperties: false
    ListVaultMarketP2pUnitsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketP2pUnitsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPaperFillsItem:
      type: object
      properties:
        id:
          type: string
        orderId:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        priceCents:
          type: number
        feeCents:
          type: number
        liquidity:
          type: string
        source:
          type: string
        filledAt:
          type: string
        playMoney:
          type: boolean
      required:
        - id
        - orderId
        - bookKey
        - side
        - quantity
        - priceCents
        - feeCents
        - liquidity
        - source
        - filledAt
        - playMoney
      additionalProperties: false
    ListVaultMarketPaperFillsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPaperFillsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPaperLeaderboardItem:
      type: object
      properties:
        rank:
          type: number
        displayName:
          type: string
        returnBps:
          type: number
        fills:
          type: number
        resetInWeek:
          type: boolean
        you:
          type: boolean
      required:
        - rank
        - displayName
        - returnBps
        - fills
        - resetInWeek
        - you
      additionalProperties: false
    ListVaultMarketPaperLeaderboardResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPaperLeaderboardItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPaperMissionsItem:
      type: object
      properties:
        key:
          type: string
          enum:
            - first_fill
            - read_mark
            - bid_below
            - maker_fill
            - instant_exit
            - price_watch
            - round_trip
            - mini_set
            - share_first
            - share_queue
            - option_first
            - option_expiry
        order:
          type: number
        title:
          type: string
        goal:
          type: string
        how:
          type: string
        target:
          type: number
        count:
          type: number
        done:
          type: boolean
        doneAt:
          type: string
          nullable: true
        action:
          type: string
          enum:
            - market
            - paper
            - assistant
            - sets
            - mark_check
        learn:
          type: string
          enum:
            - instant-exit
            - marks
            - vault-shares
          nullable: true
      required:
        - key
        - order
        - title
        - goal
        - how
        - target
        - count
        - done
        - action
      additionalProperties: false
    ListVaultMarketPaperMissionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPaperMissionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPaperOrdersItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
          enum:
            - limit
            - market
        tif:
          type: string
          enum:
            - gtc
            - ioc
        limitCents:
          type: number
          nullable: true
        quantity:
          type: number
        filledQuantity:
          type: number
        status:
          type: string
        queueAtPlace:
          type: number
        queueAhead:
          type: number
        clientOrderId:
          type: string
          nullable: true
        cancelReason:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
        doneAt:
          type: string
          nullable: true
        playMoney:
          type: boolean
      required:
        - id
        - bookKey
        - side
        - type
        - tif
        - quantity
        - filledQuantity
        - status
        - queueAtPlace
        - queueAhead
        - createdAt
        - playMoney
      additionalProperties: false
    ListVaultMarketPaperOrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPaperOrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPartnerAccrualsItem:
      type: object
      properties:
        id:
          type: string
        vaultItemId:
          type: string
        tradeId:
          type: string
        feeCents:
          type: number
        shareCents:
          type: number
        status:
          type: string
        paidAt:
          type: string
          nullable: true
        voidReason:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - vaultItemId
        - tradeId
        - feeCents
        - shareCents
        - status
        - createdAt
      additionalProperties: false
    ListVaultMarketPartnerAccrualsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPartnerAccrualsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPartnerFinderItem:
      type: object
      properties:
        id:
          type: string
        shopName:
          type: string
        address:
          type: object
          nullable: true
          additionalProperties: {}
        postalCode:
          type: string
          nullable: true
        website:
          type: string
          nullable: true
        hours:
          type: object
          nullable: true
          additionalProperties: {}
        services:
          type: array
          items:
            type: string
        closeness:
          type: number
      required:
        - id
        - shopName
        - services
        - closeness
      additionalProperties: false
    ListVaultMarketPartnerFinderResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPartnerFinderItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPoolStakesItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        stakedBaseUnits:
          type: string
        shares:
          type: string
        stakedValueCents:
          type: number
        paidCents:
          type: number
        redeemsCents:
          type: number
        redeemsBaseUnits:
          type: string
          nullable: true
        cooldownUntil:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - status
        - stakedBaseUnits
        - shares
        - stakedValueCents
        - paidCents
        - redeemsCents
        - createdAt
      additionalProperties: false
    ListVaultMarketPoolStakesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPoolStakesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPortfolioMarginHistoryItem:
      type: object
      properties:
        computedAt:
          type: string
        equityCents:
          type: number
        requirementCents:
          type: number
        excessCents:
          type: number
        scenarioCents:
          type: number
        floorCents:
          type: number
        grossCents:
          type: number
        state:
          type: string
      required:
        - computedAt
        - equityCents
        - requirementCents
        - excessCents
        - scenarioCents
        - floorCents
        - grossCents
        - state
      additionalProperties: false
    ListVaultMarketPortfolioMarginHistoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPortfolioMarginHistoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPositionUnitsItem:
      type: object
      properties:
        vaultItemId:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        status:
          type: string
        storyUrl:
          type: string
      required:
        - vaultItemId
        - status
        - storyUrl
      additionalProperties: false
    ListVaultMarketPositionUnitsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPositionUnitsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPositionsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - short
            - long
        status:
          type: string
        bookKey:
          type: string
        variantId:
          type: string
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        units:
          type: number
        entryCents:
          type: number
          nullable: true
        exitCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        leverageX100:
          type: number
        collateralUsdCents:
          type: number
        collateralCbxValueCents:
          type: number
        collateralCbxBaseUnits:
          type: string
        loanCents:
          type: number
        proceedsCents:
          type: number
        feesOwedCents:
          type: number
        feesPaidCents:
          type: number
        interestOwedCents:
          type: number
        interestPaidCents:
          type: number
        tier:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        healthBps:
          type: number
          nullable: true
        calledAt:
          type: string
          nullable: true
        unrealisedPnlCents:
          type: number
          nullable: true
        realizedPnlCents:
          type: number
          nullable: true
        collateralState:
          type: string
          description: "'pending' while the custodian is still taking the collateral (the order is not on the book yet)."
        settled:
          type: boolean
        needsOps:
          type: boolean
        shortfallUnpaidCents:
          type: number
        openedAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - kind
        - status
        - bookKey
        - variantId
        - condition
        - units
        - leverageX100
        - collateralUsdCents
        - collateralCbxValueCents
        - collateralCbxBaseUnits
        - loanCents
        - proceedsCents
        - feesOwedCents
        - feesPaidCents
        - interestOwedCents
        - interestPaidCents
        - collateralState
        - settled
        - needsOps
        - shortfallUnpaidCents
        - createdAt
      additionalProperties: false
    ListVaultMarketPositionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPositionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPositionsRiskItem:
      type: object
      properties:
        distanceToLiquidationBps:
          type: number
          nullable: true
          description: Signed move from the mark to the liquidation mark (a short's is up, a long's down).
        provisional:
          type: boolean
        callCents:
          type: number
          nullable: true
          description: The mark at which the position is called (below maintenance).
        liquidationCents:
          type: number
          nullable: true
          description: The mark at which it goes straight to a buy-in / sell-off (half the floor, no grace).
        direction:
          type: string
          enum:
            - at_or_above
            - at_or_below
          description: A short is liquidated when the mark rises to it; a long when it falls to it.
        positionId:
          type: string
        kind:
          type: string
          enum:
            - short
            - long
        status:
          type: string
        bookKey:
          type: string
        tier:
          type: string
          enum:
            - closed
            - standard
            - deep
            - thin
        markCents:
          type: number
          nullable: true
        healthBps:
          type: number
          nullable: true
        marginState:
          type: string
          enum:
            - healthy
            - call
            - buy_in
          nullable: true
        maintenanceBps:
          type: number
      required:
        - provisional
        - direction
        - positionId
        - kind
        - status
        - bookKey
        - tier
        - maintenanceBps
      additionalProperties: false
    ListVaultMarketPositionsRiskResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPositionsRiskItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionAlertsItem:
      type: object
      properties:
        id:
          type: string
        marketId:
          type: string
        title:
          type: string
        levelPercent:
          type: number
        direction:
          type: string
        firedAt:
          type: string
          nullable: true
      required:
        - id
        - marketId
        - title
        - levelPercent
        - direction
      additionalProperties: false
    ListVaultMarketPredictionAlertsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionAlertsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionComboRfqsItem:
      type: object
      properties:
        id:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        playMoney:
          type: boolean
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionComboRfqsItemLegs"
        contracts:
          type: number
        fairBps:
          type: number
          nullable: true
        status:
          type: string
        expiresAt:
          type: string
        comboId:
          type: string
          nullable: true
        mine:
          type: boolean
        limitCents:
          type: number
          nullable: true
        quotes:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionComboRfqsItemQuotes"
        createdAt:
          type: string
      required:
        - id
        - venue
        - playMoney
        - legs
        - contracts
        - status
        - expiresAt
        - mine
        - quotes
        - createdAt
      additionalProperties: false
    ListVaultMarketPredictionComboRfqsItemLegs:
      type: object
      properties:
        marketId:
          type: string
        side:
          type: string
          enum:
            - no
            - yes
        ticker:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        probBps:
          type: number
          nullable: true
      required:
        - marketId
        - side
      additionalProperties: false
    ListVaultMarketPredictionComboRfqsItemQuotes:
      type: object
      properties:
        id:
          type: string
        priceCents:
          type: number
        firmUntil:
          type: string
        status:
          type: string
        firm:
          type: boolean
        yours:
          type: boolean
        withinLimit:
          type: boolean
          nullable: true
      required:
        - id
        - priceCents
        - firmUntil
        - status
        - firm
        - yours
      additionalProperties: false
    ListVaultMarketPredictionComboRfqsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionComboRfqsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionCombosItem:
      type: object
      properties:
        id:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        playMoney:
          type: boolean
        role:
          type: string
          nullable: true
        contracts:
          type: number
        priceCents:
          type: number
        priceBps:
          type: number
        buyerStakeCents:
          type: number
        makerStakeCents:
          type: number
        potCents:
          type: number
        feeCents:
          type: number
        yourStakeCents:
          type: number
          nullable: true
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionCombosItemLegs"
        adjustments:
          type: array
          items:
            type: object
            additionalProperties: {}
        status:
          type: string
          enum:
            - open
            - void
            - won
            - lost
        payoutCents:
          type: number
          nullable: true
        youWon:
          type: boolean
          nullable: true
        settledAt:
          type: string
          nullable: true
        createdAt:
          type: string
        rule:
          type: string
      required:
        - id
        - venue
        - playMoney
        - contracts
        - priceCents
        - priceBps
        - buyerStakeCents
        - makerStakeCents
        - potCents
        - feeCents
        - legs
        - adjustments
        - status
        - createdAt
        - rule
      additionalProperties: false
    ListVaultMarketPredictionCombosItemLegs:
      type: object
      properties:
        marketId:
          type: string
        side:
          type: string
          enum:
            - no
            - yes
        ticker:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        probBps:
          type: number
          nullable: true
        outcome:
          type: string
          enum:
            - void
            - no
            - yes
          nullable: true
      required:
        - marketId
        - side
      additionalProperties: false
    ListVaultMarketPredictionCombosResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionCombosItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionCommentsItem:
      type: object
      properties:
        replies:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPredictionCommentResponse"
        id:
          type: string
        marketId:
          type: string
          nullable: true
        seriesId:
          type: string
          nullable: true
        parentId:
          type: string
          nullable: true
        body:
          type: string
        status:
          type: string
          enum:
            - visible
            - removed
            - hidden
        author:
          $ref: "#/components/schemas/CreateVaultMarketPredictionCommentResponseAuthor"
        mine:
          type: boolean
        createdAt:
          type: string
        editedAt:
          type: string
          nullable: true
      required:
        - replies
        - id
        - body
        - status
        - author
        - mine
        - createdAt
      additionalProperties: false
    ListVaultMarketPredictionCommentsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionCommentsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionConversionsItem:
      type: object
      properties:
        id:
          type: string
        eventId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        playMoney:
          type: boolean
        kind:
          type: string
          enum:
            - split
            - merge
            - convert
        sets:
          type: number
        fromMarketId:
          type: string
          nullable: true
        cashCents:
          type: number
        lockCents:
          type: number
        realizedCents:
          type: number
        status:
          type: string
        reason:
          type: string
          nullable: true
        createdAt:
          type: string
        doneAt:
          type: string
          nullable: true
      required:
        - id
        - eventId
        - venue
        - playMoney
        - kind
        - sets
        - cashCents
        - lockCents
        - realizedCents
        - status
        - createdAt
      additionalProperties: false
    ListVaultMarketPredictionConversionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionConversionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionFollowingItem:
      type: object
      properties:
        forecasterId:
          type: string
        displayName:
          type: string
        since:
          type: string
      required:
        - forecasterId
        - displayName
        - since
      additionalProperties: false
    ListVaultMarketPredictionFollowingResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionFollowingItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionForecastsItem:
      type: object
      properties:
        marketId:
          type: string
        title:
          type: string
        probabilityBps:
          type: number
        note:
          type: string
          nullable: true
        updatedAt:
          type: string
        marketStatus:
          type: string
        outcome:
          type: string
          nullable: true
      required:
        - marketId
        - title
        - probabilityBps
        - updatedAt
        - marketStatus
      additionalProperties: false
    ListVaultMarketPredictionForecastsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionForecastsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionMakersItem:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        seriesId:
          type: string
          nullable: true
        status:
          type: string
        rebateCentiCentsPerContract:
          type: number
        note:
          type: string
          nullable: true
        createdAt:
          type: string
        approvedAt:
          type: string
          nullable: true
      required:
        - id
        - userId
        - status
        - rebateCentiCentsPerContract
        - createdAt
      additionalProperties: false
    ListVaultMarketPredictionMakersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionMakersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionMarketsItem:
      type: object
      properties:
        id:
          type: string
        ticker:
          type: string
        title:
          type: string
        shape:
          type: string
        underlyingKind:
          type: string
          enum:
            - index
            - book_key
            - category_pair
        bookKey:
          type: string
          nullable: true
        indexId:
          type: string
          nullable: true
        indexBId:
          type: string
          nullable: true
        underlyingName:
          type: string
        underlyingNameB:
          type: string
          nullable: true
        strike:
          type: number
          nullable: true
        strikeLow:
          type: number
          nullable: true
        strikeHigh:
          type: number
          nullable: true
        unit:
          type: string
          enum:
            - cents
            - points
        strikeLabel:
          type: string
          nullable: true
        eventId:
          type: string
        seriesId:
          type: string
        proposed:
          type: boolean
        expiryDay:
          type: string
        closesAt:
          type: string
        status:
          type: string
        haltedReason:
          type: string
          nullable: true
        yesBidCents:
          type: number
          nullable: true
        yesAskCents:
          type: number
          nullable: true
        lastYesCents:
          type: number
          nullable: true
        volumeContracts:
          type: number
        openInterest:
          type: number
        seriesCode:
          type: string
        probability:
          $ref: "#/components/schemas/ListVaultMarketPredictionMarketsItemProbability"
      required:
        - id
        - ticker
        - title
        - shape
        - underlyingKind
        - underlyingName
        - unit
        - eventId
        - seriesId
        - proposed
        - expiryDay
        - closesAt
        - status
        - volumeContracts
        - openInterest
        - seriesCode
        - probability
      additionalProperties: false
    ListVaultMarketPredictionMarketsItemProbability:
      type: object
      properties:
        label:
          type: string
        practice:
          type: boolean
        bps:
          type: number
          nullable: true
        basis:
          type: string
          enum:
            - none
            - mid
            - last
        quality:
          type: string
      required:
        - label
        - practice
        - basis
        - quality
      additionalProperties: false
    ListVaultMarketPredictionMarketsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionMarketsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionOrdersItem:
      type: object
      properties:
        title:
          type: string
        id:
          type: string
        marketId:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        action:
          type: string
        side:
          type: string
          enum:
            - no
            - yes
        priceCents:
          type: number
        bookPriceCents:
          type: number
        reduceOnly:
          type: boolean
        type:
          type: string
        tif:
          type: string
        postOnly:
          type: boolean
        quantity:
          type: number
        filled:
          type: number
        status:
          type: string
        expiresAt:
          type: string
          nullable: true
        clientOrderId:
          type: string
          nullable: true
        lockedCents:
          type: number
        feeCents:
          type: number
        costCents:
          type: number
        cancelReason:
          type: string
          nullable: true
        source:
          type: string
        createdAt:
          type: string
        doneAt:
          type: string
          nullable: true
        playMoney:
          type: boolean
        fills:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketPredictionOrderResponseFills"
      required:
        - title
        - id
        - marketId
        - venue
        - action
        - side
        - priceCents
        - bookPriceCents
        - reduceOnly
        - type
        - tif
        - postOnly
        - quantity
        - filled
        - status
        - lockedCents
        - feeCents
        - costCents
        - source
        - createdAt
        - playMoney
        - fills
      additionalProperties: false
    ListVaultMarketPredictionOrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionOrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionPositionsItem:
      type: object
      properties:
        id:
          type: string
        marketId:
          type: string
        ticker:
          type: string
        title:
          type: string
        expiryDay:
          type: string
        marketStatus:
          type: string
        venue:
          type: string
          enum:
            - self
            - partner
            - paper
        playMoney:
          type: boolean
        side:
          type: string
          nullable: true
        contracts:
          type: number
        costCents:
          type: number
        realizedCents:
          type: number
        feesCents:
          type: number
        valueCents:
          type: number
          nullable: true
        maxPayoutCents:
          type: number
        status:
          type: string
        payoutCents:
          type: number
          nullable: true
        refundCents:
          type: number
          nullable: true
        settledAt:
          type: string
          nullable: true
        shareCardId:
          type: string
          nullable: true
      required:
        - id
        - marketId
        - ticker
        - title
        - expiryDay
        - marketStatus
        - venue
        - playMoney
        - contracts
        - costCents
        - realizedCents
        - feesCents
        - maxPayoutCents
        - status
      additionalProperties: false
    ListVaultMarketPredictionPositionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionPositionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionProposalListedItem:
      type: object
      properties:
        proposalId:
          type: string
        marketId:
          type: string
        ticker:
          type: string
        title:
          type: string
        volumeContracts:
          type: number
        status:
          type: string
        earnedCents:
          type: number
      required:
        - proposalId
        - marketId
        - ticker
        - title
        - volumeContracts
        - status
        - earnedCents
      additionalProperties: false
    ListVaultMarketPredictionProposalListedResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionProposalListedItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPredictionProposalsItem:
      type: object
      properties:
        earns:
          type: string
        userId:
          type: string
          nullable: true
        reviewedBy:
          type: string
          nullable: true
        id:
          type: string
        underlyingKind:
          type: string
          enum:
            - index
            - book_key
        underlyingRef:
          type: string
        underlyingName:
          type: string
          nullable: true
        shape:
          type: string
          enum:
            - range
            - bucket
            - close_above
            - close_below
            - touch
            - outperform
        strike:
          type: number
          nullable: true
        strikeLow:
          type: number
          nullable: true
        strikeHigh:
          type: number
          nullable: true
        expiryDay:
          type: string
        note:
          type: string
          nullable: true
        referenceValue:
          type: number
          nullable: true
        problems:
          type: array
          items:
            type: string
        status:
          type: string
          enum:
            - pending
            - listed
            - rejected
            - approved
            - withdrawn
        decisionNote:
          type: string
          nullable: true
        reviewedAt:
          type: string
          nullable: true
        marketId:
          type: string
          nullable: true
        seriesId:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - earns
        - id
        - underlyingKind
        - underlyingRef
        - shape
        - expiryDay
        - problems
        - status
        - createdAt
      additionalProperties: false
    ListVaultMarketPredictionProposalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPredictionProposalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketPriceWidgetsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
            - index
            - mark
        bookKey:
          type: string
          nullable: true
        indexSlug:
          type: string
          nullable: true
        range:
          type: string
          enum:
            - 1y
            - 1m
            - 3m
            - 6m
            - 5y
        layout:
          type: string
          enum:
            - chart
            - compact
        theme:
          type: string
          enum:
            - auto
            - light
            - dark
        affiliateCode:
          $ref: "#/components/schemas/ListVaultMarketPriceWidgetsItemAffiliateCode"
        allowedOrigins:
          type: array
          items:
            type: string
        frameUrl:
          type: string
        scriptUrl:
          type: string
        dataUrl:
          type: string
        snippets:
          $ref: "#/components/schemas/ListVaultMarketPriceWidgetsItemSnippets"
        frame:
          $ref: "#/components/schemas/ListVaultMarketPriceWidgetsItemFrame"
        createdAt:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
      required:
        - id
        - name
        - kind
        - range
        - layout
        - theme
        - allowedOrigins
        - frameUrl
        - scriptUrl
        - dataUrl
        - snippets
        - frame
      additionalProperties: false
    ListVaultMarketPriceWidgetsItemAffiliateCode:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
          nullable: true
        linked:
          type: boolean
      required:
        - id
        - linked
      additionalProperties: false
      nullable: true
      description: The code on the row, and whether the widget links through it now.
    ListVaultMarketPriceWidgetsItemFrame:
      type: object
      properties:
        width:
          type: number
        height:
          type: number
      required:
        - width
        - height
      additionalProperties: false
    ListVaultMarketPriceWidgetsItemSnippets:
      type: object
      properties:
        iframe:
          type: string
        script:
          type: string
      required:
        - iframe
        - script
      additionalProperties: false
    ListVaultMarketPriceWidgetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketPriceWidgetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketProCandlesItem:
      type: object
      properties:
        t:
          type: number
        o:
          type: number
        h:
          type: number
        l:
          type: number
        c:
          type: number
        v:
          type: number
      required:
        - t
        - o
        - h
        - l
        - c
        - v
      additionalProperties: false
    ListVaultMarketProCandlesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProCandlesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketProEventsItem:
      type: object
      properties:
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        kind:
          type: string
        quantity:
          type: number
          nullable: true
        orderId:
          type: string
        priceCents:
          type: number
          nullable: true
        tradeId:
          type: string
          nullable: true
        detail:
          type: object
          nullable: true
          additionalProperties: {}
        seq:
          type: number
      required:
        - createdAt
        - userId
        - kind
        - orderId
        - seq
      additionalProperties: false
    ListVaultMarketProEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketProLinksItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        status:
          type: string
        bookKey:
          type: string
        entryOrderId:
          type: string
          nullable: true
        orderAId:
          type: string
          nullable: true
        orderBId:
          type: string
          nullable: true
        positionId:
          type: string
          nullable: true
        takeProfitCents:
          type: number
          nullable: true
        stopLossCents:
          type: number
          nullable: true
        trailBps:
          type: number
          nullable: true
        trailCents:
          type: number
          nullable: true
        watermarkCents:
          type: number
          nullable: true
        fired:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
        armedAt:
          type: string
          nullable: true
        doneAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - kind
        - status
        - bookKey
        - createdAt
      additionalProperties: false
    ListVaultMarketProLinksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProLinksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketProOrdersItem:
      type: object
      properties:
        waitsForCall:
          $ref: "#/components/schemas/CreateVaultMarketLongResponseWaitsForCall"
        id:
          type: string
        clientOrderId:
          type: string
          nullable: true
        source:
          type: string
        bookKey:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
          enum:
            - limit
            - market
            - stop
            - stop_limit
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
            - fok
        postOnly:
          type: boolean
        quantity:
          type: number
        filledQuantity:
          type: number
        avgFillCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        stopCents:
          type: number
          nullable: true
        displayQuantity:
          type: number
          nullable: true
        algo:
          type: string
          enum:
            - twap
            - vwap
          nullable: true
        algoEndsAt:
          type: string
          nullable: true
        funding:
          type: string
        status:
          type: string
        rejectReason:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        holderAccountId:
          type: string
          nullable: true
          description: The firm sub-account's holder account it is booked to (null = your own account).
      required:
        - id
        - source
        - bookKey
        - side
        - type
        - tif
        - postOnly
        - quantity
        - filledQuantity
        - funding
        - status
        - createdAt
        - updatedAt
      additionalProperties: false
    ListVaultMarketProOrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProOrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketProQuotesItem:
      type: object
      properties:
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        bookKey:
          type: string
        bidOrderId:
          type: string
          nullable: true
        askOrderId:
          type: string
          nullable: true
        cancelOnDisconnect:
          type: boolean
        heartbeatAt:
          type: string
          format: date-time
      required:
        - updatedAt
        - userId
        - bookKey
        - cancelOnDisconnect
        - heartbeatAt
      additionalProperties: false
    ListVaultMarketProQuotesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProQuotesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketProRewardsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        day:
          type: string
        cents:
          type: number
        bookKey:
          type: string
        instructionId:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - day
        - cents
        - bookKey
      additionalProperties: false
    ListVaultMarketProRewardsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProRewardsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketProTapeItem:
      type: object
      properties:
        id:
          type: string
        priceCents:
          type: number
        makerSide:
          type: string
          nullable: true
        takerSide:
          type: string
          nullable: true
        at:
          type: string
      required:
        - id
        - priceCents
        - at
      additionalProperties: false
    ListVaultMarketProTapeResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProTapeItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketProofOfReserveLeavesItem:
      type: object
      properties:
        idx:
          type: number
        leafHash:
          type: string
      required:
        - idx
        - leafHash
      additionalProperties: false
    ListVaultMarketProofOfReserveLeavesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketProofOfReserveLeavesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketRecurringItem:
      type: object
      properties:
        id:
          type: string
        bookKey:
          type: string
        key:
          $ref: "#/components/schemas/CreateVaultMarketMmLpResponseKey"
        every:
          type: string
        maxPriceCents:
          type: number
          nullable: true
        capBpsOverMark:
          type: number
          nullable: true
        funding:
          type: string
        hasCard:
          type: boolean
        hasBackupCard:
          type: boolean
        autoLend:
          type: boolean
        active:
          type: boolean
        nextRunAt:
          type: string
        lastRunAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - bookKey
        - every
        - funding
        - hasCard
        - hasBackupCard
        - autoLend
        - active
        - nextRunAt
        - createdAt
      additionalProperties: false
    ListVaultMarketRecurringResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketRecurringItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketRecurringRunsItem:
      type: object
      properties:
        dueAt:
          type: string
        createdAt:
          type: string
        id:
          type: string
        userId:
          type: string
        status:
          type: string
        orderId:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
        markCents:
          type: number
          nullable: true
        limitCents:
          type: number
          nullable: true
        filledCents:
          type: number
          nullable: true
        scheduleId:
          type: string
        usedBackup:
          type: boolean
      required:
        - dueAt
        - createdAt
        - id
        - userId
        - status
        - scheduleId
        - usedBackup
      additionalProperties: false
    ListVaultMarketRecurringRunsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketRecurringRunsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketRfqInboxItem:
      type: object
      properties:
        invitedAs:
          type: string
        myAnswer:
          $ref: "#/components/schemas/ListVaultMarketRfqInboxItemMyAnswer"
        limitCents:
          type: number
          nullable: true
        funding:
          type: string
          nullable: true
        blockId:
          type: string
          nullable: true
        failReason:
          type: string
          nullable: true
        id:
          type: string
        bookKey:
          type: string
        key:
          $ref: "#/components/schemas/CreateVaultMarketMmLpResponseKey"
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        status:
          type: string
        expiresAt:
          type: string
        createdAt:
          type: string
        closedAt:
          type: string
          nullable: true
      required:
        - invitedAs
        - id
        - bookKey
        - side
        - quantity
        - status
        - expiresAt
        - createdAt
      additionalProperties: false
    ListVaultMarketRfqInboxItemMyAnswer:
      type: object
      properties:
        mine:
          type: boolean
          nullable: true
        id:
          type: string
        priceCents:
          type: number
        quantity:
          type: number
        status:
          type: string
        expiresAt:
          type: string
        createdAt:
          type: string
      required:
        - id
        - priceCents
        - quantity
        - status
        - expiresAt
        - createdAt
      additionalProperties: false
      nullable: true
    ListVaultMarketRfqInboxResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketRfqInboxItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketRfqItem:
      type: object
      properties:
        limitCents:
          type: number
          nullable: true
        funding:
          type: string
          nullable: true
        blockId:
          type: string
          nullable: true
        failReason:
          type: string
          nullable: true
        id:
          type: string
        bookKey:
          type: string
        key:
          $ref: "#/components/schemas/CreateVaultMarketMmLpResponseKey"
        side:
          type: string
          enum:
            - buy
            - sell
        quantity:
          type: number
        status:
          type: string
        expiresAt:
          type: string
        createdAt:
          type: string
        closedAt:
          type: string
          nullable: true
      required:
        - id
        - bookKey
        - side
        - quantity
        - status
        - expiresAt
        - createdAt
      additionalProperties: false
    ListVaultMarketRfqResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketRfqItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketSetGoalBasketsItem:
      type: object
      properties:
        id:
          type: string
        goalId:
          type: string
        clientBasketId:
          type: string
        status:
          type: string
          enum:
            - completed
            - cancelled
            - ended
            - working
        endReason:
          type: string
          nullable: true
        budgetCents:
          type: number
        maxBpsOverMark:
          type: number
        feeBoundBps:
          type: number
        funding:
          type: string
          enum:
            - card
            - custodian
        source:
          type: string
        committedCents:
          type: number
        spentCents:
          type: number
        leftCents:
          type: number
        counts:
          $ref: "#/components/schemas/ListVaultMarketSetGoalBasketsItemCounts"
        createdAt:
          type: string
        endedAt:
          type: string
          nullable: true
        legs:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSetGoalBasketsItemLegs"
      required:
        - id
        - goalId
        - clientBasketId
        - status
        - budgetCents
        - maxBpsOverMark
        - feeBoundBps
        - funding
        - source
        - committedCents
        - spentCents
        - leftCents
        - counts
        - createdAt
        - legs
      additionalProperties: false
    ListVaultMarketSetGoalBasketsItemCounts:
      type: object
      properties:
        working:
          type: number
        filled:
          type: number
        cancelled:
          type: number
        rejected:
          type: number
      required:
        - working
        - filled
        - cancelled
        - rejected
      additionalProperties: false
    ListVaultMarketSetGoalBasketsItemLegs:
      type: object
      properties:
        id:
          type: string
        skuId:
          type: string
        title:
          type: string
        bookKey:
          type: string
        markCents:
          type: number
          nullable: true
        limitCents:
          type: number
        orderId:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - pending
            - cancelled
            - rejected
            - filled
            - working
        error:
          type: string
          nullable: true
        filledCents:
          type: number
          nullable: true
      required:
        - id
        - skuId
        - title
        - bookKey
        - limitCents
        - status
      additionalProperties: false
    ListVaultMarketSetGoalBasketsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSetGoalBasketsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketSetGoalSetsItem:
      type: object
      properties:
        goalId:
          type: string
          nullable: true
        title:
          type: string
        categoryName:
          type: string
          nullable: true
        pieces:
          type: number
          nullable: true
          description: Pieces in the set, when known (the directory count; the goal counts the catalogue itself).
        heldInVault:
          type: number
          nullable: true
          description: Pieces of it you already hold in the vault, when known.
        href:
          type: string
        category:
          type: string
        brandSlug:
          type: string
        modelSlug:
          type: string
      required:
        - title
        - href
        - category
        - brandSlug
        - modelSlug
      additionalProperties: false
    ListVaultMarketSetGoalSetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSetGoalSetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketSetGoalsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
        status:
          type: string
          enum:
            - active
            - archived
            - complete
        category:
          type: string
        title:
          type: string
        completedAt:
          type: string
          nullable: true
        target:
          $ref: "#/components/schemas/GetVaultMarketSetGoalResponseTarget"
        total:
          type: number
        href:
          type: string
        brandSlug:
          type: string
        progress:
          type: string
        held:
          type: number
        modelSlug:
          type: string
        basket:
          $ref: "#/components/schemas/ListVaultMarketSetGoalsItemBasket"
        complete:
          type: boolean
        setFound:
          type: boolean
        cardSetHref:
          type: string
      required:
        - id
        - createdAt
        - status
        - category
        - title
        - target
        - total
        - href
        - brandSlug
        - progress
        - held
        - modelSlug
        - complete
        - setFound
        - cardSetHref
      additionalProperties: false
    ListVaultMarketSetGoalsItemBasket:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - completed
            - cancelled
            - ended
            - working
        budgetCents:
          type: number
        committedCents:
          type: number
        spentCents:
          type: number
        working:
          type: number
        filled:
          type: number
      required:
        - id
        - status
        - budgetCents
        - committedCents
        - spentCents
        - working
        - filled
      additionalProperties: false
      nullable: true
    ListVaultMarketSetGoalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSetGoalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareAutoInvestItem:
      type: object
      properties:
        id:
          type: string
        venue:
          type: string
        practice:
          type: boolean
        targetKind:
          type: string
          enum:
            - series
            - basket
        basketId:
          type: string
          nullable: true
        targets:
          type: array
          items:
            $ref: "#/components/schemas/SeriesIdWeightBps"
        amountCents:
          type: number
        every:
          type: string
          enum:
            - monthly
            - weekly
        carryCents:
          type: number
        maxPremiumBps:
          type: number
        rebalance:
          type: boolean
        status:
          type: string
          enum:
            - active
            - paused
            - cancelled
        nextRunAt:
          type: string
          nullable: true
        lastRunAt:
          type: string
          nullable: true
        createdAt:
          type: string
        note:
          type: string
      required:
        - id
        - venue
        - practice
        - targetKind
        - targets
        - amountCents
        - every
        - carryCents
        - maxPremiumBps
        - rebalance
        - status
        - createdAt
        - note
      additionalProperties: false
    ListVaultMarketShareAutoInvestResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareAutoInvestItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareAutoInvestRunsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - buy
            - rebalance
        budgetCents:
          type: number
        spentCents:
          type: number
        carryOutCents:
          type: number
        status:
          type: string
        lines:
          type: array
          items: {}
        note:
          type: string
          nullable: true
        at:
          type: string
      required:
        - id
        - kind
        - budgetCents
        - spentCents
        - carryOutCents
        - status
        - lines
        - at
      additionalProperties: false
    ListVaultMarketShareAutoInvestRunsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareAutoInvestRunsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareBasketsItem:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        theme:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - draft
            - live
            - retired
        rebalanceEvery:
          type: string
          enum:
            - monthly
            - quarterly
        toleranceBps:
          type: number
        liveMembers:
          type: number
        followers:
          type: number
        myPlanId:
          type: string
        lastRebalancedAt:
          type: string
          nullable: true
        nextRebalanceAt:
          type: string
          nullable: true
      required:
        - id
        - slug
        - name
        - status
        - rebalanceEvery
        - toleranceBps
        - liveMembers
        - followers
        - myPlanId
      additionalProperties: false
    ListVaultMarketShareBasketsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareBasketsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareCardsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - position
            - unit
            - portfolio
            - index
        verified:
          type: boolean
        createdAt:
          type: string
        showAmounts:
          type: boolean
        owner:
          $ref: "#/components/schemas/ListVaultMarketShareCardsItemOwner"
        title:
          type: string
        subtitle:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bookKey:
          type: string
          nullable: true
        indexSlug:
          type: string
          nullable: true
        mark:
          $ref: "#/components/schemas/ListVaultMarketShareCardsItemMark"
        level:
          $ref: "#/components/schemas/ListVaultMarketShareCardsItemLevel"
        change:
          $ref: "#/components/schemas/ListVaultMarketShareCardsItemChange"
        amounts:
          $ref: "#/components/schemas/ListVaultMarketShareCardsItemAmounts"
        portfolio:
          $ref: "#/components/schemas/ListVaultMarketShareCardsItemPortfolio"
        links:
          $ref: "#/components/schemas/ListVaultMarketShareCardsItemLinks"
      required:
        - id
        - kind
        - verified
        - createdAt
        - showAmounts
        - owner
        - title
        - change
        - links
      additionalProperties: false
    ListVaultMarketShareCardsItemAmounts:
      type: object
      properties:
        fillCents:
          type: number
          nullable: true
        exitCents:
          type: number
          nullable: true
        valueCents:
          type: number
          nullable: true
        pnlCents:
          type: number
          nullable: true
      additionalProperties: false
      nullable: true
      description: Only when the owner turned amounts on.
    ListVaultMarketShareCardsItemChange:
      type: object
      properties:
        bps:
          type: number
          nullable: true
        since:
          type: string
          enum:
            - fill
            - entry
            - cost
            - inception
          nullable: true
          description: What the % is measured from.
        sinceAt:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - live
            - open
            - closed
            - sold
            - held
            - gone
        side:
          type: string
          enum:
            - short
            - long
            - own
          nullable: true
      required:
        - state
      additionalProperties: false
    ListVaultMarketShareCardsItemLevel:
      type: object
      properties:
        value:
          type: number
          nullable: true
        asOf:
          type: string
          nullable: true
        quality:
          type: string
        n:
          type: number
        insufficient:
          type: boolean
      required:
        - quality
        - n
        - insufficient
      additionalProperties: false
      nullable: true
    ListVaultMarketShareCardsItemLinks:
      type: object
      properties:
        page:
          type: string
        image:
          type: string
        unfurl:
          type: string
        target:
          type: string
          nullable: true
      required:
        - page
        - image
        - unfurl
      additionalProperties: false
    ListVaultMarketShareCardsItemMark:
      type: object
      properties:
        cents:
          type: number
          nullable: true
        quality:
          type: string
          enum:
            - none
            - C
            - A
            - B
        asOf:
          type: string
          nullable: true
      required:
        - quality
      additionalProperties: false
      nullable: true
    ListVaultMarketShareCardsItemPortfolio:
      type: object
      properties:
        markedUnits:
          type: number
        unmarkedUnits:
          type: number
      required:
        - markedUnits
        - unmarkedUnits
      additionalProperties: false
      nullable: true
    ListVaultMarketShareCardsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareCardsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareDropsItem:
      type: object
      properties:
        series:
          $ref: "#/components/schemas/ListVaultMarketShareSeriesItem"
        drop:
          $ref: "#/components/schemas/CreateVaultMarketShareSeryWatchResponse"
      required:
        - series
        - drop
      additionalProperties: false
    ListVaultMarketShareDropsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareDropsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareGiftsItem:
      type: object
      properties:
        id:
          type: string
        seriesId:
          type: string
        shares:
          type: number
        status:
          type: string
        message:
          type: string
          nullable: true
        venue:
          type: string
        direction:
          type: string
          enum:
            - sent
            - received
          nullable: true
        costBasisCents:
          type: number
          nullable: true
        expiresAt:
          type: string
        acceptedAt:
          type: string
          nullable: true
        settledAt:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - seriesId
        - shares
        - status
        - venue
        - expiresAt
        - createdAt
      additionalProperties: false
    ListVaultMarketShareGiftsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareGiftsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareOrdersItem:
      type: object
      properties:
        id:
          type: string
        seriesId:
          type: string
        side:
          type: string
          enum:
            - buy
            - sell
        type:
          type: string
          enum:
            - limit
            - market
        tif:
          type: string
          enum:
            - gtc
            - gtd
            - ioc
        postOnly:
          type: boolean
        shares:
          type: number
        filledShares:
          type: number
        remainingShares:
          type: number
        limitCents:
          type: number
        amountCents:
          type: number
          nullable: true
        avgFillCents:
          type: number
          nullable: true
        status:
          type: string
        rejectReason:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        jointVaultId:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - seriesId
        - side
        - type
        - tif
        - postOnly
        - shares
        - filledShares
        - remainingShares
        - limitCents
        - status
        - createdAt
      additionalProperties: false
    ListVaultMarketShareOrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareOrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareSeriesItem:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        status:
          type: string
          enum:
            - trading
            - proposed
            - failed
            - qualifying
            - offering
            - closing
            - lockup
            - exit_pending
            - wound_up
        statusText:
          type: string
        venue:
          type: string
        practice:
          type: boolean
        bookKey:
          type: string
        vaultItemId:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        issuer:
          type: string
          nullable: true
        offeringRef:
          type: string
          nullable: true
        totalShares:
          type: number
        priceCents:
          type: number
        retainedShares:
          type: number
        offeredShares:
          type: number
        minRaiseShares:
          type: number
        soldShares:
          type: number
        reserveCents:
          type: number
        markAtOfferingCents:
          type: number
        markQuality:
          type: string
          nullable: true
        tier:
          type: string
          nullable: true
        valuationStatementId:
          type: string
          nullable: true
        valuationHash:
          type: string
          nullable: true
        offeringOpensAt:
          type: string
          nullable: true
        offeringDeadline:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
        lockupEndsAt:
          type: string
          nullable: true
        tradingSince:
          type: string
          nullable: true
        lastPriceCents:
          type: number
          nullable: true
        lastTradeAt:
          type: string
          nullable: true
        impliedItemValueCents:
          type: number
          nullable: true
        quality:
          type: string
        usableForRisk:
          type: boolean
        impliedLabel:
          type: string
        halted:
          type: boolean
        storageAccruedCents:
          type: number
        insuranceAccruedCents:
          type: number
        exitKind:
          type: string
          nullable: true
        exitCents:
          type: number
          nullable: true
        woundUpAt:
          type: string
          nullable: true
        failedReason:
          type: string
          nullable: true
        mine:
          $ref: "#/components/schemas/ListVaultMarketShareSeriesItemMine"
        rights:
          $ref: "#/components/schemas/ListVaultMarketShareSeriesItemRights"
        href:
          type: string
        dropAt:
          type: string
          nullable: true
        allocationMode:
          type: string
          enum:
            - fcfs
            - pro_rata
            - lottery
        perPersonCapShares:
          type: number
          nullable: true
        allocationWindowEndsAt:
          type: string
          nullable: true
        allocatedAt:
          type: string
          nullable: true
        tradingMode:
          type: string
          enum:
            - continuous
            - windows
        holderCount:
          type: number
          nullable: true
        isOriginator:
          type: boolean
        canPostUpdates:
          type: boolean
      required:
        - id
        - code
        - status
        - statusText
        - venue
        - practice
        - bookKey
        - totalShares
        - priceCents
        - retainedShares
        - offeredShares
        - minRaiseShares
        - soldShares
        - reserveCents
        - markAtOfferingCents
        - quality
        - usableForRisk
        - impliedLabel
        - halted
        - storageAccruedCents
        - insuranceAccruedCents
        - rights
        - href
        - allocationMode
        - tradingMode
        - isOriginator
        - canPostUpdates
      additionalProperties: false
    ListVaultMarketShareSeriesItemMine:
      type: object
      properties:
        shares:
          type: number
        bps:
          type: number
        pctText:
          type: string
      required:
        - shares
        - bps
        - pctText
      additionalProperties: false
      nullable: true
    ListVaultMarketShareSeriesItemRights:
      type: object
      properties:
        collateral:
          type: boolean
        lendable:
          type: boolean
        shortable:
          type: boolean
      required:
        - collateral
        - lendable
        - shortable
      additionalProperties: false
    ListVaultMarketShareSeriesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSeriesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareSeryAppraisalsItem:
      type: object
      properties:
        id:
          type: string
        cents:
          type: number
        source:
          type: string
        appraiser:
          type: string
          nullable: true
        statementId:
          type: string
          nullable: true
        hash:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        appraisedAt:
          type: string
      required:
        - id
        - cents
        - source
        - appraisedAt
      additionalProperties: false
    ListVaultMarketShareSeryAppraisalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSeryAppraisalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareSeryTapeItem:
      type: object
      properties:
        id:
          type: string
        shares:
          type: number
        priceCents:
          type: number
        makerSide:
          type: string
          enum:
            - buy
            - sell
        takerSide:
          type: string
        at:
          type: string
        settled:
          type: boolean
      required:
        - id
        - shares
        - priceCents
        - makerSide
        - takerSide
        - at
        - settled
      additionalProperties: false
    ListVaultMarketShareSeryTapeResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSeryTapeItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareSeryUpdatesItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        kindText:
          type: string
        title:
          type: string
        body:
          type: string
        mediaUrl:
          type: string
          nullable: true
        holdersOnly:
          type: boolean
        publishedAt:
          type: string
      required:
        - id
        - kind
        - kindText
        - title
        - body
        - holdersOnly
        - publishedAt
      additionalProperties: false
    ListVaultMarketShareSeryUpdatesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSeryUpdatesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareSubscriptionsItem:
      type: object
      properties:
        id:
          type: string
        seriesId:
          type: string
        shares:
          type: number
        priceCents:
          type: number
        amountCents:
          type: number
        status:
          type: string
        venue:
          type: string
        allocatedShares:
          type: number
          nullable: true
        earlyAccess:
          type: boolean
        drawRank:
          type: number
          nullable: true
        jointVaultId:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        createdAt:
          type: string
        allocatedAt:
          type: string
          nullable: true
        refundedAt:
          type: string
          nullable: true
      required:
        - id
        - seriesId
        - shares
        - priceCents
        - amountCents
        - status
        - venue
        - earlyAccess
        - createdAt
      additionalProperties: false
    ListVaultMarketShareSubscriptionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareSubscriptionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketShareWorldItem:
      type: object
      properties:
        seriesId:
          type: string
        code:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        shares:
          type: number
        totalShares:
          type: number
        bps:
          type: number
        caption:
          type: string
        href:
          type: string
        arPath:
          type: string
          nullable: true
      required:
        - seriesId
        - code
        - shares
        - totalShares
        - bps
        - caption
        - href
      additionalProperties: false
    ListVaultMarketShareWorldResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketShareWorldItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketSupplyDeclaredValuesItem:
      type: object
      properties:
        inventoryItemId:
          type: string
      required:
        - inventoryItemId
      additionalProperties: false
    ListVaultMarketSupplyDeclaredValuesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSupplyDeclaredValuesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketSupplyDepositsItem:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        vaultItemId:
          type: string
        inventoryItemId:
          type: string
          nullable: true
        batchId:
          type: string
          nullable: true
        partnerId:
          type: string
          nullable: true
        bookKey:
          type: string
        status:
          type: string
          enum:
            - stored
            - cancelled
            - listed
            - shipped
            - inbound
            - sold_on_book
            - channel_sold
        unitStatus:
          type: string
        lendEnabled:
          type: boolean
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        variantLabel:
          type: string
          nullable: true
        autoListBps:
          type: number
          nullable: true
        lendWhenIdle:
          type: boolean
        setupNote:
          type: string
          nullable: true
        setUpAt:
          type: string
          nullable: true
        channelPlatform:
          type: string
          nullable: true
        channelSoldAt:
          type: string
          nullable: true
        outboundTracking:
          type: string
          nullable: true
        exit:
          $ref: "#/components/schemas/ListVaultMarketSupplyDepositsItemExit"
        createdAt:
          type: string
      required:
        - id
        - vaultItemId
        - bookKey
        - status
        - unitStatus
        - lendEnabled
        - lendWhenIdle
        - createdAt
      additionalProperties: false
    ListVaultMarketSupplyDepositsItemExit:
      type: object
      properties:
        quality:
          type: string
        asOf:
          type: string
          nullable: true
        line:
          type: string
        markCents:
          type: number
          nullable: true
        bestBidCents:
          type: number
          nullable: true
        shareOfMarkBps:
          type: number
          nullable: true
          description: The best bid as a share of the mark (bps).
        available:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - quality
        - line
        - available
      additionalProperties: false
      nullable: true
    ListVaultMarketSupplyDepositsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSupplyDepositsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketSupplyEligibilityItem:
      type: object
      properties:
        inventoryItemId:
          type: string
        title:
          type: string
          nullable: true
        eligible:
          type: boolean
        reason:
          nullable: true
        code:
          type: string
      required:
        - inventoryItemId
        - eligible
        - reason
    ListVaultMarketSupplyEligibilityResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSupplyEligibilityItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketSupplyInvitesItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        note:
          type: string
          nullable: true
        invitedAt:
          type: string
        key:
          $ref: "#/components/schemas/ListVaultMarketSupplyInvitesItemKey"
        marketHref:
          type: string
      required:
        - id
        - status
        - invitedAt
        - key
        - marketHref
      additionalProperties: false
    ListVaultMarketSupplyInvitesItemKey:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        bookKey:
          type: string
        key:
          $ref: "#/components/schemas/ListVaultMarketOpeningItemKey"
        title:
          type: string
        blurb:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - live
            - cancelled
            - opening
            - planned
            - inviting
        targetUnits:
          type: number
        targetDealers:
          type: number
        opensAt:
          type: string
          nullable: true
        liveStreamId:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - slug
        - bookKey
        - key
        - title
        - status
        - targetUnits
        - targetDealers
        - createdAt
      additionalProperties: false
    ListVaultMarketSupplyInvitesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSupplyInvitesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketSupplyShipmentsItem:
      type: object
      properties:
        receivedUnits:
          type: number
        id:
          type: string
        method:
          type: string
          enum:
            - label
            - dropoff
        units:
          type: number
        labelUrl:
          type: string
          nullable: true
        trackingCode:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        labelError:
          type: string
          nullable: true
        dropoffCode:
          type: string
          nullable: true
        dropoffPartner:
          $ref: "#/components/schemas/GetVaultMarketSupplyShipmentResponseDropoffPartner"
        insured:
          type: boolean
        declaredValueCents:
          type: number
          nullable: true
        createdAt:
          type: string
      required:
        - receivedUnits
        - id
        - method
        - units
        - insured
        - createdAt
      additionalProperties: false
    ListVaultMarketSupplyShipmentsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketSupplyShipmentsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketValuationStatementsItem:
      type: object
      properties:
        id:
          type: string
        purpose:
          type: string
          enum:
            - appraisal
            - insurance
        title:
          type: string
        asOf:
          type: string
        issuedAt:
          type: string
        hash:
          type: string
        units:
          type: number
        markedUnits:
          type: number
        totalCents:
          type: number
        verifyUrl:
          type: string
      required:
        - id
        - purpose
        - title
        - asOf
        - issuedAt
        - hash
        - units
        - markedUnits
        - totalCents
        - verifyUrl
      additionalProperties: false
    ListVaultMarketValuationStatementsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketValuationStatementsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketVaultSuggestionsItem:
      type: object
      properties:
        inventoryItemId:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        unitsToSend:
          type: number
          description: Units of the item not yet in the vault.
        bookKey:
          type: string
        variantId:
          type: string
        condition:
          type: string
          description: The condition it would go into the vault as (the seller can change it when sending).
        gradeKey:
          type: string
          nullable: true
        market:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionMarket"
        instantExit:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionInstantExit"
        listPriceCents:
          type: number
          nullable: true
        exitVsListBps:
          type: number
          nullable: true
        exitBasis:
          type: string
          enum:
            - mark
            - list_price
          nullable: true
        daysListed:
          type: number
          nullable: true
        vaultFee:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionVaultFee"
        score:
          type: number
        strength:
          type: string
          enum:
            - strong
            - good
            - worth_a_look
        parts:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionParts"
        reasons:
          type: array
          items:
            type: string
        marketPath:
          type: string
          description: Where the market lives on the web (the buyer-side market page).
        fractionalize:
          $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponseSuggestionFractionalize"
      required:
        - inventoryItemId
        - unitsToSend
        - bookKey
        - variantId
        - condition
        - market
        - instantExit
        - vaultFee
        - score
        - strength
        - parts
        - reasons
        - marketPath
      additionalProperties: false
    ListVaultMarketVaultSuggestionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketVaultSuggestionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketWatchlistItem:
      type: object
      properties:
        addedAt:
          type: string
        markQuality:
          type: string
          enum:
            - none
            - C
            - A
            - B
          nullable: true
        markCents:
          type: number
        day:
          type: string
        change24hBps:
          type: number
          nullable: true
        change7dBps:
          type: number
          nullable: true
        sparkline:
          type: array
          items:
            $ref: "#/components/schemas/GetVaultMarketWidgetMarkResponsePoints"
        name:
          type: string
          nullable: true
        label:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bookKey:
          type: string
      required:
        - addedAt
        - markCents
        - day
        - sparkline
        - bookKey
      additionalProperties: false
    ListVaultMarketWatchlistResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketWatchlistItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketWidgetTokensItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        prefix:
          type: string
          description: The token's public prefix (safe to show; the secret never comes back).
        createdAt:
          type: string
          nullable: true
        lastUsedAt:
          type: string
          nullable: true
      required:
        - id
        - name
        - prefix
      additionalProperties: false
    ListVaultMarketWidgetTokensResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketWidgetTokensItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketWorldCohostsItem:
      type: object
      properties:
        keySlug:
          type: string
        title:
          type: string
        phase:
          type: string
          enum:
            - live
            - scheduled
            - soon
        opensAt:
          type: string
          nullable: true
        liveAt:
          type: string
          nullable: true
        show:
          $ref: "#/components/schemas/ListVaultMarketWorldCohostsItemShow"
        openingHref:
          type: string
        creator:
          $ref: "#/components/schemas/ListVaultMarketWorldCohostsItemCreator"
        line:
          type: string
          description: '"Co-hosted by <creator>" (ASCII, fits the world boards).'
        roomTitle:
          type: string
        roomPresenceSlug:
          type: string
        roomWorldHref:
          type: string
        disclosure:
          type: string
          nullable: true
          description: Present when the creator is in the creator programme (may earn a share of the fee Crossly keeps).
      required:
        - keySlug
        - title
        - phase
        - openingHref
        - creator
        - line
        - roomTitle
        - roomPresenceSlug
        - roomWorldHref
      additionalProperties: false
    ListVaultMarketWorldCohostsItemCreator:
      type: object
      properties:
        handle:
          type: string
          nullable: true
        displayName:
          type: string
        avatarUrl:
          type: string
          nullable: true
        profileUrl:
          type: string
          nullable: true
      required:
        - displayName
      additionalProperties: false
    ListVaultMarketWorldCohostsItemShow:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        href:
          type: string
      required:
        - id
        - status
        - href
      additionalProperties: false
      nullable: true
    ListVaultMarketWorldCohostsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketWorldCohostsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketWorldCreatorRoomsItem:
      type: object
      properties:
        slug:
          type: string
        presenceSlug:
          type: string
        title:
          type: string
        blurb:
          type: string
          nullable: true
        creator:
          $ref: "#/components/schemas/ListVaultMarketWorldCohostsItemCreator"
        worldHref:
          type: string
        disclosure:
          type: string
      required:
        - slug
        - presenceSlug
        - title
        - creator
        - worldHref
        - disclosure
      additionalProperties: false
    ListVaultMarketWorldCreatorRoomsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketWorldCreatorRoomsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultMarketWorldMarketOpenItem:
      type: object
      properties:
        slug:
          type: string
        title:
          type: string
        bookKey:
          type: string
        phase:
          type: string
          enum:
            - live
            - scheduled
            - soon
        opensAt:
          type: string
          nullable: true
        liveAt:
          type: string
          nullable: true
        line:
          type: string
          description: The board line (ASCII, fits the world boards).
        imageUrl:
          type: string
          nullable: true
        unitsOnShelf:
          type: number
        dealersQuoting:
          type: number
        show:
          $ref: "#/components/schemas/ListVaultMarketWorldMarketOpenItemShow"
        openingHref:
          type: string
        marketHref:
          type: string
        cohost:
          $ref: "#/components/schemas/ListVaultMarketWorldMarketOpenItemCohost"
      required:
        - slug
        - title
        - bookKey
        - phase
        - line
        - unitsOnShelf
        - dealersQuoting
        - openingHref
        - marketHref
      additionalProperties: false
    ListVaultMarketWorldMarketOpenItemCohost:
      type: object
      properties:
        creator:
          $ref: "#/components/schemas/ListVaultMarketWorldCohostsItemCreator"
        line:
          type: string
          description: '"Co-hosted by <creator>" (ASCII, fits the world boards).'
        roomTitle:
          type: string
        roomPresenceSlug:
          type: string
        roomWorldHref:
          type: string
        disclosure:
          type: string
          nullable: true
          description: Present when the creator is in the creator programme (may earn a share of the fee Crossly keeps).
      required:
        - creator
        - line
        - roomTitle
        - roomPresenceSlug
        - roomWorldHref
      additionalProperties: false
      nullable: true
      description: A verified creator co-hosting the launch show (creator-cohosts.ts), with the disclosure when they may earn from it.
    ListVaultMarketWorldMarketOpenItemShow:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        scheduledAt:
          type: string
          nullable: true
        href:
          type: string
      required:
        - id
        - status
        - href
      additionalProperties: false
      nullable: true
    ListVaultMarketWorldMarketOpenResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultMarketWorldMarketOpenItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultReceiptTokenWalletsItem:
      type: object
      properties:
        wallet:
          type: string
        status:
          type: string
          enum:
            - revoked
            - allowed
            - not_allowed
        statusText:
          type: string
        updatedAt:
          type: string
          nullable: true
          description: When the chain entry was last written (allowed or revoked), ISO.
        pending:
          type: boolean
          description: A transaction for this wallet was built and not seen on chain yet.
      required:
        - wallet
        - status
        - statusText
        - pending
      additionalProperties: false
    ListVaultReceiptTokenWalletsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultReceiptTokenWalletsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultReceiptTokensItem:
      type: object
      properties:
        vaultItemId:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bookKey:
          type: string
          nullable: true
        status:
          type: string
        receiptNo:
          type: string
          nullable: true
        receiptStatus:
          type: string
          nullable: true
        pledged:
          type: boolean
        onLoan:
          type: boolean
        token:
          $ref: "#/components/schemas/ListVaultReceiptTokensItemToken"
        exportable:
          type: boolean
          description: Whether "Send to my wallet" can start now (the gate open and the unit free).
        blocker:
          type: string
          nullable: true
          description: "Why not, in plain words (null when exportable, or when the gate is closed: see state)."
      required:
        - vaultItemId
        - status
        - pledged
        - onLoan
        - exportable
      additionalProperties: false
    ListVaultReceiptTokensItemToken:
      type: object
      properties:
        id:
          type: string
        vaultItemId:
          type: string
        receiptNo:
          type: string
        status:
          type: string
          enum:
            - expired
            - live
            - pending
            - conflict
            - frozen
            - burned
        statusText:
          type: string
        frozen:
          type: boolean
        wallet:
          type: string
        holder:
          type: string
          nullable: true
        mint:
          type: string
        tokenAccount:
          type: string
        programId:
          type: string
        cluster:
          type: string
        explorerUrl:
          type: string
        mintSignature:
          type: string
          nullable: true
        burnSignature:
          type: string
          nullable: true
        burnReason:
          type: string
          nullable: true
        conflictReason:
          type: string
          nullable: true
        termsVersion:
          type: string
        mine:
          type: boolean
        createdAt:
          type: string
        liveAt:
          type: string
          nullable: true
        closedAt:
          type: string
          nullable: true
      required:
        - id
        - vaultItemId
        - receiptNo
        - status
        - statusText
        - frozen
        - wallet
        - mint
        - tokenAccount
        - programId
        - cluster
        - explorerUrl
        - termsVersion
        - mine
        - createdAt
      additionalProperties: false
      nullable: true
    ListVaultReceiptTokensResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultReceiptTokensItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultReceiptsItem:
      type: object
      properties:
        form:
          type: string
          enum:
            - non_negotiable
            - negotiable
        termsVersion:
          type: string
        status:
          type: string
          enum:
            - void
            - pledged
            - issued
            - transferred
            - surrendered
        pledged:
          type: boolean
        certNo:
          type: string
          nullable: true
        holderHash:
          type: string
        head:
          type: string
        events:
          type: number
        issuedAt:
          type: string
        updatedAt:
          type: string
        closedAt:
          type: string
          nullable: true
        bookKey:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        receiptNo:
          type: string
        issuer:
          type: string
        vaultItemId:
          type: string
      required:
        - form
        - termsVersion
        - status
        - pledged
        - holderHash
        - head
        - events
        - issuedAt
        - updatedAt
        - bookKey
        - receiptNo
        - issuer
        - vaultItemId
      additionalProperties: false
    ListVaultReceiptsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultReceiptsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVaultUnitListItem:
      type: object
      properties:
        receiptNo:
          type: string
          nullable: true
        bookKey:
          type: string
        shelfLocation:
          type: string
          nullable: true
        insuredValueCents:
          type: number
          nullable: true
        status:
          type: string
        unitStatus:
          type: string
        pledged:
          type: boolean
        onLoan:
          type: boolean
        hashedHolder:
          type: string
      required:
        - bookKey
        - status
        - unitStatus
        - pledged
        - onLoan
        - hashedHolder
      additionalProperties: false
    ListVaultUnitListResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVaultUnitListItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListVideoRequestsItem:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        title:
          type: string
        imageUrl:
          type: string
        buyerName:
          type: string
        note:
          type: string
          nullable: true
        status:
          type: string
        videoUrl:
          type: string
          nullable: true
        sellerNote:
          type: string
          nullable: true
        answeredAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - slug
        - title
        - imageUrl
        - buyerName
        - status
        - createdAt
      additionalProperties: false
    ListVideoRequestsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListVideoRequestsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWalletDefaultsItem:
      type: object
      properties:
        purpose:
          type: string
          enum:
            - holder_perks
            - staking
            - creator_royalties
            - collection_deploy
            - drop_receive
            - game_rewards
            - cbx_withdrawals
            - store_selling
            - store_proceeds
            - property
            - vault_receipts
            - nft_import
            - buyer_receive
        label:
          type: string
        help:
          type: string
        families:
          type: array
          items:
            $ref: "#/components/schemas/ListWalletDefaultsItemFamiliesItem"
        refKinds:
          type: array
          items:
            $ref: "#/components/schemas/ListWalletDefaultsItemRefKindsItem"
        stored:
          type: string
          description: "Where the choice is kept: `cbx_subject` rows are changed through the CBX withdrawal link, not here."
        resolved:
          $ref: "#/components/schemas/ListWalletDefaultsItemResolved"
        storedWalletId:
          type: string
          nullable: true
          description: The explicitly stored default (null = falling back).
        overrides:
          type: array
          items:
            $ref: "#/components/schemas/ListWalletDefaultsItemOverrides"
      required:
        - purpose
        - label
        - help
        - families
        - refKinds
        - stored
        - overrides
      additionalProperties: false
    ListWalletDefaultsItemOverrides:
      type: object
      properties:
        refKind:
          type: string
          enum:
            - game
            - collection
        refKey:
          type: string
        walletId:
          type: string
        updatedAt:
          type: string
      required:
        - refKind
        - refKey
        - walletId
        - updatedAt
      additionalProperties: false
    ListWalletDefaultsItemResolved:
      type: object
      properties:
        source:
          type: string
          enum:
            - default
            - override
            - store_default
            - store_oldest
            - only_wallet
            - crossly_wallet
            - cbx_subject
        label:
          type: string
          nullable: true
        family:
          type: string
          enum:
            - solana
            - evm
        address:
          type: string
        walletId:
          type: string
        isCrosslyWallet:
          type: boolean
      required:
        - source
        - family
        - address
        - walletId
        - isCrosslyWallet
      additionalProperties: false
      nullable: true
      description: What resolves today (the stored choice, the only wallet, the Crossly wallet), or null = none.
    ListWeb3ActivityItem:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
          nullable: true
        event:
          type: string
          enum:
            - sale
            - listing
            - offer
            - cancel
        marketplace:
          type: string
        fromAddress:
          type: string
          nullable: true
        toAddress:
          type: string
          nullable: true
        priceWei:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
        txHash:
          type: string
          nullable: true
        occurredAt:
          type: string
          format: date-time
      required:
        - chain
        - contract
        - event
        - marketplace
        - occurredAt
      additionalProperties: false
    ListWeb3ActivityResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3ActivityItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3AlertsItem:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
          nullable: true
        belowWei:
          type: string
        currency:
          type: string
        lastFiredAt:
          type: string
          nullable: true
        createdAt:
          type: string
        collection:
          $ref: "#/components/schemas/ListWeb3AlertsItemCollection"
        token:
          $ref: "#/components/schemas/ListWeb3AlertsItemToken"
        floorWei:
          type: string
          nullable: true
          description: The cheapest open Crossly listing the alert covers right now.
      required:
        - id
        - chain
        - contract
        - belowWei
        - currency
        - createdAt
        - collection
      additionalProperties: false
    ListWeb3AlertsItemCollection:
      type: object
      properties:
        name:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      additionalProperties: false
    ListWeb3AlertsItemToken:
      type: object
      properties:
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
    ListWeb3AlertsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3AlertsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3ApprovalsItem:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        collectionName:
          type: string
          nullable: true
        wallet:
          type: string
        operator:
          type: string
        approved:
          type: boolean
      required:
        - chain
        - contract
        - wallet
        - operator
        - approved
      additionalProperties: false
    ListWeb3ApprovalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3ApprovalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3AuctionsItem:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        seller:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        reserveWei:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
          enum:
            - live
            - cancelled
            - ended
            - settled
        topBid:
          $ref: "#/components/schemas/ListWeb3AuctionsItemTopBid"
        bids:
          type: number
        minNextBidWei:
          type: string
          description: The least the next bid can be.
      required:
        - id
        - chain
        - contract
        - tokenId
        - seller
        - reserveWei
        - startsAt
        - endsAt
        - status
        - bids
        - minNextBidWei
      additionalProperties: false
    ListWeb3AuctionsItemTopBid:
      type: object
      properties:
        orderHash:
          type: string
        priceWei:
          type: string
        bidder:
          type: string
      required:
        - orderHash
        - priceWei
        - bidder
      additionalProperties: false
      nullable: true
    ListWeb3AuctionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3AuctionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3BrowseCollectionsItem:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        slug:
          type: string
          nullable: true
          description: Readable URL segment (migration 0382); null for a nameless collection.
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
        imageThumbUrl:
          type: string
          nullable: true
          description: Our first-paint webps (migration 0385); null until the image is rehosted.
        bannerThumbUrl:
          type: string
          nullable: true
        verified:
          type: boolean
        totalSupply:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        floorWei:
          type: string
          nullable: true
        listed:
          type: number
        volumeWei:
          type: string
        sales:
          type: number
        favorites:
          type: number
      required:
        - chain
        - contract
        - verified
        - listed
        - volumeWei
        - sales
        - favorites
      additionalProperties: false
    ListWeb3BrowseCollectionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3BrowseCollectionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3BrowseTokensItem:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        thumbUrl:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
          description: The collection's readable URL segment.
        listing:
          $ref: "#/components/schemas/ListWeb3BrowseTokensItemListing"
      required:
        - chain
        - contract
        - tokenId
      additionalProperties: false
    ListWeb3BrowseTokensItemListing:
      type: object
      properties:
        orderHash:
          type: string
        priceWei:
          type: string
        marketplace:
          type: string
      required:
        - orderHash
        - priceWei
        - marketplace
      additionalProperties: false
      nullable: true
      description: Set when it is for sale here.
    ListWeb3BrowseTokensResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3BrowseTokensItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3BundlesItem:
      type: object
      properties:
        chain:
          type: string
        orderHash:
          type: string
        kind:
          type: string
          enum:
            - bundle
            - private_listing
        maker:
          type: string
        priceWei:
          type: string
        endTime:
          type: string
        reservedFor:
          type: string
          nullable: true
        items:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3BundlesItemItems"
      required:
        - chain
        - orderHash
        - kind
        - maker
        - priceWei
        - endTime
        - items
      additionalProperties: false
    ListWeb3BundlesItemItems:
      type: object
      properties:
        contract:
          type: string
        tokenId:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
      required:
        - contract
        - tokenId
      additionalProperties: false
    ListWeb3BundlesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3BundlesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3CollectionHistoryItem:
      type: object
      properties:
        day:
          type: string
        floorWei:
          type: string
          nullable: true
        sales:
          type: number
        volumeWei:
          type: string
        owners:
          type: number
          nullable: true
        listed:
          type: number
      required:
        - day
        - sales
        - volumeWei
        - listed
      additionalProperties: false
    ListWeb3CollectionHistoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3CollectionHistoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3CollectionsItem:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        floorWei:
          type: string
          nullable: true
        listed:
          type: number
        volumeWei:
          type: string
        sales:
          type: number
      required:
        - chain
        - contract
        - listed
        - volumeWei
        - sales
      additionalProperties: false
    ListWeb3CollectionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3CollectionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3CreatorCollectionsItem:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        name:
          type: string
          nullable: true
        source:
          type: string
          enum:
            - launch
            - claim
        launchId:
          type: string
          nullable: true
      required:
        - chain
        - contract
        - source
      additionalProperties: false
    ListWeb3CreatorCollectionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3CreatorCollectionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3DropsItem:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contract:
          type: string
          nullable: true
        name:
          type: string
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        mintUrl:
          type: string
        priceWei:
          type: string
          nullable: true
        supply:
          type: number
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
          nullable: true
        active:
          type: boolean
        reminders:
          type: number
        remindMe:
          type: boolean
          nullable: true
      required:
        - id
        - chain
        - name
        - mintUrl
        - startsAt
        - active
        - reminders
      additionalProperties: false
    ListWeb3DropsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3DropsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3HolderPerksItem:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        collectionName:
          type: string
          nullable: true
        percentOffBps:
          type: number
        active:
          type: boolean
      required:
        - id
        - chain
        - contract
        - percentOffBps
        - active
      additionalProperties: false
    ListWeb3HolderPerksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3HolderPerksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3LaunchPerksItem:
      type: object
      properties:
        id:
          type: string
        creatorUserId:
          type: string
        launchId:
          type: string
          nullable: true
        chain:
          type: string
        contract:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - world_item
            - loyalty_tier
            - early_access_drops
            - live_early_entry
            - event_ticket
            - creator_shop_percent_off
        config:
          $ref: "#/components/schemas/ListWeb3LaunchPerksItemConfig"
        active:
          type: boolean
      required:
        - id
        - creatorUserId
        - chain
        - type
        - config
        - active
      additionalProperties: false
    ListWeb3LaunchPerksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3LaunchPerksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3LaunchesItem:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - draft
            - live
            - failed
            - deploying
        name:
          type: string
        symbol:
          type: string
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        maxSupply:
          type: number
        minted:
          type: number
        priceWei:
          type: string
        holderStart:
          type: string
          nullable: true
        publicStart:
          type: string
        endTime:
          type: string
          nullable: true
        holderGate:
          $ref: "#/components/schemas/ContractName"
        maxPerWallet:
          type: number
        royaltyBps:
          type: number
        platformBps:
          type: number
        phase:
          type: string
          enum:
            - public
            - ended
            - upcoming
            - holder
            - sold_out
        creator:
          $ref: "#/components/schemas/NameObject"
        card:
          type: boolean
          description: Card checkout (Crossmint) is set up and the collection is verified there.
        allowlist:
          type: boolean
          description: The creator set an early-phase allowlist (check a wallet with /launch/:id/allowlist/:address).
        revealed:
          type: boolean
          description: Per-token art has been revealed.
        cardSetId:
          type: string
          nullable: true
          description: "Creator Studio (migration 1163): the card set this collection takes on chain, and the creations it mints."
        creationRefs:
          type: array
          items:
            type: string
          nullable: true
        holderPerks:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3LaunchesItemHolderPerksItem"
          nullable: true
          description: "Migration 1178 (R-studio-15): what holding a token gets you, decided at mint (shared/creator/holder-perks)."
      required:
        - id
        - chain
        - status
        - name
        - symbol
        - maxSupply
        - minted
        - priceWei
        - publicStart
        - maxPerWallet
        - royaltyBps
        - platformBps
        - phase
        - creator
        - card
        - allowlist
        - revealed
      additionalProperties: false
    ListWeb3LaunchesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3LaunchesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3ListingsItem:
      type: object
      properties:
        orderHash:
          type: string
        marketplace:
          type: string
          description: crossly (Seaport on EVM, the Crossly Auction House on Solana), or tensor / magic_eden for a Solana listing.
        chain:
          type: string
        kind:
          type: string
        maker:
          type: string
        contract:
          type: string
        tokenId:
          type: string
          nullable: true
        quantity:
          type: number
        currency:
          type: string
        priceWei:
          type: string
        startPriceWei:
          type: string
        endPriceWei:
          type: string
          nullable: true
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
        itemName:
          type: string
          nullable: true
        itemImage:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        trait:
          $ref: "#/components/schemas/ListWeb3ListingsItemTrait"
      required:
        - orderHash
        - marketplace
        - chain
        - kind
        - maker
        - contract
        - quantity
        - currency
        - priceWei
        - startPriceWei
        - startTime
        - endTime
        - createdAt
      additionalProperties: false
    ListWeb3ListingsItemTrait:
      type: object
      properties:
        traitType:
          type: string
        value:
          type: string
      required:
        - traitType
        - value
      additionalProperties: false
      nullable: true
      description: "Trait offers: which trait."
    ListWeb3ListingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3ListingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3MarketplaceKeysItem:
      type: object
      properties:
        marketplace:
          type: string
          enum:
            - rarible
            - magic_eden
            - tensor
            - opensea
        platformKey:
          type: boolean
          description: Crossly has its own key for this marketplace (so it works without yours).
        yourKey:
          $ref: "#/components/schemas/ListWeb3MarketplaceKeysItemYourKey"
      required:
        - marketplace
        - platformKey
      additionalProperties: false
    ListWeb3MarketplaceKeysItemYourKey:
      type: object
      properties:
        last4:
          type: string
        verified:
          type: boolean
        updatedAt:
          type: string
      required:
        - last4
        - verified
        - updatedAt
      additionalProperties: false
      nullable: true
      description: "Your key, if you added one: only its last four characters."
    ListWeb3MarketplaceKeysResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3MarketplaceKeysItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3NftsItem:
      type: object
      properties:
        inventoryItemId:
          type: string
        walletId:
          type: string
          nullable: true
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        standard:
          type: string
        balance:
          type: number
        name:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        collectionSlug:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        animationUrl:
          type: string
          nullable: true
        traits:
          type: array
          items:
            $ref: "#/components/schemas/GetWeb3TokenResponseTraits"
        title:
          type: string
        status:
          type: string
        quantityAvailable:
          type: number
        lastSeenAt:
          type: string
          format: date-time
      required:
        - inventoryItemId
        - chain
        - contract
        - tokenId
        - standard
        - balance
        - traits
        - title
        - status
        - quantityAvailable
        - lastSeenAt
      additionalProperties: false
    ListWeb3NftsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3NftsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3OrdersItem:
      type: object
      properties:
        orderHash:
          type: string
        marketplace:
          type: string
          description: crossly (Seaport on EVM, the Crossly Auction House on Solana), or tensor / magic_eden for a Solana listing.
        chain:
          type: string
        kind:
          type: string
        maker:
          type: string
        contract:
          type: string
        tokenId:
          type: string
          nullable: true
        quantity:
          type: number
        currency:
          type: string
        priceWei:
          type: string
        startPriceWei:
          type: string
        endPriceWei:
          type: string
          nullable: true
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
        itemName:
          type: string
          nullable: true
        itemImage:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        trait:
          $ref: "#/components/schemas/ListWeb3ListingsItemTrait"
        status:
          type: string
      required:
        - orderHash
        - marketplace
        - chain
        - kind
        - maker
        - contract
        - quantity
        - currency
        - priceWei
        - startPriceWei
        - startTime
        - endTime
        - createdAt
        - status
      additionalProperties: false
    ListWeb3OrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3OrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3PurchasesItem:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        name:
          type: string
          nullable: true
        collectionName:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
          description: Our CDN copy only.
        priceWei:
          type: string
          nullable: true
        priceUsd:
          type: number
          nullable: true
        marketplace:
          type: string
        boughtAt:
          type: string
        txHash:
          type: string
          nullable: true
        held:
          type: boolean
          description: Still in one of the user's linked wallets.
      required:
        - chain
        - contract
        - tokenId
        - marketplace
        - boughtAt
        - held
      additionalProperties: false
    ListWeb3PurchasesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3PurchasesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3RankingsItem:
      type: object
      properties:
        rank:
          type: number
        chain:
          type: string
        contract:
          type: string
        name:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        verified:
          type: boolean
        volumeWei:
          type: string
        sales:
          type: number
        change:
          type: number
          nullable: true
          description: Volume change against the window before, as a fraction (0.25 = +25%); null with no prior volume.
        floorWei:
          type: string
          nullable: true
      required:
        - rank
        - chain
        - contract
        - verified
        - volumeWei
        - sales
      additionalProperties: false
    ListWeb3RankingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3RankingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3SalesItem:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
          nullable: true
        marketplace:
          type: string
        from:
          type: string
          nullable: true
        to:
          type: string
          nullable: true
        priceWei:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
        txHash:
          type: string
          nullable: true
        at:
          type: string
        collection:
          $ref: "#/components/schemas/ListWeb3AlertsItemCollection"
        token:
          $ref: "#/components/schemas/ListWeb3SalesItemToken"
      required:
        - chain
        - contract
        - marketplace
        - at
        - collection
        - token
      additionalProperties: false
    ListWeb3SalesItemToken:
      type: object
      properties:
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        thumbUrl:
          type: string
          nullable: true
      additionalProperties: false
    ListWeb3SalesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3SalesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3SearchItem:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
      required:
        - chain
        - contract
      additionalProperties: false
    ListWeb3SearchResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3SearchItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3SearchTokensItem:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        tokenId:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
          description: Our CDN copy only; null until it is rehosted.
        collection:
          $ref: "#/components/schemas/ListWeb3SearchTokensItemCollection"
      required:
        - chain
        - contract
        - tokenId
        - collection
      additionalProperties: false
    ListWeb3SearchTokensItemCollection:
      type: object
      properties:
        name:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
        verified:
          type: boolean
      required:
        - verified
      additionalProperties: false
    ListWeb3SearchTokensResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3SearchTokensItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3StoreWalletBalancesItem:
      type: object
      properties:
        walletId:
          type: string
        native:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3StoreWalletBalancesItemNative"
      required:
        - walletId
        - native
      additionalProperties: false
    ListWeb3StoreWalletBalancesItemNative:
      type: object
      properties:
        chain:
          type: string
        symbol:
          type: string
        decimals:
          type: number
        amount:
          type: string
          nullable: true
          description: Base units as a decimal string; null when the chain could not be read in time.
      required:
        - chain
        - symbol
        - decimals
      additionalProperties: false
    ListWeb3StoreWalletBalancesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3StoreWalletBalancesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3StoreWalletMarketplacesItem:
      type: object
      properties:
        marketplace:
          type: string
          enum:
            - rarible
            - magic_eden
            - tensor
            - opensea
        family:
          type: string
          enum:
            - solana
            - evm
        keyMode:
          type: string
          enum:
            - crossly
            - own_key
        hasKey:
          type: boolean
          description: A key the call can use (Crossly's, or the seller's own).
        yourKey:
          $ref: "#/components/schemas/ListWeb3StoreWalletMarketplacesItemYourKey"
        enabledWallets:
          type: number
          description: Verified store wallets of this network switched on for it.
        familyWallets:
          type: number
          description: Verified store wallets of this network, switched on or not.
        live:
          type: boolean
        reason:
          type: string
          enum:
            - live
            - needs_key
            - no_store_wallet
            - wallet_not_enabled
      required:
        - marketplace
        - family
        - keyMode
        - hasKey
        - enabledWallets
        - familyWallets
        - live
        - reason
      additionalProperties: false
    ListWeb3StoreWalletMarketplacesItemYourKey:
      type: object
      properties:
        last4:
          type: string
        verified:
          type: boolean
      required:
        - last4
        - verified
      additionalProperties: false
      nullable: true
      description: The seller's own key, when one is saved (only its last four characters).
    ListWeb3StoreWalletMarketplacesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3StoreWalletMarketplacesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3StoreWalletsItem:
      type: object
      properties:
        walletId:
          type: string
        family:
          type: string
          enum:
            - solana
            - evm
        address:
          type: string
        label:
          type: string
          nullable: true
        verifiedAt:
          type: string
          nullable: true
        linkedAt:
          type: string
        linkedByUserId:
          type: string
          nullable: true
        isDefault:
          type: boolean
          description: |-
            The store's default selling wallet on this network (1124): the one set with setDefaultStoreWallet, else the
            oldest link of the family. Exactly one per family that has a link.
        autoImport:
          type: boolean
          description: "1187: a sync of this wallet adds new NFTs to this store's inventory."
        marketplaces:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3StoreWalletsItemMarketplacesItem"
          description: "1197 (spec CN3): the NFT marketplaces this store lists from this wallet on (only its network's)."
      required:
        - walletId
        - family
        - address
        - linkedAt
        - isDefault
        - autoImport
        - marketplaces
      additionalProperties: false
    ListWeb3StoreWalletsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3StoreWalletsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3WalletsItem:
      type: object
      properties:
        id:
          type: string
        family:
          type: string
          enum:
            - solana
            - evm
        address:
          type: string
        label:
          type: string
          nullable: true
        verifiedAt:
          type: string
          format: date-time
          nullable: true
        lastSyncedAt:
          type: string
          format: date-time
          nullable: true
        autoImport:
          type: boolean
          description: A sync adds new NFTs to inventory (migration 0740); off, it only refreshes the ones already there.
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - family
        - address
        - autoImport
        - createdAt
      additionalProperties: false
    ListWeb3WalletsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3WalletsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWeb3WatchlistItem:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        tokenId:
          type: string
        favoritedAt:
          type: string
        name:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        collection:
          $ref: "#/components/schemas/ListWeb3WatchlistItemCollection"
        listing:
          $ref: "#/components/schemas/GetWeb3CollectionItemResponseItemsListing"
        lastSale:
          $ref: "#/components/schemas/ListWeb3WatchlistItemLastSale"
      required:
        - chain
        - contract
        - tokenId
        - favoritedAt
        - collection
      additionalProperties: false
    ListWeb3WatchlistItemCollection:
      type: object
      properties:
        name:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
      additionalProperties: false
    ListWeb3WatchlistItemLastSale:
      type: object
      properties:
        priceWei:
          type: string
          nullable: true
        at:
          type: string
      required:
        - at
      additionalProperties: false
      nullable: true
    ListWeb3WatchlistResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWeb3WatchlistItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWebhookDeliveriesItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        status:
          type: string
        deliveredAt:
          type: string
          format: date-time
          nullable: true
        lastError:
          type: string
          nullable: true
        attempts:
          type: number
        lastAttemptAt:
          type: string
          format: date-time
          nullable: true
        eventId:
          type: string
        webhookId:
          type: string
        eventName:
          type: string
        lastStatusCode:
          type: number
          nullable: true
        redeliveryOf:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - userId
        - status
        - attempts
        - eventId
        - webhookId
        - eventName
      additionalProperties: false
    ListWebhookDeliveriesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWebhookDeliveriesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWebhookEventsItem:
      type: object
      properties:
        id:
          type: string
          enum:
            - sale.detected
            - order.created
            - order.address_available
            - order.shipped
            - order.delivered
            - order.cancelled
            - refund.issued
            - order.refunded
            - return.requested
            - return.resolved
            - listing.sold
            - order.returned
            - order.disputed
            - order.dispute_closed
            - order.ship_by_soon
            - order.ship_by_overdue
            - tracking.updated
            - payout.sent
            - payout.released
            - payout.failed
            - feedback.received
            - listing.created
            - listing.price_changed
            - listing.delisted
            - listing.linked
            - listing.unlinked
            - listing.updated
            - listing.delist_requested
            - listing.update_requested
            - listing.relist_requested
            - listing.command_expired
            - order.tracking_requested
            - order.cancel_requested
            - order.refund_requested
            - order.message_requested
            - command.expired
            - command.cancelled
            - listing.published
            - listing.publish_failed
            - listing.price_dropped
            - listing.delisted_externally
            - listing.drift_detected
            - listing.found_untracked
            - listing.liked
            - listing.commented
            - listing.watcher_added
            - listing.app_unlinked
            - bulk_batch.completed
            - inventory.created
            - inventory.quantity_changed
            - inventory.low_stock
            - inventory.zero_qty
            - inventory.restocked
            - restock_prompt.created
            - catalog_match.proposed
            - grading.slab_graded
            - passport.created
            - passport.activated
            - passport.tag_bound
            - passport.printed
            - passport.transferred
            - passport.claimed
            - passport.custody_changed
            - passport.revoked
            - offer.received
            - offer.accepted
            - offer.declined
            - offer.countered
            - offer.updated
            - trade_block.offer_received
            - message.received
            - buyer.question
            - buyer.bundle_request
            - video_request.received
            - market.competitor_underprice
            - comp_watchlist.hit
            - price_scout.drop
            - reprice.proposed
            - sale_event.started
            - sale_event.ended
            - connection.disconnected
            - connection.lost
            - connection.degraded
            - connection.restored
            - connection.session_expiring
            - selling_limit.reached
            - import.completed
            - magic.draft_ready
            - shop.followed
            - automation.failed
            - workflow.event
            - detected_event.acted
            - detected_event.asked
            - detected_event.failed
            - detected_event.undone
            - wholesale.access_requested
            - wholesale.access_decided
            - invoice.issued
            - invoice.paid
            - invoice.overdue
            - world.sale
            - world.showroom.created
            - world.showroom.updated
            - world.showroom.archived
            - world.showroom.billing_failed
            - world.placement.assigned
            - world.placement.unassigned
            - stall.booked
            - world.venue.booked
            - world.convention.created
            - world.convention.application
            - world.convention.booth_assigned
            - world.convention.checked_in
            - space.event_starting
            - drop.won
            - drop.scheduled
            - drop.live
            - drop.paused
            - drop.wave_released
            - drop.sold_out
            - drop.ended
            - drop.raffle_drawn
            - drop.restock_run_started
            - event.published
            - event.updated
            - event.cancelled
            - event.rsvp
            - event.ticket_issued
            - event.checked_in
            - auction.lot_sold
            - live.show_started
            - live.show_ended
            - room.visit_digest
            - appraisal.answered
            - world.hunt_finished
            - world.trial_record
            - world.plot.listed
            - world.plot.sold
            - world.plot.rented
            - world.plot.lease_ended
            - world.street.listed
            - world.street.sold
            - world.street.application_decided
            - world.trespass.added
            - world.trespass.removed
            - world.job.posted
            - world.job.applied
            - world.job.accepted
            - world.shift.checked_in
            - world.shift.completed
            - world.shift.no_show
            - world.rating.created
            - world.attendant.action
            - world.hunt_built
            - world.hunt_won
            - world.break_live
            - world.break_ended
            - world.cosmetic_purchased
            - game.reviewed
            - game.reward_granted
            - game.published
            - game.played
            - game.ended
            - game.reported
            - contest.entered
            - contest.settled
            - contest.prize_won
            - capability.reviewed
            - capability.declared
            - capability.revoked
            - capability.used
            - experience.subject_erased
            - experience.reported
            - experience.moderated
            - world.purchase
            - world.subscription_renewed
            - world.receipt_refunded
            - world.payout_sent
            - world.alert
            - world.rewards_credited
            - creator.creation_submitted
            - creator.creation_decided
            - creator.creation_live
            - creator.creation_paused
            - creator.creation_sold
            - creator.review_created
            - creator.collection_stage_changed
            - carnival_game.created
            - carnival_game.updated
            - carnival_game.access_changed
            - carnival_game.deleted
            - carnival_game.restored
            - carnival_game.purged
            - carnival_game.transfer_requested
            - carnival_game.transferred
            - app.certification_decided
            - app.verification_decided
            - rental.requested
            - rental.booked
            - rental.declined
            - rental.cancelled
            - rental.shipped
            - rental.delivered
            - rental.extended
            - rental.returned
            - rental.claim_filed
            - rental.deposit_released
            - rental.bought_out
            - rental.not_returned
            - rental.extension_requested
            - rental.return_shipped
            - rental.inspected
            - rental.overdue
            - rental.claim_disputed
            - rental.claim_resolved
            - rental.pickup_due
            - rental.return_due
            - rental.status_changed
            - layaway.payment
            - vault.alert
            - vault.shipment_created
            - vault.unit_received
            - vault.sale_assigned
            - vault.auto_buy_purchased
            - grading.order_paid
            - grading.order_status_changed
            - grading.card_graded
            - ads.topup_succeeded
            - ads.topup_failed
            - ads.auto_topup_failed
            - ads.balance_low
            - ads.refund_issued
            - ads.paused_for_funds
            - ads.paused_all
            - ads.resumed_all
            - ads.campaign_created
            - ads.campaign_updated
            - ads.campaign_status_changed
            - ads.platform_ad_added
            - ads.platform_ad_removed
            - ads.platform_ad_failed
            - ads.platform_campaign_created
            - ads.platform_ad_status_changed
            - funding.application_decided
            - funding.waitlist_promoted
            - funding.draw_requested
            - funding.draw_decided
            - funding.draw_disbursed
            - funding.draw_spent
            - funding.repayment_applied
            - funding.due_soon
            - funding.late
            - funding.line_frozen
            - group_buy.created
            - group_buy.updated
            - group_buy.joined
            - group_buy.left
            - group_buy.tier_reached
            - group_buy.extended
            - group_buy.closed
            - group_buy.cancelled
            - loyalty.tier_changed
            - loyalty.points_awarded
            - loyalty.reward_redeemed
            - profile.milestone_earned
            - club.joined
            - referral.activated
        group:
          type: string
          enum:
            - Wholesale
            - Ads
            - Branding
            - Market
            - Account
            - Sales
            - Offers
            - Messages
            - Listings
            - Inventory
            - World
            - Builders
            - System
          description: "The picker group: the event family in the ONE event catalog (shared/events/catalog.ts)."
        trigger:
          type: boolean
          description: "A workflow can start on it too (`on.<id>`): the trigger side of the same catalog row."
        label:
          type: string
        description:
          type: string
      required:
        - id
        - group
        - trigger
        - label
        - description
      additionalProperties: false
    ListWebhookEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWebhookEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWebhookTypesItem:
      type: object
      properties:
        id:
          type: string
          enum:
            - json
            - teams
            - discord
            - slack
            - telegram
            - google_chat
            - mattermost
            - zapier
        label:
          type: string
        blurb:
          type: string
        signs:
          type: boolean
          description: "Signed with Crossly-Signature (HMAC SHA-256). Chat types are not: their URL is the secret."
        body:
          type: string
          enum:
            - message
            - event
          description: "'event' = the raw JSON envelope; 'message' = a chat message built from a title + text."
        hosts:
          type: array
          items:
            type: string
          nullable: true
          description: The host a pasted URL must be on (null = any https URL, private networks refused by the delivery guard).
        fields:
          type: array
          items:
            $ref: "#/components/schemas/ListWebhookTypesItemFields"
        helpUrl:
          type: string
          nullable: true
      required:
        - id
        - label
        - blurb
        - signs
        - body
        - fields
      additionalProperties: false
    ListWebhookTypesItemFields:
      type: object
      properties:
        key:
          type: string
          enum:
            - username
            - channel
            - url
            - chatId
            - botToken
        label:
          type: string
        secret:
          type: boolean
          nullable: true
          description: Stored encrypted (destination_secret_enc) and never echoed back.
        required:
          type: boolean
        placeholder:
          type: string
          nullable: true
      required:
        - key
        - label
        - required
      additionalProperties: false
    ListWebhookTypesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWebhookTypesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWebhooksItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
          description: The store it belongs to (1500); null = the default store, hearing every store's events for one release.
        kind:
          type: string
          enum:
            - json
            - teams
            - discord
            - slack
            - telegram
            - google_chat
            - mattermost
            - zapier
        enabled:
          type: boolean
        consecutiveFailures:
          type: number
        lastError:
          type: string
          nullable: true
        lastErrorAt:
          type: string
          format: date-time
          nullable: true
        events:
          type: array
          items:
            type: string
        url:
          type: string
        appName:
          type: string
          nullable: true
        lastDeliveryAt:
          type: string
          format: date-time
          nullable: true
        oauthAppId:
          type: string
          nullable: true
        destination:
          type: object
          additionalProperties: {}
        eventDelivery:
          type: boolean
        hasBotToken:
          type: boolean
        headerNames:
          type: array
          items:
            type: string
          description: "json: the custom header NAMES (values are credentials and never leave the api)."
      required:
        - id
        - createdAt
        - kind
        - enabled
        - consecutiveFailures
        - events
        - url
        - destination
        - eventDelivery
        - hasBotToken
        - headerNames
      additionalProperties: false
    ListWebhooksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWebhooksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleBuyersItem:
      type: object
      properties:
        buyerUserId:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        businessName:
          type: string
          nullable: true
        businessVerifiedAt:
          type: string
          format: date-time
          nullable: true
        b2bStatus:
          type: string
          nullable: true
        taxExemptStatus:
          type: string
          nullable: true
        taxExemptCertificateUrl:
          type: string
          nullable: true
        catalogs:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleBuyersItemCatalogs"
        groups:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleBuyersItemGroups"
        terms:
          $ref: "#/components/schemas/ListWholesaleBuyersItemTerms"
        outstandingCents:
          type: number
        wholesaleSpendCents:
          type: number
        pending:
          type: boolean
          description: An emailed invite nobody has signed up with yet.
      required:
        - catalogs
        - groups
        - outstandingCents
        - wholesaleSpendCents
        - pending
      additionalProperties: false
    ListWholesaleBuyersItemCatalogs:
      type: object
      properties:
        catalogId:
          type: string
        name:
          type: string
        grantId:
          type: string
      required:
        - catalogId
        - name
        - grantId
      additionalProperties: false
    ListWholesaleBuyersItemGroups:
      type: object
      properties:
        groupId:
          type: string
        name:
          type: string
      required:
        - groupId
        - name
      additionalProperties: false
    ListWholesaleBuyersItemTerms:
      type: object
      properties:
        netDays:
          type: number
        creditLimitCents:
          type: number
          nullable: true
        discountPercentBps:
          type: number
        active:
          type: boolean
      required:
        - netDays
        - discountPercentBps
        - active
      additionalProperties: false
      nullable: true
    ListWholesaleBuyersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleBuyersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleCatalogItemsItem:
      type: object
      properties:
        platformListingId:
          type: string
        position:
          type: number
        slug:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        sku:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        quantityAvailable:
          type: number
          nullable: true
        status:
          type: string
        source:
          type: string
          enum:
            - listing
            - vault
          description: "Where the catalog sells it from: the listing's stock, or its units in the vault (§V7)."
        vaultUnits:
          type: number
          description: Units the vault can ship for it now.
        wholesalePriceCents:
          type: number
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWholesaleListingTierItem"
        own:
          $ref: "#/components/schemas/ListWholesaleCatalogItemsItemOwn"
        terms:
          $ref: "#/components/schemas/ListWholesaleCatalogItemsItemTerms"
      required:
        - platformListingId
        - position
        - slug
        - status
        - source
        - vaultUnits
        - tiers
        - own
        - terms
      additionalProperties: false
    ListWholesaleCatalogItemsItemOwn:
      type: object
      properties:
        moq:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        verifiedOnly:
          type: boolean
          nullable: true
        priceVisibility:
          type: string
          enum:
            - approved
            - everyone
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        orderMinCents:
          type: number
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          enum:
            - allow
            - no
            - preorder
          nullable: true
        restockEta:
          type: string
          nullable: true
      additionalProperties: false
      description: "1120: the item's own cascade values (null = inherit)."
    ListWholesaleCatalogItemsItemTerms:
      type: object
      properties:
        moq:
          $ref: "#/components/schemas/ListWholesaleCatalogItemsItemTermsMoq"
        casePack:
          $ref: "#/components/schemas/ListWholesaleCatalogItemsItemTermsMoq"
        leadTimeDays:
          $ref: "#/components/schemas/ValueSource"
        verifiedOnly:
          $ref: "#/components/schemas/ListWholesaleCatalogItemsItemTermsVerifiedOnly"
        priceVisibility:
          $ref: "#/components/schemas/ListWholesaleCatalogItemsItemTermsPriceVisibility"
        returnPresetId:
          $ref: "#/components/schemas/ValueSource2"
        paymentPresetId:
          $ref: "#/components/schemas/ValueSource2"
        shippingPresetId:
          $ref: "#/components/schemas/ValueSource2"
        orderMinCents:
          $ref: "#/components/schemas/ValueSource"
        maxPerOrder:
          $ref: "#/components/schemas/ValueSource"
        backorder:
          $ref: "#/components/schemas/ListWholesaleCatalogItemsItemTermsBackorder"
        restockEta:
          $ref: "#/components/schemas/ValueSource2"
      required:
        - moq
        - casePack
        - leadTimeDays
        - verifiedOnly
        - priceVisibility
        - returnPresetId
        - paymentPresetId
        - shippingPresetId
        - orderMinCents
        - maxPerOrder
        - backorder
        - restockEta
      additionalProperties: false
    ListWholesaleCatalogItemsItemTermsBackorder:
      type: object
      properties:
        value:
          type: string
          enum:
            - allow
            - no
            - preorder
        source:
          type: string
          enum:
            - default
            - item
            - catalog
            - profile
      required:
        - value
        - source
      additionalProperties: false
    ListWholesaleCatalogItemsItemTermsMoq:
      type: object
      properties:
        value:
          type: number
        source:
          type: string
          enum:
            - default
            - item
            - catalog
            - profile
      required:
        - value
        - source
      additionalProperties: false
    ListWholesaleCatalogItemsItemTermsPriceVisibility:
      type: object
      properties:
        value:
          type: string
          enum:
            - approved
            - everyone
        source:
          type: string
          enum:
            - default
            - item
            - catalog
            - profile
      required:
        - value
        - source
      additionalProperties: false
    ListWholesaleCatalogItemsItemTermsVerifiedOnly:
      type: object
      properties:
        value:
          type: boolean
        source:
          type: string
          enum:
            - default
            - item
            - catalog
            - profile
      required:
        - value
        - source
      additionalProperties: false
    ListWholesaleCatalogItemsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleCatalogItemsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleCatalogsItem:
      type: object
      properties:
        itemCount:
          type: number
        grantCount:
          type: number
        pendingRequests:
          type: number
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        slug:
          type: string
        storefrontId:
          type: string
          nullable: true
        listedAt:
          type: string
          format: date-time
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        sellerUserId:
          type: string
        coverImageUrl:
          type: string
          nullable: true
        minOrderCents:
          type: number
          nullable: true
        listed:
          type: boolean
        visibility:
          type: string
        shippingPresetId:
          type: string
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        autoApprove:
          type: string
        requiresBusinessVerification:
          type: boolean
        directoryCategories:
          type: array
          items:
            type: string
        shipsFromRegion:
          type: string
          nullable: true
        directoryBlurb:
          type: string
          nullable: true
        boostedUntil:
          type: string
          format: date-time
          nullable: true
        casePack:
          type: number
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        verifiedOnly:
          type: boolean
          nullable: true
        priceVisibility:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          nullable: true
        restockEta:
          type: string
          nullable: true
      required:
        - itemCount
        - grantCount
        - pendingRequests
        - id
        - name
        - active
        - createdAt
        - updatedAt
        - slug
        - sellerUserId
        - listed
        - visibility
        - autoApprove
        - requiresBusinessVerification
        - directoryCategories
      additionalProperties: false
    ListWholesaleCatalogsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleCatalogsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleDropsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        status:
          type: string
        releasedAt:
          type: string
          format: date-time
          nullable: true
        storefrontId:
          type: string
          nullable: true
        published:
          type: boolean
        endsAt:
          type: string
          format: date-time
          nullable: true
        eventId:
          type: string
          nullable: true
        format:
          type: string
        config:
          type: object
          additionalProperties: {}
        sellerUserId:
          type: string
        coverImageUrl:
          type: string
          nullable: true
        platformListingIds:
          type: array
          items:
            type: string
          nullable: true
        dropAt:
          type: string
          format: date-time
        partnerId:
          type: string
          nullable: true
        wholesaleUnitCostCents:
          type: number
          nullable: true
        unitsPurchased:
          type: number
          nullable: true
        supplierName:
          type: string
          nullable: true
        poReference:
          type: string
          nullable: true
        retailUnitPriceCents:
          type: number
          nullable: true
        buyerApiEnabled:
          type: boolean
        perCustomerLimit:
          type: number
          nullable: true
        previewFrom:
          type: string
          format: date-time
          nullable: true
        publishedAt:
          type: string
          format: date-time
          nullable: true
        reviewNote:
          type: string
          nullable: true
        reviewedAt:
          type: string
          format: date-time
          nullable: true
        placements:
          type: array
          items:
            type: string
        announceAt:
          type: string
          format: date-time
          nullable: true
        countdownAt:
          type: string
          format: date-time
          nullable: true
        pausedAt:
          type: string
          format: date-time
          nullable: true
        liveStreamId:
          type: string
          nullable: true
        spatialDropId:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        featuredStatus:
          type: string
          nullable: true
        audience:
          type: string
        audienceCatalogId:
          type: string
          nullable: true
        dropKind:
          type: string
        depositBps:
          type: number
          nullable: true
        shipBy:
          type: string
          nullable: true
        balanceNetDays:
          type: number
          nullable: true
        listingCount:
          type: number
        catalogName:
          type: string
          nullable: true
        reservations:
          $ref: "#/components/schemas/ListWholesaleDropsItemReservations"
      required:
        - id
        - name
        - createdAt
        - updatedAt
        - status
        - published
        - format
        - config
        - sellerUserId
        - dropAt
        - buyerApiEnabled
        - placements
        - audience
        - dropKind
        - listingCount
        - reservations
      additionalProperties: false
    ListWholesaleDropsItemReservations:
      type: object
      properties:
        reservations:
          type: number
        buyers:
          type: number
        units:
          type: number
        depositCents:
          type: number
        balanceCents:
          type: number
        awaitingRelease:
          type: number
      required:
        - reservations
        - buyers
        - units
        - depositCents
        - balanceCents
        - awaitingRelease
      additionalProperties: false
    ListWholesaleDropsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleDropsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleFreightRequestsItem:
      type: object
      properties:
        buyerName:
          type: string
          nullable: true
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        status:
          type: string
        note:
          type: string
          nullable: true
        buyerUserId:
          type: string
        sellerUserId:
          type: string
        lines:
          type: array
          items:
            $ref: "#/components/schemas/CreateWholesaleFreightRequestAnswerResponseDataLines"
        shipTo:
          type: object
          nullable: true
          additionalProperties: {}
        sellerNote:
          type: string
          nullable: true
        quotedCents:
          type: number
          nullable: true
        weightLbs:
          type: number
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - status
        - buyerUserId
        - sellerUserId
        - lines
      additionalProperties: false
    ListWholesaleFreightRequestsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleFreightRequestsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleGroupsItem:
      type: object
      properties:
        members:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleGroupsItemMembers"
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        storefrontId:
          type: string
          nullable: true
        sellerUserId:
          type: string
        discountPercentBps:
          type: number
      required:
        - members
        - id
        - name
        - active
        - createdAt
        - sellerUserId
        - discountPercentBps
      additionalProperties: false
    ListWholesaleGroupsItemMembers:
      type: object
      properties:
        buyerUserId:
          type: string
        email:
          type: string
        name:
          type: string
          nullable: true
        addedAt:
          type: string
          format: date-time
      required:
        - buyerUserId
        - email
        - addedAt
      additionalProperties: false
    ListWholesaleGroupsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleGroupsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleInvoicesItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        invoiceNumber:
          type: string
        status:
          type: string
        buyerUserId:
          type: string
        sellerUserId:
          type: string
        orderId:
          type: string
          nullable: true
        poReference:
          type: string
          nullable: true
        netDays:
          type: number
          nullable: true
        subtotalCents:
          type: number
        shippingCents:
          type: number
        taxCents:
          type: number
        totalCents:
          type: number
        amountPaidCents:
          type: number
        creditedCents:
          type: number
          description: "W5: the rest of the ledger (credit notes, write-off, late fee, early-pay discount)."
        writtenOffCents:
          type: number
        lateFeeCents:
          type: number
        earlyPayDiscountCents:
          type: number
        balanceDueCents:
          type: number
        platformFeeCents:
          type: number
        platformDueStatus:
          type: string
          nullable: true
        paidMethod:
          type: string
          nullable: true
        paidReference:
          type: string
          nullable: true
        dueAt:
          type: string
          format: date-time
          nullable: true
        paidAt:
          type: string
          format: date-time
          nullable: true
        sentAt:
          type: string
          format: date-time
          nullable: true
        reminderCount:
          type: number
        createdAt:
          type: string
          format: date-time
        buyerName:
          type: string
          nullable: true
        buyerEmail:
          type: string
          nullable: true
      required:
        - id
        - kind
        - invoiceNumber
        - status
        - buyerUserId
        - sellerUserId
        - subtotalCents
        - shippingCents
        - taxCents
        - totalCents
        - amountPaidCents
        - creditedCents
        - writtenOffCents
        - lateFeeCents
        - earlyPayDiscountCents
        - balanceDueCents
        - platformFeeCents
        - reminderCount
        - createdAt
      additionalProperties: false
    ListWholesaleInvoicesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleInvoicesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleOrdersItem:
      type: object
      properties:
        paymentMethod:
          type: string
        orderId:
          type: string
          nullable: true
        buyerUserId:
          type: string
          nullable: true
        buyerEmail:
          type: string
          nullable: true
        buyerName:
          type: string
          nullable: true
        status:
          type: string
        funding:
          type: string
        invoiceId:
          type: string
          nullable: true
        shippedAt:
          type: string
          format: date-time
          nullable: true
        purchaseOrderRef:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        lines:
          type: number
        totalCents:
          type: number
      required:
        - paymentMethod
        - status
        - funding
        - createdAt
        - lines
        - totalCents
      additionalProperties: false
    ListWholesaleOrdersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleOrdersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleQuotesItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - expired
            - accepted
            - declined
            - requested
            - withdrawn
            - answered
        buyerUserId:
          type: string
        buyerName:
          type: string
          nullable: true
        sellerUserId:
          type: string
        sellerName:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        catalogId:
          type: string
          nullable: true
        buyerNote:
          type: string
          nullable: true
        sellerNote:
          type: string
          nullable: true
        declineReason:
          type: string
          nullable: true
        poReference:
          type: string
          nullable: true
        answeredAt:
          type: string
          nullable: true
        expiresAt:
          type: string
          nullable: true
        acceptedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        quotedTotalCents:
          type: number
          nullable: true
          description: Sum of quoted price × quantity over quoted items; null before an answer.
        items:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleQuotesItemItems"
      required:
        - id
        - status
        - buyerUserId
        - sellerUserId
        - createdAt
        - items
      additionalProperties: false
    ListWholesaleQuotesItemItems:
      type: object
      properties:
        id:
          type: string
        platformListingId:
          type: string
        listingVariantId:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        quantity:
          type: number
        targetUnitPriceCents:
          type: number
          nullable: true
        quotedUnitPriceCents:
          type: number
          nullable: true
      required:
        - id
        - platformListingId
        - quantity
      additionalProperties: false
    ListWholesaleQuotesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleQuotesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleRequestsItem:
      type: object
      properties:
        id:
          type: string
        catalogId:
          type: string
        catalogName:
          type: string
        buyerUserId:
          type: string
        buyerEmail:
          type: string
        buyerName:
          type: string
          nullable: true
        businessVerifiedAt:
          type: string
          format: date-time
          nullable: true
        taxExemptStatus:
          type: string
          nullable: true
        taxExemptCertificateUrl:
          type: string
          nullable: true
        message:
          type: string
          nullable: true
        answers:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleRequestsItemAnswers"
          nullable: true
        resaleCertUrl:
          type: string
          nullable: true
        resaleCertState:
          type: string
          nullable: true
        taxId:
          type: string
          nullable: true
        businessInfo:
          type: object
          nullable: true
          additionalProperties: {}
        status:
          type: string
        declineReason:
          type: string
          nullable: true
        decidedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - catalogId
        - catalogName
        - buyerUserId
        - buyerEmail
        - status
        - createdAt
      additionalProperties: false
    ListWholesaleRequestsItemAnswers:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        value:
          type: string
      required:
        - id
        - label
        - value
      additionalProperties: false
    ListWholesaleRequestsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleRequestsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWholesaleSetupStepsItem:
      type: object
      properties:
        id:
          type: string
          enum:
            - live
            - catalog
            - returns
            - profile
            - visibility
            - payment
            - ships_from
          description: WHOLESALE_SETUP_STEP_IDS (@crosslister/shared/wholesale).
        label:
          type: string
        done:
          type: boolean
        tab:
          type: string
          enum:
            - invoices
            - profile
            - buyers
            - catalogs
          description: "The Hub page that completes it (W2: the trade profile replaced Setup)."
        href:
          type: string
          description: "The exact place: the page plus the profile section (`/hub/wholesale/profile#ships-from`)."
      required:
        - id
        - label
        - done
        - tab
        - href
      additionalProperties: false
    ListWholesaleSetupStepsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWholesaleSetupStepsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorkflowApprovalsItem:
      type: object
      properties:
        id:
          type: string
        runId:
          type: string
        workflowId:
          type: string
        workflowName:
          type: string
          nullable: true
        nodeId:
          type: string
        title:
          type: string
        body:
          type: string
          nullable: true
        items:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowApprovalsItemItems"
        status:
          type: string
          enum:
            - expired
            - pending
            - rejected
            - approved
        decidedAt:
          type: string
          nullable: true
        decidedVia:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        timeoutAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - runId
        - workflowId
        - nodeId
        - title
        - items
        - status
        - createdAt
      additionalProperties: false
    ListWorkflowApprovalsItemItems:
      type: object
      properties:
        json:
          type: object
          additionalProperties: {}
        pairedItem:
          type: number
          nullable: true
          description: Index of the input item this one came from (lineage for $node("X") lookups across branches).
      required:
        - json
      additionalProperties: false
    ListWorkflowApprovalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowApprovalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorkflowChainsItem:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        name:
          type: string
        triggerId:
          type: string
        triggerConfig:
          type: object
          additionalProperties: {}
        isActive:
          type: boolean
        createdAt:
          type: string
          format: date-time
        workflowId:
          type: string
        steps:
          type: array
          items:
            $ref: "#/components/schemas/GetWorkflowChainResponseSteps"
      required:
        - id
        - userId
        - name
        - triggerId
        - triggerConfig
        - isActive
        - createdAt
        - workflowId
        - steps
      additionalProperties: false
    ListWorkflowChainsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowChainsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorkflowRunsItem:
      type: object
      properties:
        id:
          type: string
        workflowId:
          type: string
        status:
          type: string
          enum:
            - cancelled
            - failed
            - queued
            - running
            - waiting
            - succeeded
        mode:
          type: string
          enum:
            - live
            - test
            - dry
        triggerNodeId:
          type: string
        triggerType:
          type: string
        startedAt:
          type: string
        finishedAt:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
        nodes:
          type: object
          description: nodeId → status + item counts per output port, for the canvas overlay.
          additionalProperties: {}
        workflowName:
          type: string
          nullable: true
        queuedAt:
          type: string
      required:
        - id
        - workflowId
        - status
        - mode
        - triggerNodeId
        - triggerType
        - startedAt
        - nodes
        - queuedAt
      additionalProperties: false
    ListWorkflowRunsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowRunsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorkflowSaleActiveItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        percentOff:
          type: number
          description: Whole percent off; 0 for a fixed-price sale.
        percentOffBps:
          type: number
        fixedPriceCents:
          type: number
          nullable: true
          description: The one sale price of a fixed-price sale, else null.
        startsAt:
          type: string
        endsAt:
          type: string
        platforms:
          type: array
          items:
            type: string
        status:
          type: string
          enum:
            - live
            - upcoming
        listingCount:
          type: number
          description: Platform listings the sale covers now.
        scope:
          type: string
        workflow:
          $ref: "#/components/schemas/ListWorkflowSaleActiveItemWorkflow"
      required:
        - id
        - name
        - percentOff
        - percentOffBps
        - startsAt
        - endsAt
        - platforms
        - status
        - listingCount
        - scope
      additionalProperties: false
    ListWorkflowSaleActiveItemWorkflow:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
      required:
        - id
        - name
        - active
      additionalProperties: false
      nullable: true
    ListWorkflowSaleActiveResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowSaleActiveItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorkflowTemplatesItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        category:
          type: string
          description: Picker category, e.g. "Sales & markdowns", "Offers", "Shipping", "Poshmark growth".
        tags:
          type: array
          items:
            type: string
        graph:
          $ref: "#/components/schemas/GetWorkflowExportResponseGraph"
        setup:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowTemplatesItemSetup"
          nullable: true
          description: 'Params the "use template" dialog asks for: `nodeId.paramKey`.'
      required:
        - id
        - name
        - description
        - category
        - tags
        - graph
      additionalProperties: false
    ListWorkflowTemplatesItemSetup:
      type: object
      properties:
        nodeId:
          type: string
        paramKey:
          type: string
        label:
          type: string
      required:
        - nodeId
        - paramKey
        - label
      additionalProperties: false
    ListWorkflowTemplatesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowTemplatesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorkflowVersionsItem:
      type: object
      properties:
        version:
          type: number
        name:
          type: string
        source:
          type: string
        createdAt:
          type: string
        nodeCount:
          type: number
        current:
          type: boolean
      required:
        - version
        - name
        - source
        - createdAt
        - nodeCount
        - current
      additionalProperties: false
    ListWorkflowVersionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowVersionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorkflowsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
        description:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        lastRunAt:
          type: string
          nullable: true
        version:
          type: number
          description: Bumps on every save; a save names the version it edited (optimistic concurrency).
        templateId:
          type: string
          nullable: true
          description: Template the workflow was created from, for "update available" and analytics.
        lastRunStatus:
          type: string
          enum:
            - cancelled
            - failed
            - queued
            - running
            - waiting
            - succeeded
          nullable: true
        triggerTypes:
          type: array
          items:
            type: string
          description: "Derived for list views: the trigger types and the node types in order."
        nodeTypes:
          type: array
          items:
            type: string
        runCount:
          type: number
        legacyRef:
          type: string
          nullable: true
        sparkline:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowsItemSparkline"
      required:
        - id
        - name
        - active
        - createdAt
        - updatedAt
        - tags
        - version
        - triggerTypes
        - nodeTypes
        - runCount
        - sparkline
      additionalProperties: false
    ListWorkflowsItemSparkline:
      type: object
      properties:
        date:
          type: string
          description: YYYY-MM-DD (UTC).
        runs:
          type: number
        failed:
          type: number
      required:
        - date
        - runs
        - failed
      additionalProperties: false
    ListWorkflowsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorkflowsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldAppealsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - action
            - version
            - game
            - asset
        actionId:
          type: string
          nullable: true
        experienceId:
          type: string
          nullable: true
        targetRef:
          type: string
          nullable: true
        status:
          type: string
        statement:
          type: string
        evidence:
          type: array
          items:
            type: string
        decisionNote:
          type: string
          nullable: true
        createdAt:
          type: string
        decidedAt:
          type: string
          nullable: true
      required:
        - id
        - kind
        - status
        - statement
        - evidence
        - createdAt
      additionalProperties: false
    ListWorldAppealsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldAppealsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldAttendantUsageItem:
      type: object
      properties:
        id:
          type: string
        at:
          type: string
        action:
          type: string
        test:
          type: boolean
        sceneId:
          type: string
          nullable: true
        tokensIn:
          type: number
        tokensOut:
          type: number
        provider:
          type: string
          nullable: true
        model:
          type: string
          nullable: true
        detail:
          type: object
          additionalProperties: {}
      required:
        - id
        - at
        - action
        - test
        - tokensIn
        - tokensOut
        - detail
      additionalProperties: false
    ListWorldAttendantUsageResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldAttendantUsageItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldAvatarClosetItem:
      type: object
      properties:
        receiptId:
          type: string
        itemTitle:
          type: string
        itemBrand:
          type: string
          nullable: true
        itemSize:
          type: string
          nullable: true
        itemImageUrl:
          type: string
          nullable: true
        marketSkuId:
          type: string
          nullable: true
        marketVariantId:
          type: string
          nullable: true
        identifierKeys:
          type: array
          items:
            type: string
        quantity:
          type: number
        purchasedAt:
          type: string
        sourcePlatform:
          type: string
      required:
        - receiptId
        - itemTitle
        - identifierKeys
        - quantity
        - purchasedAt
        - sourcePlatform
      additionalProperties: false
    ListWorldAvatarClosetResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldAvatarClosetItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldAvatarStockItem:
      type: object
      properties:
        inventoryItemId:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        slot:
          type: string
      required:
        - inventoryItemId
        - title
        - slot
      additionalProperties: false
    ListWorldAvatarStockResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldAvatarStockItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldAvatarWearablesItem:
      type: object
      properties:
        id:
          type: string
        sku:
          type: string
        name:
          type: string
        slot:
          type: string
        priceBaseUnits:
          type: string
          nullable: true
        maxSupply:
          type: number
          nullable: true
        mintedCount:
          type: number
        active:
          type: boolean
        createdAt:
          type: string
      required:
        - id
        - sku
        - name
        - slot
        - mintedCount
        - active
        - createdAt
      additionalProperties: false
    ListWorldAvatarWearablesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldAvatarWearablesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldBestDressedItem:
      type: object
      properties:
        name:
          type: string
        profile:
          type: string
          nullable: true
        loves:
          type: number
      required:
        - name
        - loves
      additionalProperties: false
    ListWorldBestDressedResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldBestDressedItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldBlocksItem:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        createdAt:
          type: string
      required:
        - id
        - label
        - createdAt
      additionalProperties: false
    ListWorldBlocksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldBlocksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldCapabilityDeclarationsItem:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contract:
          type: string
        declarer:
          type: string
          enum:
            - crossly
            - creator
            - community
        declaredBy:
          type: string
          description: Who declared it (a seller's own perks apply in that seller's shop).
        reviewState:
          type: string
          enum:
            - live
            - pending
            - rejected
        reviewNote:
          type: string
          nullable: true
        declaration:
          $ref: "#/components/schemas/ListWorldCapabilityDeclarationsItemDeclaration"
        createdAt:
          type: string
        capabilities:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldCapabilityDeclarationsItemCapabilities"
          description: Each capability with its one-line meaning, for the collection page.
      required:
        - id
        - chain
        - contract
        - declarer
        - declaredBy
        - reviewState
        - declaration
        - createdAt
        - capabilities
      additionalProperties: false
    ListWorldCapabilityDeclarationsItemCapabilities:
      type: object
      properties:
        kind:
          type: string
          enum:
            - portal
            - interactive
            - place
            - display
            - badge
            - perk
            - wear
            - emote
            - room_theme
            - pet
            - gate
            - quest
            - game_pass
        params:
          type: object
          additionalProperties: {}
        summary:
          type: string
      required:
        - kind
        - params
        - summary
      additionalProperties: false
    ListWorldCapabilityDeclarationsItemDeclaration:
      type: object
      properties:
        spec:
          type: string
        collection:
          $ref: "#/components/schemas/ListWorldCapabilityDeclarationsItemDeclarationCollection"
        name:
          type: string
          nullable: true
        capabilities:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldCapabilityDeclarationsItemDeclarationCapabilities"
      required:
        - spec
        - collection
        - capabilities
      additionalProperties: false
    ListWorldCapabilityDeclarationsItemDeclarationCapabilities:
      type: object
      properties:
        kind:
          type: string
          enum:
            - portal
            - interactive
            - place
            - display
            - badge
            - perk
            - wear
            - emote
            - room_theme
            - pet
            - gate
            - quest
            - game_pass
        params:
          type: object
          additionalProperties: {}
      required:
        - kind
        - params
      additionalProperties: false
    ListWorldCapabilityDeclarationsItemDeclarationCollection:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
            - cosm
        address:
          type: string
      required:
        - chain
        - address
      additionalProperties: false
      description: "An NFT collection (a chain + address), or a COSM design: `{ chain: 'cosm', address: <cosmetic id> }`."
    ListWorldCapabilityDeclarationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldCapabilityDeclarationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldCollaborationsItem:
      type: object
      properties:
        experience:
          $ref: "#/components/schemas/ListWorldExperiencesItem"
        role:
          type: string
          enum:
            - admin
            - editor
            - scripter
            - builder
            - tester
            - analyst
        status:
          type: string
          enum:
            - active
            - invited
        invitedBy:
          $ref: "#/components/schemas/ListWorldCollaborationsItemInvitedBy"
        invitedAt:
          type: string
      required:
        - experience
        - role
        - status
        - invitedAt
      additionalProperties: false
    ListWorldCollaborationsItemInvitedBy:
      type: object
      properties:
        displayName:
          type: string
          nullable: true
        userId:
          type: string
        handle:
          type: string
          nullable: true
      required:
        - userId
      additionalProperties: false
      nullable: true
    ListWorldCollaborationsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldCollaborationsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldContestStandingsItem:
      type: object
      properties:
        name:
          type: string
        best:
          type: number
        place:
          type: number
        at:
          type: string
        isYou:
          type: boolean
      required:
        - name
        - best
        - place
        - at
        - isYou
      additionalProperties: false
    ListWorldContestStandingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldContestStandingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldContestsItem:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - cancelled
            - open
            - settled
        ownerUserId:
          type: string
        endsAt:
          type: string
          format: date-time
        startsAt:
          type: string
          format: date-time
        feeCents:
          type: number
          nullable: true
        settledAt:
          type: string
          format: date-time
          nullable: true
        gamePlace:
          type: string
        gameObject:
          type: string
        entryMode:
          type: string
          enum:
            - free
            - paid
            - sponsored
        scoreOrder:
          type: string
          enum:
            - asc
            - desc
      required:
        - id
        - createdAt
        - status
        - ownerUserId
        - endsAt
        - startsAt
        - gamePlace
        - gameObject
        - entryMode
        - scoreOrder
      additionalProperties: false
    ListWorldContestsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldContestsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldConventionExhibitorsItem:
      type: object
      properties:
        handle:
          type: string
          description: Their public handle. NOT their account id — see `inviteByHandle`.
        profile:
          type: string
          nullable: true
        status:
          type: string
        tableIndex:
          type: number
          nullable: true
        paidAt:
          type: string
          format: date-time
          nullable: true
        agreedEntryFeeCents:
          type: number
          nullable: true
        agreedRevenueShareBps:
          type: number
          nullable: true
      required:
        - handle
        - status
      additionalProperties: false
    ListWorldConventionExhibitorsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldConventionExhibitorsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldConventionMessagesItem:
      type: object
      properties:
        id:
          type: string
        from:
          type: string
        fromUserId:
          type: string
        toUserId:
          type: string
          nullable: true
        toAll:
          type: boolean
        mine:
          type: boolean
        body:
          type: string
        at:
          type: string
      required:
        - id
        - from
        - fromUserId
        - toAll
        - mine
        - body
        - at
      additionalProperties: false
    ListWorldConventionMessagesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldConventionMessagesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldConventionMineItem:
      type: object
      properties:
        role:
          type: string
          enum:
            - host
            - accepted
            - declined
            - applied
            - withdrawn
            - invited
          description: "'host' when I am running it, otherwise my exhibitor status."
        tableIndex:
          type: number
          nullable: true
          description: My stand, once I have one.
        agreedEntryFeeCents:
          type: number
          nullable: true
          description: |-
            What I actually agreed to, not what the event currently advertises.

            Surfaced so a seller can see their own terms — the whole point of
            snapshotting them is defeated if the only place they are visible is
            a database column.
        agreedRevenueShareBps:
          type: number
          nullable: true
        id:
          type: string
        title:
          type: string
        categorySlug:
          type: string
          nullable: true
        startsAt:
          type: string
          format: date-time
        endsAt:
          type: string
          format: date-time
        status:
          type: string
        entryModel:
          type: string
        entryFeeCents:
          type: number
          nullable: true
        revenueShareBps:
          type: number
          nullable: true
        tableCount:
          type: number
        exhibitorCount:
          type: number
          description: How many stands are taken. A count, never a roster — see the docblock.
        publicSlug:
          type: string
          nullable: true
          description: The room it is held in, so a card can link straight into it.
        tiered:
          type: boolean
          description: "A full-page convention (a rented hall, booth tiers; spec WD4): sellers book a tier on its booth page."
        doorsOpenAt:
          type: string
          format: date-time
          description: "When the doors open for visitors: the start (or when the host takes it live, if sooner)."
        yourDoorsOpenAt:
          type: string
          nullable: true
          description: "For a signed-in viewer (doors.ts): when THEIR doors open (earlier with live_early_entry), and whether they are."
        doorsOpen:
          type: boolean
          nullable: true
      required:
        - role
        - id
        - title
        - startsAt
        - endsAt
        - status
        - entryModel
        - tableCount
        - exhibitorCount
        - tiered
        - doorsOpenAt
      additionalProperties: false
    ListWorldConventionMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldConventionMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldConventionsItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        categorySlug:
          type: string
          nullable: true
        startsAt:
          type: string
          format: date-time
        endsAt:
          type: string
          format: date-time
        status:
          type: string
        entryModel:
          type: string
        entryFeeCents:
          type: number
          nullable: true
        revenueShareBps:
          type: number
          nullable: true
        tableCount:
          type: number
        exhibitorCount:
          type: number
          description: How many stands are taken. A count, never a roster — see the docblock.
        publicSlug:
          type: string
          nullable: true
          description: The room it is held in, so a card can link straight into it.
        tiered:
          type: boolean
          description: "A full-page convention (a rented hall, booth tiers; spec WD4): sellers book a tier on its booth page."
        doorsOpenAt:
          type: string
          format: date-time
          description: "When the doors open for visitors: the start (or when the host takes it live, if sooner)."
        yourDoorsOpenAt:
          type: string
          nullable: true
          description: "For a signed-in viewer (doors.ts): when THEIR doors open (earlier with live_early_entry), and whether they are."
        doorsOpen:
          type: boolean
          nullable: true
      required:
        - id
        - title
        - startsAt
        - endsAt
        - status
        - entryModel
        - tableCount
        - exhibitorCount
        - tiered
        - doorsOpenAt
      additionalProperties: false
    ListWorldConventionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldConventionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldCosmDesignsItem:
      type: object
      properties:
        onChain:
          type: boolean
        popularity:
          $ref: "#/components/schemas/ListWorldCosmDesignsItemPopularity"
        id:
          type: string
        name:
          type: string
        slot:
          type: string
        tier:
          type: string
        active:
          type: boolean
        maxSupply:
          type: number
          nullable: true
        mintedCount:
          type: number
        chainAutoUnlock:
          type: boolean
        previewImageUrl:
          type: string
          nullable: true
      required:
        - onChain
        - id
        - name
        - slot
        - tier
        - active
        - mintedCount
        - chainAutoUnlock
      additionalProperties: false
    ListWorldCosmDesignsItemPopularity:
      type: object
      properties:
        holders:
          type: number
          description: Distinct people holding a live copy.
        issued:
          type: number
          description: Copies issued so far (editions claimed).
        maxSupply:
          type: number
          nullable: true
          description: The design's edition cap. Null = open edition, never eligible (minting it means nothing).
        resales:
          type: number
          description: Copies resold between players (closed auction sales).
        inUse:
          type: number
          description: People wearing / placing it right now.
        progress:
          type: number
        passed:
          type: boolean
        why:
          type: string
          nullable: true
      required:
        - holders
        - issued
        - resales
        - inUse
        - progress
        - passed
      additionalProperties: false
      nullable: true
    ListWorldCosmDesignsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldCosmDesignsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldCosmInventoryItem:
      type: object
      properties:
        acquiredAt:
          type: string
        ownershipId:
          type: string
        cosmeticId:
          type: string
        sku:
          type: string
        name:
          type: string
        slot:
          type: string
        tier:
          type: string
        acquiredVia:
          type: string
        bound:
          type: boolean
        editionNumber:
          type: number
          nullable: true
        fusable:
          type: boolean
        previewImageUrl:
          type: string
          nullable: true
        unlocksKey:
          type: string
          nullable: true
        unlocksValue:
          type: string
          nullable: true
      required:
        - acquiredAt
        - ownershipId
        - cosmeticId
        - sku
        - name
        - slot
        - tier
        - acquiredVia
        - bound
        - fusable
      additionalProperties: false
    ListWorldCosmInventoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldCosmInventoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldDecorCatalogueItem:
      type: object
      properties:
        id:
          type: string
        sku:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        surface:
          type: string
          enum:
            - home
            - shop
            - street
            - avatar
            - stall
        slot:
          type: string
        tier:
          type: string
        priceCents:
          type: number
          nullable: true
          description: Dollar price, paid in CBX at spot. Premium only.
        priceBaseUnits:
          type: string
          nullable: true
          description: COSM price as a base-unit STRING, earned only.
        maxSupply:
          type: number
          nullable: true
        mintedCount:
          type: number
        remaining:
          type: number
          nullable: true
          description: Editions left, or null when unlimited.
        soldOut:
          type: boolean
        previewImageUrl:
          type: string
          nullable: true
        tint:
          type: string
          nullable: true
          description: 2D swatch colour from the shared vocabulary or the row's mesh params.
        meshProfile:
          type: string
          nullable: true
          description: |-
            Generative profile (scripts/models/), when the item is a mesh; the web
            previews `/models/<meshProfile>.glb` in 3D when one is published.
        unlocksKey:
          type: string
          nullable: true
        unlocksValue:
          type: string
          nullable: true
        ugc:
          type: boolean
          description: User-generated (has a designer), as opposed to first-party.
        buyWith:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldDecorCatalogueItemBuyWithItem"
          description: How this SKU is bought on crossly.net. Empty = not purchasable.
        owned:
          type: boolean
        ownedCount:
          type: number
          description: "Live copies held (decor is a quantity: each copy is one placement / one space)."
        maxPerBuy:
          type: number
          description: "The most one purchase may take now: min(10, editions left). 0 when sold out."
        ownershipId:
          type: string
          nullable: true
        editionNumber:
          type: number
          nullable: true
      required:
        - id
        - sku
        - name
        - surface
        - slot
        - tier
        - mintedCount
        - soldOut
        - ugc
        - buyWith
        - owned
        - ownedCount
        - maxPerBuy
      additionalProperties: false
    ListWorldDecorCatalogueResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldDecorCatalogueItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldDecorDesignsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldDecorInventoryItem:
      type: object
      properties:
        key:
          type: string
        value:
          type: string
        pair:
          type: string
          description: "`key:value`, the Decor Shop's `item` and the editors' id."
        name:
          type: string
        sku:
          type: string
          nullable: true
        surface:
          type: string
          enum:
            - home
            - shop
            - street
            - avatar
            - stall
        placeable:
          type: boolean
          description: Placed per placement (a prop) rather than applied per space (a finish).
        tint:
          type: string
          nullable: true
        owned:
          type: number
        placed:
          type: number
        available:
          type: number
        placements:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldDecorInventoryItemPlacements"
        granted:
          type: number
          description: "Units a held NFT / COSM copy grants (world-kit/capability-decor.ts): placeable, not copies, never for sale."
        copies:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldDecorInventoryItemCopies"
          description: "The live copies, oldest first: edition numbers are the collectible part."
      required:
        - key
        - value
        - pair
        - name
        - surface
        - placeable
        - owned
        - placed
        - available
        - placements
        - granted
        - copies
      additionalProperties: false
    ListWorldDecorInventoryItemCopies:
      type: object
      properties:
        ownershipId:
          type: string
        editionNumber:
          type: number
          nullable: true
      required:
        - ownershipId
      additionalProperties: false
    ListWorldDecorInventoryItemPlacements:
      type: object
      properties:
        space:
          $ref: "#/components/schemas/CreateWorldDecorRetractResponseDataInventorySpaces"
        count:
          type: number
          description: "Copies in use there: placements of a prop, 1 for a finish."
      required:
        - space
        - count
      additionalProperties: false
    ListWorldDecorInventoryResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldDecorInventoryItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldDecorMarketItem:
      type: object
      properties:
        listingId:
          type: string
        key:
          type: string
        value:
          type: string
        pair:
          type: string
        name:
          type: string
        editionNumber:
          type: number
          nullable: true
        maxSupply:
          type: number
          nullable: true
        ask:
          type: string
          description: COSM, as a decimal string (amounts cross the wire as strings).
        askBaseUnits:
          type: string
        previewImageUrl:
          type: string
          nullable: true
        sellerName:
          type: string
        mine:
          type: boolean
        ownershipId:
          type: string
          nullable: true
          description: 'Your own listings only: which copy is up (so your inventory can say "listed").'
        listedAt:
          type: string
      required:
        - listingId
        - key
        - value
        - pair
        - name
        - ask
        - askBaseUnits
        - sellerName
        - mine
        - listedAt
      additionalProperties: false
    ListWorldDecorMarketResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldDecorMarketItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldDecorMineItem:
      type: object
      properties:
        ownershipId:
          type: string
        cosmeticId:
          type: string
        sku:
          type: string
        name:
          type: string
        surface:
          type: string
          enum:
            - home
            - shop
            - street
            - avatar
            - stall
        slot:
          type: string
        tier:
          type: string
        acquiredVia:
          type: string
        bound:
          type: boolean
        editionNumber:
          type: number
          nullable: true
        maxSupply:
          type: number
          nullable: true
        acquiredAt:
          type: string
        previewImageUrl:
          type: string
          nullable: true
        tint:
          type: string
          nullable: true
        unlocksKey:
          type: string
          nullable: true
        unlocksValue:
          type: string
          nullable: true
        mintState:
          type: string
          enum:
            - held
            - minting
            - minted
        mintAddress:
          type: string
          nullable: true
        mintable:
          type: boolean
          description: "Can be minted now: held, unbound, and the mint service is on."
      required:
        - ownershipId
        - cosmeticId
        - sku
        - name
        - surface
        - slot
        - tier
        - acquiredVia
        - bound
        - acquiredAt
        - mintState
        - mintable
      additionalProperties: false
    ListWorldDecorMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldDecorMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldDecorStreetsItem:
      type: object
      properties:
        street:
          type: string
        name:
          type: string
        platform:
          type: boolean
          description: "Crossly's street (Main Street, a neighbourhood): only ops may change it."
        canEdit:
          type: boolean
          description: Whether the caller may change it.
        decor:
          $ref: "#/components/schemas/ListWorldDecorStreetsItemDecor"
        storeId:
          type: string
          nullable: true
          description: "The store the street belongs to (s5-65; null: a platform street, or not stamped yet = the default store)."
        store:
          $ref: "#/components/schemas/IdName2"
      required:
        - street
        - name
        - platform
        - canEdit
        - decor
      additionalProperties: false
    ListWorldDecorStreetsItemDecor:
      type: object
      properties:
        lamp:
          type: string
          nullable: true
        banner:
          type: string
          nullable: true
        bannerColour:
          type: string
          enum:
            - blue
            - green
            - purple
            - red
            - teal
            - cream
            - ink
            - amber
          nullable: true
        paving:
          type: string
          nullable: true
        arch:
          type: string
          nullable: true
      additionalProperties: false
    ListWorldDecorStreetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldDecorStreetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldDmsItem:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        last:
          $ref: "#/components/schemas/ListWorldDmsItemLast"
        unread:
          type: number
      required:
        - userId
        - name
        - unread
      additionalProperties: false
    ListWorldDmsItemLast:
      type: object
      properties:
        text:
          type: string
        at:
          type: string
        mine:
          type: boolean
      required:
        - text
        - at
        - mine
      additionalProperties: false
      nullable: true
    ListWorldDmsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldDmsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldEarningAffiliateItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
          nullable: true
        touchKind:
          type: string
        touchedAt:
          type: string
        feeCents:
          type: number
        realisedFeeCents:
          type: number
        affiliateBps:
          type: number
        affiliateCents:
          type: number
        state:
          type: string
          enum:
            - pending
            - void
            - reversed
            - posted
        voidReason:
          type: string
          nullable: true
        realisedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - touchKind
        - touchedAt
        - feeCents
        - realisedFeeCents
        - affiliateBps
        - affiliateCents
        - state
        - createdAt
      additionalProperties: false
    ListWorldEarningAffiliateResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldEarningAffiliateItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldEarningLedgerItem:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        entryKind:
          type: string
        experienceId:
          type: string
          nullable: true
        orderRef:
          type: string
          nullable: true
        productRef:
          type: string
          nullable: true
        productName:
          type: string
          nullable: true
        grossCents:
          type: number
          nullable: true
        netCents:
          type: number
          nullable: true
        shareBps:
          type: number
          nullable: true
        amountCents:
          type: number
        state:
          type: string
          enum:
            - available
            - pending
            - paid
            - held
        maturesAt:
          type: string
        termsVersion:
          type: number
        createdAt:
          type: string
      required:
        - id
        - source
        - entryKind
        - amountCents
        - state
        - maturesAt
        - termsVersion
        - createdAt
      additionalProperties: false
    ListWorldEarningLedgerResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldEarningLedgerItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldEarningPayoutsItem:
      type: object
      properties:
        id:
          type: string
        period:
          type: string
        amountCents:
          type: number
        status:
          type: string
        failure:
          type: string
          nullable: true
        destinationKind:
          type: string
          enum:
            - creator
            - own_connect_fallback
          nullable: true
          description: "'creator' or 'own_connect_fallback' (1057); null on payouts from before it."
        createdAt:
          type: string
        paidAt:
          type: string
          nullable: true
      required:
        - id
        - period
        - amountCents
        - status
        - createdAt
      additionalProperties: false
    ListWorldEarningPayoutsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldEarningPayoutsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceActivityItem:
      type: object
      properties:
        id:
          type: string
        placeId:
          type: string
          nullable: true
        actor:
          $ref: "#/components/schemas/ListWorldCollaborationsItemInvitedBy"
        via:
          type: string
          enum:
            - api
            - system
            - package
            - studio
            - assistant
            - mcp
            - cli
        action:
          type: string
        summary:
          type: string
        targets:
          type: array
          items:
            type: string
        seqFrom:
          type: number
          nullable: true
        seqTo:
          type: number
          nullable: true
        revertible:
          type: boolean
        revertedAt:
          type: string
          nullable: true
        revertedBy:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - via
        - action
        - summary
        - targets
        - revertible
        - createdAt
      additionalProperties: false
    ListWorldExperienceActivityResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceActivityItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceAlertsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        severity:
          type: string
        message:
          type: string
        data:
          type: object
          additionalProperties: {}
        firedAt:
          type: string
        delivered:
          type: boolean
        suppressed:
          type: string
          nullable: true
        acknowledgedAt:
          type: string
          nullable: true
      required:
        - id
        - kind
        - severity
        - message
        - data
        - firedAt
        - delivered
      additionalProperties: false
    ListWorldExperienceAlertsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceAlertsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceAssetsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        sha256:
          type: string
        meshPath:
          type: string
        lodPath:
          type: string
          nullable: true
        previewUrl:
          type: string
          description: "A URL the caller can load now: the plain path once reviewed, else a short-lived signed one."
        lodPreviewUrl:
          type: string
          nullable: true
        bytes:
          type: number
        triangles:
          type: number
        lodTriangles:
          type: number
          nullable: true
        meshSize:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        hullPoints:
          type: number
        moderation:
          type: string
          enum:
            - pending
            - approved
          description: pending = only you and your team see it until a reviewed publish uses it.
        report:
          $ref: "#/components/schemas/ListCreatorItemModelsItemReport"
        createdAt:
          type: string
      required:
        - id
        - name
        - sha256
        - meshPath
        - previewUrl
        - bytes
        - triangles
        - meshSize
        - hullPoints
        - moderation
        - report
        - createdAt
      additionalProperties: false
    ListWorldExperienceAssetsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceAssetsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceAuditItem:
      type: object
      properties:
        id:
          type: string
        actor:
          type: string
        action:
          type: string
        detail:
          type: object
          additionalProperties: {}
        at:
          type: string
      required:
        - id
        - actor
        - action
        - detail
        - at
      additionalProperties: false
    ListWorldExperienceAuditResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceAuditItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceBansItem:
      type: object
      properties:
        sub:
          type: string
        reason:
          type: string
        displayReason:
          type: string
        expiresAt:
          type: string
          nullable: true
        applyToAlts:
          type: boolean
        issuedBy:
          type: string
          enum:
            - system
            - creator
            - engine
            - ops
        createdAt:
          type: string
      required:
        - sub
        - reason
        - displayReason
        - applyToAlts
        - issuedBy
        - createdAt
      additionalProperties: false
    ListWorldExperienceBansResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceBansItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceConfigVersionsItem:
      type: object
      properties:
        version:
          type: number
        changedKeys:
          type: array
          items:
            type: string
        note:
          type: string
        actor:
          type: string
        createdAt:
          type: string
        values:
          type: object
          additionalProperties: {}
        rules:
          type: array
          items:
            $ref: "#/components/schemas/WorldExperienceConfigResponseDataRules"
      required:
        - version
        - changedKeys
        - note
        - actor
        - createdAt
        - values
        - rules
      additionalProperties: false
    ListWorldExperienceConfigVersionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceConfigVersionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceDatastoreEntriesItem:
      type: object
      properties:
        key:
          type: string
        scope:
          type: string
        version:
          type: number
        sizeBytes:
          type: number
        userIds:
          type: array
          items:
            type: string
        updatedAt:
          type: string
      required:
        - key
        - scope
        - version
        - sizeBytes
        - userIds
        - updatedAt
      additionalProperties: false
    ListWorldExperienceDatastoreEntriesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceDatastoreEntriesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceDatastoreEntryVersionsItem:
      type: object
      properties:
        version:
          type: number
        sizeBytes:
          type: number
        deleted:
          type: boolean
        author:
          type: string
        current:
          type: boolean
        createdAt:
          type: string
      required:
        - version
        - sizeBytes
        - deleted
        - author
        - current
        - createdAt
      additionalProperties: false
    ListWorldExperienceDatastoreEntryVersionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceDatastoreEntryVersionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceDatastoresItem:
      type: object
      properties:
        store:
          type: string
        keys:
          type: number
        bytes:
          type: number
        updatedAt:
          type: string
          nullable: true
      required:
        - store
        - keys
        - bytes
      additionalProperties: false
    ListWorldExperienceDatastoresResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceDatastoresItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceDropTablesItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        name:
          type: string
        tableHash:
          type: string
        reviewState:
          type: string
        reviewNote:
          type: string
          nullable: true
        odds:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceDropTablesItemOdds"
        simulation:
          $ref: "#/components/schemas/ListWorldExperienceDropTablesItemSimulation"
        createdAt:
          type: string
      required:
        - id
        - experienceId
        - name
        - tableHash
        - reviewState
        - odds
        - simulation
        - createdAt
      additionalProperties: false
    ListWorldExperienceDropTablesItemOdds:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          type: string
        rarity:
          type: string
          nullable: true
        weight:
          type: number
        probability:
          type: number
        percent:
          type: string
      required:
        - id
        - name
        - kind
        - weight
        - probability
        - percent
      additionalProperties: false
    ListWorldExperienceDropTablesItemSimulation:
      type: object
      properties:
        draws:
          type: number
        seed:
          type: number
        maxZ:
          type: number
        passed:
          type: boolean
        counts:
          type: object
          additionalProperties: {}
      required:
        - draws
        - seed
        - maxZ
        - passed
        - counts
      additionalProperties: false
    ListWorldExperienceDropTablesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceDropTablesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceEventUpcomingItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        placeId:
          type: string
          nullable: true
        liveEventId:
          type: string
          nullable: true
        title:
          type: string
        description:
          type: string
        thumbnailUrl:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
          enum:
            - live
            - cancelled
            - scheduled
            - ended
        rsvpCount:
          type: number
        going:
          type: boolean
          nullable: true
          description: "Signed-in reader only: whether they RSVPed."
        experienceName:
          type: string
        iconUrl:
          type: string
          nullable: true
      required:
        - id
        - experienceId
        - title
        - description
        - startsAt
        - endsAt
        - status
        - rsvpCount
        - experienceName
      additionalProperties: false
    ListWorldExperienceEventUpcomingResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceEventUpcomingItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceEventsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        values:
          type: object
          additionalProperties: {}
        topic:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - live
            - cancelled
            - scheduled
            - ended
      required:
        - id
        - name
        - startsAt
        - endsAt
        - values
        - status
      additionalProperties: false
    ListWorldExperienceEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceExperienceEventsItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        placeId:
          type: string
          nullable: true
        liveEventId:
          type: string
          nullable: true
        title:
          type: string
        description:
          type: string
        thumbnailUrl:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
          enum:
            - live
            - cancelled
            - scheduled
            - ended
        rsvpCount:
          type: number
        going:
          type: boolean
          nullable: true
          description: "Signed-in reader only: whether they RSVPed."
      required:
        - id
        - experienceId
        - title
        - description
        - startsAt
        - endsAt
        - status
        - rsvpCount
      additionalProperties: false
    ListWorldExperienceExperienceEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceExperienceEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceExperimentsItem:
      type: object
      properties:
        id:
          type: string
        key:
          type: string
        name:
          type: string
        hypothesis:
          type: string
        status:
          type: string
          enum:
            - draft
            - running
            - stopped
            - shipped
        variants:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceExperimentsItemVariants"
        holdoutPct:
          type: number
        targeting:
          $ref: "#/components/schemas/ListWorldExperienceExperimentsItemTargeting"
        primaryMetric:
          type: string
        guardrails:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceExperimentsItemGuardrails"
        minDays:
          type: number
        startedAt:
          type: string
          nullable: true
        stoppedAt:
          type: string
          nullable: true
        stopReason:
          type: string
          nullable: true
        winner:
          type: string
          nullable: true
        verdict:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - id
        - key
        - name
        - hypothesis
        - status
        - variants
        - holdoutPct
        - targeting
        - primaryMetric
        - guardrails
        - minDays
      additionalProperties: false
    ListWorldExperienceExperimentsItemGuardrails:
      type: object
      properties:
        metric:
          type: string
        tolerance:
          type: number
      required:
        - metric
        - tolerance
      additionalProperties: false
    ListWorldExperienceExperimentsItemTargeting:
      type: object
      properties:
        versionIds:
          type: array
          items:
            type: string
          nullable: true
          description: "Place version ids the rule applies to (per-version targeting: canary a value with a rollout)."
        regions:
          type: array
          items:
            type: string
          nullable: true
          description: ISO country codes (the player's join region).
        platforms:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceExperimentsItemTargetingPlatformsItem"
          nullable: true
        audience:
          type: string
          enum:
            - new
            - returning
          nullable: true
        percent:
          type: number
          nullable: true
          description: Share of players (stable per player, 0–100).
      additionalProperties: false
    ListWorldExperienceExperimentsItemVariants:
      type: object
      properties:
        name:
          type: string
        weight:
          type: number
          description: Traffic share in percent; variants (plus holdout) sum to 100.
        values:
          type: object
          additionalProperties: {}
      required:
        - name
        - weight
        - values
      additionalProperties: false
    ListWorldExperienceExperimentsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceExperimentsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceModerationReportsItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        experienceName:
          type: string
          nullable: true
        serverId:
          type: string
          nullable: true
        placeId:
          type: string
          nullable: true
        versionNumber:
          type: number
          nullable: true
        targetKind:
          type: string
        targetSub:
          type: string
          nullable: true
        targetInstanceId:
          type: number
          nullable: true
        chatLineId:
          type: string
          nullable: true
        reason:
          type: string
        detail:
          type: string
        source:
          type: string
        severe:
          type: boolean
        status:
          type: string
        context:
          $ref: "#/components/schemas/ListWorldExperienceModerationReportsItemContext"
        resolution:
          type: object
          nullable: true
          additionalProperties: {}
        createdAt:
          type: string
        actionedAt:
          type: string
          nullable: true
      required:
        - id
        - experienceId
        - targetKind
        - reason
        - detail
        - source
        - severe
        - status
        - context
        - createdAt
      additionalProperties: false
    ListWorldExperienceModerationReportsItemContext:
      type: object
      properties:
        chat:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceModerationReportsItemContextChat"
          nullable: true
          description: The server's chat lines in the 2 minutes before the report, from the api's own log.
        nearbyInstanceIds:
          type: array
          items:
            type: number
          nullable: true
        clientTime:
          type: number
          nullable: true
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          nullable: true
        chatLineIds:
          type: array
          items:
            type: string
          nullable: true
          description: Chat line ids the reporter selected.
        occupants:
          type: number
          nullable: true
          description: Players on the server when the report was made.
        serverStatus:
          type: string
          nullable: true
        line:
          $ref: "#/components/schemas/ListWorldExperienceModerationReportsItemContextLine"
      additionalProperties: false
    ListWorldExperienceModerationReportsItemContextChat:
      type: object
      properties:
        id:
          type: string
        sub:
          type: string
        mine:
          type: boolean
          description: Written by the reporter / by the reported player.
        target:
          type: boolean
        raw:
          type: string
        shown:
          type: string
        at:
          type: string
      required:
        - id
        - sub
        - mine
        - target
        - raw
        - shown
        - at
      additionalProperties: false
    ListWorldExperienceModerationReportsItemContextLine:
      type: object
      properties:
        id:
          type: string
        sub:
          type: string
        mine:
          type: boolean
          description: Written by the reporter / by the reported player.
        target:
          type: boolean
        raw:
          type: string
        shown:
          type: string
        at:
          type: string
      required:
        - id
        - sub
        - mine
        - target
        - raw
        - shown
        - at
      additionalProperties: false
      nullable: true
      description: The reported chat line itself (chat_line reports).
    ListWorldExperienceModerationReportsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceModerationReportsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceNotificationTemplatesItem:
      type: object
      properties:
        id:
          type: string
        key:
          type: string
        title:
          type: string
        body:
          type: string
        vars:
          type: array
          items:
            type: string
        status:
          type: string
          enum:
            - in_review
            - rejected
            - retired
            - approved
        lane:
          type: string
          enum:
            - auto
            - human
        reviewReason:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        submittedAt:
          type: string
        decidedAt:
          type: string
          nullable: true
        updatedAt:
          type: string
      required:
        - id
        - key
        - title
        - body
        - vars
        - status
        - lane
        - submittedAt
        - updatedAt
      additionalProperties: false
    ListWorldExperienceNotificationTemplatesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceNotificationTemplatesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperiencePlaceCollabScriptsItem:
      type: object
      properties:
        nodeId:
          type: string
        path:
          type: string
        baseSource:
          type: string
        source:
          type: string
        baseSeq:
          type: number
        currentSource:
          type: string
          nullable: true
          description: The script as it is in the session now (null when it was deleted).
        stale:
          type: boolean
          description: Somebody committed to this script since the draft started.
        updatedAt:
          type: string
      required:
        - nodeId
        - path
        - baseSource
        - source
        - baseSeq
        - stale
        - updatedAt
      additionalProperties: false
    ListWorldExperiencePlaceCollabScriptsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencePlaceCollabScriptsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperiencePlacePackagesItem:
      type: object
      properties:
        latestVersion:
          type: number
          nullable: true
          description: The package's newest version (null when the package is not yours or was deleted).
        updateAvailable:
          type: boolean
        packageArchived:
          type: boolean
        nodeId:
          type: string
          description: The copy's root node id in the editor document.
        path:
          type: string
        modified:
          type: boolean
          description: Edited since it was installed (content hash differs).
        packageId:
          type: string
        name:
          type: string
        version:
          type: number
        autoUpdate:
          type: boolean
      required:
        - updateAvailable
        - packageArchived
        - nodeId
        - path
        - modified
        - packageId
        - name
        - version
        - autoUpdate
      additionalProperties: false
    ListWorldExperiencePlacePackagesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencePlacePackagesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperiencePlacePublishesItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        placeId:
          type: string
        versionId:
          type: string
        versionNumber:
          type: number
          nullable: true
        state:
          type: string
          enum:
            - draft
            - live
            - cancelled
            - superseded
            - in_review
            - rejected
            - approved
            - halted
            - rolling_out
        details:
          $ref: "#/components/schemas/ListWorldExperiencePlacePublishesItemDetails"
        ratingAnswers:
          $ref: "#/components/schemas/ListWorldExperiencePlacePublishesItemRatingAnswers"
        rating:
          type: string
          nullable: true
        ratingReasons:
          type: array
          items:
            type: string
        ratingDescriptors:
          type: array
          items:
            type: string
          description: Content descriptors (IARC style) the rating shows with on every surface.
        ratingNotices:
          type: array
          items:
            type: string
          description: Interactive elements (users interact, purchases, random items).
        ratingRefused:
          type: array
          items:
            type: string
          description: Answers that can never be published (sexual content, nudity, gore, real-money gambling).
        access:
          type: string
          enum:
            - unlisted
            - public
            - private
            - friends
          nullable: true
        moneyAcknowledged:
          type: boolean
        sells:
          type: boolean
        checks:
          $ref: "#/components/schemas/ListWorldExperiencePlacePublishesItemChecks"
        lane:
          type: string
          enum:
            - auto
            - human
          nullable: true
        slaHours:
          type: number
          nullable: true
        dueAt:
          type: string
          nullable: true
        reviewNote:
          type: string
          nullable: true
        submittedAt:
          type: string
          nullable: true
        decidedAt:
          type: string
          nullable: true
        rolloutPercent:
          type: number
        rolloutStartedAt:
          type: string
          nullable: true
        haltedReason:
          type: string
          nullable: true
        liveAt:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - experienceId
        - placeId
        - versionId
        - state
        - details
        - ratingReasons
        - ratingDescriptors
        - ratingNotices
        - ratingRefused
        - moneyAcknowledged
        - sells
        - checks
        - rolloutPercent
        - createdAt
        - updatedAt
      additionalProperties: false
    ListWorldExperiencePlacePublishesItemChecks:
      type: object
      properties:
        blocking:
          type: number
        warnings:
          type: number
        problems:
          type: array
          items:
            type: object
            additionalProperties: {}
        scriptsChanged:
          type: boolean
        scan:
          $ref: "#/components/schemas/ListWorldExperiencePlacePublishesItemChecksScan"
      required:
        - blocking
        - warnings
        - problems
        - scriptsChanged
      additionalProperties: false
    ListWorldExperiencePlacePublishesItemChecksScan:
      type: object
      properties:
        verdict:
          type: string
        findings:
          type: number
        flagged:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
      required:
        - verdict
        - findings
      additionalProperties: false
      nullable: true
    ListWorldExperiencePlacePublishesItemDetails:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        genre:
          type: string
        tags:
          type: array
          items:
            type: string
        maxPlayers:
          type: number
        devices:
          type: array
          items:
            type: string
        iconUrl:
          type: string
          nullable: true
        notes:
          type: string
      required:
        - name
        - description
        - genre
        - tags
        - maxPlayers
        - devices
        - notes
      additionalProperties: false
    ListWorldExperiencePlacePublishesItemRatingAnswers:
      type: object
      properties:
        version:
          type: number
          nullable: true
          description: Present (2) on every answer set written since Mature; absent = version 1.
        violence:
          type: string
          enum:
            - none
            - cartoon
            - realistic
            - intense
            - gore
        blood:
          type: string
          enum:
            - none
            - strong
            - mild
          description: Blood shown when characters are hurt.
        fear:
          type: string
          enum:
            - none
            - strong
            - moderate
            - mild
        crudeHumour:
          type: string
          enum:
            - none
            - strong
            - moderate
            - mild
          description: Crude humour / innuendo (never sexual content).
        language:
          type: string
          enum:
            - none
            - strong
            - mild
          description: Strong language written into the experience (player chat is filtered separately).
        romance:
          type: string
          enum:
            - none
            - strong
            - mild
            - sexual
          description: Romantic themes. Sexual content and nudity are never allowed on Crossly.
        nudity:
          type: boolean
          description: Nudity of any kind (never allowed).
        substances:
          type: string
          enum:
            - none
            - use
            - references
          description: References to alcohol, tobacco or drugs.
        simulatedGambling:
          type: boolean
          description: Simulated gambling with no real-money value.
        realMoneyGambling:
          type: boolean
          description: Wagering anything bought with money, or prizes redeemable for money or goods (never allowed).
        userInteraction:
          type: boolean
          description: Players can chat or share user-made text / creations.
        purchases:
          type: boolean
          description: Real-world commerce happens (shop objects / purchases).
        randomItems:
          type: boolean
          description: Paid random items (loot boxes) are sold.
      required:
        - violence
        - blood
        - fear
        - crudeHumour
        - language
        - romance
        - nudity
        - substances
        - simulatedGambling
        - realMoneyGambling
        - userInteraction
        - purchases
        - randomItems
      additionalProperties: false
      nullable: true
    ListWorldExperiencePlacePublishesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencePlacePublishesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperiencePlaceVersionsItem:
      type: object
      properties:
        id:
          type: string
        placeId:
          type: string
        number:
          type: number
        bundleSha256:
          type: string
        bundleBytes:
          type: number
        notes:
          type: string
        current:
          type: boolean
        kind:
          type: string
          description: "'release' | 'test' (cloud playtest, never current)."
        clientScripts:
          type: string
          description: "'none' | 'optional' | 'required': whether a client must run LocalScripts to play it (03 §3.2)."
        createdAt:
          type: string
      required:
        - id
        - placeId
        - number
        - bundleSha256
        - bundleBytes
        - notes
        - current
        - kind
        - clientScripts
        - createdAt
      additionalProperties: false
    ListWorldExperiencePlaceVersionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencePlaceVersionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperiencePlacesItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        name:
          type: string
        isStart:
          type: boolean
        maxPlayers:
          type: number
        fillTargetPct:
          type: number
        socialSlots:
          type: number
        emptyShutdownS:
          type: number
        currentVersionId:
          type: string
          nullable: true
        rolloutVersionId:
          type: string
          nullable: true
          description: "Staged rollout: this share of new joins lands on rolloutVersionId."
        rolloutPercent:
          type: number
        createdAt:
          type: string
      required:
        - id
        - experienceId
        - name
        - isStart
        - maxPlayers
        - fillTargetPct
        - socialSlots
        - emptyShutdownS
        - rolloutPercent
        - createdAt
      additionalProperties: false
    ListWorldExperiencePlacesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencePlacesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperiencePlaytestersItem:
      type: object
      properties:
        userId:
          type: string
        handle:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
        addedAt:
          type: string
      required:
        - userId
        - addedAt
      additionalProperties: false
    ListWorldExperiencePlaytestersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencePlaytestersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceProductsItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        kind:
          type: string
          enum:
            - product
            - pass
            - subscription
            - private_server
            - paid_access
        name:
          type: string
        description:
          type: string
        iconUrl:
          type: string
          nullable: true
        priceCents:
          type: number
        regionalPrices:
          type: object
          additionalProperties: {}
        placeId:
          type: string
          nullable: true
        active:
          type: boolean
        paidRandom:
          type: boolean
        tradeable:
          type: boolean
        dropTableId:
          type: string
          nullable: true
        hourlyLimit:
          type: number
        createdAt:
          type: string
        updatedAt:
          type: string
        archivedAt:
          type: string
          nullable: true
      required:
        - id
        - experienceId
        - kind
        - name
        - description
        - priceCents
        - regionalPrices
        - active
        - paidRandom
        - tradeable
        - hourlyLimit
        - createdAt
        - updatedAt
      additionalProperties: false
    ListWorldExperienceProductsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceProductsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceReceiptsItem:
      type: object
      properties:
        receiptId:
          type: string
        orderId:
          type: string
        sub:
          type: string
        productId:
          type: string
        productKind:
          type: string
        priceCents:
          type: number
        taxCents:
          type: number
        refundedCents:
          type: number
        chargebackCents:
          type: number
        netCents:
          type: number
        state:
          type: string
        attempts:
          type: number
        grantedAt:
          type: string
          nullable: true
        drop:
          $ref: "#/components/schemas/ListWorldExperienceReceiptsItemDrop"
        createdAt:
          type: string
      required:
        - receiptId
        - orderId
        - sub
        - productId
        - productKind
        - priceCents
        - taxCents
        - refundedCents
        - chargebackCents
        - netCents
        - state
        - attempts
        - createdAt
      additionalProperties: false
    ListWorldExperienceReceiptsItemDrop:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          type: string
        rarity:
          type: string
          nullable: true
      required:
        - id
        - name
        - kind
      additionalProperties: false
      nullable: true
    ListWorldExperienceReceiptsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceReceiptsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceRewardGrantsItem:
      type: object
      properties:
        id:
          type: string
        key:
          type: string
        kind:
          type: string
          enum:
            - item
            - cosm
            - decor
            - cbx
            - pin
            - emote
        sub:
          type: string
        amount:
          type: number
          nullable: true
        costCents:
          type: number
        status:
          type: string
          enum:
            - granted
            - owed_cbx
            - owed_cosm
        serverId:
          type: string
          nullable: true
        day:
          type: string
        createdAt:
          type: string
      required:
        - id
        - key
        - kind
        - sub
        - costCents
        - status
        - day
        - createdAt
      additionalProperties: false
    ListWorldExperienceRewardGrantsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceRewardGrantsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceRewardLedgerItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - deposit
            - refund
            - grant
        amountCents:
          type: number
        actor:
          type: string
        grantId:
          type: string
          nullable: true
        memo:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - kind
        - amountCents
        - actor
        - createdAt
      additionalProperties: false
    ListWorldExperienceRewardLedgerResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceRewardLedgerItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceRewardTopupsItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        status:
          type: string
          enum:
            - expired
            - cancelled
            - open
            - paid
            - refused
            - paying
        amountCents:
          type: number
        feeCents:
          type: number
        totalCents:
          type: number
        currency:
          type: string
        expiresAt:
          type: string
        paidAt:
          type: string
          nullable: true
        returnedCents:
          type: number
        reversedCents:
          type: number
        checkoutPath:
          type: string
        checkoutUrl:
          type: string
      required:
        - id
        - experienceId
        - status
        - amountCents
        - feeCents
        - totalCents
        - currency
        - expiresAt
        - returnedCents
        - reversedCents
        - checkoutPath
        - checkoutUrl
      additionalProperties: false
    ListWorldExperienceRewardTopupsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceRewardTopupsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperienceServersItem:
      type: object
      properties:
        id:
          type: string
        placeId:
          type: string
        versionId:
          type: string
        region:
          type: string
        kind:
          type: string
        status:
          type: string
        players:
          type: number
        maxPlayers:
          type: number
        health:
          type: object
          additionalProperties: {}
        startedAt:
          type: string
          nullable: true
        lastHeartbeatAt:
          type: string
          nullable: true
      required:
        - id
        - placeId
        - versionId
        - region
        - kind
        - status
        - players
        - maxPlayers
        - health
      additionalProperties: false
    ListWorldExperienceServersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperienceServersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldExperiencesItem:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        description:
          type: string
        genre:
          type: string
        rating:
          type: string
        ratingDescriptors:
          type: array
          items:
            type: string
          description: Content descriptors + interactive elements from the rating questionnaire (0860).
        visibility:
          type: string
        status:
          type: string
        iconUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        devices:
          type: array
          items:
            type: string
        languages:
          type: array
          items:
            type: string
          description: "1170: Details (shared/carnival)."
        socialLinks:
          type: array
          items:
            $ref: "#/components/schemas/KindUrl"
        chatSettings:
          $ref: "#/components/schemas/TextChatFilter"
        template:
          type: string
          nullable: true
        reviewed:
          type: boolean
          description: A person has approved a publish of it (needed before it may be opened to the public).
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - slug
        - name
        - description
        - genre
        - rating
        - ratingDescriptors
        - visibility
        - status
        - tags
        - devices
        - languages
        - socialLinks
        - chatSettings
        - reviewed
        - createdAt
        - updatedAt
      additionalProperties: false
    ListWorldExperiencesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldExperiencesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldFollowingRoomsItem:
      type: object
      properties:
        sceneId:
          type: string
        name:
          type: string
        publicSlug:
          type: string
          nullable: true
        categorySlug:
          type: string
          nullable: true
        ownerId:
          type: string
        ownerName:
          type: string
          nullable: true
        updatedAt:
          type: string
          format: date-time
      required:
        - sceneId
        - name
        - ownerId
        - updatedAt
      additionalProperties: false
    ListWorldFollowingRoomsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldFollowingRoomsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldFollowsItem:
      type: object
      properties:
        userId:
          type: string
        displayName:
          type: string
          nullable: true
        mutual:
          type: boolean
          description: True when they follow back. This is what "friend" means here.
        followedAt:
          type: string
          format: date-time
      required:
        - userId
        - mutual
        - followedAt
      additionalProperties: false
    ListWorldFollowsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldFollowsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldFriendsItem:
      type: object
      properties:
        userId:
          type: string
        displayName:
          type: string
          nullable: true
        room:
          $ref: "#/components/schemas/NameSlug2"
        homeSlug:
          type: string
          nullable: true
      required:
        - userId
      additionalProperties: false
    ListWorldFriendsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldFriendsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldGameMineItem:
      type: object
      properties:
        id:
          type: string
        engine:
          type: string
          enum:
            - world
            - classic
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - archived
            - unlisted
            - public
            - in_review
            - changes_requested
            - private
            - friends
            - deleted
        genre:
          type: string
          nullable: true
        template:
          type: string
          nullable: true
        thumbnailUrl:
          type: string
          nullable: true
        iconUrl:
          type: string
          nullable: true
          description: The game's approved icon-role image (square); null/absent = none set (show the thumbnail).
        playersNow:
          type: number
          nullable: true
          description: null = not live anywhere right now.
        role:
          type: string
          enum:
            - owner
            - admin
            - editor
            - scripter
            - builder
            - tester
            - analyst
        updatedAt:
          type: string
        createdAt:
          type: string
        flags:
          $ref: "#/components/schemas/ListWorldGameMineItemFlags"
        revenueCents:
          type: number
          nullable: true
          description: |-
            The caller's earned revenue from this game, integer USD cents: the sum of their creator_ledger rows for it
            (cash rail; reversals are negative rows, paid and unpaid alike). 0 = a 3D world that has earned nothing yet;
            null = not on the creator ledger (a Classic game) or an api that does not send it. Carnival games earn on the
            cash rail only (creator_ledger is USD cents), so there is no per-rail split.
      required:
        - id
        - engine
        - name
        - status
        - role
        - updatedAt
        - createdAt
        - flags
      additionalProperties: false
    ListWorldGameMineItemFlags:
      type: object
      properties:
        openReports:
          type: number
        changesRequested:
          type: boolean
        moderation:
          type: string
          enum:
            - ok
            - unlisted
            - taken_down
      required:
        - openReports
        - changesRequested
        - moderation
      additionalProperties: false
    ListWorldGameMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldGameMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldGamePackageReceiptsItem:
      type: object
      properties:
        id:
          type: string
        itemId:
          type: string
        kind:
          type: string
          enum:
            - item
            - pass
        name:
          type: string
        paidCents:
          type: number
          nullable: true
        edition:
          type: number
          nullable: true
        acquiredAt:
          type: string
      required:
        - id
        - itemId
        - kind
        - name
        - acquiredAt
      additionalProperties: false
    ListWorldGamePackageReceiptsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldGamePackageReceiptsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldGamePackagesItem:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        designId:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        unpublishedAt:
          type: string
          format: date-time
          nullable: true
        versions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGamePackageResponseDataVersions"
      required:
        - id
        - slug
        - name
        - designId
        - createdAt
        - updatedAt
        - versions
      additionalProperties: false
    ListWorldGamePackagesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldGamePackagesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldGameRewardsItem:
      type: object
      properties:
        id:
          type: string
        packageId:
          type: string
        game:
          type: string
        rewardId:
          type: string
        grant:
          type: string
        amount:
          type: number
          nullable: true
        status:
          type: string
          enum:
            - granted
            - unfunded
        at:
          type: string
          format: date-time
      required:
        - id
        - packageId
        - game
        - rewardId
        - grant
        - status
        - at
      additionalProperties: false
    ListWorldGameRewardsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldGameRewardsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldGamesItem:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        version:
          type: string
        description:
          type: string
        mode:
          type: string
          enum:
            - object
            - table
            - arena
        players:
          $ref: "#/components/schemas/MinMax"
        places:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldGamesItemPlacesItem"
        rating:
          type: string
          enum:
            - everyone
            - teen
        scoring:
          $ref: "#/components/schemas/GetWorldGameLeaderboardResponseDataScoring"
        contests:
          $ref: "#/components/schemas/GetWorldGameResponseDataContests"
        rewards:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldGameResponseDataRewards"
        thumbnail:
          type: string
          nullable: true
        fits:
          type: object
          nullable: true
          additionalProperties: {}
        piece:
          $ref: "#/components/schemas/GetWorldGameResponseDataPiece"
        author:
          type: string
          nullable: true
      required:
        - id
        - slug
        - name
        - version
        - description
        - mode
        - players
        - places
        - rating
        - rewards
        - piece
      additionalProperties: false
    ListWorldGamesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldGamesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldHomeBuildingItem:
      type: object
      properties:
        slug:
          type: string
        ownerName:
          type: string
      required:
        - slug
        - ownerName
      additionalProperties: false
    ListWorldHomeBuildingResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldHomeBuildingItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldInteractiveCatalogueItem:
      type: object
      properties:
        model:
          type: string
          description: The piece model a layout stores.
        decorValue:
          type: string
        source:
          type: string
          enum:
            - creator
            - first_party
        name:
          type: string
        blurb:
          type: string
          nullable: true
        size:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
        fallbackMesh:
          type: string
        cosmeticId:
          type: string
          nullable: true
          description: The SKU that sells it, when it is on sale (COSM for creator designs).
        version:
          type: number
          nullable: true
          description: "Creator designs: the approved version every copy runs."
      required:
        - model
        - decorValue
        - source
        - name
        - size
        - fallbackMesh
      additionalProperties: false
    ListWorldInteractiveCatalogueResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldInteractiveCatalogueItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldInteractiveDesignsItem:
      type: object
      properties:
        latestVersion:
          $ref: "#/components/schemas/ListWorldInteractiveDesignsItemLatestVersion"
        inReview:
          type: boolean
        id:
          type: string
        handle:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        footprint:
          type: string
        tint:
          type: string
        priceBaseUnits:
          type: string
        maxSupply:
          type: number
          nullable: true
        model:
          type: string
        decorValue:
          type: string
        cosmeticId:
          type: string
          nullable: true
        liveVersion:
          type: number
          nullable: true
        withdrawnReason:
          type: string
          nullable: true
        archivedAt:
          type: string
          format: date-time
          nullable: true
        draftUpdatedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
      required:
        - inReview
        - id
        - handle
        - name
        - footprint
        - tint
        - priceBaseUnits
        - model
        - decorValue
        - draftUpdatedAt
        - createdAt
      additionalProperties: false
    ListWorldInteractiveDesignsItemLatestVersion:
      type: object
      properties:
        version:
          type: number
        state:
          type: string
        decisionNote:
          type: string
          nullable: true
      required:
        - version
        - state
      additionalProperties: false
      nullable: true
    ListWorldInteractiveDesignsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldInteractiveDesignsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldItemSearchItem:
      type: object
      properties:
        roomSlug:
          type: string
        roomName:
          type: string
        itemId:
          type: string
        title:
          type: string
        listingSlug:
          type: string
        priceCents:
          type: number
        imageUrl:
          type: string
          nullable: true
      required:
        - roomSlug
        - roomName
        - itemId
        - title
        - listingSlug
        - priceCents
      additionalProperties: false
    ListWorldItemSearchResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldItemSearchItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldJobBoardItem:
      type: object
      properties:
        employer:
          $ref: "#/components/schemas/ListWorldJobBoardItemEmployer"
        nextShift:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataOpenJobsNextShift"
        openSeats:
          type: number
        myApplication:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataOpenJobsMyApplication"
        id:
          type: string
        createdAt:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - paused
            - open
            - closed
        storefrontId:
          type: string
          nullable: true
        role:
          type: string
        title:
          type: string
        endsAt:
          type: string
        target:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataTarget"
        startsAt:
          type: string
        timezone:
          type: string
        visibility:
          type: string
          enum:
            - public
            - private
        recurrence:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataRecurrence"
        checkIn:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataCheckIn"
        breaks:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataBreaks"
        pay:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataPay"
        noShow:
          $ref: "#/components/schemas/PenaltyRepStrikesToBlock"
        minWorkerRep:
          type: number
          nullable: true
        requiredBadges:
          type: array
          items:
            type: string
        maxStaff:
          type: number
      required:
        - employer
        - openSeats
        - id
        - createdAt
        - status
        - role
        - title
        - endsAt
        - target
        - startsAt
        - timezone
        - visibility
        - recurrence
        - checkIn
        - pay
        - noShow
        - requiredBadges
        - maxStaff
      additionalProperties: false
    ListWorldJobBoardItemEmployer:
      type: object
      properties:
        name:
          type: string
        score:
          $ref: "#/components/schemas/GetWorldStaffReputationResponseDataScore"
      required:
        - name
        - score
      additionalProperties: false
    ListWorldJobBoardResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldJobBoardItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldMarketItem:
      type: object
      properties:
        kind:
          type: string
          enum:
            - plot
            - street
        id:
          type: string
          description: "The asset id: plot id or street id."
        mode:
          type: string
          enum:
            - sale
            - rent
        title:
          type: string
        street:
          $ref: "#/components/schemas/ListWorldMarketItemStreet"
        number:
          type: number
          nullable: true
          description: 1-based plot number; null for a street.
        priceCents:
          type: number
        per:
          type: string
          enum:
            - week
            - once
          description: "'once' for a sale, 'week' for rent."
        seller:
          type: string
          enum:
            - crossly
            - owner
        size:
          type: string
          enum:
            - small
            - large
            - medium
          nullable: true
        plotCount:
          type: number
          nullable: true
        frontageM:
          type: number
          nullable: true
        traffic:
          $ref: "#/components/schemas/ListWorldMarketItemTraffic"
        listedAt:
          type: string
          nullable: true
        render:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataRender"
        photo:
          $ref: "#/components/schemas/GetWorldMarketResponseDataPhoto"
      required:
        - kind
        - id
        - mode
        - title
        - street
        - priceCents
        - per
        - seller
        - traffic
        - render
      additionalProperties: false
    ListWorldMarketItemStreet:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        theme:
          type: string
          nullable: true
      required:
        - slug
        - name
      additionalProperties: false
    ListWorldMarketItemTraffic:
      type: object
      properties:
        visitors:
          type: number
        band:
          type: string
          enum:
            - quiet
            - steady
            - busy
      required:
        - visitors
        - band
      additionalProperties: false
    ListWorldMarketResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldMarketItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldMarketStreetSignsItem:
      type: object
      properties:
        plotId:
          type: string
        plotIndex:
          type: number
        mode:
          type: string
          enum:
            - sale
            - rent
        priceCents:
          type: number
        per:
          type: string
          enum:
            - week
            - once
        seller:
          type: string
          enum:
            - crossly
            - owner
      required:
        - plotId
        - plotIndex
        - mode
        - priceCents
        - per
        - seller
      additionalProperties: false
    ListWorldMarketStreetSignsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldMarketStreetSignsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldMeExperienceEventsItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        placeId:
          type: string
          nullable: true
        liveEventId:
          type: string
          nullable: true
        title:
          type: string
        description:
          type: string
        thumbnailUrl:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
        status:
          type: string
          enum:
            - live
            - cancelled
            - scheduled
            - ended
        rsvpCount:
          type: number
        going:
          type: boolean
          nullable: true
          description: "Signed-in reader only: whether they RSVPed."
        experienceName:
          type: string
      required:
        - id
        - experienceId
        - title
        - description
        - startsAt
        - endsAt
        - status
        - rsvpCount
        - experienceName
      additionalProperties: false
    ListWorldMeExperienceEventsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldMeExperienceEventsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldMeNotificationOptInsItem:
      type: object
      properties:
        experienceId:
          type: string
        name:
          type: string
        iconUrl:
          type: string
          nullable: true
        updatedAt:
          type: string
      required:
        - experienceId
        - name
        - updatedAt
      additionalProperties: false
    ListWorldMeNotificationOptInsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldMeNotificationOptInsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldMeSubscriptionsItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        productId:
          type: string
        productName:
          type: string
        kind:
          type: string
        status:
          type: string
        priceCents:
          type: number
        currentPeriodEnd:
          type: string
        cancelAtPeriodEnd:
          type: boolean
        graceUntil:
          type: string
          nullable: true
      required:
        - id
        - experienceId
        - productId
        - productName
        - kind
        - status
        - priceCents
        - currentPeriodEnd
        - cancelAtPeriodEnd
      additionalProperties: false
    ListWorldMeSubscriptionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldMeSubscriptionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldOutfitsItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        appearance:
          $ref: "#/components/schemas/ListWorldOutfitsItemAppearance"
        items:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldOutfitsItemItems"
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - appearance
        - items
        - createdAt
        - updatedAt
      additionalProperties: false
    ListWorldOutfitsItemAppearance:
      type: object
      properties:
        skin:
          type: string
        hair:
          type: string
        hairColour:
          type: string
        eyes:
          type: string
        build:
          type: string
        brows:
          type: string
          nullable: true
          description: "Face presets (BROW_STYLES, MOUTH_RESTS). Optional: a look saved before they existed is the defaults."
        mouth:
          type: string
          nullable: true
        shape:
          type: string
          nullable: true
          description: A body shape (BODY_SHAPES). Optional, like the face presets.
        outfit:
          $ref: "#/components/schemas/ListWorldOutfitsItemAppearanceOutfit"
      required:
        - skin
        - hair
        - hairColour
        - eyes
        - build
      additionalProperties: false
      description: The look to put on your character (the client stores it, as the creator does).
    ListWorldOutfitsItemAppearanceOutfit:
      type: object
      properties:
        top:
          type: string
        outer:
          type: string
          nullable: true
        bottom:
          type: string
        shoes:
          type: string
        hat:
          type: string
      required:
        - top
        - bottom
        - shoes
        - hat
      additionalProperties: false
      nullable: true
      description: |-
        The basic outfit (basic-wardrobe.ts): what this person wears in every
        slot nothing they own fills. Absent means never chosen -- the client
        seeds one (`outfitFor`) and keeps it, so nobody stands bare and a crowd
        of newcomers is not one outfit repeated.
    ListWorldOutfitsItemItems:
      type: object
      properties:
        slot:
          type: string
          description: avatar_head | avatar_body | avatar_legs | avatar_feet | avatar_back
        door:
          type: string
          enum:
            - receipt
            - stock
            - cosmetic
        id:
          type: string
          description: cosmeticId, receiptId or inventoryItemId, by door.
        label:
          type: string
          description: 'What it was called when saved, for "skipped: <label>".'
      required:
        - slot
        - door
        - id
        - label
      additionalProperties: false
    ListWorldOutfitsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldOutfitsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPackagesItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        latestVersion:
          type: number
        toolboxAssetId:
          type: string
          nullable: true
        archived:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
        places:
          type: number
          description: Places (across your experiences) holding at least one copy, as last indexed.
      required:
        - id
        - name
        - description
        - latestVersion
        - archived
        - createdAt
        - updatedAt
        - places
      additionalProperties: false
    ListWorldPackagesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPackagesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldParentalChildrenItem:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        ageYears:
          type: number
          nullable: true
        applies:
          type: boolean
          description: Controls stop at 18.
        linkedAt:
          type: string
          nullable: true
        controls:
          $ref: "#/components/schemas/ListWorldParentalChildrenItemControls"
        spentThisMonthCents:
          type: number
        pinLocked:
          type: boolean
        playtime:
          $ref: "#/components/schemas/ListWorldParentalChildrenItemPlaytime"
      required:
        - userId
        - name
        - applies
        - controls
        - spentThisMonthCents
        - pinLocked
        - playtime
      additionalProperties: false
    ListWorldParentalChildrenItemControls:
      type: object
      properties:
        maxRating:
          type: string
          enum:
            - everyone
            - teen
        chat:
          type: string
          enum:
            - friends
            - off
            - on
        monthlySpendLimitCents:
          type: number
          nullable: true
          description: Crossly Carnival purchases per calendar month (UTC), cents. null = no limit, 0 = purchases off.
      required:
        - maxRating
        - chat
      additionalProperties: false
    ListWorldParentalChildrenItemPlaytime:
      type: object
      properties:
        days:
          type: number
        totalSeconds:
          type: number
        experiences:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldParentalChildrenItemPlaytimeExperiences"
      required:
        - days
        - totalSeconds
        - experiences
      additionalProperties: false
    ListWorldParentalChildrenItemPlaytimeExperiences:
      type: object
      properties:
        experienceId:
          type: string
        name:
          type: string
        rating:
          type: string
        seconds:
          type: number
        sessions:
          type: number
        lastPlayedAt:
          type: string
          nullable: true
      required:
        - experienceId
        - name
        - rating
        - seconds
        - sessions
      additionalProperties: false
    ListWorldParentalChildrenResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldParentalChildrenItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPlaceBansItem:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
          description: Their room name, or the pseudonym they had in the room when banned.
        bannedAt:
          type: string
      required:
        - userId
        - name
        - bannedAt
      additionalProperties: false
    ListWorldPlaceBansResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPlaceBansItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPlaceBundlesItem:
      type: object
      properties:
        name:
          type: string
          nullable: true
        minItems:
          type: number
        percent:
          type: number
        itemIds:
          type: array
          items:
            type: string
          nullable: true
      required:
        - minItems
        - percent
      additionalProperties: false
    ListWorldPlaceBundlesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPlaceBundlesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPlaceCollectionsItem:
      type: object
      properties:
        category:
          type: string
        brand:
          type: string
        model:
          type: string
        brandSlug:
          type: string
        modelSlug:
          type: string
        total:
          type: number
          description: Pieces in the set (the directory's count).
        owned:
          type: number
          description: Of those, how many the owner has.
      required:
        - category
        - brand
        - model
        - brandSlug
        - modelSlug
        - total
        - owned
      additionalProperties: false
    ListWorldPlaceCollectionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPlaceCollectionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPlaceOffersItem:
      type: object
      properties:
        itemId:
          type: string
        listingSlug:
          type: string
          description: platform_listings.platform_listing_id — what POST /cart/items takes.
        priceCents:
          type: number
        currency:
          type: string
        available:
          type: number
          nullable: true
          description: Remaining stock, when the listing declares one. Null = unknown.
        condition:
          type: string
          nullable: true
          description: What a buyer is entitled to know before they add it.
        gradeKey:
          type: string
          nullable: true
          description: Canonical grade key when the item is slabbed, e.g. `psa-10`.
        market:
          $ref: "#/components/schemas/ListWorldPlaceOffersItemMarket"
      required:
        - itemId
        - listingSlug
        - priceCents
        - currency
      additionalProperties: false
    ListWorldPlaceOffersItemMarket:
      type: object
      properties:
        skuId:
          type: string
        name:
          type: string
        lowestAskCents:
          type: number
          nullable: true
        lastSaleCents:
          type: number
          nullable: true
      required:
        - skuId
        - name
      additionalProperties: false
      nullable: true
    ListWorldPlaceOffersResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPlaceOffersItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPlaceRadarItem:
      type: object
      properties:
        peerId:
          type: string
        count:
          type: number
        names:
          type: array
          items:
            type: string
      required:
        - peerId
        - count
        - names
      additionalProperties: false
    ListWorldPlaceRadarResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPlaceRadarItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPlaceTradeTablesItem:
      type: object
      properties:
        visitor:
          $ref: "#/components/schemas/GetWorldExperiencePlaceCollabOpResponseDataFramesBy"
        totals:
          $ref: "#/components/schemas/ListWorldPlaceTradeTablesItemTotals"
        you:
          type: string
          enum:
            - seller
            - visitor
          nullable: true
        line:
          $ref: "#/components/schemas/ListWorldPlaceTradeTablesItemLine"
        id:
          type: string
        postId:
          type: string
          description: The seller's trade post this table trades on.
        place:
          type: string
          description: Where the table stands (a place slug, e.g. trade-floor).
        seller:
          $ref: "#/components/schemas/UserIdName"
        mat:
          $ref: "#/components/schemas/ListWorldPlaceTradeTablesItemMat"
        cash:
          $ref: "#/components/schemas/ListWorldPlaceTradeTablesItemCash"
        shook:
          $ref: "#/components/schemas/ListWorldPlaceTradeTablesItemShook"
        status:
          type: string
          enum:
            - open
            - closed
            - done
          description: "open: dealing at the mat · done: shaken, a trade exists · closed: the seller left."
        tradeId:
          type: string
          nullable: true
        version:
          type: number
          description: Bumped on every change, so a client can drop a stale echo.
      required:
        - totals
        - line
        - id
        - postId
        - place
        - seller
        - mat
        - cash
        - shook
        - status
        - version
      additionalProperties: false
    ListWorldPlaceTradeTablesItemCash:
      type: object
      properties:
        cents:
          type: number
        payer:
          type: string
          enum:
            - seller
            - visitor
          nullable: true
      required:
        - cents
      additionalProperties: false
    ListWorldPlaceTradeTablesItemLine:
      type: object
      properties:
        waiting:
          type: number
        yourPlace:
          type: number
          nullable: true
        priority:
          type: boolean
      required:
        - waiting
        - priority
      additionalProperties: false
    ListWorldPlaceTradeTablesItemMat:
      type: object
      properties:
        seller:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldTradeTableBinderItem"
        visitor:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldTradeTableBinderItem"
      required:
        - seller
        - visitor
      additionalProperties: false
    ListWorldPlaceTradeTablesItemShook:
      type: object
      properties:
        seller:
          type: boolean
        visitor:
          type: boolean
      required:
        - seller
        - visitor
      additionalProperties: false
    ListWorldPlaceTradeTablesItemTotals:
      type: object
      properties:
        seller:
          type: number
        visitor:
          type: number
        feeCents:
          type: number
      required:
        - seller
        - visitor
        - feeCents
      additionalProperties: false
    ListWorldPlaceTradeTablesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPlaceTradeTablesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPlaceTradesItem:
      type: object
      properties:
        itemId:
          type: string
        postPath:
          type: string
        title:
          type: string
      required:
        - itemId
        - postPath
        - title
      additionalProperties: false
    ListWorldPlaceTradesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPlaceTradesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPromotedItem:
      type: object
      properties:
        kind:
          type: string
          enum:
            - showroom
            - convention
        id:
          type: string
          description: The showroom's scene id, or the convention id.
        name:
          type: string
        slug:
          type: string
          nullable: true
          description: "The place to walk into: the showroom's public slug, or the convention hall's (null = not walkable yet)."
        startsAt:
          type: string
          nullable: true
          description: A convention's start and end (ISO); null for a showroom.
        endsAt:
          type: string
          nullable: true
        sponsored:
          type: boolean
        adToken:
          type: string
          description: POST it to the click endpoint when the visitor opens the place (the billable event).
      required:
        - kind
        - id
        - name
        - sponsored
        - adToken
      additionalProperties: false
    ListWorldPromotedResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPromotedItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPropertyPlotsItem:
      type: object
      properties:
        plotId:
          type: string
        label:
          type: string
        street:
          $ref: "#/components/schemas/NameSlug"
        number:
          type: number
        tenure:
          type: string
          enum:
            - owned
            - rented
        standing:
          type: string
          enum:
            - active
            - grace
            - rented
            - delinquent
            - foreclosed
          description: "owned: the deed's standing; rented: 'active'."
        paidThrough:
          type: string
          nullable: true
        maintenanceWeeklyCents:
          type: number
          nullable: true
        rentWeeklyCents:
          type: number
          nullable: true
        showroom:
          $ref: "#/components/schemas/GetWorldPropertyPlotResponseDataShowroom"
        letting:
          $ref: "#/components/schemas/GetWorldPropertyPlotResponseDataLetting"
        listing:
          $ref: "#/components/schemas/ListingIdPriceCents"
        deedId:
          type: string
          nullable: true
        leaseId:
          type: string
          nullable: true
        visitPath:
          type: string
        render:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataRender"
        photo:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataPhoto"
      required:
        - plotId
        - label
        - street
        - number
        - tenure
        - standing
        - visitPath
        - render
        - photo
      additionalProperties: false
    ListWorldPropertyPlotsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPropertyPlotsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPropertyRentalsItem:
      type: object
      properties:
        leaseId:
          type: string
        plotId:
          type: string
        label:
          type: string
        street:
          type: string
        number:
          type: number
        status:
          type: string
          enum:
            - active
            - ended
            - offered
        rentWeeklyCents:
          type: number
        paidThrough:
          type: string
          nullable: true
        nextDueAt:
          type: string
          nullable: true
          description: When the next week is due (paid-through), and when an unpaid lease ends (paid-through + one week).
        endsIfUnpaidAt:
          type: string
          nullable: true
        termsFrozenAt:
          type: string
          nullable: true
        createdAt:
          type: string
        endedAt:
          type: string
          nullable: true
        endReason:
          type: string
          nullable: true
        rail:
          type: string
          enum:
            - cash
            - cbx
          nullable: true
        autopay:
          type: boolean
        counterparty:
          type: string
          nullable: true
          description: "Renting out: who rents it. Renting: who owns it. Display name only."
        showroom:
          $ref: "#/components/schemas/IdName2"
      required:
        - leaseId
        - plotId
        - label
        - street
        - number
        - status
        - rentWeeklyCents
        - createdAt
        - autopay
      additionalProperties: false
    ListWorldPropertyRentalsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPropertyRentalsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldPropertyTrespassedItem:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        scope:
          type: string
          enum:
            - owner
            - place
        placeLabel:
          type: string
          nullable: true
          description: The room's name when scope is 'place', else null.
        placeSlug:
          type: string
        reason:
          type: string
          nullable: true
        bannedAt:
          type: string
      required:
        - userId
        - name
        - scope
        - placeSlug
        - bannedAt
      additionalProperties: false
    ListWorldPropertyTrespassedResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldPropertyTrespassedItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldProvenanceItem:
      type: object
      properties:
        platformListingId:
          type: string
        slug:
          type: string
          nullable: true
          description: The listing's public slug (what an order line carries), or null.
        kind:
          type: string
          enum:
            - window
            - auction
            - room
            - agent
            - stall
            - worn
            - drop
            - space
        place:
          type: string
          nullable: true
          description: The place's name, resolved (null when it is gone).
        at:
          type: string
          description: When it was bought (ISO).
        line:
          type: string
      required:
        - platformListingId
        - kind
        - at
        - line
      additionalProperties: false
    ListWorldProvenanceResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldProvenanceItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldQuestsItem:
      type: object
      properties:
        key:
          type: string
        pin:
          type: string
        goal:
          type: string
        target:
          type: number
        count:
          type: number
        done:
          type: boolean
        colour:
          type: string
      required:
        - key
        - pin
        - goal
        - target
        - count
        - done
        - colour
      additionalProperties: false
    ListWorldQuestsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldQuestsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldRecentItem:
      type: object
      properties:
        genre:
          type: string
          enum:
            - shopping
            - other
            - social
            - strategy
            - hangout
            - simulation
            - obby
            - adventure
            - roleplay
            - sports
            - arcade
            - card_games
        devices:
          type: array
          items:
            type: string
        maxPlayers:
          type: number
          nullable: true
          description: "Most players one server holds (null: unknown)."
        up:
          type: number
        down:
          type: number
        thumbsUp:
          type: number
          nullable: true
          description: "Whole-number thumbs-up percentage (null: no votes yet)."
        favorites:
          type: number
        sponsored:
          type: boolean
          description: 'Paid placement (06 section 9): `label` is then always "Sponsored".'
        label:
          type: string
          nullable: true
        campaignId:
          type: string
          nullable: true
        shop:
          $ref: "#/components/schemas/UsernameHref"
        icon:
          type: string
          nullable: true
          description: |-
            A Carnival game's square icon (1176 media role "icon", approved; falls back to the thumbnail). `thumbnail` is then
            the creator's thumbnail role, else the first approved screenshot, else the experience icon. Absent elsewhere.
        key:
          type: string
        kind:
          type: string
          enum:
            - worlds
            - classic
            - first_party
            - tcg_table
        row:
          type: string
          enum:
            - new
            - top
            - friends
            - more
        slot:
          type: number
          description: "Position in the layout: 0..11 the portal ring, then the rest."
        title:
          type: string
        subtitle:
          type: string
          description: "ASCII, short: the creator, or what it is."
        thumbnail:
          type: string
          nullable: true
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        descriptors:
          type: array
          items:
            type: string
          nullable: true
          description: Content descriptors from the rating questionnaire (IARC style), shown with the badge on every surface.
        stars:
          $ref: "#/components/schemas/AverageCount2"
        ccu:
          type: number
          description: Players in it now (every api container, refreshed every few seconds).
        friends:
          type: array
          items:
            $ref: "#/components/schemas/UserIdName"
          description: Your friends in it now (mutual follows), at most five named; `friendsCount` is all of them.
        friendsCount:
          type: number
        firstParty:
          type: boolean
        newAndRising:
          type: boolean
          description: In its guaranteed test impressions ("New & rising").
        score:
          type: number
          description: The ranking composite over the last 28 days (discoveryScore).
        play:
          $ref: "#/components/schemas/HrefPlace"
      required:
        - genre
        - devices
        - up
        - down
        - favorites
        - sponsored
        - key
        - kind
        - row
        - slot
        - title
        - subtitle
        - rating
        - ccu
        - friends
        - friendsCount
        - firstParty
        - newAndRising
        - score
        - play
      additionalProperties: false
    ListWorldRecentResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldRecentItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldRegionsItem:
      type: object
      properties:
        region:
          type: string
        probeUrl:
          type: string
      required:
        - region
        - probeUrl
      additionalProperties: false
    ListWorldRegionsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldRegionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldRoomWantsItem:
      type: object
      properties:
        itemId:
          type: string
        wants:
          type: number
      required:
        - itemId
        - wants
      additionalProperties: false
    ListWorldRoomWantsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldRoomWantsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldShopListingsItem:
      type: object
      properties:
        id:
          type: string
          description: Crossly shop slug — what `ListingId` holds in the place.
        title:
          type: string
        price:
          type: string
          description: Display price ("$48.00").
        priceCents:
          type: number
          nullable: true
        currency:
          type: string
        imageUrl:
          type: string
          nullable: true
      required:
        - id
        - title
        - price
        - currency
      additionalProperties: false
    ListWorldShopListingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldShopListingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldSpaceRequestsItem:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
          nullable: true
        at:
          type: string
          format: date-time
      required:
        - userId
        - at
      additionalProperties: false
    ListWorldSpaceRequestsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldSpaceRequestsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldSpaceWhatsOnItem:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        kind:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        slug:
          type: string
        spaceName:
          type: string
        place:
          type: string
          enum:
            - stage
            - street
            - festival
            - space
        featured:
          type: boolean
          nullable: true
          description: "Run by a Host at WHATS_ON_FEATURE_LEVEL+ (shared reputation.ts): badged, and first when it starts within two days."
      required:
        - id
        - title
        - kind
        - startsAt
        - endsAt
        - slug
        - spaceName
        - place
      additionalProperties: false
    ListWorldSpaceWhatsOnResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldSpaceWhatsOnItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldSpacesItem:
      type: object
      properties:
        slug:
          type: string
        name:
          type: string
        venue:
          type: string
          enum:
            - stage
            - gallery
            - card_club
            - sneaker_meet
            - vintage_market
            - clubhouse
        about:
          type: string
          nullable: true
        members:
          type: number
        here:
          type: number
        next:
          $ref: "#/components/schemas/ListWorldSpacesItemNext"
      required:
        - slug
        - name
        - venue
        - members
        - here
      additionalProperties: false
    ListWorldSpacesItemNext:
      type: object
      properties:
        title:
          type: string
        kind:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
      required:
        - title
        - kind
        - startsAt
        - endsAt
      additionalProperties: false
      nullable: true
    ListWorldSpacesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldSpacesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldStaffApplicantsItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        note:
          type: string
          nullable: true
        appliedAt:
          type: string
        decidedVia:
          type: string
          nullable: true
        posting:
          $ref: "#/components/schemas/ListWorldStaffApplicantsItemPosting"
        applicant:
          $ref: "#/components/schemas/ListWorldStaffApplicantsItemApplicant"
      required:
        - id
        - status
        - appliedAt
        - posting
        - applicant
      additionalProperties: false
    ListWorldStaffApplicantsItemApplicant:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        workerScore:
          $ref: "#/components/schemas/GetWorldStaffReputationResponseDataScore"
        badges:
          type: array
          items:
            type: string
        shiftsWorked:
          type: number
        noShows:
          type: number
      required:
        - userId
        - name
        - workerScore
        - badges
        - shiftsWorked
        - noShows
      additionalProperties: false
    ListWorldStaffApplicantsItemPosting:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        place:
          type: string
      required:
        - id
        - title
        - place
      additionalProperties: false
    ListWorldStaffApplicantsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldStaffApplicantsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldStaffPeopleItem:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
        via:
          type: string
          enum:
            - team
            - job
        teamRole:
          type: string
          nullable: true
        workerScore:
          $ref: "#/components/schemas/GetWorldStaffReputationResponseDataScore"
        upcomingShifts:
          type: number
      required:
        - userId
        - name
        - via
        - workerScore
        - upcomingShifts
      additionalProperties: false
    ListWorldStaffPeopleResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldStaffPeopleItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldStaffPlacesItem:
      type: object
      properties:
        kind:
          type: string
          enum:
            - showroom
            - convention
            - stall
        id:
          type: string
        slug:
          type: string
          description: The room or street the worker stands in (presence is sampled here).
        name:
          type: string
        startsAt:
          type: string
          nullable: true
          description: "For a stall or convention: when it runs (shifts must fall inside)."
        endsAt:
          type: string
          nullable: true
      required:
        - kind
        - id
        - slug
        - name
      additionalProperties: false
    ListWorldStaffPlacesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldStaffPlacesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldStaffPostingsItem:
      type: object
      properties:
        shifts:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldStaffPostingsItemShifts"
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        target:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataTarget"
        role:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        visibility:
          type: string
          enum:
            - public
            - private
        pay:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataPay"
        timezone:
          type: string
        recurrence:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataRecurrence"
        startsAt:
          type: string
        endsAt:
          type: string
        whitelist:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataWhitelist"
        blacklist:
          type: array
          items:
            type: string
        minWorkerRep:
          type: number
          nullable: true
        requiredBadges:
          type: array
          items:
            type: string
        maxStaff:
          type: number
        autoApprove:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataAutoApprove"
        breaks:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataBreaks"
        checkIn:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataCheckIn"
        noShow:
          $ref: "#/components/schemas/PenaltyRepStrikesToBlock"
        notes:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - paused
            - open
            - closed
        createdAt:
          type: string
      required:
        - shifts
        - id
        - target
        - role
        - title
        - visibility
        - pay
        - timezone
        - recurrence
        - startsAt
        - endsAt
        - whitelist
        - blacklist
        - requiredBadges
        - maxStaff
        - autoApprove
        - checkIn
        - noShow
        - status
        - createdAt
      additionalProperties: false
    ListWorldStaffPostingsItemShifts:
      type: object
      properties:
        id:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        slots:
          type: number
        filled:
          type: number
        status:
          type: string
        workers:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - id
        - startsAt
        - endsAt
        - slots
        - filled
        - status
        - workers
      additionalProperties: false
    ListWorldStaffPostingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldStaffPostingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldStaffShiftsItem:
      type: object
      properties:
        worker:
          $ref: "#/components/schemas/UserIdName"
        id:
          type: string
        status:
          type: string
        shift:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataShiftsShift"
        place:
          $ref: "#/components/schemas/GetWorldWorkMineResponseDataShiftsPlace"
        postingId:
          type: string
          nullable: true
        employer:
          type: string
        presentSeconds:
          type: number
        checkedInAt:
          type: string
          nullable: true
        checkedOutAt:
          type: string
          nullable: true
        payCents:
          type: number
          nullable: true
        paid:
          type: boolean
        payFailure:
          type: string
          nullable: true
      required:
        - worker
        - id
        - status
        - shift
        - place
        - employer
        - presentSeconds
        - paid
      additionalProperties: false
    ListWorldStaffShiftsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldStaffShiftsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldStreaksItem:
      type: object
      properties:
        name:
          type: string
        days:
          type: number
      required:
        - name
        - days
      additionalProperties: false
    ListWorldStreaksResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldStreaksItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldTradeMineItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        createdAt:
          type: string
          format: date-time
        items:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldTradeMineItemItems"
      required:
        - id
        - status
        - createdAt
        - items
      additionalProperties: false
    ListWorldTradeMineItemItems:
      type: object
      properties:
        verifiedAt:
          type: string
          format: date-time
          nullable: true
        failedAt:
          type: string
          format: date-time
          nullable: true
      additionalProperties: false
    ListWorldTradeMineResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldTradeMineItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldTradeTableBinderItem:
      type: object
      properties:
        key:
          type: string
          description: Unique on this mat (the source row's id).
        variantId:
          type: string
        condition:
          type: string
        gradeKey:
          type: string
          nullable: true
        portfolioId:
          type: string
          nullable: true
          description: The owner's collection row it came from (visitor side), when there is one.
        name:
          type: string
        imageUrl:
          type: string
          nullable: true
        valueCents:
          type: number
          description: Market value at the time it was laid down (the Trade Block's valueTier), cents.
      required:
        - key
        - variantId
        - condition
        - name
        - valueCents
      additionalProperties: false
    ListWorldTradeTableBinderResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldTradeTableBinderItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldTradeTableListingsItem:
      type: object
      properties:
        id:
          type: string
        items:
          type: array
          items:
            type: string
      required:
        - id
        - items
      additionalProperties: false
    ListWorldTradeTableListingsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldTradeTableListingsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldTransferRequestsItem:
      type: object
      properties:
        id:
          type: string
        experienceId:
          type: string
        gameName:
          type: string
        direction:
          type: string
          enum:
            - incoming
            - outgoing
          description: incoming = you were asked; outgoing = you asked.
        from:
          $ref: "#/components/schemas/ListWorldTransferRequestsItemFrom"
        to:
          $ref: "#/components/schemas/ListWorldTransferRequestsItemFrom"
        status:
          type: string
          enum:
            - expired
            - pending
            - cancelled
            - accepted
            - declined
          description: The effective status (a lapsed pending request reads as expired).
        note:
          type: string
        createdAt:
          type: string
        expiresAt:
          type: string
        decidedAt:
          type: string
          nullable: true
        actions:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldTransferRequestsItemActionsItem"
          description: What the caller may do now.
      required:
        - id
        - experienceId
        - gameName
        - direction
        - from
        - to
        - status
        - note
        - createdAt
        - expiresAt
        - actions
      additionalProperties: false
    ListWorldTransferRequestsItemFrom:
      type: object
      properties:
        userId:
          type: string
        handle:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
      required:
        - userId
      additionalProperties: false
    ListWorldTransferRequestsResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldTransferRequestsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldTransparencyItem:
      type: object
      properties:
        month:
          type: string
        publishedAt:
          type: string
        totals:
          $ref: "#/components/schemas/GetWorldTransparencyResponseDataTotals"
      required:
        - month
        - publishedAt
        - totals
      additionalProperties: false
    ListWorldTransparencyResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldTransparencyItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListWorldVenuesItem:
      type: object
      properties:
        taken:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldVenuesItemTaken"
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        building:
          type: string
        size:
          type: string
          enum:
            - hall_s
            - hall_m
            - hall_l
            - full_floor
        widthM:
          type: number
        depthM:
          type: number
        maxBooths:
          type: number
        dayCents:
          type: number
      required:
        - taken
        - id
        - slug
        - name
        - building
        - size
        - widthM
        - depthM
        - maxBooths
        - dayCents
      additionalProperties: false
    ListWorldVenuesItemTaken:
      type: object
      properties:
        startsOn:
          type: string
        endsOn:
          type: string
      required:
        - startsOn
        - endsOn
      additionalProperties: false
    ListWorldVenuesResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWorldVenuesItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    ListingIdPriceCents:
      type: object
      properties:
        listingId:
          type: string
        priceCents:
          type: number
      required:
        - listingId
        - priceCents
      additionalProperties: false
      nullable: true
    ListingsValueCents:
      type: object
      properties:
        listings:
          type: number
        valueCents:
          type: number
      required:
        - listings
        - valueCents
      additionalProperties: false
    LiveStreamResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListLiveStreamsItem"
      required:
        - data
      additionalProperties: false
    LookbookCampaignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListLookbookCampaignsItem"
      required:
        - data
      additionalProperties: false
    LowCentsHighCents:
      type: object
      properties:
        lowCents:
          type: number
        highCents:
          type: number
      required:
        - lowCents
        - highCents
      additionalProperties: false
      nullable: true
    LoyaltyAirdropResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListLoyaltyAirdropsItem"
      required:
        - data
      additionalProperties: false
    MainSub:
      type: object
      properties:
        main:
          type: string
          nullable: true
        sub:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
    MakerTaker:
      type: object
      properties:
        maker:
          type: number
        taker:
          type: number
      required:
        - maker
        - taker
      additionalProperties: false
    MinMax:
      type: object
      properties:
        min:
          type: number
        max:
          type: number
      required:
        - min
        - max
      additionalProperties: false
    MinQtyPercentBps:
      type: object
      properties:
        minQty:
          type: number
        percentBps:
          type: number
      required:
        - minQty
        - percentBps
      additionalProperties: false
    MinQtyPriceCents:
      type: object
      properties:
        minQty:
          type: number
        priceCents:
          type: number
      required:
        - minQty
        - priceCents
      additionalProperties: false
    NameObject:
      type: object
      properties:
        name:
          type: string
          nullable: true
      additionalProperties: false
    NameObject2:
      type: object
      properties:
        name:
          type: string
      required:
        - name
      additionalProperties: false
      nullable: true
      description: A card → its set; any creation → a launch that uses it.
    NameSlug:
      type: object
      properties:
        name:
          type: string
        slug:
          type: string
      required:
        - name
        - slug
      additionalProperties: false
    NameSlug2:
      type: object
      properties:
        name:
          type: string
        slug:
          type: string
      required:
        - name
        - slug
      additionalProperties: false
      nullable: true
    NoteRequest:
      type: object
      properties:
        note:
          type: string
      additionalProperties: false
    OkResponse:
      type: object
      properties:
        ok:
          type: boolean
      required:
        - ok
      additionalProperties: false
    OpenClose:
      type: object
      properties:
        open:
          type: string
        close:
          type: string
      required:
        - open
        - close
      additionalProperties: false
    OpenClose2:
      type: object
      properties:
        open:
          type: string
        close:
          type: string
      required:
        - open
        - close
      additionalProperties: false
      nullable: true
    OrderHashResponse:
      type: object
      properties:
        orderHash:
          type: string
      required:
        - orderHash
      additionalProperties: false
    OrderIdError:
      type: object
      properties:
        orderId:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
      additionalProperties: false
    OrderIdReasonRequest:
      type: object
      properties:
        orderId:
          type: string
        reason:
          type: string
      required:
        - orderId
      additionalProperties: false
    PageUrlImageUrl:
      type: object
      properties:
        pageUrl:
          type: string
        imageUrl:
          type: string
      required:
        - pageUrl
        - imageUrl
      additionalProperties: false
    Pagination:
      type: object
      description: Present only when the endpoint pages. Absent — not null — when it returns everything.
      properties:
        page:
          type: integer
          minimum: 1
          description: 1-indexed page number.
        limit:
          type: integer
          minimum: 1
          description: Rows per page.
        total:
          type: integer
          description: Total matching rows, when the endpoint counts them.
        totalPages:
          type: integer
          description: Derived from total and limit.
        pages:
          type: integer
          deprecated: true
          description: Deprecated alias of `totalPages`, sent only by GET /v1/inventory (its original name). Read `totalPages`.
      required:
        - page
        - limit
    PassportDraftResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/PassportDraftResponseData"
      required:
        - data
      additionalProperties: false
    PassportDraftResponseData:
      type: object
      properties:
        id:
          type: string
        step:
          type: string
          enum:
            - items
            - details
            - review
            - capture
            - attach
        template:
          type: string
          nullable: true
        activatedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        passports:
          type: array
          items:
            $ref: "#/components/schemas/ListPassportsItem"
        skipped:
          type: array
          items:
            $ref: "#/components/schemas/PassportDraftResponseDataSkipped"
          nullable: true
      required:
        - id
        - step
        - createdAt
        - passports
      additionalProperties: false
    PassportDraftResponseDataSkipped:
      type: object
      properties:
        id:
          type: string
        reason:
          type: string
      required:
        - id
        - reason
      additionalProperties: false
    PassportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/PassportResponseData"
      required:
        - data
      additionalProperties: false
    PassportResponseData:
      type: object
      properties:
        id:
          type: string
        code:
          type: string
        url:
          type: string
          description: The passport page.
        nfcUrl:
          type: string
          description: What to write to an NFC tag / print as a QR (counted as scans).
        qrUrl:
          type: string
        platformListingId:
          type: string
          nullable: true
          description: The Crossly listing a passport made the old way was issued on.
        inventoryItemId:
          type: string
          nullable: true
        inventoryUnitId:
          type: string
          nullable: true
        draftId:
          type: string
          nullable: true
        status:
          type: string
          description: draft | active | revoked
        custody:
          type: string
        title:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        photos:
          type: array
          items:
            type: string
        details:
          $ref: "#/components/schemas/PassportResponseDataDetails"
        grading:
          $ref: "#/components/schemas/ListPassportsItemGrading"
        tagUid:
          type: string
          nullable: true
        tagLocked:
          type: boolean
        tagWrittenAt:
          type: string
          nullable: true
        nfcScans:
          type: number
        qrScans:
          type: number
        lastScannedAt:
          type: string
          nullable: true
        printCount:
          type: number
        lastPrintedAt:
          type: string
          nullable: true
        claimedAt:
          type: string
          nullable: true
          description: The current owner has tapped it since buying ("in its owner's hands").
        activatedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - code
        - url
        - nfcUrl
        - qrUrl
        - status
        - custody
        - photos
        - details
        - tagLocked
        - nfcScans
        - qrScans
        - printCount
        - createdAt
      additionalProperties: false
    PassportResponseDataDetails:
      type: object
      properties:
        title:
          type: string
          nullable: true
          description: Overrides the item title on the passport and its labels.
        serial:
          type: string
          nullable: true
        condition:
          type: string
          nullable: true
        maker:
          type: string
          nullable: true
        year:
          type: string
          nullable: true
        materials:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
      additionalProperties: false
    PathBase64:
      type: object
      properties:
        path:
          type: string
        base64:
          type: string
      required:
        - path
        - base64
      additionalProperties: false
    PathMessage:
      type: object
      properties:
        path:
          type: string
          description: Dotted path into the config (`format.raffle.drawAt`), for the editor to point at.
        message:
          type: string
      required:
        - path
        - message
      additionalProperties: false
    PathText:
      type: object
      properties:
        path:
          type: string
        text:
          type: string
      required:
        - path
        - text
      additionalProperties: false
    PenaltyRepStrikesToBlock:
      type: object
      properties:
        penaltyRep:
          type: number
        strikesToBlock:
          type: number
      required:
        - penaltyRep
        - strikesToBlock
      additionalProperties: false
    ReasonRequest:
      type: object
      properties:
        reason:
          type: string
      required:
        - reason
      additionalProperties: false
    ReasonRequest2:
      type: object
      properties:
        reason:
          type: string
      additionalProperties: false
    RentalResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/RentalResponseData"
      required:
        - data
      additionalProperties: false
    RentalResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        storefrontId:
          type: string
          nullable: true
        days:
          type: number
        platformListingId:
          type: string
        shippedAt:
          type: string
          format: date-time
          nullable: true
        deliveredAt:
          type: string
          format: date-time
          nullable: true
        cancelledAt:
          type: string
          format: date-time
          nullable: true
        orderId:
          type: string
          nullable: true
        inspectedAt:
          type: string
          format: date-time
          nullable: true
        sellerUserId:
          type: string
        stripePaymentIntentId:
          type: string
          nullable: true
        payoutAccountId:
          type: string
          nullable: true
        crosslyFeeCents:
          type: number
        shippingCents:
          type: number
        returnLabelUrl:
          type: string
          nullable: true
        closedAt:
          type: string
          format: date-time
          nullable: true
        approvedAt:
          type: string
          format: date-time
          nullable: true
        terms:
          type: object
          additionalProperties: {}
        depositCents:
          type: number
        outboundLabelUrl:
          type: string
          nullable: true
        claimedAt:
          type: string
          format: date-time
          nullable: true
        fulfilment:
          type: string
        shipTo:
          type: object
          additionalProperties: {}
        renterUserId:
          type: string
        startDate:
          type: string
        endDate:
          type: string
        rentCents:
          type: number
        shipFrom:
          type: object
          nullable: true
          additionalProperties: {}
        outboundTracking:
          type: string
          nullable: true
        returnTracking:
          type: string
          nullable: true
        returnedAt:
          type: string
          format: date-time
          nullable: true
        claimCents:
          type: number
        claimNote:
          type: string
          nullable: true
        claimPhotos:
          type: array
          items:
            type: string
        claimDisputed:
          type: boolean
        depositRefundedCents:
          type: number
        approvalDueAt:
          type: string
          format: date-time
          nullable: true
        conditionPhotosOut:
          type: array
          items:
            type: string
        conditionPhotosIn:
          type: array
          items:
            type: string
        unitIndex:
          type: number
        charges:
          type: object
          additionalProperties: {}
        damageWaiver:
          type: boolean
        cleaningFeeCents:
          type: number
        damageWaiverCents:
          type: number
        lateFeeCents:
          type: number
        rentRefundedCents:
          type: number
        payoutTiming:
          type: string
        payoutReleasedAt:
          type: string
          format: date-time
          nullable: true
        returnShippedAt:
          type: string
          format: date-time
          nullable: true
        conditionPhotosReturn:
          type: array
          items:
            type: string
        inspection:
          type: array
          items:
            $ref: "#/components/schemas/ItemOk"
        boughtOutAt:
          type: string
          format: date-time
          nullable: true
        buyoutCents:
          type: number
          nullable: true
        notReturnedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - status
        - days
        - platformListingId
        - sellerUserId
        - crosslyFeeCents
        - shippingCents
        - terms
        - depositCents
        - fulfilment
        - shipTo
        - renterUserId
        - startDate
        - endDate
        - rentCents
        - claimCents
        - claimPhotos
        - claimDisputed
        - depositRefundedCents
        - conditionPhotosOut
        - conditionPhotosIn
        - unitIndex
        - charges
        - damageWaiver
        - cleaningFeeCents
        - damageWaiverCents
        - lateFeeCents
        - rentRefundedCents
        - payoutTiming
        - conditionPhotosReturn
        - inspection
      additionalProperties: false
    SeriesIdWeightBps:
      type: object
      properties:
        seriesId:
          type: string
        weightBps:
          type: number
      required:
        - seriesId
        - weightBps
      additionalProperties: false
    ShareImageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ShareImageResponseData"
      required:
        - data
      additionalProperties: false
    ShareImageResponseData:
      type: object
      properties:
        kind:
          type: string
          enum:
            - event
            - drop
            - group_buy
        imageUrl:
          type: string
          description: "Absolute url of the PNG: the CDN object, or the api route on a box without a bucket."
        pageUrl:
          type: string
          description: Absolute url of the buyer page.
        bucket:
          type: string
        title:
          type: string
        description:
          type: string
      required:
        - kind
        - imageUrl
        - pageUrl
        - bucket
        - title
        - description
      additionalProperties: false
    SpatialSceneResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/SpatialSceneResponseData"
      required:
        - data
      additionalProperties: false
    SpatialSceneResponseData:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        kind:
          type: string
          description: |-
            'collection' | 'warehouse'

            Same renderer, opposite contracts. A collection may be arranged for
            beauty; a warehouse must match the physical room or it is worse than no
            warehouse, because someone will walk to the wrong shelf.
        categorySlug:
          type: string
          nullable: true
          description: NULL for warehouses and for the generic catch-all room.
        name:
          type: string
        publicSlug:
          type: string
          nullable: true
          description: Public share handle. NULL until someone chooses to share.
        visibility:
          type: string
          description: |-
            'private' | 'unlisted' | 'public'

            Defaults CLOSED. A collection is the one surface in this product that
            routinely contains things which are not for sale and were never meant to
            be seen by anybody — that is most of what makes it a collection.
        settings:
          $ref: "#/components/schemas/SpatialSceneResponseDataSettings"
        storefrontId:
          type: string
          nullable: true
          description: "kind='shop': the store this showroom belongs to (0830). NULL = a legacy row of the default store."
        showroomPosition:
          type: number
          description: "1147 kind='shop': a store's showrooms in order; 0 = its primary (one per store, the unique index below)."
        autoIncludeInventory:
          type: boolean
          description: "1147 kind='shop': opt-in, stand every live item automatically. Off = only what is pinned shows."
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - userId
        - kind
        - name
        - visibility
        - settings
        - showroomPosition
        - autoIncludeInventory
        - createdAt
        - updatedAt
      additionalProperties: false
    SpatialSceneResponseDataSettings:
      type: object
      properties:
        groupBy:
          type: array
          items:
            type: string
          nullable: true
        sortBy:
          type: array
          items:
            type: string
          nullable: true
        theme:
          type: string
          nullable: true
          description: Visual theme key — 'studio' | 'noir' | 'daylight' | 'vitrine'.
        camera:
          $ref: "#/components/schemas/SpatialSceneResponseDataSettingsCamera"
        overlay:
          type: string
          nullable: true
          description: |-
            Overlay: 'none' | 'aging' | 'value' | 'status'. See the read service —
            this is the switch that turns a display into a decision.
      additionalProperties: false
    SpatialSceneResponseDataSettingsCamera:
      type: object
      properties:
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          nullable: true
        target:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
          nullable: true
      additionalProperties: false
      nullable: true
      description: Last camera pose, metres + radians.
    SpatialStreetAdmissionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/SpatialStreetAdmissionResponseData"
      required:
        - data
      additionalProperties: false
    SpatialStreetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListSpatialStreetMineItem"
      required:
        - data
      additionalProperties: false
    SponsoredAdCampaignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/SponsoredAdCampaignResponseData"
      required:
        - data
      additionalProperties: false
    SponsoredAdCampaignResponseData:
      type: object
      properties:
        catalogs:
          type: array
          items:
            $ref: "#/components/schemas/SponsoredAdCampaignResponseDataCatalogs"
        listings:
          type: array
          items:
            $ref: "#/components/schemas/SponsoredAdCampaignResponseDataListings"
        keywords:
          type: array
          items:
            $ref: "#/components/schemas/SponsoredAdCampaignResponseDataKeywords"
        worldTargets:
          type: array
          items:
            $ref: "#/components/schemas/SponsoredAdCampaignResponseDataWorldTargets"
        id:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
            - active
            - draft
            - paused
            - ended
            - out_of_budget
        statusReason:
          type: string
          nullable: true
        pacing:
          $ref: "#/components/schemas/SponsoredAdCampaignResponseDataPacing"
        dailyBudgetCents:
          type: number
        totalBudgetCents:
          type: number
          nullable: true
        spentTotalCents:
          type: number
        defaultBidCents:
          type: number
        bidStrategy:
          type: string
          enum:
            - manual
            - auto
        startsAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        placements:
          type: array
          items:
            $ref: "#/components/schemas/SponsoredAdCampaignResponseDataPlacementsItem"
        goal:
          type: string
          enum:
            - sales
            - visits
        targetCategories:
          type: array
          items:
            type: string
        targetRegions:
          type: array
          items:
            type: string
        targetDevices:
          type: array
          items:
            type: string
        targetType:
          type: string
          enum:
            - listings
            - wholesale_catalog
        targetCatalogId:
          type: string
          nullable: true
        listingCount:
          type: number
        stats:
          $ref: "#/components/schemas/SponsoredAdCampaignResponseDataStats"
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - catalogs
        - listings
        - keywords
        - worldTargets
        - id
        - name
        - status
        - pacing
        - dailyBudgetCents
        - spentTotalCents
        - defaultBidCents
        - bidStrategy
        - placements
        - goal
        - targetCategories
        - targetRegions
        - targetDevices
        - targetType
        - listingCount
        - stats
        - createdAt
        - updatedAt
      additionalProperties: false
    SponsoredAdCampaignResponseDataCatalogs:
      type: object
      properties:
        spendCents:
          type: number
        impressions:
          type: number
        clicks:
          type: number
        ctr:
          type: number
          description: clicks / impressions, 0..1
        avgCpcCents:
          type: number
          description: spend / clicks, cents
        orders:
          type: number
        revenueCents:
          type: number
        roas:
          type: number
          nullable: true
          description: revenue / spend; null with no spend
        catalogId:
          type: string
        catalogName:
          type: string
        catalogSlug:
          type: string
          nullable: true
      required:
        - spendCents
        - impressions
        - clicks
        - ctr
        - avgCpcCents
        - orders
        - revenueCents
        - catalogId
        - catalogName
      additionalProperties: false
    SponsoredAdCampaignResponseDataKeywords:
      type: object
      properties:
        keyword:
          type: string
        matchType:
          type: string
          enum:
            - exact
            - broad
            - phrase
        negative:
          type: boolean
        bidCents:
          type: number
          nullable: true
      required:
        - keyword
        - matchType
        - negative
      additionalProperties: false
    SponsoredAdCampaignResponseDataListings:
      type: object
      properties:
        platformListingId:
          type: string
        slug:
          type: string
          nullable: true
        title:
          type: string
        thumbnail:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        live:
          type: boolean
        bidCents:
          type: number
          nullable: true
        boostBps:
          type: number
          nullable: true
        suggestedBidCents:
          type: number
        status:
          type: string
          enum:
            - active
            - paused
      required:
        - platformListingId
        - title
        - live
        - suggestedBidCents
        - status
      additionalProperties: false
    SponsoredAdCampaignResponseDataPacing:
      type: object
      properties:
        spentTodayCents:
          type: number
        dailyCapped:
          type: boolean
        reason:
          type: string
          nullable: true
      required:
        - spentTodayCents
        - dailyCapped
      additionalProperties: false
    SponsoredAdCampaignResponseDataStats:
      type: object
      properties:
        spendCents:
          type: number
        impressions:
          type: number
        clicks:
          type: number
        ctr:
          type: number
          description: clicks / impressions, 0..1
        avgCpcCents:
          type: number
          description: spend / clicks, cents
        orders:
          type: number
        revenueCents:
          type: number
        roas:
          type: number
          nullable: true
          description: revenue / spend; null with no spend
      required:
        - spendCents
        - impressions
        - clicks
        - ctr
        - avgCpcCents
        - orders
        - revenueCents
      additionalProperties: false
    SponsoredAdCampaignResponseDataWorldTargets:
      type: object
      properties:
        kind:
          type: string
          enum:
            - showroom
            - convention
        id:
          type: string
        name:
          type: string
        live:
          type: boolean
          description: False when the showroom or convention is gone (the target no longer serves).
        bidCents:
          type: number
          nullable: true
        status:
          type: string
          enum:
            - active
            - paused
        impressions:
          type: number
          description: "Lifetime counters on the target row: served, clicked, and sales from the seller credited to its clicks."
        clicks:
          type: number
        orders:
          type: number
        revenueCents:
          type: number
      required:
        - kind
        - id
        - name
        - live
        - status
        - impressions
        - clicks
        - orders
        - revenueCents
      additionalProperties: false
    SponsoredAdResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/SponsoredAdResponseData"
      required:
        - data
      additionalProperties: false
    SponsoredAdResponseData:
      type: object
      properties:
        adsPaused:
          type: boolean
        accountDailyCapCents:
          type: number
          nullable: true
        spentTodayCents:
          type: number
        defaultBidStrategy:
          type: string
          enum:
            - manual
            - auto
        autoTopup:
          $ref: "#/components/schemas/SponsoredAdResponseDataAutoTopup"
        cashRail:
          type: boolean
          description: Whether cash is a configured rail (auto top-up is offered).
        railPreference:
          type: string
          enum:
            - cash_first
            - cbx_first
        canChooseRailOrder:
          type: boolean
      required:
        - adsPaused
        - spentTodayCents
        - defaultBidStrategy
        - autoTopup
        - cashRail
        - railPreference
        - canChooseRailOrder
      additionalProperties: false
    SponsoredAdResponseDataAutoTopup:
      type: object
      properties:
        enabled:
          type: boolean
        thresholdCents:
          type: number
        amountCents:
          type: number
        hasPaymentMethod:
          type: boolean
      required:
        - enabled
        - thresholdCents
        - amountCents
        - hasPaymentMethod
      additionalProperties: false
    StartEnd:
      type: object
      properties:
        start:
          type: string
        end:
          type: string
      required:
        - start
        - end
      additionalProperties: false
    StatusResponse:
      type: object
      properties:
        status:
          type: string
      required:
        - status
      additionalProperties: false
    StorefrontHighlightResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListStorefrontHighlightsItem"
      required:
        - data
      additionalProperties: false
    StorefrontResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListStorefrontsItem"
      required:
        - data
      additionalProperties: false
    StorefrontResponse2:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/StorefrontResponse2Data"
      required:
        - data
      additionalProperties: false
    StorefrontResponse2Data:
      type: object
      properties:
        audience:
          type: string
          enum:
            - retail
            - trade
          nullable: true
          description: "W6: which of the store's two sites this is ('retail' = /site/:slug, 'trade' = /site/:slug/trade)."
        gating:
          type: string
          enum:
            - public
            - approved_only
            - prices_private
          nullable: true
          description: The trade site's gating (trade audience only).
        storefrontId:
          type: string
        slug:
          type: string
        storeName:
          type: string
        draft:
          $ref: "#/components/schemas/StorefrontResponse2DataDraft"
        published:
          $ref: "#/components/schemas/StorefrontResponse2DataPublished"
        publishedAt:
          type: string
          nullable: true
        draftUpdatedAt:
          type: string
          nullable: true
        hasUnpublishedChanges:
          type: boolean
          description: The draft differs from what is live.
        siteEnabled:
          type: boolean
          description: Buyers can reach /site/:slug (and the custom domain). Off = the site 404s and the domain shows the profile.
        customDomain:
          type: string
          nullable: true
        customDomainVerified:
          type: boolean
      required:
        - storefrontId
        - slug
        - storeName
        - draft
        - hasUnpublishedChanges
        - siteEnabled
        - customDomainVerified
      additionalProperties: false
    StorefrontResponse2DataDraft:
      type: object
      properties:
        version:
          type: number
        theme:
          $ref: "#/components/schemas/StorefrontResponse2DataDraftTheme"
        header:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftHeader"
        announcement:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftAnnouncement"
        footer:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftFooter"
        popup:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftPopup"
        seo:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftSeo"
        pages:
          type: array
          items:
            type: object
            additionalProperties: {}
        templates:
          $ref: "#/components/schemas/StorefrontResponse2DataDraftTemplates"
      required:
        - version
        - theme
        - header
        - announcement
        - footer
        - popup
        - seo
        - pages
        - templates
      additionalProperties: false
    StorefrontResponse2DataDraftTemplates:
      type: object
      properties:
        product:
          type: object
          description: "/site/:slug/products/:id: what shows under the product."
          additionalProperties: {}
        catalog:
          type: object
          description: "/site/:slug/products and /collections/*: the catalog."
          additionalProperties: {}
      required:
        - product
        - catalog
      additionalProperties: false
    StorefrontResponse2DataDraftTheme:
      type: object
      properties:
        preset:
          type: string
          description: The preset it started from (SITE_THEME_PRESETS), informational.
        colors:
          type: object
          additionalProperties: {}
        fonts:
          type: object
          additionalProperties: {}
        baseSize:
          type: number
          description: Base text size, px (14..18).
        radius:
          type: object
          additionalProperties: {}
        buttonStyle:
          type: string
          enum:
            - solid
            - outline
            - pill
            - soft
            - underline
        density:
          type: string
          enum:
            - compact
            - comfortable
            - airy
          description: Vertical rhythm between sections.
        productCard:
          type: object
          additionalProperties: {}
        customCss:
          type: string
          description: Scoped to the site root by the renderer; sanitized server-side (no
      required:
        - preset
        - colors
        - fonts
        - baseSize
        - radius
        - buttonStyle
        - density
        - productCard
        - customCss
      additionalProperties: false
    StorefrontResponse2DataPublished:
      type: object
      properties:
        version:
          type: number
        theme:
          $ref: "#/components/schemas/StorefrontResponse2DataDraftTheme"
        header:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftHeader"
        announcement:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftAnnouncement"
        footer:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftFooter"
        popup:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftPopup"
        seo:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftSeo"
        pages:
          type: array
          items:
            type: object
            additionalProperties: {}
        templates:
          $ref: "#/components/schemas/StorefrontResponse2DataDraftTemplates"
      required:
        - version
        - theme
        - header
        - announcement
        - footer
        - popup
        - seo
        - pages
        - templates
      additionalProperties: false
      nullable: true
    StorefrontResponse3:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/StorefrontResponse3Data"
      required:
        - data
      additionalProperties: false
    StorefrontResponse3Data:
      type: object
      properties:
        audience:
          type: string
          enum:
            - retail
            - trade
          nullable: true
          description: "W6: which of the store's two sites this is ('retail' = /site/:slug, 'trade' = /site/:slug/trade)."
        gating:
          type: string
          enum:
            - public
            - approved_only
            - prices_private
          nullable: true
          description: The trade site's gating (trade audience only).
        storefrontId:
          type: string
        slug:
          type: string
        storeName:
          type: string
        draft:
          $ref: "#/components/schemas/StorefrontResponse3DataDraft"
        published:
          $ref: "#/components/schemas/StorefrontResponse3DataPublished"
        publishedAt:
          type: string
          nullable: true
        draftUpdatedAt:
          type: string
          nullable: true
        hasUnpublishedChanges:
          type: boolean
          description: The draft differs from what is live.
        siteEnabled:
          type: boolean
          description: Buyers can reach /site/:slug (and the custom domain). Off = the site 404s and the domain shows the profile.
        customDomain:
          type: string
          nullable: true
        customDomainVerified:
          type: boolean
      required:
        - storefrontId
        - slug
        - storeName
        - draft
        - hasUnpublishedChanges
        - siteEnabled
        - customDomainVerified
      additionalProperties: false
    StorefrontResponse3DataDraft:
      type: object
      properties:
        version:
          type: number
        theme:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftTheme"
        header:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftHeader"
        announcement:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftAnnouncement"
        footer:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftFooter"
        popup:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftPopup"
        seo:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftSeo"
        pages:
          type: array
          items:
            $ref: "#/components/schemas/StorefrontResponse3DataDraftPages"
        templates:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftTemplates"
      required:
        - version
        - theme
        - header
        - announcement
        - footer
        - popup
        - seo
        - pages
        - templates
      additionalProperties: false
    StorefrontResponse3DataDraftAnnouncement:
      type: object
      properties:
        enabled:
          type: boolean
        messages:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Rotates when more than one.
        rotateSeconds:
          type: number
        background:
          type: string
          nullable: true
        text:
          type: string
          nullable: true
        dismissible:
          type: boolean
        position:
          type: string
          enum:
            - top
            - below-header
      required:
        - enabled
        - messages
        - rotateSeconds
        - dismissible
        - position
      additionalProperties: false
    StorefrontResponse3DataDraftFooter:
      type: object
      properties:
        layout:
          type: string
          enum:
            - columns
            - centered
            - minimal
        columns:
          type: array
          items:
            type: object
            additionalProperties: {}
        showNewsletter:
          type: boolean
        newsletterTitle:
          type: string
        newsletterBody:
          type: string
        showSocial:
          type: boolean
        showPaymentIcons:
          type: boolean
        showPolicies:
          type: boolean
        showPoweredBy:
          type: boolean
          description: '"Powered by Crossly".'
        copyright:
          type: string
      required:
        - layout
        - columns
        - showNewsletter
        - newsletterTitle
        - newsletterBody
        - showSocial
        - showPaymentIcons
        - showPolicies
        - showPoweredBy
        - copyright
      additionalProperties: false
    StorefrontResponse3DataDraftHeader:
      type: object
      properties:
        layout:
          type: string
          enum:
            - split
            - minimal
            - logo-left
            - logo-center
        sticky:
          type: boolean
        transparentOverHero:
          type: boolean
        showSearch:
          type: boolean
        showCart:
          type: boolean
        showAccount:
          type: boolean
        logoHeight:
          type: number
        showStoreName:
          type: boolean
          description: Shown instead of the logo when there is none / beside it.
        nav:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - layout
        - sticky
        - transparentOverHero
        - showSearch
        - showCart
        - showAccount
        - logoHeight
        - showStoreName
        - nav
      additionalProperties: false
    StorefrontResponse3DataDraftPages:
      type: object
      properties:
        id:
          type: string
        slug:
          type: string
          description: "'' = the home page (always present, first). Others: lowercase-kebab, served at /p/:slug."
        title:
          type: string
        visible:
          type: boolean
          description: In the header nav automatically when no nav is set.
        seo:
          type: object
          nullable: true
          additionalProperties: {}
        sections:
          type: array
          items: {}
      required:
        - id
        - slug
        - title
        - visible
        - sections
      additionalProperties: false
    StorefrontResponse3DataDraftPopup:
      type: object
      properties:
        enabled:
          type: boolean
        kind:
          type: string
          enum:
            - announcement
            - welcome
            - newsletter
        trigger:
          type: string
          enum:
            - delay
            - scroll
            - exit-intent
        delaySeconds:
          type: number
        scrollPercent:
          type: number
        title:
          type: string
        body:
          type: string
        imageUrl:
          type: string
          nullable: true
        ctaLabel:
          type: string
        ctaHref:
          type: string
        discountCode:
          type: string
          nullable: true
          description: Discount code shown after a signup (from Hub → Discounts).
        showOncePerVisitor:
          type: boolean
      required:
        - enabled
        - kind
        - trigger
        - delaySeconds
        - scrollPercent
        - title
        - body
        - ctaLabel
        - ctaHref
        - showOncePerVisitor
      additionalProperties: false
    StorefrontResponse3DataDraftSeo:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        ogImageUrl:
          type: string
          nullable: true
        faviconUrl:
          type: string
          nullable: true
      required:
        - title
        - description
      additionalProperties: false
    StorefrontResponse3DataDraftTemplates:
      type: object
      properties:
        product:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftTemplatesProduct"
        catalog:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftTemplatesCatalog"
      required:
        - product
        - catalog
      additionalProperties: false
    StorefrontResponse3DataDraftTemplatesCatalog:
      type: object
      properties:
        showFilters:
          type: boolean
        showSort:
          type: boolean
      required:
        - showFilters
        - showSort
      additionalProperties: false
      description: "/site/:slug/products and /collections/*: the catalog."
    StorefrontResponse3DataDraftTemplatesProduct:
      type: object
      properties:
        showRelated:
          type: boolean
        relatedSource:
          type: object
          additionalProperties: {}
        showReviews:
          type: boolean
        showPolicies:
          type: boolean
        showShareButtons:
          type: boolean
        galleryLayout:
          type: string
          enum:
            - thumbnails-left
            - thumbnails-below
            - stacked
      required:
        - showRelated
        - relatedSource
        - showReviews
        - showPolicies
        - showShareButtons
        - galleryLayout
      additionalProperties: false
      description: "/site/:slug/products/:id: what shows under the product."
    StorefrontResponse3DataDraftTheme:
      type: object
      properties:
        preset:
          type: string
          description: The preset it started from (SITE_THEME_PRESETS), informational.
        colors:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftThemeColors"
        fonts:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftThemeFonts"
        baseSize:
          type: number
          description: Base text size, px (14..18).
        radius:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftThemeRadius"
        buttonStyle:
          type: string
          enum:
            - solid
            - outline
            - pill
            - soft
            - underline
        density:
          type: string
          enum:
            - compact
            - comfortable
            - airy
          description: Vertical rhythm between sections.
        productCard:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftThemeProductCard"
        customCss:
          type: string
          description: Scoped to the site root by the renderer; sanitized server-side (no
      required:
        - preset
        - colors
        - fonts
        - baseSize
        - radius
        - buttonStyle
        - density
        - productCard
        - customCss
      additionalProperties: false
    StorefrontResponse3DataDraftThemeColors:
      type: object
      properties:
        background:
          type: string
        surface:
          type: string
        text:
          type: string
        muted:
          type: string
        border:
          type: string
        primary:
          type: string
        primaryText:
          type: string
        accent:
          type: string
        sale:
          type: string
        headerBackground:
          type: string
        headerText:
          type: string
        footerBackground:
          type: string
        footerText:
          type: string
      required:
        - background
        - surface
        - text
        - muted
        - border
        - primary
        - primaryText
        - accent
        - sale
        - headerBackground
        - headerText
        - footerBackground
        - footerText
      additionalProperties: false
    StorefrontResponse3DataDraftThemeFonts:
      type: object
      properties:
        heading:
          type: string
          enum:
            - inter
            - dm-sans
            - manrope
            - poppins
            - montserrat
            - work-sans
            - space-grotesk
            - playfair
            - cormorant
            - fraunces
            - libre-baskerville
            - bebas-neue
            - archivo-black
            - jetbrains-mono
        body:
          type: string
          enum:
            - inter
            - dm-sans
            - manrope
            - poppins
            - montserrat
            - work-sans
            - space-grotesk
            - playfair
            - cormorant
            - fraunces
            - libre-baskerville
            - bebas-neue
            - archivo-black
            - jetbrains-mono
        headingUppercase:
          type: boolean
      required:
        - heading
        - body
        - headingUppercase
      additionalProperties: false
    StorefrontResponse3DataDraftThemeProductCard:
      type: object
      properties:
        style:
          type: string
          enum:
            - minimal
            - standard
            - overlay
            - bordered
            - polaroid
        imageRatio:
          type: string
          enum:
            - 1:1
            - 3:4
            - 4:5
            - 4:3
            - 2:3
        imageFit:
          type: string
          enum:
            - cover
            - contain
        hover:
          type: string
          enum:
            - none
            - zoom
            - swap
            - lift
        showBrand:
          type: boolean
        showSize:
          type: boolean
        showCondition:
          type: boolean
        showCompareAt:
          type: boolean
        showSaleBadge:
          type: boolean
        showSoldOut:
          type: boolean
        quickAdd:
          type: boolean
        align:
          type: string
          enum:
            - left
            - center
      required:
        - style
        - imageRatio
        - imageFit
        - hover
        - showBrand
        - showSize
        - showCondition
        - showCompareAt
        - showSaleBadge
        - showSoldOut
        - quickAdd
        - align
      additionalProperties: false
    StorefrontResponse3DataDraftThemeRadius:
      type: object
      properties:
        card:
          type: number
        button:
          type: number
        input:
          type: number
        image:
          type: number
      required:
        - card
        - button
        - input
        - image
      additionalProperties: false
    StorefrontResponse3DataPublished:
      type: object
      properties:
        version:
          type: number
        theme:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftTheme"
        header:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftHeader"
        announcement:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftAnnouncement"
        footer:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftFooter"
        popup:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftPopup"
        seo:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftSeo"
        pages:
          type: array
          items:
            $ref: "#/components/schemas/StorefrontResponse3DataDraftPages"
        templates:
          $ref: "#/components/schemas/StorefrontResponse3DataDraftTemplates"
      required:
        - version
        - theme
        - header
        - announcement
        - footer
        - popup
        - seo
        - pages
        - templates
      additionalProperties: false
      nullable: true
    StorefrontResponse4:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListStorefrontSectionsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    StorefrontSectionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListStorefrontSectionsItem"
      required:
        - data
      additionalProperties: false
    SubjectIdRequest:
      type: object
      properties:
        subjectId:
          type: string
      required:
        - subjectId
      additionalProperties: false
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
      required:
        - success
      additionalProperties: false
    SummaryIncomplete:
      type: object
      properties:
        summary:
          type: string
        incomplete:
          type: boolean
      required:
        - summary
        - incomplete
      additionalProperties: false
    TcgResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/TcgResponseData"
      required:
        - data
      additionalProperties: false
    TcgResponseData:
      type: object
      properties:
        id:
          type: string
        game:
          type: string
        vsBot:
          type: boolean
        ranked:
          type: boolean
        status:
          type: string
        tournamentId:
          type: string
          nullable: true
        turnDeadline:
          type: string
          nullable: true
        version:
          type: number
        waitingForOpponent:
          type: boolean
        legal:
          type: array
          items: {}
      required:
        - id
        - game
        - vsBot
        - ranked
        - status
        - version
        - waitingForOpponent
        - legal
      additionalProperties: false
    TcgTournamentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/TcgTournamentResponseData"
      required:
        - data
      additionalProperties: false
    TcgTournamentResponseData:
      type: object
      properties:
        players:
          type: number
        registered:
          type: boolean
        standings:
          type: array
          items:
            $ref: "#/components/schemas/TcgTournamentResponseDataStandings"
        pairings:
          type: array
          items:
            $ref: "#/components/schemas/TcgTournamentResponseDataPairings"
        id:
          type: string
        game:
          type: string
        name:
          type: string
        status:
          type: string
        rounds:
          type: number
        round:
          type: number
        topCut:
          type: number
        roundMinutes:
          type: number
        maxPlayers:
          type: number
        startsAt:
          type: string
          nullable: true
        roundEndsAt:
          type: string
          nullable: true
        hostId:
          type: string
      required:
        - players
        - registered
        - standings
        - pairings
        - id
        - game
        - name
        - status
        - rounds
        - round
        - topCut
        - roundMinutes
        - maxPlayers
        - hostId
      additionalProperties: false
    TcgTournamentResponseDataPairings:
      type: object
      properties:
        id:
          type: string
        round:
          type: number
        topCut:
          type: boolean
        matchId:
          type: string
          nullable: true
        result:
          type: string
          nullable: true
        a:
          $ref: "#/components/schemas/TcgTournamentResponseDataPairingsA"
        b:
          $ref: "#/components/schemas/TcgTournamentResponseDataPairingsB"
      required:
        - id
        - round
        - topCut
        - a
      additionalProperties: false
    TcgTournamentResponseDataPairingsA:
      type: object
      properties:
        name:
          type: string
          nullable: true
        you:
          type: boolean
      required:
        - you
      additionalProperties: false
    TcgTournamentResponseDataPairingsB:
      type: object
      properties:
        name:
          type: string
          nullable: true
        you:
          type: boolean
      required:
        - you
      additionalProperties: false
      nullable: true
    TcgTournamentResponseDataStandings:
      type: object
      properties:
        name:
          type: string
          nullable: true
        finalRank:
          type: number
          nullable: true
        you:
          type: boolean
        userId:
          type: string
        points:
          type: number
        wins:
          type: number
        losses:
          type: number
        draws:
          type: number
        byes:
          type: number
        omw:
          type: number
          description: Opponents' match-win %, each floored at 1/3.
        gw:
          type: number
          description: Own game-win % (one game per match here), floored at 1/3.
        dropped:
          type: boolean
        rank:
          type: number
      required:
        - you
        - userId
        - points
        - wins
        - losses
        - draws
        - byes
        - omw
        - gw
        - dropped
        - rank
      additionalProperties: false
    TeamMemberStoreResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/TeamMemberStoreResponseData"
      required:
        - data
      additionalProperties: false
    TeamMemberStoreResponseData:
      type: object
      properties:
        member:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataMember"
        store:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataStore"
        access:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataAccess"
        canEdit:
          type: boolean
        ceiling:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataCeiling"
      required:
        - member
        - store
        - canEdit
      additionalProperties: false
    TeamMemberStoreResponseDataAccess:
      type: object
      properties:
        storefrontId:
          type: string
          nullable: true
          description: null = the explicit "All current and future stores" entry.
        key:
          type: string
          description: "The path key: the store id, or 'all'."
        storeName:
          type: string
        permissions:
          type: array
          items:
            type: string
        limits:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataAccessLimits"
        preset:
          type: string
          nullable: true
          description: The preset the permissions match (viewer…admin), null = custom.
        presetLabel:
          type: string
          nullable: true
        legacy:
          type: boolean
          description: A grant from before fine permissions (its catalogue scopes decide); saving it makes it explicit.
        summary:
          type: string
        updatedAt:
          type: string
      required:
        - key
        - storeName
        - permissions
        - limits
        - legacy
        - summary
        - updatedAt
      additionalProperties: false
      nullable: true
      description: null when they are not in this store yet (the page then adds them).
    TeamMemberStoreResponseDataAccessLimits:
      type: object
      properties:
        refundCapCents:
          type: number
          nullable: true
        discountCapPct:
          type: number
          nullable: true
        adSpendCapCents:
          type: number
          nullable: true
        marketplaces:
          type: array
          items:
            type: string
          nullable: true
      additionalProperties: false
    TeamMemberStoreResponseDataCeiling:
      type: object
      properties:
        permissions:
          type: array
          items:
            type: string
        limits:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataAccessLimits"
      required:
        - permissions
        - limits
      additionalProperties: false
      nullable: true
      description: "For a delegating teammate: the most they can give here (null = the owner, no ceiling)."
    TeamMemberStoreResponseDataMember:
      type: object
      properties:
        id:
          type: string
        memberUserId:
          type: string
        email:
          type: string
          nullable: true
        displayName:
          type: string
          nullable: true
        role:
          type: string
      required:
        - id
        - memberUserId
        - role
      additionalProperties: false
    TeamMemberStoreResponseDataStore:
      type: object
      properties:
        key:
          type: string
        storefrontId:
          type: string
          nullable: true
        name:
          type: string
      required:
        - key
        - name
      additionalProperties: false
    TermsVersionResponse:
      type: object
      properties:
        termsVersion:
          type: string
      required:
        - termsVersion
      additionalProperties: false
    TextChatFilter:
      type: object
      properties:
        textChat:
          type: boolean
          nullable: true
        filter:
          type: string
          enum:
            - standard
            - strict
          nullable: true
      additionalProperties: false
    TitleDescription:
      type: object
      properties:
        title:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
      additionalProperties: false
      description: ≤ 70 / ≤ 200.
    TokenObject:
      type: object
      properties:
        token:
          type: string
      required:
        - token
      additionalProperties: false
    ToolboxAssetResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListToolboxMineItem"
      required:
        - data
      additionalProperties: false
    TxV0Object:
      type: object
      properties:
        txV0:
          type: string
      required:
        - txV0
      additionalProperties: false
    TypeId2:
      type: object
      properties:
        type:
          type: string
          enum:
            - brand
            - line
        id:
          type: string
      required:
        - type
        - id
      additionalProperties: false
      nullable: true
    UnitsCents:
      type: object
      properties:
        units:
          type: number
        cents:
          type: number
      required:
        - units
        - cents
      additionalProperties: false
    UpdateAccountNotificationPreferenceRequest:
      type: object
      properties:
        changes:
          type: array
          items:
            $ref: "#/components/schemas/UpdateAccountNotificationPreferenceRequestChanges"
      required:
        - changes
      additionalProperties: false
    UpdateAccountNotificationPreferenceRequestChanges:
      type: object
      properties:
        eventId:
          type: string
        channel:
          type: string
          enum:
            - email
            - push
            - inApp
        on:
          type: boolean
      required:
        - eventId
        - channel
        - on
      additionalProperties: false
    UpdateAdOffsiteRequest:
      type: object
      properties:
        enabled:
          type: boolean
        maxOffsiteShareBps:
          type: number
        minReturnBps:
          type: number
        returnWindowDays:
          type: number
        allowedNetworks:
          type: array
          items:
            type: string
      required:
        - enabled
      additionalProperties: false
    UpdateAdOffsiteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateAdOffsiteResponseData"
      required:
        - data
      additionalProperties: false
    UpdateAdOffsiteResponseData:
      type: object
      properties:
        enabled:
          type: boolean
        maxOffsiteShareBps:
          type: number
        minReturnBps:
          type: number
        returnWindowDays:
          type: number
      required:
        - enabled
        - maxOffsiteShareBps
        - minReturnBps
        - returnWindowDays
      additionalProperties: false
    UpdateAiImageConfigRequest:
      type: object
      properties:
        provider:
          type: string
          enum:
            - openai
            - google
            - xai
            - together
          nullable: true
          description: null = automatic (main provider if image-capable, else the first image provider with a key).
        model:
          type: string
          nullable: true
          description: null = the provider's default image model.
      required:
        - provider
      additionalProperties: false
    UpdateAiImageConfigResponse:
      type: object
      properties:
        success:
          type: boolean
        image:
          $ref: "#/components/schemas/GetAiRoutingResponseImage"
      required:
        - success
        - image
      additionalProperties: false
    UpdateAiKeyByIdRequest:
      type: object
      properties:
        apiKey:
          type: string
        label:
          type: string
          nullable: true
        customConfig:
          $ref: "#/components/schemas/UpdateAiKeyRequestCustomConfig"
        grants:
          type: array
          items:
            $ref: "#/components/schemas/CreateAiKeyResponseKeyGrants"
      additionalProperties: false
    UpdateAiKeyRequest:
      type: object
      properties:
        apiKey:
          type: string
        provider:
          type: string
          enum:
            - custom
            - openai
            - anthropic
            - google
            - groq
            - openrouter
            - xai
            - together
        customConfig:
          $ref: "#/components/schemas/UpdateAiKeyRequestCustomConfig"
      required:
        - apiKey
      additionalProperties: false
    UpdateAiKeyRequestCustomConfig:
      type: object
      properties:
        baseUrl:
          type: string
        textModel:
          type: string
        visionModel:
          type: string
          nullable: true
        supportsVision:
          type: boolean
        supportsJsonMode:
          type: boolean
      required:
        - baseUrl
        - textModel
      additionalProperties: false
    UpdateAiRoutingRequest:
      type: object
      properties:
        chain:
          type: array
          items:
            $ref: "#/components/schemas/UpdateAiRoutingRequestChain"
          description: The scope's own chain, first = primary; [] = only the "All" keys serve it.
        enabled:
          type: boolean
          nullable: true
        model:
          type: string
          nullable: true
      additionalProperties: false
    UpdateAiRoutingRequestChain:
      type: object
      properties:
        keyId:
          type: string
        model:
          type: string
          nullable: true
      required:
        - keyId
      additionalProperties: false
    UpdateAiRoutingResponse:
      type: object
      properties:
        success:
          type: boolean
        routing:
          $ref: "#/components/schemas/UpdateAiRoutingResponseRouting"
      required:
        - success
        - routing
      additionalProperties: false
    UpdateAiRoutingResponseRouting:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: "#/components/schemas/GetAiRoutingResponseGroups"
        image:
          $ref: "#/components/schemas/GetAiRoutingResponseImage"
        configured:
          type: boolean
          description: True when the store has at least one key.
      required:
        - groups
        - image
        - configured
      additionalProperties: false
    UpdateBrandDropListingRequest:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
      required:
        - listingIds
      additionalProperties: false
    UpdateBrandDropRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        dropAt:
          type: string
        buyerApiEnabled:
          type: boolean
        perCustomerLimit:
          type: number
          nullable: true
        previewFrom:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - draft
            - cancelled
            - scheduled
            - pending_review
      additionalProperties: false
    UpdateBrandingBrandSellerRequest:
      type: object
      properties:
        sellerUserId:
          type: string
        status:
          type: string
          enum:
            - active
            - revoked
        note:
          type: string
          nullable: true
      required:
        - sellerUserId
        - status
      additionalProperties: false
    UpdateBrandingBrandSellerResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateBrandingBrandSellerResponseData"
      required:
        - data
      additionalProperties: false
    UpdateBrandingBrandSellerResponseData:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        status:
          type: string
        storefrontId:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        sellerUserId:
          type: string
        partnerId:
          type: string
        decidedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - status
        - sellerUserId
        - partnerId
      additionalProperties: false
    UpdateBrandingDropRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        config:
          type: object
          additionalProperties: {}
      additionalProperties: false
    UpdateBrandingEventSettingRequest:
      type: object
      properties:
        config:
          type: object
          additionalProperties: {}
        tiers:
          type: array
          items: {}
      required:
        - config
      additionalProperties: false
    UpdateBrandingEventSettingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateBrandingEventSettingResponseData"
      required:
        - data
      additionalProperties: false
    UpdateBrandingEventSettingResponseData:
      type: object
      properties:
        problems:
          type: array
          items:
            $ref: "#/components/schemas/PathMessage"
      required:
        - problems
      additionalProperties: false
    UpdateBrandingSettingRequest:
      type: object
      properties:
        timezone:
          type: string
          nullable: true
          description: IANA zone drops and events are scheduled in; null = the seller's browser zone.
        notifyFollowers:
          type: boolean
        botQueue:
          type: boolean
        botCaptcha:
          type: boolean
        cartHoldMinutes:
          type: number
        leftovers:
          type: string
          enum:
            - close
            - relist
            - waitlist_next
      additionalProperties: false
    UpdateBulkBatchItemRequest:
      type: object
      properties:
        skuId:
          type: string
          nullable: true
        variantId:
          type: string
          nullable: true
        priceCents:
          type: number
          nullable: true
        quantity:
          type: number
        costBasisCents:
          type: number
          nullable: true
        condition:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - skipped
            - resolved
          description: "'skipped' drops a row; 'resolved' re-includes one."
        imageUrls:
          type: array
          items:
            type: string
          description: Reorder / move photos between items (primary first).
        backImageUrl:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        identifyRoute:
          type: string
          enum:
            - magic
            - market
            - auto
          nullable: true
        magicDraftId:
          type: string
          nullable: true
          description: The Magic draft the seller made for this item from the swipe deck.
        scanCaptureId:
          type: string
          nullable: true
        position:
          type: number
      additionalProperties: false
    UpdateBulkBatchRequest:
      type: object
      properties:
        preset:
          type: string
        identifyRoute:
          type: string
          enum:
            - magic
            - market
            - auto
        destinations:
          type: array
          items:
            type: string
        options:
          $ref: "#/components/schemas/UpdateBulkBatchRequestOptions"
        stage:
          type: string
          enum:
            - identify
            - review
            - capture
          description: "'identify' = capture is done. Going back to 'capture' adds more items."
      additionalProperties: false
    UpdateBulkBatchRequestOptions:
      type: object
      properties:
        rows:
          type: number
        cols:
          type: number
        detailCrops:
          type: boolean
        pricingRule:
          $ref: "#/components/schemas/UpdateBulkBatchRequestOptionsPricingRule"
        condition:
          type: string
          nullable: true
        priceRule:
          $ref: "#/components/schemas/UpdateBulkBatchRequestOptionsPriceRule"
        templateId:
          type: string
        grouping:
          type: string
          enum:
            - fixed
            - manual
            - pairs
        photosPerItem:
          type: number
        magicMode:
          type: string
          enum:
            - auto
            - off
            - review_all
      additionalProperties: false
      description: Merged into the stored options, not replacing them.
    UpdateBulkBatchRequestOptionsPricingRule:
      type: object
      properties:
        percentOfMarket:
          type: number
        floorCents:
          type: number
        ceilingCents:
          type: number
        roundToCents:
          type: number
        bands:
          type: array
          items:
            type: object
            additionalProperties: {}
      additionalProperties: false
    UpdateChannelAccountHistoryImportRequest:
      type: object
      required:
        - days
      properties:
        days:
          type: integer
          description: null = All time (no limit); 0 = None; a positive integer = days.
          nullable: true
    UpdateChannelAccountHistoryImportResponse:
      type: object
      properties:
        backfill:
          $ref: "#/components/schemas/UpdateChannelAccountHistoryImportResponseBackfill"
        accountId:
          type: string
        track:
          type: string
          enum:
            - api
            - cookie
        platform:
          type: string
        accountSlot:
          type: number
        label:
          type: string
          nullable: true
        days:
          type: number
          nullable: true
          description: "The effective window: null = All time (or never chosen, see `chosen`), 0 = None, N = the last N days."
        chosen:
          type: boolean
          description: "false = never chosen for this account (and no legacy global value): nothing imports until the seller picks."
        source:
          type: string
          enum:
            - account
            - user_default
            - inherited
            - unset
        setAt:
          type: string
          nullable: true
          description: When the account's own choice was saved; null = it has none (source is the fallback or unset).
        backfillPending:
          type: boolean
          description: "True while this account's one-time backfill has not run: saving a window now runs it."
      required:
        - accountId
        - track
        - platform
        - accountSlot
        - chosen
        - source
        - backfillPending
      additionalProperties: false
    UpdateChannelAccountHistoryImportResponseBackfill:
      type: object
      properties:
        pendingAccounts:
          type: number
        ledgerFired:
          type: boolean
        listingsFired:
          type: boolean
        messagesFired:
          type: boolean
          nullable: true
      required:
        - pendingAccounts
        - ledgerFired
        - listingsFired
      additionalProperties: false
      nullable: true
    UpdateChannelInventoryRequest:
      type: object
      properties:
        quantityCap:
          type: number
          nullable: true
        quantityBuffer:
          type: number
        syncQuantity:
          type: boolean
        outOfStockAction:
          type: string
          enum:
            - delete
            - end
            - zero
          x-enum-varnames:
            - delete
            - endOption
            - zero
        excludedListingIds:
          type: array
          items:
            type: string
        excludedCategories:
          type: array
          items:
            type: string
        excludedSetIds:
          type: array
          items:
            type: string
        autoRepublish:
          type: boolean
          description: '"Republish automatically when stock returns" for this account.'
      additionalProperties: false
    UpdateConnectionEmailImapRequest:
      type: object
      properties:
        label:
          type: string
          nullable: true
        watchedPlatforms:
          type: array
          items:
            $ref: "#/components/schemas/UpdateConnectionEmailImapRequestWatchedPlatformsItem"
          nullable: true
        isActive:
          type: boolean
        host:
          type: string
        port:
          type: integer
        username:
          type: string
        password:
          type: string
        imapPreset:
          type: string
          nullable: true
    UpdateConnectionEmailResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListConnectionEmailItem"
      required:
        - data
      additionalProperties: false
    UpdateConnectionOwnAppRequest:
      type: object
      required:
        - clientId
      properties:
        clientId:
          type: string
          minLength: 4
          maxLength: 256
        clientSecret:
          type: string
          minLength: 4
          maxLength: 512
        params:
          type: object
          additionalProperties:
            type: string
            maxLength: 128
        secretParams:
          type: object
          additionalProperties:
            type: string
            maxLength: 128
    UpdateConnectionOwnAppResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateConnectionOwnAppResponseData"
      required:
        - data
      additionalProperties: false
    UpdateConnectionOwnAppResponseData:
      type: object
      properties:
        platform:
          type: string
        verified:
          type: boolean
      required:
        - platform
        - verified
      additionalProperties: false
    UpdateConnectionPolicyManagementRequest:
      type: object
      properties:
        managed:
          type: boolean
      required:
        - managed
      additionalProperties: false
    UpdateCosmCosmeticUnlockRequest:
      type: object
      properties:
        unlocksKey:
          type: string
          nullable: true
          description: Both or neither. A key alone would claim every value of that key.
        unlocksValue:
          type: string
          nullable: true
      required:
        - unlocksKey
        - unlocksValue
      additionalProperties: false
    UpdateCosmCosmeticUnlockResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateCosmCosmeticUnlockResponseData"
      required:
        - data
      additionalProperties: false
    UpdateCosmPegRequest:
      type: object
      properties:
        platformListingId:
          type: string
        sellerUserId:
          type: string
        enabled:
          type: boolean
        targetCents:
          type: number
        floorBaseUnits:
          type: string
        ceilingBaseUnits:
          type: string
        maxChangeBps:
          type: number
        minChangeBps:
          type: number
      required:
        - platformListingId
        - sellerUserId
        - enabled
        - targetCents
      additionalProperties: false
    UpdateCosmPegResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateCosmPegResponseData"
      required:
        - data
      additionalProperties: false
    UpdateCosmPegResponseData:
      type: object
      properties:
        id:
          type: string
        enabled:
          type: boolean
        targetCents:
          type: number
        currentBaseUnits:
          type: string
        lastReason:
          type: string
          nullable: true
      required:
        - id
        - enabled
        - targetCents
        - currentBaseUnits
      additionalProperties: false
    UpdateCreatorItemWearableRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        maxSupply:
          type: number
          nullable: true
        colourways:
          type: array
          items:
            $ref: "#/components/schemas/ListCreatorItemWearablesItemColourways"
        priceCosm:
          type: number
          description: Whole COSM.
      additionalProperties: false
    UpdateCrmIntegrationRequest:
      type: object
      properties:
        name:
          type: string
        enabled:
          type: boolean
        config:
          type: object
          additionalProperties: {}
        sync:
          $ref: "#/components/schemas/CreateCrmIntegrationRequestSync"
      additionalProperties: false
    UpdateCustomerNoteRequest:
      type: object
      required:
        - notes
      properties:
        notes:
          type: string
          maxLength: 5000
    UpdateDesignToolResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateDesignToolResponseData"
      required:
        - data
      additionalProperties: false
    UpdateDesignToolResponseData:
      type: object
      properties:
        accountLabel:
          type: string
      required:
        - accountLabel
      additionalProperties: false
    UpdateDetectedEventStartingPointRequest:
      type: object
      required:
        - startingPoint
      properties:
        startingPoint:
          type: string
          enum:
            - hands_on
            - balanced
            - hands_off
          description: hands_on (ask about anything uncertain), balanced (recommended), hands_off (act wherever safe).
    UpdateDeveloperAppListingRequest:
      type: object
      properties:
        listed:
          type: boolean
      required:
        - listed
      additionalProperties: false
    UpdateDeveloperAppListingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateDeveloperAppListingResponseData"
      required:
        - data
      additionalProperties: false
    UpdateDeveloperAppListingResponseData:
      type: object
      properties:
        appId:
          type: string
        listingStatus:
          type: string
        pendingReviewChanges:
          type: array
          items:
            type: string
          description: Material fields that differ from what Crossly approved — re-listing them needs review.
        audience:
          type: string
          enum:
            - seller
            - both
            - buyer
        audienceOverride:
          type: string
          enum:
            - seller
            - both
            - buyer
          nullable: true
        inferredAudience:
          type: string
          enum:
            - seller
            - both
            - buyer
          description: What the scopes alone imply (shown as "Automatic (…)").
        preview:
          $ref: "#/components/schemas/ListAppsItem"
        decision:
          $ref: "#/components/schemas/UpdateDeveloperAppListingResponseDataDecision"
      required:
        - appId
        - listingStatus
        - pendingReviewChanges
        - audience
        - inferredAudience
        - preview
        - decision
      additionalProperties: false
    UpdateDeveloperAppListingResponseDataDecision:
      type: object
      properties:
        status:
          type: string
          enum:
            - unlisted
            - listed
            - rejected
            - pending_review
        needsReview:
          type: boolean
          description: True when the change needs Crossly's review before the app is public.
        changed:
          type: array
          items:
            $ref: "#/components/schemas/UpdateDeveloperAppListingResponseDataDecisionChangedItem"
          description: The material fields that triggered review (empty when none did).
      required:
        - status
        - needsReview
        - changed
      additionalProperties: false
    UpdateDeveloperAppProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateDeveloperAppProfileResponseData"
      required:
        - data
      additionalProperties: false
    UpdateDeveloperAppProfileResponseData:
      type: object
      properties:
        appId:
          type: string
        listingStatus:
          type: string
        pendingReviewChanges:
          type: array
          items:
            type: string
          description: Material fields that differ from what Crossly approved — re-listing them needs review.
        audience:
          type: string
          enum:
            - seller
            - both
            - buyer
        audienceOverride:
          type: string
          enum:
            - seller
            - both
            - buyer
          nullable: true
        inferredAudience:
          type: string
          enum:
            - seller
            - both
            - buyer
          description: What the scopes alone imply (shown as "Automatic (…)").
        preview:
          $ref: "#/components/schemas/ListAppsItem"
        decision:
          $ref: "#/components/schemas/UpdateDeveloperAppProfileResponseDataDecision"
      required:
        - appId
        - listingStatus
        - pendingReviewChanges
        - audience
        - inferredAudience
        - preview
      additionalProperties: false
    UpdateDeveloperAppProfileResponseDataDecision:
      type: object
      properties:
        status:
          type: string
          enum:
            - unlisted
            - listed
            - rejected
            - pending_review
        needsReview:
          type: boolean
          description: True when the change needs Crossly's review before the app is public.
        changed:
          type: array
          items:
            $ref: "#/components/schemas/UpdateDeveloperAppProfileResponseDataDecisionChangedItem"
          description: The material fields that triggered review (empty when none did).
      required:
        - status
        - needsReview
        - changed
      additionalProperties: false
      nullable: true
    UpdateDeveloperAppResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateDeveloperAppResponseData"
      required:
        - data
      additionalProperties: false
    UpdateDeveloperAppResponseData:
      type: object
      properties:
        ok:
          type: boolean
        listingStatus:
          type: string
        reReview:
          type: array
          items:
            $ref: "#/components/schemas/UpdateDeveloperAppResponseDataReReviewItem"
      required:
        - ok
        - listingStatus
        - reReview
      additionalProperties: false
    UpdateDeveloperAppStoreRequest:
      type: object
      properties:
        storefrontId:
          type: string
      required:
        - storefrontId
      additionalProperties: false
    UpdateDeveloperAppStoreResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateDeveloperAppStoreResponseData"
      required:
        - data
      additionalProperties: false
    UpdateDeveloperAppStoreResponseData:
      type: object
      properties:
        appId:
          type: string
        ownerStorefrontId:
          type: string
        movedEarningsRows:
          type: number
      required:
        - appId
        - ownerStorefrontId
        - movedEarningsRows
      additionalProperties: false
    UpdateDeviceRequest:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
      additionalProperties: false
    UpdateDeviceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/IdName"
      required:
        - data
      additionalProperties: false
    UpdateDiscountCodeRequest:
      type: object
      properties:
        code:
          type: string
        name:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - fixed
            - percent
            - free_shipping
            - bxgy
            - spend_tiers
            - fixed_price_set
        rules:
          $ref: "#/components/schemas/CreateDiscountCodeRequestRules"
      additionalProperties: false
    UpdateEmailProviderRequest:
      type: object
      properties:
        provider:
          type: string
        label:
          type: string
        fromEmail:
          type: string
        fromName:
          type: string
          nullable: true
        replyTo:
          type: string
          nullable: true
        config:
          type: object
          additionalProperties: {}
        makeDefault:
          type: boolean
      additionalProperties: false
    UpdateEmailProviderResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListEmailProvidersItem"
      required:
        - data
      additionalProperties: false
    UpdateEmailProviderUsRequest:
      type: object
      properties:
        uses:
          type: array
          items:
            $ref: "#/components/schemas/UpdateEmailProviderUsRequestUsesItem"
      required:
        - uses
      additionalProperties: false
    UpdateEmailProviderUsResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateEmailProviderUsResponseData"
      required:
        - data
      additionalProperties: false
    UpdateEmailProviderUsResponseData:
      type: object
      properties:
        id:
          type: string
        uses:
          type: array
          items:
            $ref: "#/components/schemas/UpdateEmailProviderUsResponseDataUsesItem"
      required:
        - id
        - uses
      additionalProperties: false
    UpdateEventPolicyRuleRequest:
      type: object
      required:
        - scope
        - event
        - ownership
        - action
      properties:
        scope:
          type: string
          enum:
            - global
            - platform
            - app
        scopeValue:
          type: string
          nullable: true
        event:
          type: string
          enum:
            - sale
            - listing_ended
            - offer
            - order_cancelled
            - label_ready
            - shipped
            - delivered
            - refunded
            - return_opened
            - payout_sent
            - message
        ownership:
          type: string
          enum:
            - crossly
            - imported
            - app_managed
            - other_tool
            - untracked
        action:
          type: string
          enum:
            - ignore
            - notify
            - review
            - record
            - record_and_delist
            - import_and_record
            - mark_ended
            - mark_ended_and_delist
            - import
            - apply
            - apply_and_restock
    UpdateEventPolicyRuleResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetEventPolicyResponseDataRules"
      required:
        - data
      additionalProperties: false
    UpdateEventRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - sale
            - other
            - party
            - launch
            - pack_break
            - scavenger_hunt
            - convention
            - drop
            - live_show
            - meetup
            - pop_up
            - workshop
        title:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        startsAt:
          type: string
        endsAt:
          type: string
          nullable: true
        locationType:
          type: string
          enum:
            - online
            - world
            - in_person
        locationText:
          type: string
          nullable: true
        locationUrl:
          type: string
          nullable: true
        rsvpEnabled:
          type: boolean
        capacity:
          type: number
          nullable: true
        listingIds:
          type: array
          items:
            type: string
        liveStreamId:
          type: string
          nullable: true
        dropRef:
          $ref: "#/components/schemas/TypeId2"
        discountCodeId:
          type: string
          nullable: true
        featureOnStorefront:
          type: boolean
        notifyFollowers:
          type: boolean
        worldConfig:
          type: object
          description: A World type's own settings (its configZ in shared branding/event-types.ts); refused on a standard kind.
          additionalProperties: {}
      additionalProperties: false
    UpdateFieldRuleRequest:
      type: object
      properties:
        name:
          type: string
        accountSlot:
          type: number
          nullable: true
        position:
          type: number
        enabled:
          type: boolean
        target:
          type: string
          enum:
            - description
            - title
            - attribute
            - item_specific
        targetKey:
          type: string
          nullable: true
        conditions:
          $ref: "#/components/schemas/CreateFieldRuleRequestConditions"
        actions:
          type: array
          items:
            $ref: "#/components/schemas/UpdateFieldRuleRequestActionsItem"
        stopAfter:
          type: boolean
      additionalProperties: false
    UpdateFundingAutorepayRequest:
      type: object
      properties:
        pct:
          type: number
      required:
        - pct
      additionalProperties: false
    UpdateFundingAutorepayResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateFundingAutorepayResponseData"
      required:
        - data
      additionalProperties: false
    UpdateFundingAutorepayResponseData:
      type: object
      properties:
        autorepayPct:
          type: number
      required:
        - autorepayPct
      additionalProperties: false
    UpdateFundingControlRequest:
      type: object
      properties:
        allowedUses:
          type: array
          items:
            $ref: "#/components/schemas/UpdateFundingControlRequestAllowedUsesItem"
          nullable: true
        allowedCounterpartyIds:
          type: array
          items:
            type: string
        blockedCounterpartyIds:
          type: array
          items:
            type: string
        approvalThresholdCents:
          type: number
          nullable: true
        twoPersonRule:
          type: boolean
      additionalProperties: false
    UpdateFundingControlResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetFundingControlResponseDataPolicy"
      required:
        - data
      additionalProperties: false
    UpdateFundingMemberRequest:
      type: object
      properties:
        limitCents:
          type: number
        period:
          type: string
          enum:
            - month
            - draw
      required:
        - limitCents
      additionalProperties: false
    UpdateFundingMemberResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/DeleteFundingMemberResponseDataMembers"
      required:
        - data
      additionalProperties: false
    UpdateGradingSettingRequest:
      type: object
      properties:
        defaultGrader:
          type: string
          nullable: true
        defaultReturnMode:
          type: string
          enum:
            - vault
            - return
        defaultMissMode:
          type: string
          enum:
            - release
            - roll_over
        defaultPrescreen:
          type: boolean
      additionalProperties: false
    UpdateGroupBuyRequest:
      type: object
      properties:
        title:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/MinQtyPriceCents"
        goalQty:
          type: number
          nullable: true
        minQtyToProceed:
          type: number
        perBuyerMax:
          type: number
        paymentMode:
          type: string
          enum:
            - authorize
            - pay_refund
        goalMiss:
          type: string
          enum:
            - cancel
            - proceed
            - extend_once
        extendDays:
          type: number
        visibility:
          type: string
          enum:
            - link
            - public
            - followers
            - loyalty_tier
        visibilityTierId:
          type: string
          nullable: true
        placement:
          $ref: "#/components/schemas/GetGroupBuyResponseDataPlacement"
        shareCopy:
          type: string
          nullable: true
        shareImageUrl:
          type: string
          nullable: true
      additionalProperties: false
    UpdateGroupBuyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/OkResponse"
      required:
        - data
      additionalProperties: false
    UpdateHotspotItem:
      type: object
      properties:
        platformListingId:
          type: string
        x:
          type: number
        y:
          type: number
        label:
          type: string
          nullable: true
        slug:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        priceCents:
          type: number
        imageUrl:
          type: string
          nullable: true
        available:
          type: boolean
      required:
        - platformListingId
        - x
        - y
        - priceCents
        - available
      additionalProperties: false
    UpdateHotspotRequest:
      type: object
      properties:
        targetType:
          type: string
          enum:
            - story
            - collection
            - story_v1
        targetId:
          type: string
        spots:
          type: array
          items:
            $ref: "#/components/schemas/UpdateHotspotRequestSpots"
      required:
        - targetType
        - targetId
        - spots
      additionalProperties: false
    UpdateHotspotRequestSpots:
      type: object
      properties:
        platformListingId:
          type: string
        x:
          type: number
        y:
          type: number
        label:
          type: string
          nullable: true
      required:
        - platformListingId
        - x
        - y
      additionalProperties: false
    UpdateHotspotResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/UpdateHotspotItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    UpdateInboxCannedResponseOrderRequest:
      type: object
      required:
        - ids
      properties:
        ids:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 500
    UpdateInboxCannedResponseRequest:
      type: object
      properties:
        name:
          type: string
        body:
          type: string
      additionalProperties: false
    UpdateInboxConversationRequest:
      type: object
      properties:
        isRead:
          type: boolean
        status:
          type: string
          enum:
            - open
            - closed
            - replied
            - spam
      additionalProperties: false
    UpdateInboxConversationResponse:
      type: object
      properties:
        conversation:
          $ref: "#/components/schemas/UpdateInboxConversationResponseConversation"
      required:
        - conversation
      additionalProperties: false
    UpdateInboxConversationResponseConversation:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
        accountSlot:
          type: number
        status:
          type: string
        source:
          type: string
          nullable: true
        labels:
          type: array
          items:
            type: string
        inventoryItemId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        buyerUsername:
          type: string
          nullable: true
        platformConversationId:
          type: string
        buyerPlatformId:
          type: string
          nullable: true
        buyerAvatarUrl:
          type: string
          nullable: true
        buyerAvatarSourceUrl:
          type: string
          nullable: true
        subject:
          type: string
          nullable: true
        isRead:
          type: boolean
        isHidden:
          type: boolean
        hasOffer:
          type: boolean
        offerAmount:
          type: string
          nullable: true
        offerStatus:
          type: string
          nullable: true
        platformConversationUrl:
          type: string
          nullable: true
        lastMessageAt:
          type: string
          format: date-time
          nullable: true
        supersededAt:
          type: string
          format: date-time
          nullable: true
        isStarred:
          type: boolean
      required:
        - id
        - createdAt
        - userId
        - platform
        - accountSlot
        - status
        - labels
        - platformConversationId
        - isRead
        - isHidden
        - hasOffer
        - isStarred
      additionalProperties: false
    UpdateInventoryRequest:
      type: object
      properties:
        defaultTitle:
          type: string
        originalPrice: {}
        brand:
          type: string
        size:
          type: string
        material:
          type: string
        style:
          type: string
        pattern:
          type: string
        department:
          type: string
        gender:
          type: string
        itemType:
          type: string
        sizeSystem:
          type: string
        condition:
          type: string
        color:
          type: array
          items:
            type: string
        category:
          $ref: "#/components/schemas/CreateInventoryRequestCategory"
        tags:
          type: array
          items:
            type: string
        labels:
          type: array
          items:
            type: string
        sku:
          type: string
        quantity:
          type: number
        images:
          type: array
          items:
            type: string
        videoUrl:
          type: string
          nullable: true
        notes:
          type: string
        warehouseLocation:
          type: string
          description: "Where it sits: a free-text location, and the bin / shelf (0242)."
        storageBin:
          type: string
        storageNote:
          type: string
        weightLb:
          type: number
        weightOz:
          type: number
        dimensionLIn:
          type: number
        dimensionWIn:
          type: number
        dimensionHIn:
          type: number
        costBasisCents:
          type: number
          nullable: true
          description: "What one unit costs you, in cents (the supplier's price): net profit's cost of goods."
        supplier:
          $ref: "#/components/schemas/CreateInventoryRequestSupplier"
      additionalProperties: false
    UpdateListingAdCampaignRequest:
      type: object
      properties:
        name:
          type: string
        dailyBudgetCents:
          type: number
        endsAt:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - paused
            - running
            - ended
      additionalProperties: false
    UpdateListingAdListingRateRequest:
      type: object
      properties:
        ratePct:
          type: number
      required:
        - ratePct
      additionalProperties: false
    UpdateListingAdListingRateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateListingAdCampaignListingItem"
      required:
        - data
      additionalProperties: false
    UpdateListingCustomRequest:
      type: object
      properties:
        hsCode:
          type: string
          nullable: true
          description: null clears.
        countryOfOrigin:
          type: string
          nullable: true
          description: ISO 3166-1 alpha-2; null clears.
        restrictedCountries:
          type: array
          items:
            type: string
          description: Countries this item must not ship to. Unknown codes are dropped; [] clears.
      additionalProperties: false
    UpdateListingCustomResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateListingCustomResponseData"
      required:
        - data
      additionalProperties: false
    UpdateListingCustomResponseData:
      type: object
      properties:
        listingId:
          type: string
        hsCode:
          type: string
          nullable: true
        countryOfOrigin:
          type: string
          nullable: true
        restrictedCountries:
          type: array
          items:
            type: string
      required:
        - listingId
        - restrictedCountries
      additionalProperties: false
    UpdateListingPlatformListingRequest:
      type: object
      properties:
        price:
          type: number
      required:
        - price
      additionalProperties: false
    UpdateListingPlatformListingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateListingPlatformListingResponseData"
      required:
        - data
      additionalProperties: false
    UpdateListingPlatformListingResponseData:
      type: object
      properties:
        jobId:
          type: string
          nullable: true
        price:
          type: string
        currency:
          type: string
          nullable: true
        marketplaceId:
          type: string
          nullable: true
      required:
        - price
      additionalProperties: false
    UpdateListingResponse:
      type: object
      properties:
        warnings:
          type: array
          items:
            $ref: "#/components/schemas/CreateListingResponseWarnings"
          nullable: true
        jobs:
          type: array
          items:
            $ref: "#/components/schemas/UpdateListingResponseJobs"
      required:
        - jobs
      additionalProperties: false
    UpdateListingResponseJobs:
      type: object
      properties:
        platform:
          type: string
        jobId:
          type: string
        marketplaceId:
          type: string
          nullable: true
      required:
        - platform
        - jobId
      additionalProperties: false
    UpdateLiveStreamLineupItem:
      type: object
      properties:
        platformListingId:
          type: string
        position:
          type: number
        slug:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        priceCents:
          type: number
        imageUrl:
          type: string
          nullable: true
        available:
          type: boolean
        pinned:
          type: boolean
      required:
        - platformListingId
        - position
        - priceCents
        - available
        - pinned
      additionalProperties: false
    UpdateLiveStreamLineupRequest:
      type: object
      properties:
        platformListingIds:
          type: array
          items:
            type: string
      required:
        - platformListingIds
      additionalProperties: false
    UpdateLiveStreamLineupResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/UpdateLiveStreamLineupItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    UpdateLiveStreamRequest:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        scheduledAt:
          type: string
        connectionMethod:
          type: string
          enum:
            - phone
            - browser
            - encoder
          nullable: true
      additionalProperties: false
    UpdateLookbookDesignRequest:
      type: object
      properties:
        document: {}
        baseVersion:
          type: number
          nullable: true
      required:
        - document
      additionalProperties: false
    UpdateLookbookDesignResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceConfigRollbackRequest"
      required:
        - data
      additionalProperties: false
    UpdateLoyaltyClubRequest:
      type: object
      properties:
        name:
          type: string
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/UpdateLoyaltyClubRequestTiers"
        description:
          type: string
          nullable: true
        active:
          type: boolean
      required:
        - name
        - tiers
      additionalProperties: false
    UpdateLoyaltyClubRequestTiers:
      type: object
      properties:
        name:
          type: string
        minSpendCents:
          type: number
        discountBps:
          type: number
        id:
          type: string
          nullable: true
        perks:
          type: string
          nullable: true
      required:
        - name
        - minSpendCents
        - discountBps
      additionalProperties: false
    UpdateLoyaltyProgramResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateLoyaltyProgramResponseData"
      required:
        - data
      additionalProperties: false
    UpdateLoyaltyProgramResponseData:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        active:
          type: boolean
        qualification:
          type: string
          enum:
            - orders
            - points
            - spend
        window:
          type: string
        pointsPerDollar:
          type: number
        joinMode:
          type: string
        downgrade:
          type: string
        graceDays:
          type: number
        paidMembership:
          $ref: "#/components/schemas/GetLoyaltyProgramResponseDataPaidMembership"
        earnRules:
          $ref: "#/components/schemas/GetLoyaltyProgramResponseDataEarnRules"
        rewards:
          type: array
          items:
            $ref: "#/components/schemas/GetLoyaltyProgramResponseDataRewards"
          description: "E3: the rewards shelf (edited on its own page, saved by ./rewards.ts)."
        evaluatedAt:
          type: string
          nullable: true
        memberCount:
          type: number
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/GetLoyaltyProgramResponseDataTiers"
      required:
        - id
        - name
        - active
        - qualification
        - window
        - pointsPerDollar
        - joinMode
        - downgrade
        - graceDays
        - paidMembership
        - earnRules
        - rewards
        - memberCount
        - tiers
      additionalProperties: false
    UpdateLoyaltyRewardByRewardIdResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListLoyaltyRewardsItem"
      required:
        - data
      additionalProperties: false
    UpdateLoyaltyRewardRequest:
      type: object
      properties:
        rewards:
          type: array
          items: {}
      required:
        - rewards
      additionalProperties: false
    UpdateMagicAutoSettingRequest:
      type: object
      required:
        - mode
      properties:
        mode:
          type: string
          enum:
            - off
            - auto
            - review_all
      additionalProperties: false
    UpdateMeRequest:
      type: object
      properties:
        displayName:
          type: string
      additionalProperties: false
    UpdateMileageRequest:
      type: object
      properties:
        date:
          type: string
        miles: {}
        purpose:
          type: string
        startLocation:
          type: string
          nullable: true
        endLocation:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
      additionalProperties: false
    UpdateNetworkPoolRequest:
      type: object
      properties:
        shareEnabled:
          type: boolean
        followEnabled:
          type: boolean
        likeEnabled:
          type: boolean
        platforms:
          type: array
          items:
            type: string
      additionalProperties: false
    UpdateNotificationIntegrationRequest:
      type: object
      properties:
        name:
          type: string
        enabled:
          type: boolean
        config:
          type: object
          additionalProperties: {}
      additionalProperties: false
    UpdateOrderAssigneeByIdResponse:
      type: object
      properties:
        id:
          type: string
        assigneeMemberId:
          type: string
          nullable: true
        changed:
          type: boolean
      required:
        - id
        - changed
      additionalProperties: false
    UpdateOrderAssigneeResponse:
      type: object
      properties:
        entity:
          type: string
          enum:
            - listing
            - order
            - return
            - inventory_item
        updated:
          type: number
          description: Records whose assignee changed.
        notFound:
          type: array
          items:
            type: string
          description: "Ids named that are not this account's (or do not exist): left alone."
        assignments:
          type: array
          items:
            $ref: "#/components/schemas/UpdateOrderAssigneeResponseAssignments"
          description: The assignee each changed record now has.
      required:
        - entity
        - updated
        - notFound
        - assignments
      additionalProperties: false
    UpdateOrderAssigneeResponseAssignments:
      type: object
      properties:
        id:
          type: string
        assigneeMemberId:
          type: string
          nullable: true
      required:
        - id
      additionalProperties: false
    UpdateOrderRequest:
      type: object
      properties:
        notes:
          type: string
        trackingNumber:
          type: string
        carrier:
          type: string
        status:
          type: string
          enum:
            - needs_fulfillment
            - completed
            - refunded
            - shipped
            - delivered
            - disputed
            - in_transit
            - label_purchased
        labelCost:
          type: number
          description: |-
            What the seller paid for postage they bought themselves (dollars), with
            the tracking number it belongs to — or alone, to correct the cost on the
            order's tracking. Recorded on the parcel and counted as cost of sale
            (services/orders/shipments.ts recordManualShipment).
      additionalProperties: false
    UpdateOrderResponse:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        userId:
          type: string
        platform:
          type: string
        status:
          type: string
        notes:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        source:
          type: string
          nullable: true
        quantity:
          type: number
        assigneeMemberId:
          type: string
          nullable: true
        inventoryItemId:
          type: string
          nullable: true
        listingId:
          type: string
          nullable: true
        platformListingId:
          type: string
          nullable: true
        handlingTimeDays:
          type: number
          nullable: true
        platformOrderId:
          type: string
          nullable: true
        orderNumber:
          type: string
          nullable: true
        reportedByAppId:
          type: string
          nullable: true
        buyerUsername:
          type: string
          nullable: true
        pickupPoint:
          type: object
          nullable: true
          additionalProperties: {}
        consolidationId:
          type: string
          nullable: true
        dutiesCents:
          type: number
        dutiesRefundedAt:
          type: string
          format: date-time
          nullable: true
        salesChannel:
          type: string
        channelLocationId:
          type: string
          nullable: true
        channel:
          type: string
        invoiceId:
          type: string
          nullable: true
        buyerCompanyId:
          type: string
          nullable: true
        packagePresetId:
          type: string
          nullable: true
        carrier:
          type: string
          nullable: true
        service:
          type: string
          nullable: true
        trackingNumber:
          type: string
          nullable: true
        easypostShipmentId:
          type: string
          nullable: true
        easypostTrackerId:
          type: string
          nullable: true
        easypostRateId:
          type: string
          nullable: true
        shippingLabelUrl:
          type: string
          nullable: true
        labelPurchasedAt:
          type: string
          format: date-time
          nullable: true
        shippedAt:
          type: string
          format: date-time
          nullable: true
        estimatedDelivery:
          type: string
          nullable: true
        deliveredAt:
          type: string
          format: date-time
          nullable: true
        carrierStatus:
          type: string
          nullable: true
        carrierStatusDetail:
          type: string
          nullable: true
        trackingHistory:
          type: array
          items:
            $ref: "#/components/schemas/GetOrderResponseTrackingHistory"
          nullable: true
        deliveryLocation:
          type: string
          nullable: true
        deliverySignature:
          type: string
          nullable: true
        trackingSubmittedAt:
          type: string
          format: date-time
          nullable: true
        trackingSubmitStatus:
          type: string
          nullable: true
        labelCost:
          type: string
          nullable: true
        costOfGoods:
          type: string
          nullable: true
        requestedCarrier:
          type: string
          nullable: true
        requestedService:
          type: string
          nullable: true
        shipByAt:
          type: string
          format: date-time
          nullable: true
        shipByAlertedAt:
          type: string
          format: date-time
          nullable: true
        oversoldBy:
          type: number
        lastStatusCheckAt:
          type: string
          format: date-time
          nullable: true
        lastChatCheckAt:
          type: string
          format: date-time
          nullable: true
        lastTrackingCheckAt:
          type: string
          format: date-time
          nullable: true
        isDisputed:
          type: boolean
        disputeReason:
          type: string
          nullable: true
        disputePlatformCaseId:
          type: string
          nullable: true
        disputeResolvedAt:
          type: string
          format: date-time
          nullable: true
        refundAmount:
          type: string
          nullable: true
        refundReason:
          type: string
          nullable: true
        refundPlatformId:
          type: string
          nullable: true
        refundedAt:
          type: string
          format: date-time
          nullable: true
        cancelledAt:
          type: string
          format: date-time
          nullable: true
        cancellationReason:
          type: string
          nullable: true
        arrivalConditionRequestedAt:
          type: string
          format: date-time
          nullable: true
        arrivalConditionSubmittedAt:
          type: string
          format: date-time
          nullable: true
        arrivalConditionDeclinedAt:
          type: string
          format: date-time
          nullable: true
        deliveryPhotoUrl:
          type: string
          nullable: true
        deliveryPhotoSource:
          type: string
          nullable: true
        purchaseOrderRef:
          type: string
          nullable: true
        arrivalConditionPhotos:
          type: array
          items:
            type: string
        buyerEmail:
          type: string
          nullable: true
        fulfillmentMethod:
          type: string
        platformConfirmedAt:
          type: string
          format: date-time
          nullable: true
        deletedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - userId
        - platform
        - status
        - quantity
        - dutiesCents
        - salesChannel
        - channel
        - oversoldBy
        - isDisputed
        - arrivalConditionPhotos
        - fulfillmentMethod
      additionalProperties: false
    UpdatePassportDraftRequest:
      type: object
      properties:
        step:
          type: string
          enum:
            - items
            - details
            - review
            - capture
            - attach
        template:
          type: string
          nullable: true
        addItemIds:
          type: array
          items:
            type: string
        removePassportIds:
          type: array
          items:
            type: string
      additionalProperties: false
    UpdatePassportRequest:
      type: object
      properties:
        details:
          $ref: "#/components/schemas/PassportResponseDataDetails"
        photos:
          type: array
          items:
            type: string
      additionalProperties: false
    UpdatePassportResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListPassportsItem"
      required:
        - data
      additionalProperties: false
    UpdatePayoutScheduleRequest:
      type: object
      required:
        - interval
      properties:
        interval:
          type: string
          enum:
            - manual
            - daily
            - weekly
            - monthly
        weeklyAnchor:
          type: string
          enum:
            - monday
            - tuesday
            - wednesday
            - thursday
            - friday
            - saturday
            - sunday
        monthlyAnchor:
          type: integer
          minimum: 1
          maximum: 31
      additionalProperties: false
    UpdatePayoutScheduleResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdatePayoutScheduleResponseData"
      required:
        - data
      additionalProperties: false
    UpdatePayoutScheduleResponseData:
      type: object
      properties:
        schedule:
          $ref: "#/components/schemas/GetPayoutWalletResponseDataOneOf1Schedule"
      required:
        - schedule
      additionalProperties: false
    UpdatePlatformPreferenceRequest:
      type: object
      properties:
        freeListingTier:
          type: number
          nullable: true
        respectFreeQuota:
          type: boolean
      additionalProperties: false
    UpdatePlatformPreferenceResponse:
      type: object
      properties:
        ok:
          type: boolean
        updated:
          type: number
      required:
        - ok
        - updated
      additionalProperties: false
    UpdatePolicyGeneralRequest:
      type: object
      properties:
        vacation:
          $ref: "#/components/schemas/UpdatePolicyGeneralRequestVacation"
      required:
        - vacation
      additionalProperties: false
    UpdatePolicyGeneralRequestVacation:
      type: object
      properties:
        enabled:
          type: boolean
        message:
          type: string
          nullable: true
        startsAt:
          type: string
          nullable: true
        endsAt:
          type: string
          nullable: true
        scope:
          type: string
          enum:
            - all
            - accounts
        accounts:
          type: array
          items:
            $ref: "#/components/schemas/GetPolicyGeneralResponseVacationAccounts"
        actions:
          $ref: "#/components/schemas/UpdatePolicyGeneralRequestVacationActions"
      required:
        - enabled
      additionalProperties: false
    UpdatePolicyGeneralRequestVacationActions:
      type: object
      properties:
        closeShop:
          type: boolean
        pauseAutomations:
          type: boolean
        autoReply:
          type: boolean
        pushToMarketplaces:
          type: boolean
      additionalProperties: false
    UpdatePolicyGeneralResponse:
      type: object
      properties:
        vacation:
          $ref: "#/components/schemas/GetPolicyGeneralResponseVacation"
        platforms:
          type: object
          additionalProperties: {}
      required:
        - vacation
        - platforms
      additionalProperties: false
    UpdatePolicyPresetApplicationRequest:
      type: object
      properties:
        applications:
          type: array
          items:
            $ref: "#/components/schemas/UpdatePolicyPresetApplicationRequestApplications"
      required:
        - applications
      additionalProperties: false
    UpdatePolicyPresetApplicationRequestApplications:
      type: object
      properties:
        platform:
          type: string
        mode:
          type: string
          enum:
            - push
            - marketplace
            - off
          description: push = "Use this policy"; marketplace = "Use the marketplace's own setting"; off = pricing not applied.
        accountSlot:
          type: number
          nullable: true
          description: Cookie-track account slot; null with no connectionId = every account on the platform.
        connectionId:
          type: string
          nullable: true
          description: API-track account (platform_connections id).
        isDefault:
          type: boolean
          description: '"Default for this marketplace" (listing kinds only).'
        marketplacePolicyId:
          type: string
          nullable: true
          description: "eBay only, with mode marketplace: the seller's own business policy to use."
        marketplacePolicyName:
          type: string
          nullable: true
      required:
        - platform
        - mode
      additionalProperties: false
    UpdatePolicyPresetApplicationResponse:
      type: object
      properties:
        preset:
          $ref: "#/components/schemas/ListPolicyPresetsItem"
        kind:
          type: string
          enum:
            - shipping
            - pricing
            - return
            - payment
        listingCount:
          type: number
        applications:
          type: array
          items:
            $ref: "#/components/schemas/GetPolicyPresetResponseApplications"
        history:
          type: array
          items:
            $ref: "#/components/schemas/GetPolicyPresetResponseHistory"
      required:
        - preset
        - kind
        - listingCount
        - applications
        - history
      additionalProperties: false
    UpdatePolicyPresetRequest:
      type: object
      properties:
        name:
          type: string
        policy:
          type: object
          additionalProperties: {}
        isDefault:
          type: boolean
      additionalProperties: false
    UpdatePricingSettingRequest:
      type: object
      properties:
        matchOwnPrices:
          type: boolean
        acceptsLayaway:
          type: boolean
      additionalProperties: false
    UpdatePrintMailCredentialRequest:
      type: object
      properties:
        label:
          type: string
        returnAddress:
          type: object
          nullable: true
          additionalProperties: {}
        piecePriceCents:
          type: object
          additionalProperties: {}
      additionalProperties: false
    UpdateProductFeedItemRequest:
      type: object
      properties:
        title:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        gtin:
          type: string
          nullable: true
        mpn:
          type: string
          nullable: true
        googleProductCategory:
          type: string
          nullable: true
        condition:
          type: string
          enum:
            - new
            - refurbished
            - used
          nullable: true
        customLabel0:
          type: string
          nullable: true
        customLabel1:
          type: string
          nullable: true
        customLabel2:
          type: string
          nullable: true
        customLabel3:
          type: string
          nullable: true
        customLabel4:
          type: string
          nullable: true
      additionalProperties: false
    UpdateProductFeedItemResponse:
      type: object
      properties:
        override:
          $ref: "#/components/schemas/UpdateProductFeedItemResponseOverride"
      additionalProperties: false
    UpdateProductFeedItemResponseOverride:
      type: object
      properties:
        listingId:
          type: string
        title:
          type: string
          nullable: true
        fields:
          $ref: "#/components/schemas/UpdateProductFeedItemRequest"
        updatedAt:
          type: string
      required:
        - listingId
        - fields
        - updatedAt
      additionalProperties: false
      nullable: true
    UpdateProductFeedRequest:
      type: object
      properties:
        name:
          type: string
        format:
          type: string
          enum:
            - json
            - csv
            - xml
            - tsv
            - atom
        enabled:
          type: boolean
        filters:
          $ref: "#/components/schemas/CreateProductFeedRequestFilters"
        settings:
          $ref: "#/components/schemas/CreateProductFeedRequestSettings"
      additionalProperties: false
    UpdateProductSetRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
          nullable: true
        filters:
          $ref: "#/components/schemas/CreateProductSetRequestFilters"
      additionalProperties: false
    UpdateProductionPoRequest:
      type: object
      properties:
        supplierName:
          type: string
          nullable: true
        supplierContact:
          type: string
          nullable: true
        freightMode:
          type: string
          enum:
            - sea
            - air
            - express
          nullable: true
        status:
          type: string
          enum:
            - cancelled
            - shipped
            - received
            - quoted
            - sourcing
            - sampling
            - sample_approved
            - in_production
        actualUnitFobCents: {}
        actualToolingCents: {}
        actualSamplesCents: {}
        actualFreightCents: {}
        actualDutyCents: {}
        actualQcCents: {}
        actualThreeplCents: {}
        sampleRounds: {}
        qcStatus:
          type: string
          enum:
            - pending
            - failed
            - passed
          nullable: true
        qcNotes:
          type: string
          nullable: true
        trackingCode:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
      additionalProperties: false
    UpdateProductionPoResponse:
      type: object
      properties:
        po:
          $ref: "#/components/schemas/UpdateProductionPoResponsePo"
      required:
        - po
      additionalProperties: false
    UpdateProductionPoResponsePo:
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        status:
          type: string
        notes:
          type: string
          nullable: true
        supplierName:
          type: string
          nullable: true
        trackingCode:
          type: string
          nullable: true
        merchantId:
          type: string
        candidateId:
          type: string
        supplierContact:
          type: string
          nullable: true
        freightMode:
          type: string
          nullable: true
        estimateLandedCents:
          type: number
          nullable: true
        actualUnitFobCents:
          type: number
          nullable: true
        actualToolingCents:
          type: number
          nullable: true
        actualSamplesCents:
          type: number
          nullable: true
        actualFreightCents:
          type: number
          nullable: true
        actualDutyCents:
          type: number
          nullable: true
        actualQcCents:
          type: number
          nullable: true
        actualThreeplCents:
          type: number
          nullable: true
        actualLandedCents:
          type: number
          nullable: true
        sampleRounds:
          type: number
        qcStatus:
          type: string
          nullable: true
        qcNotes:
          type: string
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - status
        - merchantId
        - candidateId
        - sampleRounds
      additionalProperties: false
    UpdateProfileDocumentRequest:
      type: object
      required:
        - document
      properties:
        document:
          type: object
          additionalProperties: {}
    UpdateProfileDocumentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateProfileDocumentResponseData"
      required:
        - data
      additionalProperties: false
    UpdateProfileDocumentResponseData:
      type: object
      properties:
        handle:
          type: string
        draft:
          $ref: "#/components/schemas/GetProfileResponseDataDraft"
        draftUpdatedAt:
          type: string
          nullable: true
        hasUnpublishedChanges:
          type: boolean
      required:
        - handle
        - draft
        - hasUnpublishedChanges
      additionalProperties: false
    UpdateRentalOfferRequest:
      type: object
      properties:
        dailyCents:
          type: number
        depositCents:
          type: number
        minDays:
          type: number
        maxDays:
          type: number
        bufferDays:
          type: number
        weeklyCents:
          type: number
          nullable: true
        rentOnly:
          type: boolean
        requireApproval:
          type: boolean
        active:
          type: boolean
        blackoutRanges:
          type: array
          items:
            $ref: "#/components/schemas/StartEnd"
        returnPolicy:
          type: string
          nullable: true
        options:
          type: object
          description: "1129: the item's own rental options (@crosslister/shared/rentals RentalOptionsPatch); validated by the service."
          additionalProperties: {}
        quantity:
          type: number
      required:
        - dailyCents
        - depositCents
        - minDays
        - maxDays
        - bufferDays
      additionalProperties: false
    UpdateRentalOfferResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateRentalOfferResponseData"
      required:
        - data
      additionalProperties: false
    UpdateRentalOfferResponseData:
      type: object
      properties:
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        storefrontId:
          type: string
          nullable: true
        quantity:
          type: number
        platformListingId:
          type: string
        options:
          type: object
          additionalProperties: {}
        sellerUserId:
          type: string
        depositCents:
          type: number
        minDays:
          type: number
        maxDays:
          type: number
        dailyCents:
          type: number
        weeklyCents:
          type: number
          nullable: true
        bufferDays:
          type: number
        rentOnly:
          type: boolean
        requireApproval:
          type: boolean
        blackoutRanges:
          type: array
          items:
            $ref: "#/components/schemas/StartEnd"
        returnPolicy:
          type: string
          nullable: true
      required:
        - active
        - createdAt
        - updatedAt
        - quantity
        - platformListingId
        - options
        - sellerUserId
        - depositCents
        - minDays
        - maxDays
        - dailyCents
        - bufferDays
        - rentOnly
        - requireApproval
        - blackoutRanges
      additionalProperties: false
    UpdateRentalSettingRequest:
      type: object
      properties:
        defaults:
          type: object
          additionalProperties: {}
        payoutTiming:
          type: string
          enum:
            - on_start
            - on_return
      additionalProperties: false
    UpdateRepricingAssignmentRequest:
      type: object
      properties:
        name:
          type: string
        scope:
          $ref: "#/components/schemas/UpdateRepricingAssignmentRequestScope"
        strategy:
          type: string
          enum:
            - undercut_lowest
            - match_market
            - scheduled_decay
            - raise_back
            - sold_median
        params:
          type: object
          additionalProperties: {}
        floorCents:
          type: number
          nullable: true
        breakEvenFloor:
          type: boolean
        approvalMode:
          type: string
          enum:
            - auto
            - ask
        checkEveryHours:
          type: number
        enabled:
          type: boolean
      additionalProperties: false
    UpdateReturnRequest:
      type: object
      properties:
        status:
          type: string
          enum:
            - cancelled
            - requested
            - received
            - inspected
            - in_transit
            - restocked
            - damaged
            - resold
        reason:
          type: string
        notes:
          type: string
        restockedToInventoryItemId:
          type: string
          nullable: true
      additionalProperties: false
    UpdateSavedViewRequest:
      type: object
      properties:
        name:
          type: string
        filters:
          type: object
          additionalProperties: {}
        viewMode:
          type: string
          nullable: true
        isDefault:
          type: boolean
        sortOrder:
          type: number
      additionalProperties: false
    UpdateShowroom2Request:
      type: object
      properties:
        ops:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2RequestOpsItem"
        expectedVersion:
          type: string
      required:
        - ops
      additionalProperties: false
    UpdateShowroom2Response:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateShowroom2ResponseData"
        results:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseResults"
        changed:
          type: boolean
      required:
        - data
        - results
        - changed
      additionalProperties: false
    UpdateShowroom2ResponseData:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        position:
          type: number
          nullable: true
          description: 0 = the store's primary showroom (several per store since WD2).
        version:
          type: string
          description: "Optimistic-concurrency token: send it back as If-Match (or `expectedVersion`)."
        publicSlug:
          type: string
          nullable: true
        room:
          $ref: "#/components/schemas/UpdateShowroom2ResponseDataRoom"
        fixtures:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseDataFixtures"
        placements:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseDataPlacements"
        settings:
          $ref: "#/components/schemas/UpdateShowroom2ResponseDataSettings"
        items:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseDataItems"
          description: The store's stock that can stand in the showroom.
        unplaced:
          type: array
          items:
            type: string
          description: Items that did not fit anywhere.
        stats:
          $ref: "#/components/schemas/UpdateShowroom2ResponseDataStats"
      required:
        - id
        - version
        - room
        - fixtures
        - placements
        - settings
        - items
        - unplaced
        - stats
      additionalProperties: false
    UpdateShowroom2ResponseDataFixtures:
      type: object
      properties:
        type:
          type: string
          enum:
            - table
            - case
            - wall
            - shelf
            - rack
            - bin
        displayLabel:
          type: string
        slotsPerUnit:
          type: number
        unitsInEffect:
          type: number
          description: "Units in effect: `units`, else what the automatic layout uses (at least 1)."
        capacity:
          type: number
        auto:
          type: boolean
          description: Made for stock with no fixture of its kind; not saved until an edit touches it.
        id:
          type: string
        display:
          type: string
          description: "The display apparatus: a space profile slug from GET /showroom/catalog (`sneakers`, `cards_graded`, `*`)."
        label:
          type: string
          nullable: true
          description: The sign over it, at most 40 characters. Null = the display's own label.
        hidden:
          type: boolean
        position:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
          nullable: true
          description: Where it stands on the floor, metres [x, z] (back wall z = 0). Null = laid out automatically.
        rotation:
          type: number
          nullable: true
          description: Yaw in radians. Null = automatic.
        units:
          type: number
          nullable: true
          description: How many units (cases, bays, pages) it has. Null = as many as its stock needs.
        holder:
          type: string
          nullable: true
          description: The holder it stands as (fixtures.ts FIXTURE_HOLDERS; premium ones bought in the cosmetics market). Null = free.
      required:
        - type
        - displayLabel
        - slotsPerUnit
        - unitsInEffect
        - capacity
        - auto
        - id
        - display
        - hidden
      additionalProperties: false
    UpdateShowroom2ResponseDataItems:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        imageUrl:
          type: string
          nullable: true
        categorySlug:
          type: string
          nullable: true
        display:
          type: string
        brand:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        listingId:
          type: string
          nullable: true
          description: Crossly listing slug (`/shop/<listingId>`), when listed.
        priceCents:
          type: number
          nullable: true
        ageDays:
          type: number
          nullable: true
        costCents:
          type: number
          nullable: true
          description: What it cost (owner and API only).
        collectionIds:
          type: array
          items:
            type: string
          description: The store collections (lookbooks) it is in, for `fill` by collection.
        badges:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseDataItemsBadgesItem"
          nullable: true
          description: Listing / passport / units badges (absent = none).
      required:
        - id
        - title
        - display
        - tags
        - collectionIds
      additionalProperties: false
    UpdateShowroom2ResponseDataPlacements:
      type: object
      properties:
        pinned:
          type: boolean
          description: False = placed by the automatic layout, not by a person.
        listingId:
          type: string
          nullable: true
        fixtureId:
          type: string
        unit:
          type: number
        slot:
          type: number
        itemId:
          type: string
        unitId:
          type: string
          nullable: true
      required:
        - pinned
        - fixtureId
        - unit
        - slot
        - itemId
      additionalProperties: false
    UpdateShowroom2ResponseDataRoom:
      type: object
      properties:
        name:
          type: string
        size:
          type: string
          enum:
            - auto
            - compact
            - standard
            - large
            - flagship
        ceiling:
          type: number
        look:
          $ref: "#/components/schemas/UpdateShowroom2ResponseDataRoomLook"
        props:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - name
        - size
        - ceiling
        - look
        - props
      additionalProperties: false
    UpdateShowroom2ResponseDataRoomLook:
      type: object
      properties:
        theme:
          type: string
          enum:
            - studio
            - noir
            - daylight
            - vitrine
            - street
            - storybook
          nullable: true
        wall:
          type: string
          enum:
            - metal
            - plaster
            - concrete
            - wood
            - walnut
            - leather
            - felt
            - cardboard
            - marble
            - oak
            - brushed_steel
            - carpet
            - tile
            - painted_metal
          nullable: true
        floor:
          type: string
          enum:
            - metal
            - plaster
            - concrete
            - wood
            - walnut
            - leather
            - felt
            - cardboard
            - marble
            - oak
            - brushed_steel
            - carpet
            - tile
            - painted_metal
          nullable: true
        coveColour:
          type: string
          nullable: true
        coveIntensity:
          type: number
          nullable: true
        shopfront:
          type: string
          nullable: true
        shopfrontColour:
          type: string
          nullable: true
        facade:
          type: string
          nullable: true
        signStyle:
          type: string
          nullable: true
        signFont:
          type: string
          nullable: true
        windowMood:
          type: string
          enum:
            - none
            - party
            - warm
            - candle
            - cool
          nullable: true
      additionalProperties: false
    UpdateShowroom2ResponseDataSettings:
      type: object
      properties:
        visibility:
          type: string
          enum:
            - unlisted
            - public
            - private
        openToAll:
          type: boolean
          description: False = holders only (an NFT holder gate set on the room). Setting false needs a gate configured first.
        groupBy:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseDataSettingsGroupByItem"
        sortBy:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroom2ResponseDataSettingsSortByItem"
        overlay:
          type: string
          enum:
            - status
            - none
            - value
            - aging
          description: The owner's default overlay in the 3D room (aging stock, capital held, listing status).
          x-enum-varnames:
            - status
            - none
            - valueOption
            - aging
        autoIncludeInventory:
          type: boolean
          nullable: true
          description: |-
            Opt-in: stand every live item of the store on its fixtures automatically. Off (the default for a new showroom)
            = the showroom shows exactly what is pinned. Omitted on a write = unchanged.
        hours:
          $ref: "#/components/schemas/UpdateShowroom2ResponseDataSettingsHours"
      required:
        - visibility
        - openToAll
        - groupBy
        - sortBy
        - overlay
      additionalProperties: false
    UpdateShowroom2ResponseDataSettingsHours:
      type: object
      properties:
        tz:
          type: string
        windows:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - tz
        - windows
      additionalProperties: false
      nullable: true
      description: Omitted on a write = unchanged; null = always open.
    UpdateShowroom2ResponseDataStats:
      type: object
      properties:
        itemCount:
          type: number
        pinned:
          type: number
        capacity:
          type: number
      required:
        - itemCount
        - pinned
        - capacity
      additionalProperties: false
    UpdateShowroom2ResponseResults:
      type: object
      properties:
        op:
          type: string
          enum:
            - sort
            - fill
            - move
            - remove
            - place
            - clear
            - add_fixture
            - update_fixture
            - remove_fixture
            - set_room
            - set_settings
        changed:
          type: boolean
        placed:
          type: number
          nullable: true
          description: "fill: items pinned; sort: items re-pinned."
        skipped:
          type: number
          nullable: true
          description: "fill: matches that found no free slot; update_fixture: pins dropped."
      required:
        - op
        - changed
      additionalProperties: false
    UpdateShowroomRequest:
      type: object
      properties:
        room:
          $ref: "#/components/schemas/UpdateShowroomRequestRoom"
        fixtures:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroomRequestFixtures"
        placements:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroomRequestPlacements"
        settings:
          $ref: "#/components/schemas/UpdateShowroomRequestSettings"
        expectedVersion:
          type: string
      required:
        - room
        - fixtures
        - placements
        - settings
      additionalProperties: false
    UpdateShowroomRequestFixtures:
      type: object
      properties:
        id:
          type: string
        display:
          type: string
          description: "The display apparatus: a space profile slug from GET /showroom/catalog (`sneakers`, `cards_graded`, `*`)."
        label:
          type: string
          nullable: true
          description: The sign over it, at most 40 characters. Null = the display's own label.
        hidden:
          type: boolean
        position:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
          nullable: true
          description: Where it stands on the floor, metres [x, z] (back wall z = 0). Null = laid out automatically.
        rotation:
          type: number
          nullable: true
          description: Yaw in radians. Null = automatic.
        units:
          type: number
          nullable: true
          description: How many units (cases, bays, pages) it has. Null = as many as its stock needs.
        holder:
          type: string
          nullable: true
          description: The holder it stands as (fixtures.ts FIXTURE_HOLDERS; premium ones bought in the cosmetics market). Null = free.
      required:
        - id
        - display
        - label
        - hidden
        - position
        - rotation
        - units
      additionalProperties: false
    UpdateShowroomRequestPlacements:
      type: object
      properties:
        fixtureId:
          type: string
        unit:
          type: number
        slot:
          type: number
        itemId:
          type: string
        unitId:
          type: string
          nullable: true
      required:
        - fixtureId
        - unit
        - slot
        - itemId
        - unitId
      additionalProperties: false
    UpdateShowroomRequestRoom:
      type: object
      properties:
        name:
          type: string
        size:
          type: string
          enum:
            - auto
            - compact
            - standard
            - large
            - flagship
        ceiling:
          type: number
        look:
          $ref: "#/components/schemas/UpdateShowroomRequestRoomLook"
        props:
          type: array
          items:
            $ref: "#/components/schemas/GetShowroomResponseDataRoomProps"
      required:
        - name
        - size
        - ceiling
        - look
        - props
      additionalProperties: false
    UpdateShowroomRequestRoomLook:
      type: object
      properties:
        theme:
          type: string
          enum:
            - studio
            - noir
            - daylight
            - vitrine
            - street
            - storybook
          nullable: true
        wall:
          type: string
          enum:
            - metal
            - plaster
            - concrete
            - wood
            - walnut
            - leather
            - felt
            - cardboard
            - marble
            - oak
            - brushed_steel
            - carpet
            - tile
            - painted_metal
          nullable: true
        floor:
          type: string
          enum:
            - metal
            - plaster
            - concrete
            - wood
            - walnut
            - leather
            - felt
            - cardboard
            - marble
            - oak
            - brushed_steel
            - carpet
            - tile
            - painted_metal
          nullable: true
        coveColour:
          type: string
          nullable: true
        coveIntensity:
          type: number
          nullable: true
        shopfront:
          type: string
          nullable: true
        shopfrontColour:
          type: string
          nullable: true
        facade:
          type: string
          nullable: true
        signStyle:
          type: string
          nullable: true
        signFont:
          type: string
          nullable: true
        windowMood:
          type: string
          enum:
            - none
            - party
            - warm
            - candle
            - cool
          nullable: true
      required:
        - theme
        - wall
        - floor
        - coveColour
        - coveIntensity
        - shopfront
        - shopfrontColour
        - facade
        - signStyle
        - signFont
        - windowMood
      additionalProperties: false
    UpdateShowroomRequestSettings:
      type: object
      properties:
        visibility:
          type: string
          enum:
            - unlisted
            - public
            - private
        openToAll:
          type: boolean
          description: False = holders only (an NFT holder gate set on the room). Setting false needs a gate configured first.
        groupBy:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroomRequestSettingsGroupByItem"
        sortBy:
          type: array
          items:
            $ref: "#/components/schemas/UpdateShowroomRequestSettingsSortByItem"
        overlay:
          type: string
          enum:
            - status
            - none
            - value
            - aging
          description: The owner's default overlay in the 3D room (aging stock, capital held, listing status).
          x-enum-varnames:
            - status
            - none
            - valueOption
            - aging
        autoIncludeInventory:
          type: boolean
          description: |-
            Opt-in: stand every live item of the store on its fixtures automatically. Off (the default for a new showroom)
            = the showroom shows exactly what is pinned. Omitted on a write = unchanged.
        hours:
          $ref: "#/components/schemas/UpdateShowroom2ResponseDataSettingsHours"
      required:
        - visibility
        - openToAll
        - groupBy
        - sortBy
        - overlay
      additionalProperties: false
    UpdateShowroomResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateShowroom2ResponseData"
        changed:
          type: boolean
      required:
        - data
        - changed
      additionalProperties: false
    UpdateSkuPresetDefaultRequest:
      type: object
      properties:
        presetId:
          type: string
          nullable: true
      required:
        - presetId
      additionalProperties: false
    UpdateSkuPresetDefaultResponse:
      type: object
      properties:
        presets:
          type: array
          items:
            $ref: "#/components/schemas/ListSkuPresetsItem"
        defaultPresetId:
          type: string
          nullable: true
        autoFill:
          $ref: "#/components/schemas/UpdateSkuPresetDefaultResponseAutoFill"
      required:
        - presets
        - autoFill
      additionalProperties: false
    UpdateSkuPresetDefaultResponseAutoFill:
      type: object
      properties:
        template:
          type: string
          nullable: true
        source:
          type: string
          enum:
            - legacy
            - none
            - preset
      required:
        - source
      additionalProperties: false
      description: The template new listings in this store auto-fill from right now, and where it comes from.
    UpdateSkuPresetRequest:
      type: object
      properties:
        name:
          type: string
        template:
          type: string
        isDefault:
          type: boolean
      additionalProperties: false
    UpdateSourceSyncLocationRequest:
      type: object
      required:
        - locationId
      properties:
        locationId:
          type: string
    UpdateSourceSyncRequest:
      type: object
      properties:
        enabled:
          type: boolean
        sourceOwnedFields:
          type: array
          items:
            $ref: "#/components/schemas/UpdateSourceSyncRequestSourceOwnedFieldsItem"
        importNewProducts:
          type: boolean
        onSourceDelete:
          type: string
          enum:
            - delist_everywhere
            - source_only
        autoExportEnabled:
          type: boolean
        autoExportPlatforms:
          type: array
          items:
            type: string
      additionalProperties: false
    UpdateSpatialEmployeeConfigRequest:
      type: object
      properties:
        sceneId:
          type: string
        enabled:
          type: boolean
        displayName:
          type: string
        brainKind:
          type: string
          enum:
            - rules
            - idle
            - agent
        avatarKey:
          type: string
        rules:
          description: |-
            Deliberately `unknown`, exactly as the dashboard route has it.

            `parseRules` checks every field against the shared trigger/act
            vocabulary and refuses anything outside it. A zod mirror here would be
            a second definition of that vocabulary, free to drift from the one the
            evaluator actually uses.
        agentEndpointUrl:
          type: string
          nullable: true
        rotateSecret:
          type: boolean
      required:
        - sceneId
        - enabled
        - displayName
        - brainKind
      additionalProperties: false
    UpdateSpatialEmployeeConfigResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateSpatialEmployeeConfigResponseData"
      required:
        - data
      additionalProperties: false
    UpdateSpatialEmployeeConfigResponseData:
      type: object
      properties:
        secret:
          type: string
          nullable: true
        sceneId:
          type: string
        config:
          $ref: "#/components/schemas/UpdateSpatialEmployeeConfigResponseDataConfig"
      required:
        - sceneId
        - config
      additionalProperties: false
    UpdateSpatialEmployeeConfigResponseDataConfig:
      type: object
      properties:
        brainKind:
          type: string
          enum:
            - rules
            - idle
            - agent
            - byok
        rules:
          type: array
          items:
            type: object
            additionalProperties: {}
        agentEndpointUrl:
          type: string
          nullable: true
        hasAgentSecret:
          type: boolean
          description: Whether a secret exists, which is all a form needs to know.
        suspendedAt:
          type: string
          nullable: true
        suspendedReason:
          type: string
          nullable: true
        enabled:
          type: boolean
        avatarKey:
          type: string
        displayName:
          type: string
      required:
        - brainKind
        - rules
        - hasAgentSecret
        - enabled
        - avatarKey
        - displayName
      additionalProperties: false
    UpdateSpatialSceneCosmeticResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateSpatialSceneCosmeticResponseData"
      required:
        - data
      additionalProperties: false
    UpdateSpatialSceneCosmeticResponseData:
      type: object
      properties:
        theme:
          type: string
          nullable: true
          description: Lighting rig. Themes ARE rigs in this codebase, not paint.
        wall:
          type: string
          enum:
            - metal
            - plaster
            - concrete
            - wood
            - walnut
            - leather
            - felt
            - cardboard
            - marble
            - oak
            - brushed_steel
            - carpet
            - tile
            - painted_metal
          nullable: true
          description: Wall and floor surfaces.
        floor:
          type: string
          enum:
            - metal
            - plaster
            - concrete
            - wood
            - walnut
            - leather
            - felt
            - cardboard
            - marble
            - oak
            - brushed_steel
            - carpet
            - tile
            - painted_metal
          nullable: true
        coveColour:
          type: string
          nullable: true
          description: The cove strip's colour. The single most character-defining knob.
        coveIntensity:
          type: number
          nullable: true
          description: |-
            Cove brightness multiplier, clamped. A room you cannot look at is not a
            room somebody gets to sell from.
        props:
          type: array
          items:
            $ref: "#/components/schemas/GetShowroomResponseDataRoomProps"
          nullable: true
          description: Decorative props. Never containers — see CosmeticProp.
        shopfront:
          type: string
          enum:
            - full
            - none
            - fascia
            - awning
            - neon_fascia
            - gilded_fascia
            - scalloped_awning
          nullable: true
          description: |-
            How this room's door presents itself in the hall. See SHOPFRONT_STYLES.

            Undefined means "never chosen", which the renderer reads as
            SHOPFRONT_DEFAULT — NOT as `none`. The two are different answers and the
            distinction is the whole reason this is optional rather than defaulted
            here: a validator that filled in `fascia` would make "I explicitly want a
            bare opening" unrepresentable.
        shopfrontColour:
          type: string
          nullable: true
          description: |-
            The awning's canvas colour, as hex.

            Separate from `coveColour` on purpose. The cove is the light INSIDE a room
            and the awning is fabric seen from outside it; a seller who wants a warm
            room and a green awning should get both, and forcing one hex to serve two
            materials is how you end up with a shop lit like its own signage.

            The mesh is authored a neutral mid-tone precisely so this can multiply
            over it without muddying.
        facade:
          type: string
          enum:
            - market
            - classic
            - modern
            - boutique
            - art_deco
            - victorian
            - brutalist
          nullable: true
          description: |-
            Which BUILDING this shop stands in, on the street. See FACADE_STYLES.

            Undefined means "never chosen", which the renderer reads as
            FACADE_DEFAULT. Optional rather than defaulted here for the same reason
            `shopfront` is: the validator's job is to say what was asked for, and the
            renderer's job is to decide what an unanswered question looks like.

            Still no coordinate, still no size: a facade names a mesh the street
            places, and the street decides where. Size comes from the stake ladder in
            `blockForRank`, never from here — see the plot rule in StreetPlots.
        signStyle:
          type: string
          enum:
            - painted
            - neon
            - gold_leaf
            - blade_sign
            - lightbox
          nullable: true
          description: |-
            How the shop's name is lettered (shop-decor.ts SIGN_STYLES): `painted`
            is free, the rest are premium decor (`sign_style`). Unset = painted.
        signFont:
          type: string
          enum:
            - classic
            - script
            - roman
            - condensed
            - slab
            - deco
            - brush
            - marker
          nullable: true
          description: |-
            The sign's typeface (sign-lettering.ts SIGN_FONTS): free, any of them; the
            letters are built in it with the sign style's finish. Unset = the style's own.
        windowMood:
          type: string
          enum:
            - none
            - party
            - warm
            - candle
            - cool
          nullable: true
          description: |-
            The street window's lighting preset (Wave 10.3): the stall moods
            (stall-decor.ts STALL_MOODS) lit behind the shop's window cards. Free.
        source:
          type: string
          enum:
            - default
            - event
            - purchased
          nullable: true
          description: How the cosmetic was obtained, for display and for support questions.
      additionalProperties: false
    UpdateSpatialSceneNodeRequest:
      type: object
      properties:
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
      required:
        - position
      additionalProperties: false
    UpdateSpatialSceneNodeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateSpatialSceneNodeResponseData"
      required:
        - data
      additionalProperties: false
    UpdateSpatialSceneNodeResponseData:
      type: object
      properties:
        id:
          type: string
        transform:
          $ref: "#/components/schemas/CreateSpatialSceneNodeResponseDataTransform"
      required:
        - id
        - transform
      additionalProperties: false
    UpdateSpatialSceneSettingRequest:
      type: object
      properties:
        groupBy:
          type: array
          items:
            type: string
        sortBy:
          type: array
          items:
            type: string
        theme:
          type: string
        overlay:
          type: string
        camera:
          $ref: "#/components/schemas/UpdateSpatialSceneSettingRequestCamera"
      additionalProperties: false
    UpdateSpatialSceneSettingRequestCamera:
      type: object
      properties:
        position:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
        target:
          type: array
          items:
            type: number
          minItems: 3
          maxItems: 3
      additionalProperties: false
    UpdateSpatialSceneShopLayoutRequest:
      type: object
      properties:
        layout: {}
      required:
        - layout
      additionalProperties: false
    UpdateSpatialSceneShopLayoutResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateSpatialSceneShopLayoutResponseData"
      required:
        - data
      additionalProperties: false
    UpdateSpatialSceneShopLayoutResponseData:
      type: object
      properties:
        v:
          type: number
        shell:
          $ref: "#/components/schemas/UpdateSpatialSceneShopLayoutResponseDataShell"
        sections:
          type: array
          items:
            $ref: "#/components/schemas/UpdateSpatialSceneShopLayoutResponseDataSections"
      required:
        - v
        - shell
        - sections
      additionalProperties: false
    UpdateSpatialSceneShopLayoutResponseDataSections:
      type: object
      properties:
        id:
          type: string
          description: Stable id, `[a-z0-9-]{1,16}`. Pins and signs key on it.
        profile:
          type: string
          description: "The display apparatus: a space profile slug (`sneakers`, `cards_graded`, `*` …)."
        position:
          type: array
          items:
            type: number
          minItems: 2
          maxItems: 2
          nullable: true
          description: Where the seller stood it. Absent = laid out automatically.
        rotationY:
          type: number
          nullable: true
        sign:
          type: string
          nullable: true
          description: A sign over it, ≤ 40 chars. Absent = the profile's label.
        hidden:
          type: boolean
          nullable: true
          description: Shown to visitors? A hidden section keeps its stock off the floor.
        units:
          type: number
          nullable: true
          description: |-
            How many units (cases, bays, pages) it stands with, at least; absent = as many as its stock needs.
            Set from the showroom organizer so an empty display has slots to fill (shared showroom/).
        holder:
          type: string
          nullable: true
          description: The holder model it stands as (showroom/fixtures.ts FIXTURE_HOLDERS); absent = its type's free holder.
      required:
        - id
        - profile
      additionalProperties: false
    UpdateSpatialSceneShopLayoutResponseDataShell:
      type: object
      properties:
        size:
          type: string
          enum:
            - auto
            - compact
            - standard
            - large
            - flagship
        ceiling:
          type: number
      required:
        - size
        - ceiling
      additionalProperties: false
    UpdateSpatialSceneWindowResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateSpatialSceneWindowResponseData"
      required:
        - data
      additionalProperties: false
    UpdateSpatialSceneWindowResponseData:
      type: object
      properties:
        picks:
          type: array
          items:
            type: string
      required:
        - picks
      additionalProperties: false
    UpdateSpatialShopStaffWageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateSpatialShopStaffWageResponseData"
      required:
        - data
      additionalProperties: false
    UpdateSpatialShopStaffWageResponseData:
      type: object
      properties:
        grantId:
          type: string
        wageWeeklyCents:
          type: number
          nullable: true
      required:
        - grantId
      additionalProperties: false
    UpdateSpatialStreetOwnedRequest:
      type: object
      properties:
        admission:
          type: string
      required:
        - admission
      additionalProperties: false
    UpdateSponsoredAdBillingAutoTopupRequest:
      type: object
      properties:
        enabled:
          type: boolean
        thresholdCents:
          type: number
        amountCents:
          type: number
      required:
        - enabled
      additionalProperties: false
    UpdateSponsoredAdBoostRequest:
      type: object
      properties:
        platformListingIds:
          type: array
          items:
            type: string
        upliftBps:
          type: number
      required:
        - platformListingIds
        - upliftBps
      additionalProperties: false
    UpdateSponsoredAdBoostResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateSponsoredAdBoostResponseData"
      required:
        - data
      additionalProperties: false
    UpdateSponsoredAdBoostResponseData:
      type: object
      properties:
        boosted:
          type: number
      required:
        - boosted
      additionalProperties: false
    UpdateStallBookingRequest:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        awning:
          $ref: "#/components/schemas/UpdateStallBookingRequestAwning"
        booth:
          $ref: "#/components/schemas/UpdateStallBookingRequestBooth"
        sign:
          type: string
          nullable: true
        attendant:
          type: boolean
      additionalProperties: false
    UpdateStallBookingRequestAwning:
      type: object
      properties:
        colour:
          type: string
          enum:
            - yellow
            - blue
            - green
            - pink
            - purple
            - charcoal
            - red
            - orange
            - teal
            - cream
        pattern:
          type: string
          enum:
            - check
            - stripe
            - solid
            - scallop
      required:
        - colour
        - pattern
      additionalProperties: false
    UpdateStallBookingRequestBooth:
      type: object
      properties:
        canopy:
          type: string
          nullable: true
        pattern:
          type: string
          nullable: true
        lights:
          type: string
          nullable: true
        counter:
          type: string
          nullable: true
        piece:
          type: string
          nullable: true
          description: An interactive piece's model key (shared stall-decor.ts isStallPiece); one home_prop copy.
      additionalProperties: false
      nullable: true
    UpdateStorefrontHighlightRequest:
      type: object
      properties:
        title:
          type: string
        coverUrl:
          type: string
          nullable: true
      additionalProperties: false
    UpdateStorefrontProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateStorefrontProfileResponseData"
      required:
        - data
      additionalProperties: false
    UpdateStorefrontProfileResponseData:
      type: object
      properties:
        profile:
          $ref: "#/components/schemas/UpdateStorefrontProfileResponseDataProfile"
      required:
        - profile
      additionalProperties: false
    UpdateStorefrontProfileResponseDataProfile:
      type: object
      properties:
        version:
          type: number
        bannerImageUrl:
          type: string
          nullable: true
        logoImageUrl:
          type: string
          nullable: true
        tagline:
          type: string
        bio:
          type: string
        accent:
          type: string
          description: "One of PROFILE_ACCENTS: tints the banner fallback, the follow button and shelf headings only."
        announcement:
          $ref: "#/components/schemas/GetStorefrontProfileResponseDataProfileAnnouncement"
        shelves:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Product shelves shown above "All items" (max 6).
        blocks:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Which standard blocks show, in this order.
        allItems:
          $ref: "#/components/schemas/GetStorefrontProfileResponseDataProfileAllItems"
        linkWebsite:
          type: boolean
          description: Whether "Visit our website" links to the site (only when the site is published).
      required:
        - version
        - tagline
        - bio
        - accent
        - announcement
        - shelves
        - blocks
        - allItems
        - linkWebsite
      additionalProperties: false
    UpdateStorefrontRequest:
      type: object
      properties:
        bannerImageUrl:
          type: string
          nullable: true
        logoImageUrl:
          type: string
          nullable: true
        tagline:
          type: string
          nullable: true
        bio:
          type: string
          nullable: true
        theme:
          $ref: "#/components/schemas/UpdateStorefrontRequestTheme"
        seoTitle:
          type: string
          nullable: true
        seoDescription:
          type: string
          nullable: true
        socialLinks:
          $ref: "#/components/schemas/GetStorefrontResponseDataSocialLinks"
        published:
          type: boolean
      additionalProperties: false
    UpdateStorefrontRequestTheme:
      type: object
      properties:
        primaryColor:
          type: string
        accentColor:
          type: string
        backgroundColor:
          type: string
        textColor:
          type: string
        font:
          type: string
          enum:
            - system
            - rounded
            - display
            - mono
            - serif
        density:
          type: string
          enum:
            - compact
            - comfortable
            - spacious
        buttonStyle:
          type: string
          enum:
            - square
            - pill
            - rounded
      additionalProperties: false
      nullable: true
    UpdateStorefrontSectionRequest:
      type: object
      properties:
        title:
          type: string
        listingIds:
          type: array
          items:
            type: string
        visible:
          type: boolean
        position:
          type: number
        config:
          type: object
          additionalProperties: {}
      additionalProperties: false
    UpdateStorefrontSettingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseData"
      additionalProperties: false
    UpdateStorefrontSettingResponseData:
      type: object
      properties:
        storePolicies:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseDataStorePolicies"
        offersFreeShipping:
          type: boolean
          nullable: true
        freeShippingThresholdCents:
          type: number
          nullable: true
        offersLocalPickup:
          type: boolean
          nullable: true
        localCourierEnabled:
          type: boolean
          nullable: true
        acceptsLayaway:
          type: boolean
          nullable: true
        sellerProtections:
          type: array
          items:
            type: string
          nullable: true
        requestArrivalCondition:
          type: boolean
          nullable: true
        arrivalConditionWindowHours:
          type: number
          nullable: true
        theme:
          type: object
          nullable: true
          additionalProperties: {}
        updatedAt:
          type: string
          format: date-time
        storefrontId:
          type: string
        published:
          type: boolean
        publishedAt:
          type: string
          format: date-time
          nullable: true
        bio:
          type: string
          nullable: true
        tagline:
          type: string
          nullable: true
        bannerImageUrl:
          type: string
          nullable: true
        bundleDiscountBps:
          type: number
        featuredListingIds:
          type: array
          items:
            type: string
          nullable: true
        shipFromCity:
          type: string
          nullable: true
        shipFromState:
          type: string
          nullable: true
        shipFromZip:
          type: string
          nullable: true
        shipFromCountry:
          type: string
          nullable: true
        acceptsCustomOrders:
          type: boolean
        customDomain:
          type: string
          nullable: true
        customDomainVerifiedAt:
          type: string
          format: date-time
          nullable: true
        logoImageUrl:
          type: string
          nullable: true
        seoTitle:
          type: string
          nullable: true
        seoDescription:
          type: string
          nullable: true
        autoShareHours:
          type: number
          nullable: true
        lastSharedAt:
          type: string
          format: date-time
          nullable: true
        returnName:
          type: string
          nullable: true
        returnStreet1:
          type: string
          nullable: true
        returnStreet2:
          type: string
          nullable: true
        returnCity:
          type: string
          nullable: true
        returnState:
          type: string
          nullable: true
        returnZip:
          type: string
          nullable: true
        returnCountry:
          type: string
          nullable: true
        shipFromAddressId:
          type: string
          nullable: true
        returnAddressId:
          type: string
          nullable: true
        matchOwnPrices:
          type: boolean
        shippingPresetId:
          type: string
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        sitePublishedAt:
          type: string
          format: date-time
          nullable: true
        siteDraftUpdatedAt:
          type: string
          format: date-time
          nullable: true
        siteEnabled:
          type: boolean
        brandingDefaults:
          type: object
          additionalProperties: {}
        tradeSitePublishedAt:
          type: string
          format: date-time
          nullable: true
        tradeSiteDraftUpdatedAt:
          type: string
          format: date-time
          nullable: true
        tradeSiteEnabled:
          type: boolean
        tradeSiteGating:
          type: string
          enum:
            - public
            - approved_only
            - prices_private
        policySummary:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseDataPolicySummary"
        policySource:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseDataPolicySource"
        usesOwnPolicy:
          type: boolean
      required:
        - storePolicies
        - updatedAt
        - storefrontId
        - published
        - bundleDiscountBps
        - acceptsCustomOrders
        - matchOwnPrices
        - siteEnabled
        - brandingDefaults
        - tradeSiteEnabled
        - tradeSiteGating
        - policySummary
        - policySource
        - usesOwnPolicy
      additionalProperties: false
      nullable: true
    UpdateStorefrontSettingResponseDataPolicySource:
      type: object
      properties:
        shipping:
          type: string
          enum:
            - shared
            - own
        return:
          type: string
          enum:
            - shared
            - own
        payment:
          type: string
          enum:
            - shared
            - own
      required:
        - shipping
        - return
        - payment
      additionalProperties: false
    UpdateStorefrontSettingResponseDataPolicySummary:
      type: object
      properties:
        shipping:
          $ref: "#/components/schemas/SummaryIncomplete"
        return:
          $ref: "#/components/schemas/SummaryIncomplete"
        payment:
          $ref: "#/components/schemas/SummaryIncomplete"
      required:
        - shipping
        - return
        - payment
      additionalProperties: false
    UpdateStorefrontSettingResponseDataStorePolicies:
      type: object
      properties:
        shipping:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseDataStorePoliciesShipping"
        return:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseDataStorePoliciesShipping"
        payment:
          $ref: "#/components/schemas/UpdateStorefrontSettingResponseDataStorePoliciesShipping"
      required:
        - shipping
        - return
        - payment
      additionalProperties: false
    UpdateStorefrontSettingResponseDataStorePoliciesShipping:
      type: object
      properties:
        presetId:
          type: string
          nullable: true
          description: The preset the store picked, or null (= the seller's default).
        resolvedPresetId:
          type: string
          nullable: true
          description: "What the store resolves to: preset id / name / level."
        resolvedPresetName:
          type: string
          nullable: true
        level:
          type: string
          enum:
            - default
            - override
            - legacy
            - listing
            - store
            - seller_default
        body:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - level
      additionalProperties: false
    UpdateStorefrontShippingRequest:
      type: object
      properties:
        shippingPolicy:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicy"
        shipFrom:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShipFrom"
      additionalProperties: false
    UpdateStorefrontShippingRequestShipFrom:
      type: object
      properties:
        fullName:
          type: string
        street1:
          type: string
        city:
          type: string
        company:
          type: string
          nullable: true
        street2:
          type: string
          nullable: true
        state:
          type: string
        zip:
          type: string
        country:
          type: string
          description: ISO 3166-1 alpha-2; absent = US.
        phone:
          type: string
          nullable: true
      required:
        - fullName
        - street1
        - city
      additionalProperties: false
    UpdateStorefrontShippingRequestShippingPolicy:
      type: object
      properties:
        handlingTimeDays:
          type: number
        domestic:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyDomestic"
        international:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyInternational"
        localPickup:
          type: boolean
        pickupInstructions:
          type: string
          nullable: true
          description: Shown to a buyer who picks local pickup (§0.1).
        courier:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyCourier"
        freight:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyFreight"
        origin:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyOrigin"
        packageInfo:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyPackageInfo"
        locationRules:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyLocationRules"
      required:
        - handlingTimeDays
        - domestic
        - international
        - localPickup
      additionalProperties: false
      nullable: true
      description: Replaces the whole policy; null clears it.
    UpdateStorefrontShippingRequestShippingPolicyCourier:
      type: object
      properties:
        enabled:
          type: boolean
        radiusMiles:
          type: number
          nullable: true
        feeCents:
          type: number
          nullable: true
        cutoffLocal:
          type: string
          nullable: true
          description: Last order time for same-day, the seller's local clock.
      required:
        - enabled
      additionalProperties: false
      description: Same-day local courier (api-orders services/courier.ts).
    UpdateStorefrontShippingRequestShippingPolicyDomestic:
      type: object
      properties:
        costType:
          type: string
          enum:
            - free
            - flat
            - calculated
        carriers:
          type: array
          items:
            $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyDomesticCarriersItem"
        flatRateCents:
          type: number
        additionalItemCents:
          type: number
        services:
          type: array
          items:
            type: object
            additionalProperties: {}
        calculated:
          $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyDomesticCalculated"
        freeOverCents:
          type: number
          nullable: true
          description: Free shipping once the seller's cart subtotal reaches this (cents); null = off (§0.1).
      required:
        - costType
        - carriers
      additionalProperties: false
    UpdateStorefrontShippingRequestShippingPolicyDomesticCalculated:
      type: object
      properties:
        enabled:
          type: boolean
        services:
          type: array
          items:
            type: string
        handlingFeeCents:
          type: number
        autoPurchaseLabel:
          type: boolean
      required:
        - enabled
      additionalProperties: false
    UpdateStorefrontShippingRequestShippingPolicyFreight:
      type: object
      properties:
        enabled:
          type: boolean
        palletThresholdLbs:
          type: number
          nullable: true
        quoteOnly:
          type: boolean
      required:
        - enabled
      additionalProperties: false
      description: Wholesale LTL freight.
    UpdateStorefrontShippingRequestShippingPolicyInternational:
      type: object
      properties:
        costType:
          type: string
          enum:
            - free
            - flat
            - not_offered
            - calculated
        flatRateCents:
          type: number
        additionalItemCents:
          type: number
        carriers:
          type: array
          items:
            $ref: "#/components/schemas/UpdateStorefrontShippingRequestShippingPolicyInternationalCarriersItem"
        excludedRegions:
          type: array
          items:
            type: string
        enabled:
          type: boolean
        shipsTo: {}
        excludes:
          type: array
          items:
            type: string
        services:
          type: array
          items:
            type: object
            additionalProperties: {}
        importChargesNote:
          type: boolean
      required:
        - costType
      additionalProperties: false
    UpdateStorefrontShippingRequestShippingPolicyLocationRules:
      type: object
      properties:
        version:
          type: number
        include:
          type: array
          items: {}
        exclude:
          type: array
          items: {}
        onUnsupported:
          type: string
          enum:
            - block
            - closest
        source:
          type: string
          enum:
            - legacy
            - seller
      additionalProperties: false
    UpdateStorefrontShippingRequestShippingPolicyOrigin:
      type: object
      properties:
        postalCode:
          type: string
        country:
          type: string
      required:
        - postalCode
      additionalProperties: false
    UpdateStorefrontShippingRequestShippingPolicyPackageInfo:
      type: object
      properties:
        weightOz:
          type: number
        lengthIn:
          type: number
        widthIn:
          type: number
        heightIn:
          type: number
      additionalProperties: false
      nullable: true
    UpdateStorefrontTradeSiteDraftRequest:
      type: object
      properties:
        design: {}
      required:
        - design
      additionalProperties: false
    UpdateStorefrontTradeSiteGatingRequest:
      type: object
      properties:
        gating:
          type: string
          enum:
            - public
            - approved_only
            - prices_private
      required:
        - gating
      additionalProperties: false
    UpdateTeamMemberStoreRequest:
      type: object
      properties:
        permissions:
          type: array
          items:
            type: string
        limits:
          $ref: "#/components/schemas/TeamMemberStoreResponseDataAccessLimits"
      required:
        - permissions
      additionalProperties: false
    UpdateTeamRequest:
      type: object
      properties:
        scopes:
          type: array
          items:
            type: string
      required:
        - scopes
      additionalProperties: false
    UpdateToolboxAssetRatingMineRequest:
      type: object
      properties:
        stars:
          type: number
        body:
          type: string
      required:
        - stars
      additionalProperties: false
    UpdateToolboxAssetRatingMineResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetToolboxAssetRatingResponseDataItems"
      required:
        - data
      additionalProperties: false
    UpdateToolboxAssetRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        priceCents:
          type: number
        thumbnailUrl:
          type: string
          nullable: true
      additionalProperties: false
    UpdateVariationGroupRequest:
      type: object
      properties:
        title:
          type: string
        axisName:
          type: string
        rule:
          $ref: "#/components/schemas/CreateVariationGroupRequestRule"
      additionalProperties: false
    UpdateVaultMarketAutoBuyRequest:
      type: object
      properties:
        shareBps:
          type: number
        wants:
          type: array
          items:
            $ref: "#/components/schemas/UpdateVaultMarketAutoBuyRequestWants"
      required:
        - shareBps
        - wants
      additionalProperties: false
    UpdateVaultMarketAutoBuyRequestWants:
      type: object
      properties:
        bookKey:
          type: string
        maxPriceCents:
          type: number
          nullable: true
      required:
        - bookKey
      additionalProperties: false
    UpdateVaultMarketAutoBuyResponse:
      type: object
      properties:
        explainer:
          type: string
        autoBuy:
          nullable: true
      required:
        - explainer
        - autoBuy
    UpdateVaultMarketBlockAllocationRequest:
      type: object
      properties:
        plan:
          type: array
          items:
            $ref: "#/components/schemas/CreateVaultMarketBlockRequestPlan"
      required:
        - plan
      additionalProperties: false
    UpdateVaultMarketEntityMemberRequest:
      type: object
      properties:
        role:
          type: string
          enum:
            - viewer
            - trader
            - admin
            - risk
            - ops
        limits:
          $ref: "#/components/schemas/CreateVaultMarketEntityMemberRequestLimits"
        subaccountIds:
          type: array
          items:
            type: string
          nullable: true
      additionalProperties: false
    UpdateVaultMarketEntitySubaccountLimitRequest:
      type: object
      properties:
        limits:
          $ref: "#/components/schemas/CreateVaultMarketEntityMemberRequestLimits"
      additionalProperties: false
    UpdateVaultMarketEntityUsdElectionRequest:
      type: object
      properties:
        usdOnly:
          type: boolean
      required:
        - usdOnly
      additionalProperties: false
    UpdateVaultMarketHomeUnitResponse:
      type: object
      properties:
        placed:
          type: array
          items:
            type: string
          description: Units on show now, in the order asked.
        unplaced:
          type: array
          items:
            type: string
          description: "Units asked for that found no free case (the home is full): take something out, or add a case."
        refused:
          type: array
          items:
            $ref: "#/components/schemas/UpdateVaultMarketHomeUnitResponseRefused"
          description: Units refused, with why.
        desk:
          $ref: "#/components/schemas/GetVaultMarketHomeUnitResponse"
      required:
        - placed
        - unplaced
        - refused
        - desk
      additionalProperties: false
    UpdateVaultMarketHomeUnitResponseRefused:
      type: object
      properties:
        vaultItemId:
          type: string
        reason:
          type: string
      required:
        - vaultItemId
        - reason
      additionalProperties: false
    UpdateVaultMarketItemSellFromRequest:
      type: object
      properties:
        sellFrom:
          type: string
          enum:
            - vault_first
            - warehouse_first
            - cheapest
          nullable: true
      required:
        - sellFrom
      additionalProperties: false
    UpdateVaultMarketOfferAlertResponse:
      type: object
      properties:
        bookKey:
          type: string
        alertCents:
          type: number
          nullable: true
        muted:
          type: boolean
      required:
        - bookKey
        - muted
      additionalProperties: false
    UpdateVaultMarketPaperLeaderboardResponse:
      type: object
      properties:
        optIn:
          type: boolean
        displayName:
          type: string
          nullable: true
        playMoney:
          type: boolean
        label:
          type: string
      required:
        - optIn
        - playMoney
        - label
      additionalProperties: false
    UpdateVaultMarketPartnerMeRequest:
      type: object
      properties:
        postalCode:
          type: string
          nullable: true
        hours:
          type: object
          nullable: true
          additionalProperties: {}
        services:
          type: array
          items:
            $ref: "#/components/schemas/UpdateVaultMarketPartnerMeRequestServicesItem"
        listed:
          type: boolean
      additionalProperties: false
    UpdateVaultMarketPartnerMeResponse:
      type: object
      properties:
        profile:
          $ref: "#/components/schemas/UpdateVaultMarketPartnerMeResponseProfile"
      required:
        - profile
      additionalProperties: false
    UpdateVaultMarketPartnerMeResponseProfile:
      type: object
      properties:
        postalCode:
          type: string
          nullable: true
        hours:
          type: object
          nullable: true
          additionalProperties: {}
        services:
          type: array
          items:
            type: string
        listed:
          type: boolean
      required:
        - services
        - listed
      additionalProperties: false
    UpdateVaultMarketPositionExitResponse:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        status:
          type: string
        bookKey:
          type: string
        entryOrderId:
          type: string
          nullable: true
        orderAId:
          type: string
          nullable: true
        orderBId:
          type: string
          nullable: true
        positionId:
          type: string
          nullable: true
        takeProfitCents:
          nullable: true
        stopLossCents:
          nullable: true
        trailBps:
          type: number
          nullable: true
        trailCents:
          type: number
          nullable: true
        watermarkCents:
          type: number
          nullable: true
        fired:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
        armedAt:
          type: string
          nullable: true
        doneAt:
          type: string
          nullable: true
        createdAt:
          type: string
    UpdateVaultMarketSettingRequest:
      type: object
      properties:
        sellFromDefault:
          type: string
          enum:
            - vault_first
            - warehouse_first
            - cheapest
        suggestNewInventory:
          type: boolean
        insuranceRule:
          type: string
          enum:
            - price
            - cost
            - market
        defaultGradingTier:
          type: string
          nullable: true
      additionalProperties: false
    UpdateVaultMarketSupplyDepositRequest:
      type: object
      properties:
        autoListBps:
          type: number
          nullable: true
        lendWhenIdle:
          type: boolean
      additionalProperties: false
    UpdateVaultMarketSupplyDepositResponse:
      type: object
      properties:
        id:
          type: string
        autoListBps:
          type: number
          nullable: true
        lendWhenIdle:
          type: boolean
        status:
          type: string
          enum:
            - stored
            - cancelled
            - listed
            - shipped
            - inbound
            - sold_on_book
            - channel_sold
      required:
        - id
        - lendWhenIdle
        - status
      additionalProperties: false
    UpdateVaultMarketTodBeneficiaryResponse:
      type: object
      properties:
        beneficiaries:
          type: number
        removed:
          type: number
      required:
        - beneficiaries
        - removed
      additionalProperties: false
    UpdateVaultMarketTodDesignationResponse:
      type: object
      properties:
        vaultItemId:
          type: string
        beneficiaryId:
          type: string
          nullable: true
      required:
        - vaultItemId
      additionalProperties: false
    UpdateVaultMarketWorldRoomVaultGateResponse:
      type: object
      properties:
        gate:
          $ref: "#/components/schemas/UpdateVaultMarketWorldRoomVaultGateResponseGate"
      additionalProperties: false
    UpdateVaultMarketWorldRoomVaultGateResponseGate:
      type: object
      properties:
        minValueCents:
          type: number
          nullable: true
        minUnits:
          type: number
          nullable: true
        mode:
          type: string
          enum:
            - all
            - any
          description: "'any': either threshold opens the door (like the lounge); 'all': both are needed. Only matters when both are set."
        scope:
          $ref: "#/components/schemas/UpdateVaultMarketWorldRoomVaultGateResponseGateScope"
      required:
        - mode
      additionalProperties: false
      nullable: true
    UpdateVaultMarketWorldRoomVaultGateResponseGateScope:
      type: object
      properties:
        kind:
          type: string
          enum:
            - category
            - product
            - bullion
        ref:
          type: string
          description: "product: the catalogue sku id; bullion: the family slug; category: the category slug."
        label:
          type: string
          nullable: true
      required:
        - kind
        - ref
      additionalProperties: false
      nullable: true
    UpdateWeb3HolderPerkRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - ethereum
            - base
            - polygon
            - arbitrum
            - optimism
            - solana
        contract:
          type: string
        percentOffBps:
          type: number
        active:
          type: boolean
      required:
        - chain
        - contract
        - percentOffBps
      additionalProperties: false
    UpdateWeb3HolderPerkResponse:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contract:
          type: string
        collectionName:
          type: string
          nullable: true
        percentOffBps:
          type: number
        active:
          type: boolean
      required:
        - id
        - chain
        - contract
        - percentOffBps
        - active
      additionalProperties: false
    UpdateWeb3LaunchAllowlistResponse:
      type: object
      properties:
        count:
          type: number
        rejected:
          type: array
          items:
            type: string
        root:
          type: string
          nullable: true
        rootTx:
          $ref: "#/components/schemas/UpdateWeb3LaunchAllowlistResponseRootTx"
      required:
        - count
        - rejected
      additionalProperties: false
    UpdateWeb3LaunchAllowlistResponseRootTx:
      type: object
      properties:
        chain:
          type: string
        from:
          type: string
        to:
          type: string
        data:
          type: string
      required:
        - chain
        - from
        - to
        - data
      additionalProperties: false
      nullable: true
    UpdateWeb3LaunchResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWeb3LaunchesItem"
      required:
        - data
      additionalProperties: false
    UpdateWeb3MarketplaceKeyRequest:
      type: object
      properties:
        apiKey:
          type: string
      required:
        - apiKey
      additionalProperties: false
    UpdateWeb3StoreWalletRequest:
      type: object
      properties:
        autoImport:
          type: boolean
      required:
        - autoImport
      additionalProperties: false
    UpdateWeb3StoreWalletResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWeb3StoreWalletsItem"
      required:
        - data
      additionalProperties: false
    UpdateWeb3WalletResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWeb3WalletsItem"
      required:
        - data
      additionalProperties: false
    UpdateWebhookRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - json
            - teams
            - discord
            - slack
            - telegram
            - google_chat
            - mattermost
            - zapier
        url:
          type: string
        botToken:
          type: string
        chatId:
          type: string
        channel:
          type: string
        headers:
          type: object
          description: "json only: extra request headers (e.g. Authorization) sent with notify.* calls and http.request credentials."
          additionalProperties: {}
        events:
          type: array
          items:
            type: string
        description:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        eventDelivery:
          type: boolean
        enabled:
          type: boolean
      additionalProperties: false
    UpdateWebhookResponse:
      type: object
      properties:
        webhook:
          $ref: "#/components/schemas/UpdateWebhookResponseWebhook"
      required:
        - webhook
      additionalProperties: false
    UpdateWebhookResponseWebhook:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        description:
          type: string
          nullable: true
        storefrontId:
          type: string
          nullable: true
        kind:
          type: string
          enum:
            - json
            - teams
            - discord
            - slack
            - telegram
            - google_chat
            - mattermost
            - zapier
        enabled:
          type: boolean
        consecutiveFailures:
          type: number
        lastError:
          type: string
          nullable: true
        lastErrorAt:
          type: string
          format: date-time
          nullable: true
        events:
          type: array
          items:
            type: string
        url:
          type: string
        lastDeliveryAt:
          type: string
          format: date-time
          nullable: true
        oauthAppId:
          type: string
          nullable: true
        destination:
          type: object
          additionalProperties: {}
        eventDelivery:
          type: boolean
        hasBotToken:
          type: boolean
        headerNames:
          type: array
          items:
            type: string
          description: "json: the custom header NAMES (values are credentials and never leave the api)."
      required:
        - id
        - createdAt
        - kind
        - enabled
        - consecutiveFailures
        - events
        - url
        - destination
        - eventDelivery
        - hasBotToken
        - headerNames
      additionalProperties: false
    UpdateWholesaleBuyerTermRequest:
      type: object
      properties:
        netDays:
          type: number
        creditLimitCents:
          type: number
          nullable: true
        discountPercentBps:
          type: number
        active:
          type: boolean
      required:
        - netDays
      additionalProperties: false
    UpdateWholesaleBuyerTermResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWholesaleBuyerTermResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWholesaleBuyerTermResponseData:
      type: object
      properties:
        id:
          type: string
        active:
          type: boolean
        createdAt:
          type: string
          format: date-time
        buyerUserId:
          type: string
        sellerUserId:
          type: string
        netDays:
          type: number
        creditLimitCents:
          type: number
          nullable: true
        discountPercentBps:
          type: number
      required:
        - id
        - active
        - createdAt
        - buyerUserId
        - sellerUserId
        - netDays
        - discountPercentBps
      additionalProperties: false
    UpdateWholesaleCatalogItemByPlatformListingIdRequest:
      type: object
      properties:
        restockEta:
          type: string
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        verifiedOnly:
          type: boolean
          nullable: true
        priceVisibility:
          type: string
          enum:
            - approved
            - everyone
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          enum:
            - allow
            - no
            - preorder
          nullable: true
        wholesalePriceCents:
          type: number
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
      additionalProperties: false
    UpdateWholesaleCatalogItemRequest:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWholesaleCatalogItemRequestItems"
        platformListingIds:
          type: array
          items:
            type: string
        set:
          $ref: "#/components/schemas/UpdateWholesaleCatalogItemRequestSet"
      additionalProperties: false
    UpdateWholesaleCatalogItemRequestItems:
      type: object
      properties:
        platformListingId:
          type: string
        restockEta:
          type: string
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        verifiedOnly:
          type: boolean
          nullable: true
        priceVisibility:
          type: string
          enum:
            - approved
            - everyone
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          enum:
            - allow
            - no
            - preorder
          nullable: true
        wholesalePriceCents:
          type: number
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
      required:
        - platformListingId
      additionalProperties: false
    UpdateWholesaleCatalogItemRequestSet:
      type: object
      properties:
        pctOffRetailBps:
          type: number
        restockEta:
          type: string
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        verifiedOnly:
          type: boolean
          nullable: true
        priceVisibility:
          type: string
          enum:
            - approved
            - everyone
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          enum:
            - allow
            - no
            - preorder
          nullable: true
        wholesalePriceCents:
          type: number
          nullable: true
        minOrderQuantity:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
      additionalProperties: false
    UpdateWholesaleCatalogItemResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWholesaleCatalogItemResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWholesaleCatalogItemResponseData:
      type: object
      properties:
        updated:
          type: number
        missing:
          type: array
          items:
            type: string
      required:
        - updated
        - missing
      additionalProperties: false
    UpdateWholesaleCatalogRequest:
      type: object
      properties:
        minOrderQuantity:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
        restockEta:
          type: string
          nullable: true
        leadTimeDays:
          type: number
          nullable: true
        verifiedOnly:
          type: boolean
          nullable: true
        priceVisibility:
          type: string
          enum:
            - approved
            - everyone
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          enum:
            - allow
            - no
            - preorder
          nullable: true
        name:
          type: string
        slug:
          type: string
        description:
          type: string
        autoApprove:
          type: string
          enum:
            - all
            - never
            - verified
        requiresBusinessVerification:
          type: boolean
        coverImageUrl:
          type: string
          nullable: true
        listed:
          type: boolean
        directoryCategories:
          type: array
          items:
            type: string
        shipsFromRegion:
          type: string
        directoryBlurb:
          type: string
        active:
          type: boolean
        minOrderCents:
          type: number
          nullable: true
        visibility:
          type: string
          enum:
            - link
            - public
            - private
            - invite
            - public_prices_private
            - private_discoverable
      additionalProperties: false
    UpdateWholesaleDropRequest:
      type: object
      properties:
        status:
          type: string
          enum:
            - draft
            - cancelled
            - scheduled
        name:
          type: string
        description:
          type: string
          nullable: true
        coverImageUrl:
          type: string
          nullable: true
        dropAt:
          type: string
        endsAt:
          type: string
          nullable: true
        audience:
          type: string
          enum:
            - catalog
            - trade
        audienceCatalogId:
          type: string
          nullable: true
        depositBps:
          type: number
          nullable: true
        shipBy:
          type: string
          nullable: true
        balanceNetDays:
          type: number
          nullable: true
        perCustomerLimit:
          type: number
          nullable: true
        listingIds:
          type: array
          items:
            type: string
          description: Master listing ids (the seller's listings); each must be on Crossly.
        platformListingIds:
          type: array
          items:
            type: string
          description: Or the Crossly listing rows (platform listing ids, as the Hub's inventory picker has them).
      additionalProperties: false
    UpdateWholesaleGroupRequest:
      type: object
      properties:
        name:
          type: string
        discountPercentBps:
          type: number
        active:
          type: boolean
      additionalProperties: false
    UpdateWholesaleListingTierItem:
      type: object
      properties:
        minQuantity:
          type: number
        unitPriceCents:
          type: number
      required:
        - minQuantity
        - unitPriceCents
      additionalProperties: false
    UpdateWholesaleListingTierRequest:
      type: object
      properties:
        tiers:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWholesaleListingTierItem"
      required:
        - tiers
      additionalProperties: false
    UpdateWholesaleListingTierResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWholesaleListingTierItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    UpdateWholesaleProfileRequest:
      type: object
      properties:
        companyName:
          type: string
          nullable: true
        tagline:
          type: string
          nullable: true
        logoUrl:
          type: string
          nullable: true
        bannerUrl:
          type: string
          nullable: true
        contactEmail:
          type: string
          nullable: true
        yearFounded:
          type: number
          nullable: true
        brandsCarried:
          type: array
          items:
            type: string
        shipsFrom:
          $ref: "#/components/schemas/CreateStorefrontSitePreviewResponseDataTradeTermsShipsFrom"
        shipsFromRegion:
          type: string
          nullable: true
          description: "Deprecated: derived from shipsFrom. Still accepted from old clients when no shipsFrom is sent."
        leadTimeDays:
          type: number
          nullable: true
        minOrderCents:
          type: number
          nullable: true
        minFirstOrderCents:
          type: number
          nullable: true
        minReorderCents:
          type: number
          nullable: true
        tradeRewardsBps:
          type: number
          nullable: true
          description: 1123 — CBX rewards on trade orders, basis points of the order total (0–2000); null = no trade rewards.
        minOrderQuantity:
          type: number
          nullable: true
        casePack:
          type: number
          nullable: true
        maxPerOrder:
          type: number
          nullable: true
        backorder:
          type: string
          enum:
            - allow
            - no
            - preorder
          nullable: true
        priceVisibility:
          type: string
          enum:
            - approved
            - everyone
          nullable: true
        returnPresetId:
          type: string
          nullable: true
        paymentPresetId:
          type: string
          nullable: true
        shippingPresetId:
          type: string
          nullable: true
        paymentTermsOffered:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWholesaleProfileRequestPaymentTermsOfferedItem"
          description: "Deprecated: superseded by the payment preset."
        returnPolicy:
          type: string
          nullable: true
          description: "Deprecated: saved into this store's \"Wholesale returns\" return preset."
        invoicingEnabled:
          type: boolean
        invoiceSettings:
          $ref: "#/components/schemas/UpdateWholesaleProfileRequestInvoiceSettings"
        directoryListed:
          type: boolean
        directoryCategories:
          type: array
          items:
            type: string
        directoryBlurb:
          type: string
          nullable: true
        requiresBusinessVerification:
          type: boolean
        buyerRequirements:
          $ref: "#/components/schemas/UpdateWholesaleProfileRequestBuyerRequirements"
        acceptsFunding:
          type: boolean
          description: "1131: accept Crossly Funding — buyers can pay with their funding line (docs/FUNDING.md §4.A3)."
      additionalProperties: false
    UpdateWholesaleProfileRequestBuyerRequirements:
      type: object
      properties:
        requireResaleCert:
          type: boolean
        certStates:
          type: array
          items:
            type: string
        requireTaxId:
          type: boolean
        questions:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWholesaleProfileRequestBuyerRequirementsQuestions"
      additionalProperties: false
      nullable: true
    UpdateWholesaleProfileRequestBuyerRequirementsQuestions:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        type:
          type: string
          enum:
            - number
            - select
            - text
        options:
          type: array
          items:
            type: string
        required:
          type: boolean
      required:
        - id
        - label
        - type
      additionalProperties: false
    UpdateWholesaleProfileRequestInvoiceSettings:
      type: object
      properties:
        prefix:
          type: string
        nextNumber:
          type: number
        autoSend:
          type: boolean
        reminderDays:
          type: array
          items:
            type: number
        lateFeeBps:
          type: number
          nullable: true
        statementDay:
          type: number
          nullable: true
        defaultNetDays:
          type: number
        ccEmails:
          type: array
          items:
            type: string
        earlyPayDiscountBps:
          type: number
          nullable: true
        earlyPayDays:
          type: number
          nullable: true
      additionalProperties: false
    UpdateWholesaleProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWholesaleOverviewResponseDataProfile"
      required:
        - data
      additionalProperties: false
    UpdateWholesaleReserveRequest:
      type: object
      properties:
        units:
          type: number
      required:
        - units
      additionalProperties: false
    UpdateWorkflowRequest:
      type: object
      required:
        - version
      properties:
        version:
          type: integer
          minimum: 1
          description: The version you read (WorkflowRecord.version).
        name:
          type: string
          maxLength: 200
          description: New name.
        description:
          type: string
          maxLength: 5000
          description: New description.
          nullable: true
        tags:
          type: array
          items:
            type: string
          maxItems: 30
          description: Replaces the tags.
        graph:
          type: object
          description: "A WorkflowGraph: { version: 1, nodes: [{ id, type, name, params, position }], edges: [{ id, source, sourcePort, target, targetPort }], notes?, settings? }. Node types and their params come from GET /v1/workflows/catalog."
          additionalProperties: {}
    UpdateWorldAttendantRequest:
      type: object
      properties:
        name:
          type: string
        brain:
          type: string
          enum:
            - rules
            - agent
            - byok
        enabled:
          type: boolean
        appearance:
          $ref: "#/components/schemas/UpdateWorldAttendantRequestAppearance"
        personality:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantPersonality"
        knowledge:
          $ref: "#/components/schemas/UpdateWorldAttendantRequestKnowledge"
        languages:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldAttendantRequestLanguagesItem"
        hours:
          $ref: "#/components/schemas/UpdateWorldAttendantRequestHours"
        allowedActions:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantAllowedActions"
        showroomIds:
          type: array
          items:
            type: string
      required:
        - name
        - brain
        - enabled
        - appearance
        - personality
        - knowledge
        - languages
        - allowedActions
        - showroomIds
      additionalProperties: false
    UpdateWorldAttendantRequestAppearance:
      type: object
      properties:
        avatarModel:
          type: string
          enum:
            - humanoid
            - robot
            - mannequin
            - humanoid_tall
            - humanoid_short
        outfit:
          type: string
          enum:
            - shop_apron
            - suit
            - streetwear
            - vintage
            - lab_coat
            - uniform
        colours:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantAppearanceColours"
      required:
        - avatarModel
        - outfit
        - colours
      additionalProperties: false
    UpdateWorldAttendantRequestHours:
      type: object
      properties:
        timezone:
          type: string
        days:
          $ref: "#/components/schemas/UpdateWorldAttendantRequestHoursDays"
      required:
        - timezone
        - days
      additionalProperties: false
      nullable: true
    UpdateWorldAttendantRequestHoursDays:
      type: object
      properties:
        "0":
          $ref: "#/components/schemas/OpenClose"
        "1":
          $ref: "#/components/schemas/OpenClose"
        "2":
          $ref: "#/components/schemas/OpenClose"
        "3":
          $ref: "#/components/schemas/OpenClose"
        "4":
          $ref: "#/components/schemas/OpenClose"
        "5":
          $ref: "#/components/schemas/OpenClose"
        "6":
          $ref: "#/components/schemas/OpenClose"
      required:
        - "0"
        - "1"
        - "2"
        - "3"
        - "4"
        - "5"
        - "6"
      additionalProperties: false
    UpdateWorldAttendantRequestKnowledge:
      type: object
      properties:
        listings:
          type: boolean
        policies:
          type: boolean
        faqs:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldAttendantRequestKnowledgeFaqs"
      required:
        - listings
        - policies
        - faqs
      additionalProperties: false
    UpdateWorldAttendantRequestKnowledgeFaqs:
      type: object
      properties:
        q:
          type: string
        a:
          type: string
      required:
        - q
        - a
      additionalProperties: false
    UpdateWorldAttendantResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldAttendantResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldAttendantResponseData:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        name:
          type: string
        brain:
          type: string
          enum:
            - rules
            - agent
            - byok
        enabled:
          type: boolean
        appearance:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantAppearance"
        personality:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantPersonality"
        knowledge:
          $ref: "#/components/schemas/UpdateWorldAttendantRequestKnowledge"
        languages:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldAttendantResponseDataLanguagesItem"
        hours:
          $ref: "#/components/schemas/UpdateWorldAttendantResponseDataHours"
        allowedActions:
          $ref: "#/components/schemas/GetWorldAttendantResponseDataAttendantAllowedActions"
        showroomIds:
          type: array
          items:
            type: string
          description: The showrooms (spatial_scenes ids) it stands in.
      required:
        - id
        - createdAt
        - updatedAt
        - name
        - brain
        - enabled
        - appearance
        - personality
        - knowledge
        - languages
        - allowedActions
        - showroomIds
      additionalProperties: false
    UpdateWorldAttendantResponseDataHours:
      type: object
      properties:
        timezone:
          type: string
        days:
          $ref: "#/components/schemas/UpdateWorldAttendantResponseDataHoursDays"
      required:
        - timezone
        - days
      additionalProperties: false
      nullable: true
    UpdateWorldAttendantResponseDataHoursDays:
      type: object
      properties:
        "0":
          $ref: "#/components/schemas/OpenClose2"
        "1":
          $ref: "#/components/schemas/OpenClose2"
        "2":
          $ref: "#/components/schemas/OpenClose2"
        "3":
          $ref: "#/components/schemas/OpenClose2"
        "4":
          $ref: "#/components/schemas/OpenClose2"
        "5":
          $ref: "#/components/schemas/OpenClose2"
        "6":
          $ref: "#/components/schemas/OpenClose2"
      additionalProperties: false
    UpdateWorldAvatarIdentityRequest:
      type: object
      properties:
        choice:
          type: string
          enum:
            - anonymous
            - named
      required:
        - choice
      additionalProperties: false
    UpdateWorldAvatarIdentityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldAvatarIdentityResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldAvatarIdentityResponseData:
      type: object
      properties:
        choice:
          type: string
          enum:
            - anonymous
            - named
        appliesOnNextJoin:
          type: boolean
      required:
        - choice
        - appliesOnNextJoin
      additionalProperties: false
    UpdateWorldAvatarLookRequest:
      type: object
      properties:
        look: {}
        appearance:
          type: object
          additionalProperties: {}
      required:
        - look
        - appearance
      additionalProperties: false
    UpdateWorldAvatarLookResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldAvatarLookResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldAvatarLookResponseData:
      type: object
      properties:
        look:
          $ref: "#/components/schemas/UpdateWorldAvatarLookResponseDataLook"
      required:
        - look
      additionalProperties: false
    UpdateWorldAvatarLookResponseDataLook:
      type: object
      properties:
        look:
          $ref: "#/components/schemas/GetWorldAvatarLookResponseDataLookLook"
        appearance:
          $ref: "#/components/schemas/ListWorldOutfitsItemAppearance"
      required:
        - appearance
      additionalProperties: false
    UpdateWorldBadgeProfileRequest:
      type: object
      properties:
        show:
          type: boolean
      required:
        - show
      additionalProperties: false
    UpdateWorldBadgeProfileResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldBadgeProfileResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldBadgeProfileResponseData:
      type: object
      properties:
        showOnProfile:
          type: boolean
      required:
        - showOnProfile
      additionalProperties: false
    UpdateWorldCapabilityWearRequest:
      type: object
      properties:
        slot:
          type: string
        refId:
          type: string
          nullable: true
      required:
        - slot
        - refId
      additionalProperties: false
    UpdateWorldControlRequest:
      type: object
      properties:
        prefs:
          type: object
          additionalProperties: {}
        tutorialSeen:
          type: boolean
      additionalProperties: false
    UpdateWorldConventionHallRequest:
      type: object
      properties:
        doc: {}
        expectedVersion:
          type: number
      required:
        - doc
        - expectedVersion
      additionalProperties: false
    UpdateWorldConventionHallResponse:
      type: object
      properties:
        version:
          type: number
        problems:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldConventionHallResponseProblems"
      required:
        - version
        - problems
      additionalProperties: false
    UpdateWorldConventionMyBoothResponse:
      type: object
      properties:
        listingIds:
          type: array
          items:
            type: string
        capacity:
          type: number
      required:
        - listingIds
        - capacity
      additionalProperties: false
    UpdateWorldConventionStatusRequest:
      type: object
      properties:
        status:
          type: string
          enum:
            - live
            - cancelled
            - open
            - ended
      required:
        - status
      additionalProperties: false
    UpdateWorldConventionStatusResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldConventionStatusRequest"
      required:
        - data
      additionalProperties: false
    UpdateWorldEmoteWheelRequest:
      type: object
      required:
        - wheel
      properties:
        wheel:
          type: array
          maxItems: 8
          items:
            type: string
            maxLength: 40
            nullable: true
    UpdateWorldEmoteWheelResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldEmoteWheelResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldEmoteWheelResponseData:
      type: object
      properties:
        wheel:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldEmoteWheelResponseDataWheelItem"
      required:
        - wheel
      additionalProperties: false
    UpdateWorldExperienceAccessLimitRequest:
      type: object
      properties:
        crewOnly:
          type: boolean
        countryMode:
          type: string
          enum:
            - allow
            - all
            - block
        countries:
          type: array
          items:
            type: string
      additionalProperties: false
    UpdateWorldExperienceAlertSettingRequest:
      type: object
      properties:
        quietStart:
          type: number
          nullable: true
        quietEnd:
          type: number
          nullable: true
        utcOffsetMin:
          type: number
        rules:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldExperienceAlertSettingRequestRules"
      additionalProperties: false
    UpdateWorldExperienceAlertSettingRequestRules:
      type: object
      properties:
        kind:
          type: string
          enum:
            - crash_spike
            - script_error_spike
            - retention_drop
            - revenue_drop
            - revenue_spike
            - economy_inflation
            - experiment_guardrail
        enabled:
          type: boolean
        threshold:
          type: number
        inbox:
          type: boolean
        webhook:
          type: boolean
      required:
        - kind
      additionalProperties: false
    UpdateWorldExperienceBadgeRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        iconSha256:
          type: string
          nullable: true
        enabled:
          type: boolean
      additionalProperties: false
    UpdateWorldExperienceChatSettingRequest:
      type: object
      properties:
        textChat:
          type: boolean
        filter:
          type: string
          enum:
            - standard
            - strict
      additionalProperties: false
    UpdateWorldExperienceCollaboratorRequest:
      type: object
      properties:
        role:
          type: string
          enum:
            - admin
            - editor
            - scripter
            - builder
            - tester
            - analyst
      required:
        - role
      additionalProperties: false
    UpdateWorldExperienceConfigRequest:
      type: object
      properties:
        values:
          type: object
          additionalProperties: {}
        rules:
          type: array
          items: {}
        baseVersion:
          type: number
          description: The version you loaded; a newer save elsewhere answers 409 config_conflict.
        note:
          type: string
      additionalProperties: false
    UpdateWorldExperienceConfigValueRequest:
      type: object
      properties:
        set:
          type: object
          additionalProperties: {}
        remove:
          type: array
          items:
            type: string
        note:
          type: string
      additionalProperties: false
    UpdateWorldExperienceDatastoreEntryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldExperienceDatastoreEntryResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperienceDatastoreEntryResponseData:
      type: object
      properties:
        store:
          type: string
        scope:
          type: string
        key:
          type: string
        version:
          type: number
        sizeBytes:
          type: number
        userIds:
          type: array
          items:
            type: string
        attributes:
          type: object
          additionalProperties: {}
        updatedAt:
          type: string
      required:
        - store
        - scope
        - key
        - version
        - sizeBytes
        - userIds
        - attributes
        - updatedAt
      additionalProperties: false
    UpdateWorldExperienceEventRequest:
      type: object
      properties:
        name:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        values:
          type: object
          additionalProperties: {}
        topic:
          type: string
          nullable: true
      additionalProperties: false
    UpdateWorldExperienceExperienceEventRequest:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        startsAt:
          type: string
        endsAt:
          type: string
        thumbnailUrl:
          type: string
          nullable: true
        placeId:
          type: string
          nullable: true
        liveEventId:
          type: string
          nullable: true
      additionalProperties: false
    UpdateWorldExperienceExperimentRequest:
      type: object
      properties:
        name:
          type: string
        primaryMetric:
          type: string
        variants:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceExperimentRequestVariants"
        minDays:
          type: number
        hypothesis:
          type: string
        targeting:
          type: object
          additionalProperties: {}
        guardrails:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperienceExperimentRequestGuardrails"
        holdoutPct:
          type: number
      additionalProperties: false
    UpdateWorldExperienceGalleryRequest:
      type: object
      properties:
        caption:
          type: string
      additionalProperties: false
    UpdateWorldExperienceGalleryRoleItem:
      type: object
      properties:
        status:
          type: string
          enum:
            - pending
            - rejected
            - approved
        position:
          type: number
        reviewNote:
          type: string
          nullable: true
        bytes:
          type: number
        submittedAt:
          type: string
        decidedAt:
          type: string
          nullable: true
        id:
          type: string
        kind:
          type: string
          enum:
            - image
            - video
        url:
          type: string
          description: The file on Crossly's CDN.
        posterUrl:
          type: string
          nullable: true
          description: "A video's still (null: none; show the game's art)."
        caption:
          type: string
        role:
          type: string
          enum:
            - trailer
            - thumbnail
            - icon
            - gallery
          nullable: true
          description: "Where it shows (1176): the gallery, or the game's icon / thumbnail / trailer (@crosslister/shared/carnival media.ts)."
        external:
          $ref: "#/components/schemas/UpdateWorldExperienceGalleryRoleItemExternal"
      required:
        - status
        - position
        - bytes
        - submittedAt
        - id
        - kind
        - url
        - caption
      additionalProperties: false
    UpdateWorldExperienceGalleryRoleItemExternal:
      type: object
      properties:
        embedUrl:
          type: string
        provider:
          type: string
          enum:
            - youtube
            - vimeo
        id:
          type: string
      required:
        - embedUrl
        - provider
        - id
      additionalProperties: false
      nullable: true
      description: "A YouTube / Vimeo trailer link (`url` is its canonical watch address): play `embedUrl` in a sandboxed iframe, only after a click."
    UpdateWorldExperienceGalleryRoleRequest:
      type: object
      properties:
        role:
          type: string
          enum:
            - trailer
            - thumbnail
            - icon
            - gallery
      required:
        - role
      additionalProperties: false
    UpdateWorldExperienceGalleryRoleResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldExperienceGalleryRoleItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    UpdateWorldExperienceGalleryTrailerUrlRequest:
      type: object
      properties:
        url:
          type: string
      required:
        - url
      additionalProperties: false
    UpdateWorldExperienceHttpSecretRequest:
      type: object
      properties:
        value:
          type: string
        hosts:
          type: array
          items:
            type: string
      required:
        - value
      additionalProperties: false
    UpdateWorldExperienceHttpSecretResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldExperienceHttpSecretResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperienceHttpSecretResponseData:
      type: object
      properties:
        name:
          type: string
        hosts:
          type: array
          items:
            type: string
        updatedAt:
          type: string
      required:
        - name
        - hosts
        - updatedAt
      additionalProperties: false
    UpdateWorldExperienceLocalizationRequest:
      type: object
      properties:
        locales:
          type: object
          additionalProperties: {}
      required:
        - locales
      additionalProperties: false
    UpdateWorldExperienceMaturityResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldExperienceMaturityResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperienceMaturityResponseData:
      type: object
      properties:
        questions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceMaturityResponseDataQuestions"
        answers:
          $ref: "#/components/schemas/ListWorldExperiencePlacePublishesItemRatingAnswers"
        published:
          $ref: "#/components/schemas/GetWorldExperienceMaturityResponseDataPublished"
        pending:
          $ref: "#/components/schemas/GetWorldExperienceMaturityResponseDataPending"
        takesEffect:
          type: string
          enum:
            - now
            - next_publish
      required:
        - questions
        - published
        - takesEffect
      additionalProperties: false
    UpdateWorldExperienceMemoryMapResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldExperienceMemoryMapResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperienceMemoryMapResponseData:
      type: object
      properties:
        key:
          type: string
        version:
          type: number
        expiresAt:
          type: string
      required:
        - key
        - version
        - expiresAt
      additionalProperties: false
    UpdateWorldExperienceNotificationOptInRequest:
      type: object
      properties:
        optedIn:
          type: boolean
        source:
          type: string
          enum:
            - settings
            - event
            - game
            - detail
        timeZone:
          type: string
          nullable: true
      required:
        - optedIn
      additionalProperties: false
    UpdateWorldExperienceNotificationTemplateResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperienceNotificationTemplatesItem"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperiencePlaceCollabScriptResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperiencePlaceCollabScriptsItem"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperiencePlaceDraftRequest:
      type: object
      properties:
        project: {}
        baseRevision:
          type: number
      required:
        - project
        - baseRevision
      additionalProperties: false
    UpdateWorldExperiencePlacePackageRequest:
      type: object
      properties:
        autoUpdate:
          type: boolean
      required:
        - autoUpdate
      additionalProperties: false
    UpdateWorldExperiencePlacePackageResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldExperiencePlacePackageResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperiencePlacePackageResponseData:
      type: object
      properties:
        nodeId:
          type: string
        autoUpdate:
          type: boolean
      required:
        - nodeId
        - autoUpdate
      additionalProperties: false
    UpdateWorldExperiencePlaceStudioScriptRequest:
      type: object
      properties:
        path:
          type: string
        source:
          type: string
      required:
        - path
        - source
      additionalProperties: false
    UpdateWorldExperiencePlaceStudioScriptResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldExperiencePlaceStudioScriptResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperiencePlaceStudioScriptResponseData:
      type: object
      properties:
        path:
          type: string
        nodeId:
          type: string
        saved:
          type: boolean
        stale:
          type: boolean
        lint:
          type: array
          items:
            $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioScriptCommitResponseDataLint"
        diff:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldExperiencePlaceStudioScriptResponseDataDiff"
      required:
        - path
        - nodeId
        - saved
        - stale
        - lint
        - diff
      additionalProperties: false
    UpdateWorldExperiencePlaceStudioScriptResponseDataDiff:
      type: object
      properties:
        op:
          type: string
          enum:
            - "-"
            - " "
            - +
          x-enum-varnames:
            - minus
            - space
            - plus
        text:
          type: string
      required:
        - op
        - text
      additionalProperties: false
    UpdateWorldExperiencePlaceVersionNoteRequest:
      type: object
      properties:
        notes:
          type: string
      required:
        - notes
      additionalProperties: false
    UpdateWorldExperiencePlaceVersionNoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldExperiencePlaceVersionNoteResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperiencePlaceVersionNoteResponseData:
      type: object
      properties:
        id:
          type: string
        number:
          type: number
        notes:
          type: string
      required:
        - id
        - number
        - notes
      additionalProperties: false
    UpdateWorldExperienceProductRequest:
      type: object
      properties:
        kind:
          type: string
          enum:
            - product
            - pass
            - subscription
            - private_server
            - paid_access
        name:
          type: string
        description:
          type: string
        iconUrl:
          type: string
          nullable: true
        priceCents:
          type: number
        regionalPrices:
          type: object
          additionalProperties: {}
        placeId:
          type: string
        paidRandom:
          type: boolean
        hourlyLimit:
          type: number
        active:
          type: boolean
        tradeable:
          type: boolean
        dropTableId:
          type: string
      additionalProperties: false
    UpdateWorldExperiencePublishRequest:
      type: object
      properties:
        details:
          $ref: "#/components/schemas/UpdateWorldExperiencePublishRequestDetails"
        ratingAnswers:
          type: object
          additionalProperties: {}
        access:
          type: string
        moneyAcknowledged:
          type: boolean
      additionalProperties: false
    UpdateWorldExperiencePublishRequestDetails:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        genre:
          type: string
        tags:
          type: array
          items:
            type: string
        maxPlayers:
          type: number
        devices:
          type: array
          items:
            type: string
        iconUrl:
          type: string
          nullable: true
        notes:
          type: string
      additionalProperties: false
    UpdateWorldExperienceRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        genre:
          type: string
        rating:
          type: string
          enum:
            - everyone
            - teen
            - mature
        iconUrl:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
          description: Carnival Studio › Details (services/worlds/write.ts cleanLists validates the values).
        devices:
          type: array
          items:
            type: string
        languages:
          type: array
          items:
            type: string
        socialLinks:
          type: array
          items:
            $ref: "#/components/schemas/KindUrl"
      additionalProperties: false
    UpdateWorldExperienceRewardDefinitionRequest:
      type: object
      properties:
        key:
          type: string
        kind:
          type: string
          enum:
            - item
            - cosm
            - decor
            - cbx
            - pin
            - emote
        name:
          type: string
        description:
          type: string
        imageUrl:
          type: string
          nullable: true
        cosmeticId:
          type: string
        amount:
          type: number
        perPlayerDaily:
          type: number
        active:
          type: boolean
      additionalProperties: false
    UpdateWorldExperienceRewardPoolRequest:
      type: object
      properties:
        dailyCapCents:
          type: number
        playerDailyCents:
          type: number
        playerDailyGrants:
          type: number
      additionalProperties: false
    UpdateWorldExperienceRewardPoolResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/CreateWorldExperienceRewardDepositResponseDataPool"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperienceShowcaseResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldExperienceShowcaseResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldExperienceShowcaseResponseData:
      type: object
      properties:
        showcase:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceShowcaseResponseDataShowcase"
      required:
        - showcase
      additionalProperties: false
    UpdateWorldExperienceSplitRequest:
      type: object
      properties:
        shares:
          type: array
          items:
            $ref: "#/components/schemas/UpdateWorldExperienceSplitRequestShares"
      required:
        - shares
      additionalProperties: false
    UpdateWorldExperienceSplitRequestShares:
      type: object
      properties:
        userId:
          type: string
        bps:
          type: number
      required:
        - userId
        - bps
      additionalProperties: false
    UpdateWorldFavoriteRequest:
      type: object
      properties:
        key:
          type: string
        favorite:
          type: boolean
      required:
        - key
        - favorite
      additionalProperties: false
    UpdateWorldFitValueShareRequest:
      type: object
      properties:
        share:
          type: boolean
      required:
        - share
      additionalProperties: false
    UpdateWorldFitValueShareResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldFitValueShareRequest"
      required:
        - data
      additionalProperties: false
    UpdateWorldHomeBuilderRequest:
      type: object
      required:
        - userIds
      properties:
        userIds:
          type: array
          maxItems: 4
          items:
            type: string
            format: uuid
    UpdateWorldHomeBuilderResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldHomeBuilderResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldHomeBuilderResponseData:
      type: object
      properties:
        builders:
          type: array
          items:
            $ref: "#/components/schemas/ListHomeMineBuildersItem"
      required:
        - builders
      additionalProperties: false
    UpdateWorldHomeLayoutRequest:
      type: object
      properties:
        layout:
          type: array
          items: {}
      required:
        - layout
      additionalProperties: false
    UpdateWorldHomeRequest:
      type: object
      properties:
        privacy:
          type: string
          enum:
            - open
            - friends
            - locked
        theme:
          type: string
          enum:
            - studio
            - noir
            - daylight
            - vitrine
            - storybook
        decor:
          $ref: "#/components/schemas/UpdateWorldHomeRequestDecor"
      additionalProperties: false
    UpdateWorldHomeRequestDecor:
      type: object
      properties:
        wall:
          type: string
          nullable: true
        floor:
          type: string
          nullable: true
        mood:
          type: string
          nullable: true
      additionalProperties: false
      nullable: true
    UpdateWorldInteractiveDesignDraftRequest:
      type: object
      properties:
        source:
          type: string
      required:
        - source
      additionalProperties: false
    UpdateWorldInteractiveDesignDraftResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldInteractiveDesignDraftResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldInteractiveDesignDraftResponseData:
      type: object
      properties:
        validation:
          $ref: "#/components/schemas/GetWorldInteractiveDesignResponseDataValidation"
        savedAt:
          type: string
          format: date-time
      required:
        - validation
        - savedAt
      additionalProperties: false
    UpdateWorldListingHoldersOnlyResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldListingHoldersOnlyResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldListingHoldersOnlyResponseData:
      type: object
      properties:
        listingId:
          type: string
        holdersOnly:
          type: boolean
      required:
        - listingId
        - holdersOnly
      additionalProperties: false
    UpdateWorldMatureRequest:
      type: object
      properties:
        showMature:
          type: boolean
      required:
        - showMature
      additionalProperties: false
    UpdateWorldMePrefRequest:
      type: object
      properties:
        shareWalletAddress:
          type: boolean
      required:
        - shareWalletAddress
      additionalProperties: false
    UpdateWorldOutfitRequest:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 32
    UpdateWorldOutfitResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldOutfitsItem"
      required:
        - data
      additionalProperties: false
    UpdateWorldPackageRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
      additionalProperties: false
    UpdateWorldParentalChildrenRequest:
      type: object
      properties:
        pin:
          type: string
        settings:
          $ref: "#/components/schemas/UpdateWorldParentalChildrenRequestSettings"
      required:
        - pin
        - settings
      additionalProperties: false
    UpdateWorldParentalChildrenRequestSettings:
      type: object
      properties:
        maxRating:
          type: string
          enum:
            - everyone
            - teen
        chat:
          type: string
          enum:
            - friends
            - off
            - on
        monthlySpendLimitCents:
          type: number
          nullable: true
      additionalProperties: false
    UpdateWorldPetActiveRequest:
      type: object
      required:
        - kind
      properties:
        kind:
          type: string
          enum:
            - cat
            - dog
            - slab_bot
          nullable: true
    UpdateWorldPetActiveResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldPetActiveResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldPetActiveResponseData:
      type: object
      properties:
        active:
          type: string
          enum:
            - cat
            - dog
            - slab_bot
          nullable: true
      additionalProperties: false
    UpdateWorldPropertyPlotPhotoRequest:
      type: object
      properties:
        url:
          type: string
        buildKey:
          type: string
        source:
          type: string
          enum:
            - capture
            - render
      required:
        - url
        - buildKey
      additionalProperties: false
    UpdateWorldPropertyPlotPhotoResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldPropertyPlotPhotoResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldPropertyPlotPhotoResponseData:
      type: object
      properties:
        photo:
          $ref: "#/components/schemas/GetWorldPropertyRentalResponseDataPhoto"
      required:
        - photo
      additionalProperties: false
    UpdateWorldPropertyRentingRequest:
      type: object
      properties:
        autopay:
          type: boolean
      required:
        - autopay
      additionalProperties: false
    UpdateWorldPropertyRentingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldPropertyRentingRequest"
      required:
        - data
      additionalProperties: false
    UpdateWorldQuestPinRequest:
      type: object
      required:
        - pin
      properties:
        pin:
          type: string
          maxLength: 40
          nullable: true
    UpdateWorldQuestPinResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldQuestPinResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldQuestPinResponseData:
      type: object
      properties:
        wearing:
          type: string
          nullable: true
      additionalProperties: false
    UpdateWorldRoomHolderGateResponse:
      type: object
      properties:
        gate:
          $ref: "#/components/schemas/UpdateWorldRoomHolderGateResponseGate"
      additionalProperties: false
    UpdateWorldRoomHolderGateResponseGate:
      type: object
      properties:
        chain:
          type: string
        contract:
          type: string
        name:
          type: string
          nullable: true
      required:
        - chain
        - contract
      additionalProperties: false
      nullable: true
    UpdateWorldSpaceRequest:
      type: object
      properties:
        name:
          type: string
        about:
          type: string
        membership:
          type: string
          enum:
            - open
            - request
            - invite
      additionalProperties: false
    UpdateWorldSpaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldSpaceResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldSpaceResponseData:
      type: object
      properties:
        updated:
          type: boolean
      required:
        - updated
      additionalProperties: false
    UpdateWorldStallBookingBoothResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldStallBookingBoothResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldStallBookingBoothResponseData:
      type: object
      properties:
        id:
          type: string
        booth:
          $ref: "#/components/schemas/CreateStallBookResponseBookingBooth"
      required:
        - id
      additionalProperties: false
    UpdateWorldStreetOwnedThemeRequest:
      type: object
      properties:
        theme:
          type: string
          nullable: true
      required:
        - theme
      additionalProperties: false
    UpdateWorldStreetOwnedThemeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldStreetOwnedThemeResponseData"
      required:
        - data
      additionalProperties: false
    UpdateWorldStreetOwnedThemeResponseData:
      type: object
      properties:
        theme:
          type: string
          enum:
            - sneaker-row
            - card-district
            - vintage-alley
            - vinyl-lane
          nullable: true
      additionalProperties: false
    UpdateWorldVoteRequest:
      type: object
      properties:
        key:
          type: string
        vote:
          type: string
          enum:
            - up
            - down
          nullable: true
      required:
        - key
        - vote
      additionalProperties: false
    UpdatedResponse:
      type: object
      properties:
        updated:
          type: number
      required:
        - updated
      additionalProperties: false
    UrlExpiresInSecondsResponse:
      type: object
      properties:
        url:
          type: string
        expiresInSeconds:
          type: number
          description: How long the link stays valid. Never store it.
      required:
        - url
        - expiresInSeconds
      additionalProperties: false
    UserIdName:
      type: object
      properties:
        userId:
          type: string
        name:
          type: string
      required:
        - userId
        - name
      additionalProperties: false
    UserIdRequest:
      type: object
      properties:
        userId:
          type: string
      required:
        - userId
      additionalProperties: false
    UsernameHref:
      type: object
      properties:
        username:
          type: string
        href:
          type: string
      required:
        - username
        - href
      additionalProperties: false
      nullable: true
      description: The seller behind a Worlds experience, linking back to their shop (buyer-led discovery).
    ValueConfidence:
      type: object
      properties:
        value:
          type: string
        confidence:
          type: number
      required:
        - value
        - confidence
      additionalProperties: false
      nullable: true
    ValueSource:
      type: object
      properties:
        value:
          type: number
          nullable: true
        source:
          type: string
          enum:
            - default
            - item
            - catalog
            - profile
      required:
        - source
      additionalProperties: false
    ValueSource2:
      type: object
      properties:
        value:
          type: string
          nullable: true
        source:
          type: string
          enum:
            - default
            - item
            - catalog
            - profile
      required:
        - source
      additionalProperties: false
    WH:
      type: object
      properties:
        w:
          type: number
        h:
          type: number
      required:
        - w
        - h
      additionalProperties: false
    WalletResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/ListWalletDefaultsItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    WholesaleInvoiceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/WholesaleInvoiceResponseData"
      required:
        - data
      additionalProperties: false
    WholesaleInvoiceResponseData:
      type: object
      properties:
        creditNotes:
          type: array
          items:
            $ref: "#/components/schemas/WholesaleInvoiceResponseDataCreditNotes"
        writeOffs:
          type: array
          items:
            $ref: "#/components/schemas/WholesaleInvoiceResponseDataWriteOffs"
        lateFees:
          type: array
          items:
            $ref: "#/components/schemas/WholesaleInvoiceResponseDataLateFees"
        payments:
          type: array
          items:
            $ref: "#/components/schemas/WholesaleInvoiceResponseDataPayments"
        buyerEmail:
          type: string
          nullable: true
        buyerName:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        lines:
          type: array
          items:
            $ref: "#/components/schemas/WholesaleInvoiceResponseDataLines"
        id:
          type: string
        kind:
          type: string
        invoiceNumber:
          type: string
        status:
          type: string
        buyerUserId:
          type: string
        sellerUserId:
          type: string
        orderId:
          type: string
          nullable: true
        poReference:
          type: string
          nullable: true
        netDays:
          type: number
          nullable: true
        subtotalCents:
          type: number
        shippingCents:
          type: number
        taxCents:
          type: number
        totalCents:
          type: number
        amountPaidCents:
          type: number
        creditedCents:
          type: number
          description: "W5: the rest of the ledger (credit notes, write-off, late fee, early-pay discount)."
        writtenOffCents:
          type: number
        lateFeeCents:
          type: number
        earlyPayDiscountCents:
          type: number
        balanceDueCents:
          type: number
        platformFeeCents:
          type: number
        platformDueStatus:
          type: string
          nullable: true
        paidMethod:
          type: string
          nullable: true
        paidReference:
          type: string
          nullable: true
        dueAt:
          type: string
          format: date-time
          nullable: true
        paidAt:
          type: string
          format: date-time
          nullable: true
        sentAt:
          type: string
          format: date-time
          nullable: true
        reminderCount:
          type: number
        createdAt:
          type: string
          format: date-time
      required:
        - creditNotes
        - writeOffs
        - lateFees
        - payments
        - lines
        - id
        - kind
        - invoiceNumber
        - status
        - buyerUserId
        - sellerUserId
        - subtotalCents
        - shippingCents
        - taxCents
        - totalCents
        - amountPaidCents
        - creditedCents
        - writtenOffCents
        - lateFeeCents
        - earlyPayDiscountCents
        - balanceDueCents
        - platformFeeCents
        - reminderCount
        - createdAt
      additionalProperties: false
    WholesaleInvoiceResponseDataCreditNotes:
      type: object
      properties:
        id:
          type: string
        number:
          type: string
          nullable: true
        amountCents:
          type: number
        reason:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - amountCents
        - createdAt
      additionalProperties: false
    WholesaleInvoiceResponseDataLateFees:
      type: object
      properties:
        id:
          type: string
        amountCents:
          type: number
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - amountCents
        - createdAt
      additionalProperties: false
    WholesaleInvoiceResponseDataLines:
      type: object
      properties:
        title:
          type: string
          nullable: true
        quantity:
          type: number
        unitPriceCents:
          type: number
          nullable: true
        platformListingId:
          type: string
          nullable: true
      required:
        - quantity
      additionalProperties: false
    WholesaleInvoiceResponseDataPayments:
      type: object
      properties:
        id:
          type: string
        amountCents:
          type: number
        method:
          type: string
        reference:
          type: string
          nullable: true
        earlyPayDiscountCents:
          type: number
        recordedBy:
          type: string
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - amountCents
        - method
        - earlyPayDiscountCents
        - recordedBy
        - createdAt
      additionalProperties: false
    WholesaleInvoiceResponseDataWriteOffs:
      type: object
      properties:
        id:
          type: string
        amountCents:
          type: number
        note:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - amountCents
        - createdAt
      additionalProperties: false
    WholesaleQuoteResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWholesaleQuotesItem"
      required:
        - data
      additionalProperties: false
    WithdrawnObject:
      type: object
      properties:
        withdrawn:
          type: boolean
      required:
        - withdrawn
      additionalProperties: false
    WorkflowResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/WorkflowResponseData"
      required:
        - data
      additionalProperties: false
    WorkflowResponseData:
      type: object
      properties:
        workflow:
          $ref: "#/components/schemas/WorkflowResponseDataWorkflow"
        issues:
          type: array
          items:
            $ref: "#/components/schemas/WorkflowResponseDataIssues"
      required:
        - workflow
        - issues
      additionalProperties: false
    WorkflowResponseDataIssues:
      type: object
      properties:
        level:
          type: string
          enum:
            - warning
            - error
        code:
          type: string
        message:
          type: string
        nodeId:
          type: string
          nullable: true
        edgeId:
          type: string
          nullable: true
        paramKey:
          type: string
          nullable: true
      required:
        - level
        - code
        - message
      additionalProperties: false
    WorkflowResponseDataWorkflow:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        active:
          type: boolean
        graph:
          $ref: "#/components/schemas/WorkflowResponseDataWorkflowGraph"
        version:
          type: number
          description: Bumps on every save; a save names the version it edited (optimistic concurrency).
        templateId:
          type: string
          nullable: true
          description: Template the workflow was created from, for "update available" and analytics.
        tags:
          type: array
          items:
            type: string
        createdAt:
          type: string
        updatedAt:
          type: string
        lastRunAt:
          type: string
          nullable: true
        lastRunStatus:
          type: string
          enum:
            - cancelled
            - failed
            - queued
            - running
            - waiting
            - succeeded
          nullable: true
        triggerTypes:
          type: array
          items:
            type: string
          description: "Derived for list views: the trigger types and the node types in order."
        nodeTypes:
          type: array
          items:
            type: string
      required:
        - id
        - name
        - active
        - graph
        - version
        - tags
        - createdAt
        - updatedAt
        - triggerTypes
        - nodeTypes
      additionalProperties: false
    WorkflowResponseDataWorkflowGraph:
      type: object
      properties:
        version:
          type: number
        nodes:
          type: array
          items:
            type: object
            additionalProperties: {}
        edges:
          type: array
          items:
            type: object
            additionalProperties: {}
        notes:
          type: array
          items:
            type: object
            additionalProperties: {}
          nullable: true
          description: Canvas-only sticky notes.
        settings:
          type: object
          nullable: true
          additionalProperties: {}
      required:
        - version
        - nodes
        - edges
      additionalProperties: false
    WorldExperienceConfigResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/WorldExperienceConfigResponseData"
      required:
        - data
      additionalProperties: false
    WorldExperienceConfigResponseData:
      type: object
      properties:
        version:
          type: number
        values:
          type: object
          additionalProperties: {}
        rules:
          type: array
          items:
            $ref: "#/components/schemas/WorldExperienceConfigResponseDataRules"
        updatedAt:
          type: string
          nullable: true
        bytes:
          type: number
      required:
        - version
        - values
        - rules
        - bytes
      additionalProperties: false
    WorldExperienceConfigResponseDataRules:
      type: object
      properties:
        id:
          type: string
        description:
          type: string
          nullable: true
        when:
          $ref: "#/components/schemas/ListWorldExperienceExperimentsItemTargeting"
        values:
          type: object
          additionalProperties: {}
      required:
        - id
        - when
        - values
      additionalProperties: false
    WorldExperienceEventResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperienceEventsItem"
      required:
        - data
      additionalProperties: false
    WorldExperienceExperienceEventResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperienceExperienceEventsItem"
      required:
        - data
      additionalProperties: false
    WorldExperienceExperimentResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperienceExperimentsItem"
      required:
        - data
      additionalProperties: false
    WorldExperienceGalleryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/UpdateWorldExperienceGalleryRoleItem"
      required:
        - data
      additionalProperties: false
    WorldExperienceLocalizationResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseData"
      required:
        - data
      additionalProperties: false
    WorldExperienceLocalizationResponseData:
      type: object
      properties:
        coverage:
          type: array
          items:
            $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataCoverage"
          description: Every language but English, with what it still misses.
        sourceLocale:
          type: string
        source:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataSource"
        locales:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocales"
        updatedAt:
          type: string
          nullable: true
      required:
        - coverage
        - sourceLocale
        - source
        - locales
      additionalProperties: false
    WorldExperienceLocalizationResponseDataCoverage:
      type: object
      properties:
        locale:
          type: string
          enum:
            - id
            - hi
            - pl
            - it
            - en
            - es
            - fr
            - de
            - pt
            - nl
            - ja
            - ko
            - es-MX
            - pt-BR
            - sv
            - tr
            - ru
            - uk
            - ar
            - ms
            - th
            - vi
            - fil
            - zh-CN
            - zh-TW
        done:
          type: number
          description: "Translated of the total: name, description (when the game has one) and every English key."
        total:
          type: number
        missing:
          type: array
          items:
            type: string
      required:
        - locale
        - done
        - total
        - missing
      additionalProperties: false
    WorldExperienceLocalizationResponseDataLocales:
      type: object
      properties:
        id:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        hi:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        pl:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        it:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        en:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        es:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        fr:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        de:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        pt:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        nl:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        ja:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        ko:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        es-MX:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        pt-BR:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        sv:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        tr:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        ru:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        uk:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        ar:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        ms:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        th:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        vi:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        fil:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        zh-CN:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
        zh-TW:
          $ref: "#/components/schemas/WorldExperienceLocalizationResponseDataLocalesId"
      additionalProperties: false
      description: Every language with anything in it, `en` holding the source string table.
    WorldExperienceLocalizationResponseDataLocalesId:
      type: object
      properties:
        name:
          type: string
          nullable: true
          description: The game's name in this language; null = not translated (English shows). Never set for `en`.
        description:
          type: string
          nullable: true
        strings:
          type: object
          description: "In-game strings: key -> text."
          additionalProperties: {}
      required:
        - strings
      additionalProperties: false
      nullable: true
    WorldExperienceLocalizationResponseDataSource:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
      required:
        - name
        - description
      additionalProperties: false
      description: "The game's own name and description (Details): what the translations translate."
    WorldExperienceOrderedEntryResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetWorldExperienceOrderedItem"
      required:
        - data
      additionalProperties: false
    WorldExperiencePlaceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperiencePlacesItem"
      required:
        - data
      additionalProperties: false
    WorldExperiencePlaceVersionResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperiencePlaceVersionsItem"
      required:
        - data
      additionalProperties: false
    WorldExperienceProductResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperienceProductsItem"
      required:
        - data
      additionalProperties: false
    WorldExperienceResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperiencesItem"
      required:
        - data
      additionalProperties: false
    WorldExperienceResponse2:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldExperiencePlacePublishesItem"
      required:
        - data
      additionalProperties: false
    WorldHomeResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/GetHomeResponse"
      required:
        - data
      additionalProperties: false
    WorldLinkResponse:
      type: object
      description: The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint.
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldLinkSellerItem"
          description: The rows.
        pagination:
          $ref: "#/components/schemas/Pagination"
        meta:
          type: object
          additionalProperties: true
          description: Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty.
      required:
        - data
    WorldParentalResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldParentalChildrenItem"
      required:
        - data
      additionalProperties: false
    WorldResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/WorldResponseData"
      required:
        - data
      additionalProperties: false
    WorldResponse2:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/ListWorldTransferRequestsItem"
      required:
        - data
      additionalProperties: false
    WorldResponse3:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/WorldResponse3Data"
      required:
        - data
      additionalProperties: false
    WorldResponse3Data:
      type: object
      properties:
        key:
          type: string
        vote:
          type: string
          enum:
            - up
            - down
          nullable: true
        favorite:
          type: boolean
        eligibility:
          $ref: "#/components/schemas/WorldResponse3DataEligibility"
        up:
          type: number
        down:
          type: number
        thumbsUp:
          type: number
          nullable: true
        favorites:
          type: number
      required:
        - key
        - favorite
        - eligibility
        - up
        - down
        - favorites
      additionalProperties: false
    WorldResponse3DataEligibility:
      type: object
      properties:
        eligible:
          type: boolean
        playedSeconds:
          type: number
        remainingSeconds:
          type: number
          description: Seconds still to play before a vote counts (0 when eligible).
      required:
        - eligible
        - playedSeconds
        - remainingSeconds
      additionalProperties: false
    WorldResponseData:
      type: object
      properties:
        messages:
          type: array
          items:
            $ref: "#/components/schemas/WorldResponseDataMessages"
        said:
          $ref: "#/components/schemas/WorldResponseDataSaid"
      required:
        - messages
      additionalProperties: false
    WorldResponseDataMessages:
      type: object
      properties:
        from:
          type: string
        name:
          type: string
        text:
          type: string
        at:
          type: number
      required:
        - from
        - name
        - text
        - at
      additionalProperties: false
    WorldResponseDataSaid:
      type: object
      properties:
        from:
          type: string
        name:
          type: string
        text:
          type: string
        at:
          type: number
      required:
        - from
        - name
        - text
        - at
      additionalProperties: false
      nullable: true
    WorldStaffPostingResponse:
      type: object
      properties:
        data:
          $ref: "#/components/schemas/WorldStaffPostingResponseData"
      required:
        - data
      additionalProperties: false
    WorldStaffPostingResponseData:
      type: object
      properties:
        id:
          type: string
        storefrontId:
          type: string
          nullable: true
        target:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataTarget"
        role:
          type: string
        title:
          type: string
        description:
          type: string
          nullable: true
        visibility:
          type: string
          enum:
            - public
            - private
        pay:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataPay"
        timezone:
          type: string
        recurrence:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataRecurrence"
        startsAt:
          type: string
        endsAt:
          type: string
        whitelist:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataWhitelist"
        blacklist:
          type: array
          items:
            type: string
        minWorkerRep:
          type: number
          nullable: true
        requiredBadges:
          type: array
          items:
            type: string
        maxStaff:
          type: number
        autoApprove:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataAutoApprove"
        breaks:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataBreaks"
        checkIn:
          $ref: "#/components/schemas/WorldStaffPostingResponseDataCheckIn"
        noShow:
          $ref: "#/components/schemas/PenaltyRepStrikesToBlock"
        notes:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - paused
            - open
            - closed
        createdAt:
          type: string
      required:
        - id
        - target
        - role
        - title
        - visibility
        - pay
        - timezone
        - recurrence
        - startsAt
        - endsAt
        - whitelist
        - blacklist
        - requiredBadges
        - maxStaff
        - autoApprove
        - checkIn
        - noShow
        - status
        - createdAt
      additionalProperties: false
    WorldStaffPostingResponseDataAutoApprove:
      type: object
      properties:
        minRep:
          type: number
          nullable: true
          description: Approve an applicant whose worker reputation is at least this many tenths of a star (42 = 4.2).
        teamMembers:
          type: boolean
          nullable: true
          description: Approve the employer's own team members straight away.
        previousWorkers:
          type: boolean
          nullable: true
          description: Approve people who have worked a shift for this employer before (and were not a no-show).
      additionalProperties: false
    WorldStaffPostingResponseDataBreaks:
      type: object
      properties:
        everyMinutes:
          type: number
        minutes:
          type: number
        paid:
          type: boolean
      required:
        - everyMinutes
        - minutes
        - paid
      additionalProperties: false
      nullable: true
    WorldStaffPostingResponseDataCheckIn:
      type: object
      properties:
        graceMinutes:
          type: number
        presenceRatio:
          type: number
        requireCheckIn:
          type: boolean
      required:
        - graceMinutes
        - presenceRatio
        - requireCheckIn
      additionalProperties: false
    WorldStaffPostingResponseDataPay:
      type: object
      properties:
        rail:
          type: string
          enum:
            - cash
            - cbx
            - bucks
        basis:
          type: string
          enum:
            - shift
            - hour
            - commission
        cents:
          type: number
          nullable: true
          description: "hour / shift: whole cents."
        bps:
          type: number
          nullable: true
          description: "commission: basis points of the attributed sales (100 = 1%)."
      required:
        - rail
        - basis
      additionalProperties: false
    WorldStaffPostingResponseDataRecurrence:
      type: object
      properties:
        freq:
          type: string
          enum:
            - none
            - weekly
        days:
          type: array
          items:
            type: number
          nullable: true
          description: 0 = Sunday ... 6 = Saturday, in the posting's timezone.
        until:
          type: string
          nullable: true
          description: Last day (YYYY-MM-DD, inclusive, in the posting's timezone).
        count:
          type: number
          nullable: true
          description: "Or: stop after this many shifts."
      required:
        - freq
      additionalProperties: false
    WorldStaffPostingResponseDataTarget:
      type: object
      properties:
        kind:
          type: string
        id:
          type: string
        slug:
          type: string
        name:
          type: string
      required:
        - kind
        - id
        - slug
        - name
      additionalProperties: false
    WorldStaffPostingResponseDataWhitelist:
      type: object
      properties:
        mode:
          type: string
          enum:
            - team
            - anyone
            - people
          description: "anyone: anybody eligible; people: only `userIds`; team: only the employer's Settings team."
        userIds:
          type: array
          items:
            type: string
      required:
        - mode
        - userIds
      additionalProperties: false
    CreateDetectedEventRuleResponseDataTarget:
      nullable: true
      type: object
      properties:
        pick:
          type: string
        margin:
          type: number
      required:
        - pick
    CreateFieldRuleRequestActionsItem:
      type: object
      properties:
        type:
          type: string
        value:
          type: string
        template:
          type: string
        separator:
          type: string
        find:
          type: string
        replace:
          type: string
        mode:
          type: string
          enum:
            - literal
            - regex
            - title
            - upper
            - lower
            - sentence
        caseSensitive:
          type: boolean
        pattern:
          type: string
        group:
          type: number
        onNoMatch:
          type: string
          enum:
            - clear
            - keep
        entries:
          type: array
          items:
            type: object
            additionalProperties: {}
        match:
          type: string
          enum:
            - substring
            - whole
        fallback:
          type: string
          description: Used when nothing matched; omit to keep the value as it was.
        max:
          type: number
        ellipsis:
          type: boolean
      required:
        - type
    CreateFundingDrawUseResponseData:
      type: object
      properties:
        draw:
          $ref: "#/components/schemas/ListFundingDrawsItem"
        duplicate:
          type: boolean
        approvalsNeeded:
          type: number
      required:
        - draw
        - duplicate
    CreateGeoLocationCheckResponseRule:
      nullable: true
      type: object
      properties:
        kind:
          type: string
        country:
          type: string
        state:
          type: string
        group:
          type: string
          enum:
            - US_AK_HI
            - US_TERRITORIES
            - US_MILITARY
            - US_CONTIGUOUS
        level:
          type: string
          enum:
            - csa
            - cbsa
        code:
          type: string
        label:
          type: string
          nullable: true
        match:
          type: string
        value:
          type: string
        from:
          type: string
        to:
          type: string
        class:
          type: string
      required:
        - kind
    CreateLoyaltyAirdropPrepareResponseData:
      type: object
      properties:
        chain:
          type: string
        from:
          type: string
        txs:
          type: array
          items:
            $ref: "#/components/schemas/CreateLoyaltyAirdropPrepareResponseDataOneOfTxs"
        lastValidBlockHeight:
          type: number
        id:
          type: string
        recipient:
          type: string
        quantity:
          type: number
        to:
          type: string
          nullable: true
        data:
          type: string
      required:
        - chain
        - from
        - id
        - recipient
        - quantity
    CreateLoyaltyTierResponseDataPerksItem:
      type: object
      properties:
        type:
          type: string
        percentBps:
          type: number
          nullable: true
        id:
          type: string
        scope:
          type: object
          nullable: true
          additionalProperties: {}
        amountCents:
          type: number
          nullable: true
        minSubtotalCents:
          type: number
        hours:
          type: number
        listingIds:
          type: array
          items:
            type: string
        tag:
          type: string
          nullable: true
        catalogId:
          type: string
          nullable: true
        groupId:
          type: string
          nullable: true
        collectionId:
          type: string
        quantity:
          type: number
        multiplierBps:
          type: number
        cents:
          type: number
        cadence:
          type: string
          enum:
            - monthly
            - once
        validDays:
          type: number
        windowDays:
          type: number
        depositBps:
          type: number
        weeks:
          type: number
        minutes:
          type: number
        itemId:
          type: string
        eventId:
          type: string
        bonusBps:
          type: number
        days:
          type: number
      required:
        - type
        - id
    CreatePassportPrintResponseData:
      type: object
      properties:
        mode:
          type: string
        jobId:
          type: string
        agentId:
          type: string
          nullable: true
        template:
          type: string
          enum:
            - sticker-2in
            - sticker-1in
            - label-4x6
            - hang-tag
            - sheet-letter
            - sheet-a4
            - transfer-card
        delivered:
          type: boolean
        pdfUrl:
          type: string
        url:
          type: string
        reason:
          type: string
          enum:
            - media
            - no_agent
            - offline
            - not_capable
            - pdf_requested
          nullable: true
        message:
          type: string
          nullable: true
        installUrl:
          type: string
      required:
        - mode
        - template
    CreatePayoutConnectOnboardResponseData:
      type: object
      properties:
        url:
          type: string
        country:
          type: string
        agreement:
          type: string
          enum:
            - full
            - recipient
        payoutsSupported:
          type: boolean
        accountSource:
          type: string
      required:
        - url
        - country
        - agreement
        - payoutsSupported
        - accountSource
    CreatePriceRulePreviewItemStepsItem:
      type: object
      properties:
        kind:
          type: string
        from:
          type: string
        to:
          type: string
        rate:
          type: number
        bufferPercent:
          type: number
        value:
          type: number
        percent:
          type: number
        amount:
          type: number
        mode:
          type: string
          enum:
            - none
            - "99"
            - "95"
            - whole
        floor:
          type: number
        ceiling:
          type: number
      required:
        - kind
        - value
    CreateProductFeedRequestSettingsRefresh:
      type: object
      properties:
        mode:
          type: string
        everyHours: {}
      required:
        - mode
    CreateRepricingAssignmentRequestScope:
      type: object
      properties:
        kind:
          type: string
        listingIds:
          type: array
          items:
            type: string
        category:
          type: string
        savedViewId:
          type: string
      required:
        - kind
    CreateSpatialPropertyDeedMaintenanceResponseData:
      type: object
      properties:
        requiresAction:
          type: boolean
        paymentId:
          type: string
        clientSecret:
          type: string
          nullable: true
        paidThrough:
          type: string
        status:
          type: string
          enum:
            - active
            - grace
            - delinquent
            - foreclosed
        paidCents:
          type: number
    CreateSpatialPropertyLeaseRentResponseData:
      type: object
      properties:
        requiresAction:
          type: boolean
        paymentId:
          type: string
        clientSecret:
          type: string
          nullable: true
        paidThrough:
          type: string
        waived:
          type: boolean
        paidCents:
          type: number
    CreateSpatialPropertyListingBuyResponseData:
      type: object
      properties:
        done:
          type: boolean
        paymentId:
          type: string
        requiresAction:
          type: boolean
        clientSecret:
          type: string
          nullable: true
        deedId:
          type: string
        priceCents:
          type: number
        paidThrough:
          type: string
        placed:
          $ref: "#/components/schemas/CreateWorldMarketPlotRentResponseDataOneOf2Placed"
    CreateSpatialStreetPlotBuyResponseData:
      type: object
      properties:
        done:
          type: boolean
        paymentId:
          type: string
        requiresAction:
          type: boolean
        clientSecret:
          type: string
          nullable: true
        deedId:
          type: string
        address:
          type: string
        priceCents:
          type: number
        paidThrough:
          type: string
        placed:
          $ref: "#/components/schemas/CreateWorldMarketPlotRentResponseDataOneOf2Placed"
    CreateSponsoredAdBillingTopupLinkResponseData:
      type: object
      properties:
        topupId:
          type: string
        clientSecret:
          type: string
          nullable: true
        paymentIntentId:
          type: string
        url:
          type: string
        checkoutSessionId:
          type: string
      required:
        - topupId
    CreateStorefrontSiteSuggestResponseDataSectionsItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        enabled:
          type: boolean
        visibility:
          type: object
          description: Hidden on phones / on desktop.
          additionalProperties: {}
        style:
          type: object
          additionalProperties: {}
        settings:
          type: object
          additionalProperties: {}
      required:
        - id
        - kind
        - enabled
        - visibility
        - style
        - settings
    CreateTcgQueueResponseData:
      type: object
      properties:
        status:
          type: string
        matchId:
          nullable: true
      required:
        - status
        - matchId
    CreateVaultMarketPredictionOrderBatchCancelResponseResultsItem:
      type: object
      properties:
        id:
          type: string
        ok:
          type: boolean
        order:
          nullable: true
        error:
          nullable: true
      required:
        - id
        - ok
        - order
        - error
    CreateVaultMarketPredictionOrderBatchResponseResultsItem:
      type: object
      properties:
        ok:
          type: boolean
        order:
          nullable: true
        error:
          nullable: true
        clientOrderId:
          type: string
          nullable: true
        code:
          type: string
          nullable: true
      required:
        - ok
        - order
        - error
    CreateVaultMarketPredictionPositionCloseAllResponseResultsItem:
      type: object
      properties:
        marketId:
          type: string
        title:
          type: string
        ok:
          type: boolean
        order:
          nullable: true
        error:
          nullable: true
      required:
        - marketId
        - title
        - ok
        - order
        - error
    CreateWeb3LaunchRequestHolderPerksItem:
      type: object
      properties:
        type:
          type: string
        percent:
          type: number
        note:
          type: string
          nullable: true
        hours:
          type: number
        creationRef:
          type: string
        name:
          type: string
          description: The item's name as the creator picked it (shown to holders).
        tierId:
          type: string
        tierName:
          type: string
          description: The tier's name when it was picked (shown to holders).
      required:
        - type
    CreateWorkflowExpressionPreviewResponseData:
      type: object
      properties:
        ok:
          type: boolean
        type:
          type: string
        error:
          $ref: "#/components/schemas/CreateWorkflowExpressionPreviewResponseDataOneOf1Error"
      required:
        - ok
    CreateWorldExperienceJoinResponseData:
      type: object
      properties:
        status:
          type: string
        serverId:
          type: string
        experienceId:
          type: string
        placeId:
          type: string
        region:
          type: string
        url:
          type: string
        ticket:
          type: string
        ticketExpiresAt:
          type: string
        protocolVersion:
          type: number
        subprotocol:
          type: string
        reason:
          type: string
        retryAfterMs:
          type: number
      required:
        - status
        - serverId
        - experienceId
        - placeId
        - region
        - reason
    CreateWorldExperiencePlaceAssistantResponseDataChangesItem:
      type: object
      properties:
        kind:
          type: string
        path:
          type: string
        newSource:
          type: string
        baseSource:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        parentPath:
          type: string
        nodes:
          type: array
          items:
            type: object
            additionalProperties: {}
        ops:
          type: array
          items: {}
      required:
        - kind
    CreateWorldExperiencePlaceStudioPlaytestResponseDataJoin:
      type: object
      properties:
        status:
          type: string
        serverId:
          type: string
        experienceId:
          type: string
        placeId:
          type: string
        region:
          type: string
        url:
          type: string
        ticket:
          type: string
        ticketExpiresAt:
          type: string
        protocolVersion:
          type: number
        subprotocol:
          type: string
        reason:
          type: string
        retryAfterMs:
          type: number
      required:
        - status
        - serverId
        - experienceId
        - placeId
        - region
        - reason
    CreateWorldExperiencePlaceTestResponseDataJoin:
      type: object
      properties:
        status:
          type: string
        serverId:
          type: string
        experienceId:
          type: string
        placeId:
          type: string
        region:
          type: string
        url:
          type: string
        ticket:
          type: string
        ticketExpiresAt:
          type: string
        protocolVersion:
          type: number
        subprotocol:
          type: string
        reason:
          type: string
        retryAfterMs:
          type: number
      required:
        - status
        - serverId
        - experienceId
        - placeId
        - region
        - reason
    CreateWorldMarketBuyResponseData:
      type: object
      properties:
        done:
          type: boolean
        paymentId:
          type: string
        requiresAction:
          type: boolean
        clientSecret:
          type: string
          nullable: true
        deedId:
          type: string
        priceCents:
          type: number
        paidThrough:
          type: string
        placed:
          $ref: "#/components/schemas/CreateWorldMarketPlotRentResponseDataOneOf2Placed"
        streetId:
          type: string
        slug:
          type: string
    CreateWorldMarketListingResponseData:
      type: object
      properties:
        kind:
          type: string
        id:
          type: string
        mode:
          type: string
        listingId:
          type: string
      required:
        - kind
        - id
        - mode
        - listingId
    CreateWorldMarketPlotRentResponseData:
      type: object
      properties:
        done:
          type: boolean
        paymentId:
          type: string
        requiresAction:
          type: boolean
        clientSecret:
          type: string
          nullable: true
        leaseId:
          type: string
        paidThrough:
          type: string
          nullable: true
        placed:
          $ref: "#/components/schemas/CreateWorldMarketPlotRentResponseDataOneOf2Placed"
    CreateWorldMatureVerifyResponseData:
      type: object
      properties:
        alreadyVerified:
          type: boolean
        verificationId:
          type: string
        clientSecret:
          type: string
          nullable: true
        url:
          type: string
          nullable: true
      required:
        - alreadyVerified
    CreateWorldStreetOwnedUpkeepPayResponseData:
      type: object
      properties:
        requiresAction:
          type: boolean
        paymentId:
          type: string
        clientSecret:
          type: string
          nullable: true
        paidThrough:
          type: string
        upkeep:
          type: string
          enum:
            - active
            - grace
            - delinquent
            - foreclosed
          nullable: true
        paidCents:
          type: number
    DeleteWorldMarketListingResponseData:
      type: object
      properties:
        cancelled:
          type: boolean
        withdrawn:
          type: boolean
    GetBrandingEventResponseData:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: "#/components/schemas/GetBrandingEventResponseDataOneOfGroups"
        items:
          type: array
          items:
            $ref: "#/components/schemas/CreateBrandingEventCancelResponseData"
    GetCreatorCollectionPerkResponseDataPerksItem:
      type: object
      properties:
        type:
          type: string
        percent:
          type: number
        note:
          type: string
          nullable: true
        hours:
          type: number
        creationRef:
          type: string
        name:
          type: string
          description: The item's name as the creator picked it (shown to holders).
        tierId:
          type: string
        tierName:
          type: string
          description: The tier's name when it was picked (shown to holders).
      required:
        - type
    GetCreatorRewardMeResponseData:
      type: object
      properties:
        experiences:
          type: array
          items:
            $ref: "#/components/schemas/GetCreatorRewardMeResponseDataOneOfExperiences"
        yourCents:
          type: number
        month:
          type: string
        formulaVersion:
          type: number
        retentionBonusBps:
          type: number
        newPlayerBonusBps:
          type: number
        termsVersion:
          type: number
        poolShareBps:
          type: number
        worldsNetCents:
          type: number
        crosslyTakeCents:
          type: number
        fundedCents:
          type: number
        carriedInCents:
          type: number
        poolCents:
          type: number
        distributedCents:
          type: number
        carriedOutCents:
          type: number
        countedMinutes:
          type: number
        weightedMinutes:
          type: number
        eligibleExperiences:
          type: number
        exclusions:
          type: object
          additionalProperties: {}
        calculatedAt:
          type: string
      required:
        - experiences
        - yourCents
        - month
    GetFundingStatementResponseData:
      type: object
      properties:
        months:
          type: array
          items:
            type: string
        statement:
          nullable: true
        line:
          nullable: true
      required:
        - months
        - statement
        - line
    GetGameEventSummaryResponseData:
      type: object
      properties:
        kind:
          type: string
        huntId:
          type: string
        status:
          type: string
        place:
          $ref: "#/components/schemas/GetGameEventSummaryResponseDataOneOfPlace"
        coins:
          type: number
        clues:
          type: number
        players:
          type: number
        finishers:
          type: number
        winners:
          type: array
          items:
            $ref: "#/components/schemas/GetGameEventSummaryResponseDataOneOfWinners"
        rewards:
          type: array
          items:
            $ref: "#/components/schemas/GetGameEventSummaryResponseDataOneOfRewards"
        rules:
          $ref: "#/components/schemas/GetGameEventSummaryResponseDataOneOfRules"
        buildLink:
          type: string
          description: The Worlds app link that opens the builder for this hunt.
        breakId:
          type: string
        live:
          type: boolean
        spots:
          type: number
        spotsSold:
          type: number
        hits:
          type: number
        stage:
          $ref: "#/components/schemas/NameSlug2"
      required:
        - kind
        - status
    GetGameHuntBuildResponseDataRewardsItem:
      type: object
      properties:
        kind:
          type: string
        discountCodeId:
          type: string
        centsEach:
          type: number
        cosmeticId:
          type: string
        pointsEach:
          type: number
      required:
        - kind
    GetGameHuntBuildResponseDataProblemsItem:
      type: object
      properties:
        objectId:
          nullable: true
        message:
          type: string
      required:
        - message
    GetMembershipResponseBenefits:
      nullable: true
      type: object
      properties:
        vmMakerTrimBps:
          type: number
        vmTakerTrimBps:
          type: number
        vmRecurringSlots:
          type: number
        vmMarketOpenEarlyMinutes:
          type: number
        vmAlertLimit:
          type: number
        dropFeeDiscountBps:
          type: number
          description: Discount on buyer-side DROP fees in the market matcher (auctions are free). 0.25%.
        cbxWithdrawalFeeDiscountBps:
          type: number
          description: Discount on the CBX withdrawal service fee. Reduces a fee, mints no tokens.
        nativeLabelAtCost:
          type: boolean
          description: Crossly-native labels priced at cost (our shipping markup waived).
        earlyAccessMinutes:
          type: number
          description: How early a member sees drops/boxes/streams before public open.
        autoBump:
          type: boolean
          description: Market bid auto-bump (the original 365 perk).
      required:
        - vmMakerTrimBps
        - vmTakerTrimBps
        - vmRecurringSlots
        - vmMarketOpenEarlyMinutes
        - vmAlertLimit
        - dropFeeDiscountBps
        - cbxWithdrawalFeeDiscountBps
        - nativeLabelAtCost
        - earlyAccessMinutes
        - autoBump
    GetPayoutConnectResponseData:
      type: object
      properties:
        status:
          type: string
        defaultCountry:
          type: string
        accountSource:
          type: string
        payoutsEnabled:
          type: boolean
        chargesEnabled:
          type: boolean
        transfersActive:
          type: boolean
          description: "`capabilities.transfers === 'active'` — the capability every Crossly payout uses."
        detailsSubmitted:
          type: boolean
        taxReporting1099kReady:
          type: boolean
        country:
          type: string
          nullable: true
          description: ISO 3166-1 alpha-2, upper case.
        agreement:
          type: string
          enum:
            - full
            - recipient
        defaultCurrency:
          type: string
          nullable: true
          description: Settlement currency, upper case (USD, GBP, EUR…).
        accountId:
          type: string
        payoutsSupported:
          type: boolean
        message:
          type: string
          nullable: true
      required:
        - status
        - accountSource
    GetPayoutWalletResponseData:
      type: object
      properties:
        connected:
          type: boolean
        defaultCountry:
          type: string
        accountSource:
          type: string
          enum:
            - store
            - owner
        accountId:
          type: string
        status:
          $ref: "#/components/schemas/GetPayoutWalletResponseDataOneOf1Status"
        message:
          type: string
          nullable: true
        balance:
          $ref: "#/components/schemas/GetPayoutWalletResponseDataOneOf1Balance"
        schedule:
          $ref: "#/components/schemas/GetPayoutWalletResponseDataOneOf1Schedule"
        nextPayout:
          $ref: "#/components/schemas/GetPayoutWalletResponseDataOneOf1NextPayout"
        instant:
          $ref: "#/components/schemas/GetPayoutWalletResponseDataOneOf1Instant"
        methods:
          type: array
          items:
            $ref: "#/components/schemas/GetPayoutWalletResponseDataOneOf1Methods"
        payouts:
          type: array
          items:
            $ref: "#/components/schemas/CreatePayoutPayoutResponseDataPayout"
        transactions:
          type: array
          items:
            $ref: "#/components/schemas/GetPayoutWalletResponseDataOneOf1Transactions"
      required:
        - connected
        - accountSource
    GetSpatialShopNeighbourhoodResponseData:
      type: object
      properties:
        shop:
          nullable: true
        home:
          nullable: true
        suggested:
          type: string
          enum:
            - sneaker-row
            - card-district
            - vintage-alley
            - vinyl-lane
          nullable: true
        options:
          type: array
          items:
            $ref: "#/components/schemas/ListNeighbourhoodsItem"
      required:
        - shop
        - options
    GetSpatialShopStaffResponseData:
      type: object
      properties:
        enabled:
          type: boolean
        shopId:
          nullable: true
        staff: {}
      required:
        - enabled
        - shopId
        - staff
    GetSponsoredAdReportResponseDataCampaignsItem:
      type: object
      properties:
        spendCents:
          type: number
        impressions:
          type: number
        clicks:
          type: number
        ctr:
          type: number
          description: clicks / impressions, 0..1
        avgCpcCents:
          type: number
          description: spend / clicks, cents
        orders:
          type: number
        revenueCents:
          type: number
        roas:
          type: number
          nullable: true
          description: revenue / spend; null with no spend
        campaignId:
          type: string
        name:
          type: string
        status:
          type: string
        targetType:
          type: string
      required:
        - spendCents
        - impressions
        - clicks
        - ctr
        - avgCpcCents
        - orders
        - revenueCents
        - campaignId
        - name
        - status
        - targetType
    GetVaultMarketCapacityResponsePerKeyItem:
      type: object
      properties:
        bookKey:
          type: string
        title:
          type: string
        weightBps:
          type: number
        targetCents:
          type: number
        markCents:
          nullable: true
        units:
          type: number
        nowUnits:
          type: number
        restUnits:
          type: number
        restDays:
          nullable: true
        advUnits:
          type: number
      required:
        - bookKey
        - title
        - weightBps
        - targetCents
        - markCents
        - units
        - nowUnits
        - restUnits
        - advUnits
    GetVaultMarketDigestPreviewResponseLearn:
      type: object
      properties:
        slug:
          type: string
        title:
          type: string
        blurb:
          type: string
      required:
        - slug
        - title
        - blurb
    GetVaultMarketGradingSignalResponseCta:
      nullable: true
      type: object
      properties:
        action:
          type: string
        label:
          type: string
        href:
          type: string
        graderSlug:
          type: string
        runId:
          type: string
          nullable: true
      required:
        - action
        - label
        - href
        - graderSlug
    GetVaultMarketItemLocationResponseEligibility:
      type: object
      properties:
        eligible:
          type: boolean
        reason:
          nullable: true
        code:
          type: string
      required:
        - eligible
        - reason
    GetVaultMarketKeyStatResponseGemRate:
      type: object
      properties:
        error:
          type: string
        bookKey:
          type: string
        categorySlug:
          type: string
          nullable: true
        item:
          $ref: "#/components/schemas/GetVaultMarketKeyStatResponseGemRateOneOf1Item"
        category:
          $ref: "#/components/schemas/GetVaultMarketKeyStatResponseGemRateOneOf1Category"
        gemFloors:
          type: object
          additionalProperties: {}
    GetVaultMarketPortfolioHistoryResponseToday:
      type: object
      properties:
        since:
          nullable: true
        previousCents:
          nullable: true
        changeCents:
          nullable: true
        changeBps:
          nullable: true
      required:
        - since
        - previousCents
        - changeCents
    GetVaultMarketPortfolioResponseShares:
      type: object
      properties:
        lines: {}
        impliedValueCents:
          type: number
        costCents:
          type: number
        note:
          type: string
      required:
        - lines
        - impliedValueCents
        - costCents
        - note
    GetVaultMarketPositionResponseAuctionsItem:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        kind:
          type: string
          enum:
            - buy_in
            - sell_off
        endsAt:
          type: string
          format: date-time
        reason:
          type: string
        startedAt:
          type: string
          format: date-time
        priceCents:
          nullable: true
        tradeId:
          type: string
          nullable: true
        bidId:
          type: string
          nullable: true
        askId:
          type: string
          nullable: true
        vaultItemId:
          type: string
          nullable: true
        positionId:
          type: string
        markCents:
          nullable: true
        settledAt:
          type: string
          format: date-time
          nullable: true
        checkedAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - status
        - kind
        - endsAt
        - reason
        - startedAt
        - priceCents
        - positionId
        - markCents
    GetVaultMarketProofOfReserveByDayResponseAnchor:
      type: object
      properties:
        anchored:
          type: boolean
        signature:
          type: string
          nullable: true
        signer:
          type: string
          nullable: true
        cluster:
          type: string
          nullable: true
        at:
          type: string
        explorerUrl:
          type: string
        reason:
          type: string
          enum:
            - pending
            - off
            - retrying
      required:
        - anchored
    GetVaultMarketProofOfReserveResponseLatestAnchor:
      type: object
      properties:
        anchored:
          type: boolean
        signature:
          type: string
          nullable: true
        signer:
          type: string
          nullable: true
        cluster:
          type: string
          nullable: true
        at:
          type: string
        explorerUrl:
          type: string
        reason:
          type: string
          enum:
            - pending
            - off
            - retrying
      required:
        - anchored
    GetVaultMarketRiskReportResponseCounterparty:
      type: object
      properties:
        note:
          type: string
        loans: {}
        byState: {}
        collateralCoverageBps:
          nullable: true
        insurance:
          nullable: true
        lentValueCents:
          type: number
        collateralCents:
          type: number
      required:
        - note
        - loans
        - byState
        - insurance
    GetVaultMarketStatementByMonthResponseOneOf1Cash:
      type: object
      properties:
        quoted:
          type: boolean
        note:
          type: string
        readAt:
          type: string
        status:
          type: string
        usdCents:
          type: number
        cbxBaseUnits:
          type: string
        cbxValueCents:
          type: number
        label:
          type: string
      required:
        - quoted
    GetVaultMarketStatementByMonthResponseOneOf2Cash:
      type: object
      properties:
        quoted:
          type: boolean
        note:
          type: string
        readAt:
          type: string
        status:
          type: string
        usdCents:
          type: number
        cbxBaseUnits:
          type: string
        cbxValueCents:
          type: number
        label:
          type: string
      required:
        - quoted
    GetVaultMarketWorthVaultResponseToday:
      type: object
      properties:
        since:
          nullable: true
        previousCents:
          nullable: true
        changeCents:
          nullable: true
        changeBps:
          nullable: true
      required:
        - since
        - previousCents
        - changeCents
    GetWorldEarningPayoutAccountResponseData:
      type: object
      properties:
        status:
          type: string
        accountId:
          type: string
        country:
          type: string
          nullable: true
        payoutsSupported:
          type: boolean
        message:
          type: string
          nullable: true
      required:
        - status
    GetWorldExperienceAnalyticResponseData:
      type: object
      properties:
        range:
          $ref: "#/components/schemas/CreateListingTagRenameRequest"
        live:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOfLive"
        totals: {}
        retention:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOfRetention"
        series: {}
        payout:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOfPayout"
        sampled:
          type: boolean
        sampledOutEvents:
          type: number
        alerts:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOfAlerts"
        rawRange:
          $ref: "#/components/schemas/CreateListingTagRenameRequest"
        sessionLength:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf1SessionLength"
        byPlatform:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf1ByPlatformItem"
        bySource:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf1BySourceItem"
        byRegion:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf1ByRegionItem"
        segment:
          type: string
        segments:
          type: array
          items:
            type: string
        curve:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf2Curve"
        grid:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf2Grid"
        subscriptions:
          type: object
          additionalProperties: {}
        products:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf3Products"
        lifetime:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf3Lifetime"
        ledger:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf3Ledger"
        currency:
          type: string
        funnels:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf4Funnels"
        currencies:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf5Currencies"
        topErrors:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf6TopErrors"
        clientFps:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf6ClientFps"
        limit:
          type: number
        events:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf7Events"
        prices:
          $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf8Prices"
        regions:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldExperienceAnalyticResponseDataOneOf8Regions"
      required:
        - range
    GetWorldExperienceAnalyticResponseDataOneOf1ByPlatformItem:
      type: object
      properties:
        key:
          type: string
        sessions:
          nullable: true
        players:
          nullable: true
      required:
        - key
        - sessions
        - players
    GetWorldExperienceAnalyticResponseDataOneOf1BySourceItem:
      type: object
      properties:
        key:
          type: string
        sessions:
          nullable: true
        players:
          nullable: true
      required:
        - key
        - sessions
        - players
    GetWorldExperienceAnalyticResponseDataOneOf1ByRegionItem:
      type: object
      properties:
        key:
          type: string
        sessions:
          nullable: true
        players:
          nullable: true
      required:
        - key
        - sessions
        - players
    GetWorldStreetOwnedResponseDataTenantsItem:
      type: object
      properties:
        kind:
          type: string
        leaseId:
          nullable: true
        number:
          type: number
        label:
          type: string
        tenant:
          type: string
          nullable: true
        status:
          type: string
        rentWeeklyCents:
          type: number
        paidThrough:
          nullable: true
      required:
        - kind
        - leaseId
        - number
        - label
        - status
        - rentWeeklyCents
    GetWorldStudioClassResponseData:
      type: object
      properties:
        name:
          type: string
        super:
          type: string
          nullable: true
        abstract:
          type: boolean
        service:
          type: boolean
        insertable: {}
        ancestry:
          type: array
          items:
            type: string
        props:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldStudioClassResponseDataOneOfProps"
        schemaHash:
          type: number
        services:
          type: array
          items:
            type: string
        classes:
          type: array
          items:
            $ref: "#/components/schemas/GetWorldStudioClassResponseDataOneOf1Classes"
        encodings:
          $ref: "#/components/schemas/GetWorldStudioClassResponseDataOneOf1Encodings"
      required:
        - insertable
    GetWorldWalletResponseDataCbx:
      type: object
      properties:
        available:
          type: boolean
        decimals:
          type: number
        granted:
          type: string
        earned:
          type: string
        connected:
          type: string
        pendingCents:
          type: number
      required:
        - available
    GetWorldWalletResponseDataCosm:
      type: object
      properties:
        available:
          type: boolean
        decimals:
          type: number
        baseUnits:
          type: string
      required:
        - available
    ListCreatorCardGamesItemSpecWin:
      type: object
      properties:
        kind:
          type: string
        target:
          type: number
      required:
        - kind
    ListCreatorCardGamesItemSpecCover:
      type: object
      properties:
        kind:
          type: string
        cardId:
          type: string
        accent:
          type: string
      required:
        - kind
    ListDetectedEventRulesItemThenItem:
      type: object
      properties:
        type:
          type: string
        params:
          nullable: true
      required:
        - type
    ListDetectedEventRulesItemElseItem:
      type: object
      properties:
        type:
          type: string
        params:
          nullable: true
      required:
        - type
    ListDetectedEventRulesItemTarget:
      nullable: true
      type: object
      properties:
        pick:
          type: string
        margin:
          type: number
      required:
        - pick
    ListLoyaltyRewardsItemPerk:
      description: "What the buyer gets: a typed perk. A price perk (percent_off, amount_off, free_shipping) is a single-use code."
      type: object
      properties:
        type:
          type: string
        percentBps:
          type: number
          nullable: true
        id:
          type: string
        scope:
          $ref: "#/components/schemas/ListLoyaltyRewardsItemPerkOneOfScope"
        amountCents:
          type: number
          nullable: true
        minSubtotalCents:
          type: number
        hours:
          type: number
        listingIds:
          type: array
          items:
            type: string
        tag:
          type: string
          nullable: true
        catalogId:
          type: string
          nullable: true
        groupId:
          type: string
          nullable: true
        collectionId:
          type: string
        quantity:
          type: number
        multiplierBps:
          type: number
        cents:
          type: number
        cadence:
          type: string
          enum:
            - monthly
            - once
        validDays:
          type: number
        windowDays:
          type: number
        depositBps:
          type: number
        weeks:
          type: number
        minutes:
          type: number
        itemId:
          type: string
        eventId:
          type: string
        bonusBps:
          type: number
        days:
          type: number
      required:
        - type
        - id
    ListProductFeedsItemSettingsRefresh:
      nullable: true
      description: "How fresh the document is: built on every fetch, or rebuilt at most every N hours and served from a copy."
      type: object
      properties:
        mode:
          type: string
      required:
        - mode
    ListRepricingAssignmentsItemScope:
      type: object
      properties:
        kind:
          type: string
        listingIds:
          type: array
          items:
            type: string
        category:
          type: string
        savedViewId:
          type: string
        name:
          type: string
          nullable: true
          description: "Stored, not sent: the view's name and its filters at save time."
        filters:
          $ref: "#/components/schemas/ListRepricingAssignmentsItemScopeOneOf2Filters"
      required:
        - kind
    ListStoriesItemOverlaysItem:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
        text:
          type: string
        font:
          type: string
          enum:
            - strong
            - classic
            - modern
            - neon
            - typewriter
        color:
          type: string
        background:
          type: string
          enum:
            - none
            - solid
            - translucent
        align:
          type: string
          enum:
            - left
            - right
            - center
        x:
          type: number
        y:
          type: number
        scale:
          type: number
        rotation:
          type: number
        platformListingId:
          type: string
        variant:
          type: string
          enum:
            - light
            - dark
        username:
          type: string
        url:
          type: string
        label:
          type: string
        emoji:
          type: string
        strokes:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
        - id
        - kind
    ListVaultMarketFeedItemBy:
      type: object
      properties:
        handle:
          nullable: true
        displayName:
          type: string
        avatarUrl:
          nullable: true
        profileUrl:
          nullable: true
      required:
        - handle
        - displayName
        - profileUrl
    ListVaultMarketFollowCopyWatchAlertsItemBy:
      type: object
      properties:
        handle:
          nullable: true
        displayName:
          type: string
        avatarUrl:
          nullable: true
        profileUrl:
          nullable: true
      required:
        - handle
        - displayName
        - profileUrl
    ListVaultMarketFollowCopyWatchItemPerson:
      type: object
      properties:
        handle:
          nullable: true
        displayName:
          type: string
        avatarUrl:
          nullable: true
        profileUrl:
          nullable: true
      required:
        - handle
        - displayName
        - profileUrl
    ListVaultMarketFollowFeedItemBy:
      type: object
      properties:
        handle:
          nullable: true
        displayName:
          type: string
        avatarUrl:
          nullable: true
        profileUrl:
          nullable: true
      required:
        - handle
        - displayName
        - profileUrl
    ListVaultMarketFollowFollowingItemPerson:
      type: object
      properties:
        handle:
          nullable: true
        displayName:
          type: string
        avatarUrl:
          nullable: true
        profileUrl:
          nullable: true
      required:
        - handle
        - displayName
        - profileUrl
    ListVaultMarketFollowLeaderboardsItemPerson:
      type: object
      properties:
        handle:
          nullable: true
        displayName:
          type: string
        avatarUrl:
          nullable: true
        profileUrl:
          nullable: true
      required:
        - handle
        - displayName
        - profileUrl
    ListVaultMarketShareCardsItemOwner:
      type: object
      properties:
        handle:
          nullable: true
        displayName:
          type: string
        avatarUrl:
          nullable: true
        profileUrl:
          nullable: true
      required:
        - handle
        - displayName
        - profileUrl
    ListWeb3LaunchPerksItemConfig:
      type: object
      properties:
        type:
          type: string
        percentOffBps:
          type: number
        storefrontIds:
          type: array
          items:
            type: string
          description: Empty = every one of the creator's stores.
        hours:
          type: number
        cosmeticId:
          type: string
        storefrontId:
          type: string
        tierId:
          type: string
        minutes:
          type: number
        eventId:
          type: string
      required:
        - type
    ListWeb3LaunchesItemHolderPerksItem:
      type: object
      properties:
        type:
          type: string
        percent:
          type: number
        note:
          type: string
          nullable: true
        hours:
          type: number
        creationRef:
          type: string
        name:
          type: string
          description: The item's name as the creator picked it (shown to holders).
        tierId:
          type: string
        tierName:
          type: string
          description: The tier's name when it was picked (shown to holders).
      required:
        - type
    SpatialStreetAdmissionResponseData:
      type: object
      properties:
        withdrawn:
          type: boolean
        decided:
          type: string
        address:
          type: string
    UpdateBulkBatchRequestOptionsPriceRule:
      nullable: true
      type: object
      properties:
        kind:
          type: string
        pct:
          type: number
      required:
        - kind
    UpdateCosmCosmeticUnlockResponseData:
      type: object
      properties:
        unlocksKey:
          nullable: true
        unlocksValue:
          nullable: true
      required:
        - unlocksKey
        - unlocksValue
    UpdateFieldRuleRequestActionsItem:
      type: object
      properties:
        type:
          type: string
        value:
          type: string
        template:
          type: string
        separator:
          type: string
        find:
          type: string
        replace:
          type: string
        mode:
          type: string
          enum:
            - literal
            - regex
            - title
            - upper
            - lower
            - sentence
        caseSensitive:
          type: boolean
        pattern:
          type: string
        group:
          type: number
        onNoMatch:
          type: string
          enum:
            - clear
            - keep
        entries:
          type: array
          items:
            type: object
            additionalProperties: {}
        match:
          type: string
          enum:
            - substring
            - whole
        fallback:
          type: string
          description: Used when nothing matched; omit to keep the value as it was.
        max:
          type: number
        ellipsis:
          type: boolean
      required:
        - type
    UpdateRepricingAssignmentRequestScope:
      type: object
      properties:
        kind:
          type: string
        listingIds:
          type: array
          items:
            type: string
        category:
          type: string
        savedViewId:
          type: string
      required:
        - kind
    UpdateShowroom2RequestOpsItem:
      type: object
      properties:
        fixtureId:
          type: string
        unit:
          type: number
        slot:
          type: number
        itemId:
          type: string
        op:
          type: string
        replace:
          type: boolean
        unitId:
          type: string
          nullable: true
        filter:
          type: object
          additionalProperties: {}
        sort:
          type: object
          additionalProperties: {}
        mode:
          type: string
          enum:
            - replace
            - append
        by:
          type: string
          enum:
            - age
            - title
            - price
            - value
          x-enum-varnames:
            - age
            - title
            - price
            - valueOption
        dir:
          type: string
          enum:
            - asc
            - desc
        fixture:
          type: object
          additionalProperties: {}
        patch:
          type: object
          additionalProperties: {}
        room:
          type: object
          additionalProperties: {}
        settings:
          type: object
          additionalProperties: {}
      required:
        - op
    CreateAutomaticDiscountPreviewRequestDraftChannelsItem:
      type: string
      enum:
        - storefront
        - live
        - marketplace
        - rentals
        - world
        - website
        - pos
    CreateAutomaticDiscountRequestChannelsItem:
      type: string
      enum:
        - storefront
        - live
        - marketplace
        - rentals
        - world
        - website
        - pos
    CreateBrandingDropPublishResponseDataConfigAccessModesItem:
      type: string
      enum:
        - public
        - followers
        - loyalty_tier
        - wholesale_buyers
        - token_holders
        - invite
        - verified_buyers
    CreateBrandingDropPublishResponseDataConfigWhatKindsItem:
      type: string
      enum:
        - listings
        - bundle
        - new_items
        - mystery_box
        - raffle_entry
        - nft_twin
    CreateConnectionEmailImapRequestWatchedPlatformsItem:
      type: string
      enum:
        - ebay
        - poshmark
        - mercari
        - depop
        - grailed
        - vinted
        - etsy
        - facebook
        - whatnot
        - offerup
        - vestiaire
        - stockx
        - reverb
        - tcgplayer
        - bonanza
        - shopify
    CreateCrmIntegrationRequestSyncSourcesItem:
      type: string
      enum:
        - orders
        - wholesale_buyers
        - lookbook_optins
        - group_buys
        - loyalty
    CreateDetectedEventRuleReorderResponseDataCandidatePoolStatusesItem:
      type: string
      enum:
        - active
        - draft
        - archived
        - sold_out
        - delisted
    CreateDetectedEventRuleReorderResponseDataFilterKindsItem:
      type: string
      enum:
        - sale
        - refunded
        - multi_item_sale
        - cancel_requested
        - order_cancelled
        - return_opened
        - return_closed
        - dispute_opened
        - dispute_closed
        - label_ready
        - tracking_added
        - shipped
        - delivered
        - payout_sent
        - listing_created
        - listing_changed
        - listing_ended
        - listing_removed_by_platform
        - listing_flagged
        - relisted
        - platform_price_drop
        - listing_like_added
        - watcher_added
        - offer_received
        - offer_updated
        - message_received
        - buyer_question
        - bundle_request
        - feedback_received
        - review_left
        - account_notice
        - connection_lost
        - connection_restored
        - platform_policy_change
        - contradiction
    CreateDiscountCodeRequestRulesChannelsItem:
      type: string
      enum:
        - storefront
        - live
        - marketplace
        - rentals
        - world
        - website
        - pos
    CreateFundingApplyRequestUsesItem:
      type: string
      enum:
        - ads
        - wholesale_on_crossly
        - verified_wholesaler
        - shipping_labels
        - crossly_fees
        - vault_fees
    CreateMeTemplateRenderResponseTokensUsedItem:
      type: string
      enum:
        - date
        - brand
        - category
        - month
        - sku
        - condition
        - size
        - material
        - style
        - color
        - price
        - year
        - model
        - item_name
    CreateMeTemplateRenderResponseMissingTokensItem:
      type: string
      enum:
        - date
        - brand
        - category
        - month
        - sku
        - condition
        - size
        - material
        - style
        - color
        - price
        - year
        - model
        - item_name
    CreateProductFeedCopyResponseCreatedFormatsItem:
      type: string
      enum:
        - json
        - csv
        - xml
        - tsv
        - atom
    CreateProductFeedRequestFiltersStatusesItem:
      type: string
      enum:
        - in_stock
        - out_of_stock
        - on_sale
    CreateProductFeedRequestFiltersConditionsItem:
      type: string
      enum:
        - new
        - refurbished
        - used
    CreateProductSetRequestFiltersStatusesItem:
      type: string
      enum:
        - active
        - draft
        - paused
        - archived
        - sold
    CreateWorldAvatarEquipResponseDataLoadoutSlotsItem:
      type: string
      enum:
        - avatar_head
        - avatar_body
        - avatar_outer
        - avatar_legs
        - avatar_feet
        - avatar_back
    CreateWorldExperienceLocalizationImportResponseDataLocalesItem:
      type: string
      enum:
        - id
        - hi
        - pl
        - it
        - en
        - es
        - fr
        - de
        - pt
        - nl
        - ja
        - ko
        - es-MX
        - pt-BR
        - sv
        - tr
        - ru
        - uk
        - ar
        - ms
        - th
        - vi
        - fil
        - zh-CN
        - zh-TW
    GetAccountNotificationPreferenceResponseChannelsItem:
      type: string
      enum:
        - email
        - push
        - inApp
    GetAiRoutingResponseImageSupportedProvidersItem:
      type: string
      enum:
        - openai
        - google
        - xai
        - together
    GetCbxMeResponseDataScopesItem:
      type: string
      enum:
        - read
        - spend
        - campaign
        - accrue
        - treasury
    GetDiscountHolderResponseDataChannelsItem:
      type: string
      enum:
        - storefront
        - live
        - marketplace
        - rentals
        - world
        - website
        - pos
    GetEventPolicyResponseDataMatrixAllowedItem:
      type: string
      enum:
        - record
        - ignore
        - review
        - mark_ended
        - notify
        - record_and_delist
        - import_and_record
        - mark_ended_and_delist
        - import
        - apply
        - apply_and_restock
    GetFundingControlResponseDataEffectiveUsesItem:
      type: string
      enum:
        - ads
        - wholesale_on_crossly
        - verified_wholesaler
        - shipping_labels
        - crossly_fees
        - vault_fees
    GetFundingControlResponseDataPolicyAllowedUsesItem:
      type: string
      enum:
        - ads
        - wholesale_on_crossly
        - verified_wholesaler
        - shipping_labels
        - crossly_fees
        - vault_fees
    GetProductFeedResponseFormatsItem:
      type: string
      enum:
        - json
        - csv
        - xml
        - tsv
        - atom
    GetProfileResponseDataDraftHeroButtonsItem:
      type: string
      enum:
        - message
        - share
        - follow
        - visit_store
    GetSandboxResponseSimulateValuesItem:
      type: string
      enum:
        - none
        - rate_limited
        - platform_error
    GetSearchResponseParsedTypesItem:
      type: string
      enum:
        - listings
        - inventory
        - orders
        - offers
        - sales
        - conversations
        - returns
        - customers
        - shipments
    GetSellerProfileResponseDataResolvedDocumentHeroButtonsItem:
      type: string
      enum:
        - message
        - share
        - follow
        - visit_store
    GetShowroomCatalogResponseDataHoldersFitsItem:
      type: string
      enum:
        - table
        - case
        - wall
        - shelf
        - rack
        - bin
    GetSpatialEmoteResponseWheelItem:
      type: string
      enum:
        - phone
        - spin
        - wave
        - point
        - clap
        - cheer
        - hype
        - shrug
        - nod
        - sit
        - lean
        - reach
        - dance
        - bow
        - thumbs
        - loupe
        - box_spin
        - flex
        - hug
        - high_five
        - handshake
        - facepalm
        - think
        - laugh
        - sigh
        - no
        - fist_pump
        - victory
        - yawn
        - salute
        - big_wave
        - beckon
        - shush
        - kiss
        - peace
        - heart
        - sway
        - vibe
        - air_guitar
        - robot
        - disco
        - gavel
        - haggle
        - arms_crossed
        - hands_on_hips
        - kneel
        - fist_bump
        - dance_off
        - showoff
        - moment:handshake
        - moment:unbox
        - moment:slab_flip
      nullable: true
    GetSpatialPublicResponseDataProfileItemModelVariantsItem:
      type: string
      enum:
        - item-card
        - item-card-slab
        - item-comic
        - item-comic-slab
        - item-vinyl
        - item-vinyl-disc
        - item-funko-box
        - item-lego-box
        - item-minifig
        - item-game-case
        - item-book
        - item-framed-print
        - item-sneaker
        - item-sneaker-court
        - item-sneaker-high
        - item-sneaker-canvas
        - item-slide
        - item-clog
        - item-boot
        - item-boot-chelsea
        - item-boot-cowboy
        - item-boot-shearling
        - item-heel
        - item-loafer
        - item-oxford
        - item-flat
        - item-sandal
        - item-cleat
        - item-handbag
        - item-bag-tote
        - item-bag-crossbody
        - item-bag-backpack
        - item-bag-clutch
        - item-watch
        - item-watch-bracelet
        - item-watch-tank
        - item-watch-smart
        - item-phone
        - item-laptop
        - item-console
        - item-controller
        - item-headphones
        - item-camera
        - item-tablet
        - item-handheld
        - item-mouse
        - item-keyboard
        - item-speaker
        - item-earbuds
        - item-tech-box
        - item-skate-deck
        - item-tee
        - item-hoodie
        - item-crewneck
        - item-tee-ls
        - item-jacket
        - item-jeans
        - item-dress
        - item-skirt
        - item-shorts
        - item-tank
        - item-polo
        - item-shirt
        - item-vest
        - item-cap
        - item-beanie
        - item-bucket
        - item-flat-cap
        - item-balaclava
        - item-socks
        - item-gloves
        - item-scarf
        - item-keychain
        - item-sunglasses
        - item-tie
        - item-headband
        - item-pin-card
        - item-mug
        - item-plate
        - item-lighter
        - item-belt
        - item-retail-box
        - item-ring
        - item-necklace
        - item-perfume
        - item-booster-box
        - item-booster-pack
        - item-bullion-bar
        - item-ball
        - item-guitar
        - item-coin
        - item-stamp
        - item-banknote
        - item-figure
        - item-figure-box
        - item-figure-loose
    GetSpatialPublicResponseDataProfileItemModelPoolItem:
      type: string
      enum:
        - item-card
        - item-card-slab
        - item-comic
        - item-comic-slab
        - item-vinyl
        - item-vinyl-disc
        - item-funko-box
        - item-lego-box
        - item-minifig
        - item-game-case
        - item-book
        - item-framed-print
        - item-sneaker
        - item-sneaker-court
        - item-sneaker-high
        - item-sneaker-canvas
        - item-slide
        - item-clog
        - item-boot
        - item-boot-chelsea
        - item-boot-cowboy
        - item-boot-shearling
        - item-heel
        - item-loafer
        - item-oxford
        - item-flat
        - item-sandal
        - item-cleat
        - item-handbag
        - item-bag-tote
        - item-bag-crossbody
        - item-bag-backpack
        - item-bag-clutch
        - item-watch
        - item-watch-bracelet
        - item-watch-tank
        - item-watch-smart
        - item-phone
        - item-laptop
        - item-console
        - item-controller
        - item-headphones
        - item-camera
        - item-tablet
        - item-handheld
        - item-mouse
        - item-keyboard
        - item-speaker
        - item-earbuds
        - item-tech-box
        - item-skate-deck
        - item-tee
        - item-hoodie
        - item-crewneck
        - item-tee-ls
        - item-jacket
        - item-jeans
        - item-dress
        - item-skirt
        - item-shorts
        - item-tank
        - item-polo
        - item-shirt
        - item-vest
        - item-cap
        - item-beanie
        - item-bucket
        - item-flat-cap
        - item-balaclava
        - item-socks
        - item-gloves
        - item-scarf
        - item-keychain
        - item-sunglasses
        - item-tie
        - item-headband
        - item-pin-card
        - item-mug
        - item-plate
        - item-lighter
        - item-belt
        - item-retail-box
        - item-ring
        - item-necklace
        - item-perfume
        - item-booster-box
        - item-booster-pack
        - item-bullion-bar
        - item-ball
        - item-guitar
        - item-coin
        - item-stamp
        - item-banknote
        - item-figure
        - item-figure-box
        - item-figure-loose
    GetSpatialPublicResponseDataProfileDefaultGroupByItem:
      type: string
      enum:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - value
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
        - exhibitor
      x-enum-varnames:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - valueOption
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
        - exhibitor
    GetSpatialPublicResponseDataProfileDefaultSortByItem:
      type: string
      enum:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - value
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
        - exhibitor
      x-enum-varnames:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - valueOption
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
        - exhibitor
    GetSpatialSpaceResponseDataSpacesFacetsItem:
      type: string
      enum:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - value
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
        - exhibitor
      x-enum-varnames:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - valueOption
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
        - exhibitor
    GetSponsoredAdBillingResponseDataAccountRailsEffectiveItem:
      type: string
      enum:
        - cash
        - cbx
    GetSponsoredAdBillingResponseDataFundsRailsEffectiveItem:
      type: string
      enum:
        - cash
        - cbx
    GetStallQuoteResponseQuoteRailsItem:
      type: string
      enum:
        - card
        - cbx
        - bucks
    GetStorefrontOnboardingResponseRequirementsMissingItem:
      type: string
      enum:
        - payouts
        - return_policy
        - ship_from
        - shipping_policy
    GetStorefrontProfileResponseDataProfileAllItemsProgramChipsItem:
      type: string
      enum:
        - live
        - auction
        - buy_it_now
        - rentable
        - in_stock
        - free_shipping
        - on_sale
        - discount_eligible
        - code_eligible
        - group_buy_active
        - wholesale_available
        - loyalty_exclusive
        - low_stock
        - local_pickup
        - vault_held
    GetVaultAttestationResponseKindsItem:
      type: string
      enum:
        - other
        - physical_count
        - insurance_certificate
        - soc1_type2
        - soc2
    GetVaultMarketLearnByConceptResponseRelatedItem:
      type: string
      enum:
        - lending
        - instant-exit
        - shorts
        - liens
        - auctions
        - indexes
        - marks
        - vault-shares
    GetVaultMarketUnitStoryResponseBadgesItem:
      type: string
      enum:
        - graded
        - pledged
        - lent_to_hall
        - on_loan
        - token_out
        - receipt_verified
        - left_vault
    GetWorkflowCatalogResponseDataConditionOperatorsAppliesToItem:
      type: string
      enum:
        - string
        - number
        - boolean
        - array
        - any
        - datetime
    GetWorldAttendantResponseDataAttendantLanguagesItem:
      type: string
      enum:
        - it
        - en
        - es
        - fr
        - de
        - pt
        - nl
        - ja
        - ko
        - zh
    GetWorldAvatarBasicResponseDataOptionalItem:
      type: string
      enum:
        - top
        - shoes
        - outer
        - bottom
        - hat
    GetWorldAvatarLoadoutResponseDataSlotsItem:
      type: string
      enum:
        - avatar_head
        - avatar_body
        - avatar_outer
        - avatar_legs
        - avatar_feet
        - avatar_back
    GetWorldCapabilityCatalogueResponseDataKindsClientsItem:
      type: string
      enum:
        - app
        - api
        - web
        - godot
        - runner
    GetWorldConventionExhibitResponseRailsEffectiveItem:
      type: string
      enum:
        - cash
        - cbx
    GetWorldExperienceTeamResponseDataYouPermissionsItem:
      type: string
      enum:
        - settings
        - view
        - publish
        - monetize
        - edit_instances
        - edit_scripts
        - data_live_read
        - data_live_write
        - analytics
        - playtest
        - manage_collaborators
        - payout_splits
        - upload
        - archive
    GetWorldGameMineResponseDataTabsItem:
      type: string
      enum:
        - settings
        - overview
        - details
        - badges
        - rewards
        - access
        - places
        - localization
        - versions
        - assets
        - safety
        - collaborators
        - monetize
        - live-ops
        - servers
    GetWorldGameResponseDataPlacesItem:
      type: string
      enum:
        - home
        - boutique
        - space
        - own
        - commons
    GetWorldGameResponseDataContestsEntryItem:
      type: string
      enum:
        - free
        - paid
        - sponsored
    GetWorldPolicyMeResponseDataPlayStepsItem:
      type: string
      enum:
        - region
        - parent_link
    GetWorldPolicyMeResponseDataMatureStepsItem:
      type: string
      enum:
        - region
        - restricted
        - opt_in
        - sign_in
        - add_birth_month
        - too_young
        - verify_id
        - verify_id_age
        - id_too_young
        - parental
    GetWorldRailResponseEffectiveItem:
      type: string
      enum:
        - cash
        - cbx
    GetWorldStreetFundResponseDataUnlockedItem:
      type: string
      enum:
        - bunting
        - lanterns
        - party-arch
        - festival-lights
    GetWorldStreetOwnedResponseDataFundUnlockedItem:
      type: string
      enum:
        - bunting
        - lanterns
        - party-arch
        - festival-lights
    ListAutomaticDiscountsItemChannelsItem:
      type: string
      enum:
        - storefront
        - live
        - marketplace
        - rentals
        - world
        - website
        - pos
    ListBrandingDropsItemConfigAccessModesItem:
      type: string
      enum:
        - public
        - followers
        - loyalty_tier
        - wholesale_buyers
        - token_holders
        - invite
        - verified_buyers
    ListBrandingDropsItemConfigWhatKindsItem:
      type: string
      enum:
        - listings
        - bundle
        - new_items
        - mystery_box
        - raffle_entry
        - nft_twin
    ListBrandingDropsItemConfigWherePlacementsItem:
      type: string
      enum:
        - storefront
        - live
        - wholesale
        - world
        - shop
        - site
        - embed
    ListChannelAccountsItemCapabilitiesOutOfStockActionsItem:
      type: string
      enum:
        - delete
        - end
        - zero
      x-enum-varnames:
        - delete
        - endOption
        - zero
    ListCrmIntegrationsItemSyncSourcesItem:
      type: string
      enum:
        - orders
        - wholesale_buyers
        - lookbook_optins
        - group_buys
        - loyalty
    ListDetectedEventEventsItemGuardsHeldItem:
      type: string
      enum:
        - ignore
        - relist
        - cancel_order
        - ask
        - record_sale
        - void_sale
        - record_event
        - link_to_item
        - unlink_item
        - import_as_item
        - create_stub
        - attach_history_only
        - decrement_stock
        - restore_stock
        - set_stock
        - oversell_alert
        - sync_sibling_qty
        - delist_siblings
        - end_siblings
        - relist_siblings
        - update_siblings
        - end_this_listing
        - apply_remote_change
        - revert_remote_change
        - mark_ended
        - record_platform_change
        - share
        - apply_order_event
        - accept_cancel_request
        - decline_cancel_request
        - mark_shipped
        - mark_delivered
        - record_refund
        - restock_on_return
        - track_with_crossly
        - accept_offer
        - decline_offer
        - counter_offer
        - send_offer_to_likers
        - reply
        - auto_reply_vacation
        - leave_feedback
        - await_confirmation
        - fire_automation
        - outbound_webhook
        - notify
        - confirm_job
        - log_only
    ListDiscountCodesItemRulesChannelsItem:
      type: string
      enum:
        - storefront
        - live
        - marketplace
        - rentals
        - world
        - website
        - pos
    ListDiscountHoldersItemChannelsItem:
      type: string
      enum:
        - storefront
        - live
        - marketplace
        - rentals
        - world
        - website
        - pos
    ListProductFeedsItemFormatsItem:
      type: string
      enum:
        - json
        - csv
        - xml
        - tsv
        - atom
    ListProductFeedsItemFiltersStatusesItem:
      type: string
      enum:
        - in_stock
        - out_of_stock
        - on_sale
    ListProductFeedsItemFiltersConditionsItem:
      type: string
      enum:
        - new
        - refurbished
        - used
    ListProductSetsItemFiltersStatusesItem:
      type: string
      enum:
        - active
        - draft
        - paused
        - archived
        - sold
    ListShowroomItemSearchItemBadgesItem:
      type: string
      enum:
        - listed
        - passport
        - multi_unit
    ListSponsoredAdCampaignsItemPlacementsItem:
      type: string
      enum:
        - search
        - storefront
        - browse
        - product_page
        - home_rail
        - worlds_surface
    ListWalletDefaultsItemFamiliesItem:
      type: string
      enum:
        - solana
        - evm
    ListWalletDefaultsItemRefKindsItem:
      type: string
      enum:
        - game
        - collection
    ListWeb3StoreWalletsItemMarketplacesItem:
      type: string
      enum:
        - rarible
        - magic_eden
        - tensor
        - opensea
    ListWorldDecorCatalogueItemBuyWithItem:
      type: string
      enum:
        - cosm
        - cbx
    ListWorldExperienceExperimentsItemTargetingPlatformsItem:
      type: string
      enum:
        - app
        - web
        - godot
    ListWorldGamesItemPlacesItem:
      type: string
      enum:
        - home
        - boutique
        - space
        - own
        - commons
    ListWorldTransferRequestsItemActionsItem:
      type: string
      enum:
        - accept
        - cancel
        - decline
        - expire
    SponsoredAdCampaignResponseDataPlacementsItem:
      type: string
      enum:
        - search
        - storefront
        - browse
        - product_page
        - home_rail
        - worlds_surface
    UpdateConnectionEmailImapRequestWatchedPlatformsItem:
      type: string
      enum:
        - ebay
        - poshmark
        - mercari
        - depop
        - grailed
        - vinted
        - etsy
        - facebook
        - whatnot
        - offerup
        - vestiaire
        - stockx
        - reverb
        - tcgplayer
        - bonanza
        - shopify
    UpdateDeveloperAppListingResponseDataDecisionChangedItem:
      type: string
      enum:
        - name
        - scopes
        - audience
      x-enum-varnames:
        - nameOption
        - scopes
        - audience
    UpdateDeveloperAppProfileResponseDataDecisionChangedItem:
      type: string
      enum:
        - name
        - scopes
        - audience
      x-enum-varnames:
        - nameOption
        - scopes
        - audience
    UpdateDeveloperAppResponseDataReReviewItem:
      type: string
      enum:
        - name
        - scopes
        - audience
      x-enum-varnames:
        - nameOption
        - scopes
        - audience
    UpdateEmailProviderUsRequestUsesItem:
      type: string
      enum:
        - invoices
        - lookbooks
        - receipts
    UpdateEmailProviderUsResponseDataUsesItem:
      type: string
      enum:
        - invoices
        - lookbooks
        - receipts
    UpdateFundingControlRequestAllowedUsesItem:
      type: string
      enum:
        - ads
        - wholesale_on_crossly
        - verified_wholesaler
        - shipping_labels
        - crossly_fees
        - vault_fees
    UpdateShowroom2ResponseDataItemsBadgesItem:
      type: string
      enum:
        - listed
        - passport
        - multi_unit
    UpdateShowroom2ResponseDataSettingsGroupByItem:
      type: string
      enum:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - value
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
      x-enum-varnames:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - valueOption
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
    UpdateShowroom2ResponseDataSettingsSortByItem:
      type: string
      enum:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - value
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
      x-enum-varnames:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - valueOption
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
    UpdateShowroomRequestSettingsGroupByItem:
      type: string
      enum:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - value
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
      x-enum-varnames:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - valueOption
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
    UpdateShowroomRequestSettingsSortByItem:
      type: string
      enum:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - value
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
      x-enum-varnames:
        - brand
        - label
        - status
        - age
        - condition
        - size
        - title
        - valueOption
        - set
        - team
        - year
        - grade
        - game
        - franchise
        - era
        - genre
        - colour
    UpdateSourceSyncRequestSourceOwnedFieldsItem:
      type: string
      enum:
        - brand
        - description
        - images
        - sku
        - quantity
        - tags
        - title
        - price
    UpdateStorefrontShippingRequestShippingPolicyDomesticCarriersItem:
      type: string
      enum:
        - USPS
        - UPS
        - FedEx
        - DHL
    UpdateStorefrontShippingRequestShippingPolicyInternationalCarriersItem:
      type: string
      enum:
        - USPS
        - UPS
        - FedEx
        - DHL
    UpdateVaultMarketPartnerMeRequestServicesItem:
      type: string
      enum:
        - consignment
        - photography
        - authentication
        - walk_in
        - grading_prep
    UpdateWholesaleProfileRequestPaymentTermsOfferedItem:
      type: string
      enum:
        - card
        - net_terms
    UpdateWorldAttendantRequestLanguagesItem:
      type: string
      enum:
        - it
        - en
        - es
        - fr
        - de
        - pt
        - nl
        - ja
        - ko
        - zh
    UpdateWorldAttendantResponseDataLanguagesItem:
      type: string
      enum:
        - it
        - en
        - es
        - fr
        - de
        - pt
        - nl
        - ja
        - ko
        - zh
    UpdateWorldEmoteWheelResponseDataWheelItem:
      type: string
      enum:
        - phone
        - spin
        - wave
        - point
        - clap
        - cheer
        - hype
        - shrug
        - nod
        - sit
        - lean
        - reach
        - dance
        - bow
        - thumbs
        - loupe
        - box_spin
        - flex
        - hug
        - high_five
        - handshake
        - facepalm
        - think
        - laugh
        - sigh
        - no
        - fist_pump
        - victory
        - yawn
        - salute
        - big_wave
        - beckon
        - shush
        - kiss
        - peace
        - heart
        - sway
        - vibe
        - air_guitar
        - robot
        - disco
        - gavel
        - haggle
        - arms_crossed
        - hands_on_hips
        - kneel
        - fist_bump
        - dance_off
        - showoff
        - moment:handshake
        - moment:unbox
        - moment:slab_flip
      nullable: true
  securitySchemes:
    PersonalAccessToken:
      type: http
      scheme: bearer
      description: Personal Access Token from Settings → API, or a seller OAuth token.
paths:
  /v1/public/templates/{token}:
    get:
      summary: A shared template by its share token (public, no auth).
      tags:
        - Templates
      parameters:
        - schema:
            type: string
          in: path
          name: token
          required: true
      security: []
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPublicTemplateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPublicTemplate
  /v1/public/creator-rewards/reconciliation:
    get:
      summary: "Public monthly reconciliation of Creator Rewards (no auth): per month the pool funded from Crossly's take, carried in, distributed, paid (from the ledger), carried over, the formula version and weights, eligible experiences and every check; plus the formula in force and scheduled changes (90-day notice)."
      tags:
        - Creator Rewards
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 60
          in: query
          name: limit
          required: false
          description: Months to return, newest first (default 24).
      security: []
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPublicCreatorRewardReconciliationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPublicCreatorRewardReconciliation
  /v1/me:
    get:
      summary: Identity check — authenticated user + PAT scopes + account state.
      tags:
        - Account
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMe
    patch:
      summary: Update the authenticated user's profile (display name, etc).
      tags:
        - Profile
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateMe
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateMeRequest"
  /v1/inventory:
    get:
      summary: List inventory items.
      tags:
        - Inventory
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
        - schema:
            type: string
          in: query
          name: search
          required: false
        - schema:
            type: string
          in: query
          name: status
          required: false
        - schema:
            type: string
            enum:
              - physical
              - web3
          in: query
          name: kind
          required: false
          description: Physical goods or Web3 assets (NFTs). Omit for both.
        - schema:
            type: string
          in: query
          name: platforms
          required: false
          description: Comma-separated marketplaces, e.g. "ebay,vinted". Items live (an active listing) on any of them.
        - schema:
            type: string
            enum:
              - listed
              - not_listed
          in: query
          name: platformMode
          required: false
          description: '"not_listed" inverts `platforms`: items live on none of them. Default "listed".'
        - schema:
            type: string
          in: query
          name: assignee
          required: false
          description: "Work assignment: 'me' (your own seat), 'none' (unassigned), 'any' (assigned to someone) or a team member id."
        - schema:
            type: string
            maxLength: 200
          in: query
          name: sku
          required: false
          description: "Exact SKU match: look up the row a supplier product maps to."
        - schema:
            type: string
            format: date-time
          in: query
          name: updatedSince
          required: false
          description: Only rows created or changed at or after this time (ISO 8601), oldest change first. Poll with the updatedAt of the last row you saw.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listInventory
    post:
      summary: Create a new inventory item.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryRequest"
  /v1/inventory/facets:
    get:
      summary: Distinct brands + categories across this user's inventory.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingFacetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInventoryFacet
  /v1/inventory/ids:
    get:
      summary: Filter inventory → return matching id list.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingIdsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listInventoryIds
  /v1/inventory/sku-exists:
    get:
      summary: Check whether a SKU is already in use on this user's inventory.
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
          in: query
          name: sku
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingSkuExistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInventorySkuExist
  /v1/inventory/labels:
    get:
      summary: List every distinct label across this user's inventory.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInventoryLabelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInventoryLabel
  /v1/inventory/{id}:
    get:
      summary: Get one inventory item with platform listings.
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInventory
    patch:
      summary: Update an inventory item (partial).
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateInventory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateInventoryRequest"
    delete:
      summary: Soft-archive an inventory item.
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteInventory
  /v1/inventory/{id}/activity:
    get:
      summary: Activity log for an inventory item (created/sold/edited/etc.).
      tags:
        - Inventory
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInventoryActivityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listInventoryActivity
  /v1/inventory/{id}/units:
    get:
      summary: List the individually identified units of an inventory item.
      tags:
        - Inventory
      description: "Each identifier carries a `strength` describing what it proves: `strong` was recorded before the item sold, `good` at packing, `weak` only after it shipped. The grade is derived from when it was recorded, never from the value itself."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInventoryUnitsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listInventoryUnits
  /v1/orders/{id}/units:
    get:
      summary: List the identified units that shipped on an order.
      tags:
        - Orders
      description: "The dispute-time read: what physically went out. An empty list means no identity was recorded, which is not the same as the order having no units."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOrderUnitsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listOrderUnits
  /v1/inventory/holds/issues:
    get:
      summary: List the stock problems the holds ledger finds.
      tags:
        - Inventory
      description: "`held_but_listed`: every unit of an item is held for a program while a marketplace listing is still live. `expired_hold_unreleased`: a hold ran past its expiry and still keeps its units off sale."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInventoryHoldIssuesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listInventoryHoldIssues
  /v1/inventory/{id}/holds:
    get:
      summary: List the holds on an inventory item.
      tags:
        - Inventory
      description: "Each hold names the program that set units aside (`sourceKind`: wholesale_quote, rental_booking, live_lineup, cart, vault_submission, consignment, manual), its record (`sourceId`), how many units and until when. `state` is `active`, `lapsed` (past its expiry, not released yet) or `released`. Holds in force by default; `history=true` adds released ones."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: history
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInventoryHoldsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listInventoryHolds
  /v1/orders/{id}/evidence:
    get:
      summary: Everything recorded about how this order was packed and how it arrived.
      tags:
        - Orders
      description: Returns the packing capture and its attestation verdict, the seal comparison (dispatch vs arrival), the buyer's arrival-condition state, and the identified units that shipped. Absence is reported as absence — an empty section means nothing was recorded, never that nothing happened.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderEvidenceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderEvidence
  /v1/orders/{id}/delivery-photo:
    get:
      summary: The courier's delivery photo for this order, pulled automatically, with where it came from.
      tags:
        - Orders
      description: Crossly pulls the doorstep photo from whoever has it (the carrier API, e.g. UPS; Trackified when its tracking carries one; the marketplace when its payload does) and stores it on the order. state is found | none | not_delivered; source / sourceLabel say where it came from ("From UPS", "Added by you"); checked lists who was asked when there is none. Carriers often attach the photo hours after delivery.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderDeliveryPhotoResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderDeliveryPhoto
  /v1/spatial/scenes:
    get:
      summary: The rooms this account has.
      tags:
        - Inventory
      description: The seller's ONE shop (kind `shop`, every display in one boutique) and their warehouse. Both are created on first read rather than requiring setup, so this call is safe to treat as the entry point. Older per-category rooms may also be listed as kind `collection`; they are no longer created or shown to visitors.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialScenesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialScenes
    post:
      summary: "Start a 3D room: a collection (your items on shelves) or a warehouse (racks you arrange). Private until you make it public."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialSceneRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialSceneResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialScene
  /v1/spatial/public:
    get:
      summary: Public rooms anyone can walk into.
      tags:
        - Inventory
      description: "The directory behind world-hopping. A room becomes public when its owner shares it; this lists those, newest first, with enough to draw a doorway AND enough to choose one — name, slug, category, itemCount, up to four previewImages, forSaleCount, a priceFromCents/priceToCents band and updatedAt. The band is the cheapest and dearest thing for sale in the room, never a quote for one object: /api/public/spatial/{slug}/offers is the authority on that. Fetch the room itself from /api/public/spatial/{slug}. Rooms with no items are omitted: an empty room is not a destination."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialPublicResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialPublic
  /v1/spatial/public/{slug}:
    get:
      summary: A shared room, as a visitor sees it.
      tags:
        - Inventory
      description: "The room behind a share link: container geometry in METRES matching the real physical object, the solved arrangement, and one row per object on the shelves. REDACTED relative to the owner's view — no cost, no storage location, no listing status — so do not expect the fields /v1/spatial/scenes/{id} returns. Each placement carries `pinned`: true means a HUMAN put it there and it will not move; false means a layout SOLVER chose, and it may choose differently once the stock changes, so an unpinned placement is never a statement about where something physically is. `solved.overflow` lists what did not fit — a non-empty array means the room is INCOMPLETE and `stats.itemCount` exceeds what is on screen. Resolves rooms shared as `unlisted` as well as `public`: holding the link is the permission."
      parameters:
        - schema:
            type: string
            minLength: 8
            maxLength: 64
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialPublicResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialPublic
  /v1/spatial/public/{slug}/offers:
    get:
      summary: What is for sale in a shared room.
      tags:
        - Inventory
      description: "Price, stock, condition and grade for everything in the room its owner is actually selling. Correlate to the room by `itemId`, which is the SAME id the scene payload publishes per item — never by title. An item in the room with no row here is not for sale; an empty array means the owner is showing the collection rather than selling it, which is a different answer from a 404 (no such shared room). SEPARATE CALL ON PURPOSE: the room's geometry is stable for minutes, a price is not — it changes whenever the seller edits a listing. Re-read this before quoting, and do not cache a price alongside a cached room. `priceCents` is CENTS. `available` is remaining stock, or null when the listing declares none; null is unknown, not zero. Where an item sits inside more than one active listing, the offer quoted is the one for that item alone rather than a bundle it belongs to."
      parameters:
        - schema:
            type: string
            minLength: 8
            maxLength: 64
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialPublicOffersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialPublicOffers
  /v1/spatial/scenes/{id}:
    get:
      summary: "A solved room: every item, where it sits, and why."
      tags:
        - Inventory
      description: "Returns the space profile (container geometry in METRES, matching the real physical object), the solved placements, and the items. Placements carry a `pinned` flag: true means a human put it there and the layout solver will not move it; false means the solver chose, and it may choose differently once the stock changes. `overflow` lists anything that did not fit — it is reported, never silently dropped."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialSceneResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialScene
  /v1/spatial/scenes/{id}/warehouse:
    get:
      summary: "A warehouse room: your racks, where they stand, and what is on each."
      tags:
        - Inventory
      description: "For a room of kind `warehouse`. Racks are your own storage units (pallet racks, shelving, garment rails, floor totes) with their location `code` (the one written to each item's storage location when stock is placed), a floor position in METRES, and `capacity` / `stocked` / `fill`. `positioned: false` means you never stood the rack anywhere and it was laid out for you. Each rack lists the items on it with the full code of the level or bin they sit in. A non-warehouse room is a 400."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialSceneWarehouseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialSceneWarehouse
  /v1/spatial/scenes/{id}/movements:
    get:
      summary: Stock movements in a room over a time window.
      tags:
        - Inventory
      description: "One row per physical transition: which item, from which node, to which node, when, and of what kind (placed/moved/picked/shipped/received/removed). Nodes are referenced by id; the `fromCode`/`toCode` strings are display snapshots of the location code AT THE TIME and are not stable identifiers — correlate on the node ids. `since`/`until` are ISO timestamps, defaulting to the last seven days and clamped to 90. Movements are NOT attributed to individual team members on this surface: a token has no team role, so there is no honest way to decide whether its holder may see who did the work."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialSceneMovementsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialSceneMovements
  /v1/spatial/auction/rooms:
    get:
      summary: Rooms of yours that are hosting an auction.
      tags:
        - Inventory
      description: "One row per room you OWN that currently has a live-auction session bound into it, with that session's title, status and schedule joined in so you do not have to fetch each one to find out whether anything is running. Empty is the ordinary answer: hosting nothing is the normal state of every room on the platform. This is deliberately not \"rooms I could bid in\" — that is the public directory at /api/v1/spatial/public, and enumerating every stranger's saleroom here would be a different endpoint wearing this one's name. `topics.auction` is the WebSocket topic the price moves on; `topics.room` is null until the room has been shared."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialAuctionRoomsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialAuctionRooms
  /v1/spatial/auction/rooms/{sceneId}:
    get:
      summary: What the rostrum says in this room, right now.
      tags:
        - Inventory
      description: "Serves whoever may ENTER the room, not only its owner — a saleroom restricted to the host would leave every visitor polling a 404 while standing in it. `hosting: false` with a null `auction` is a described empty answer, not an error. READ `currentLot.minimumNextBidCents`, never `currentBidCents + bidIncrementCents`: the first bid on a lot is floored at the START price rather than start + step, so deriving it locally raises the entry price on any lot with a real increment. All amounts are CENTS. `reserveMet` says whether the seller's floor has been cleared; the floor ITSELF is never published, because a crowd that can read it bids to it and stops. `serverTime` is this server's clock, handed over so you can age the session without trusting your own — there is no per-lot deadline to report, because a lot closes when a human drops the hammer and not when a timer expires. A room you may not enter answers 404, the same as one that does not exist."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: sceneId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialAuctionRoomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialAuctionRoom
  /v1/spatial/auction/rooms/{sceneId}/lots:
    get:
      summary: "The catalogue: every lot in the session this room is hosting."
      tags:
        - Inventory
      description: "In lot-number order, which is the order the auctioneer reaches them. Each row carries the same fields as the current lot — `minimumNextBidCents` is the figure the bid transaction evaluates against, and every amount is CENTS. A lot with a `hammerAt` has been sold and one with `skipped: true` failed its reserve; neither takes further bids. The reserve AMOUNT is absent by design and `reserveMet` is the only thing said about it. Which lot is UP is not derivable from this list — the auctioneer is the authority and may skip ahead — so take that from the room state endpoint rather than from the lowest open lot number. A room hosting nothing answers an empty list, not a 404: 404 here means the room does not exist or you may not enter it."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: sceneId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialAuctionRoomLotsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialAuctionRoomLots
  /v1/spatial/auction/public/{slug}:
    get:
      summary: A shared saleroom, opened by its public share handle.
      tags:
        - Inventory
      description: "The bridge between the public room directory and this auction surface: /api/v1/spatial/public hands out SLUGS, while everything else here is keyed by scene id, and the two are deliberately not interchangeable. Resolves `public` rooms ONLY — an `unlisted` room is a bearer link, and crowd-shaped features stay off in those — so a slug that works on /api/v1/spatial/public/{slug} may still answer 404 here. The reply carries the `sceneId` you then pass to the room state, lots and bid endpoints. Same reading rules as the room state: amounts in CENTS, `minimumNextBidCents` rather than your own arithmetic, no reserve amount."
      parameters:
        - schema:
            type: string
            minLength: 8
            maxLength: 64
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialAuctionPublicResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialAuctionPublic
  /v1/spatial/employee/config:
    get:
      summary: How the shop employee in one of your rooms is configured.
      tags:
        - Inventory
      description: "Owner-only, and 404 for a room this account does not own — the same answer a room that does not exist gives, so this cannot be used to discover scene ids. `config: null` means the room has never had an employee configured, which is different from one that exists and is switched off (`enabled: false`). THE SIGNING SECRET IS NEVER RETURNED, here or anywhere else. It is encrypted at rest and handed back in plaintext exactly once, in the response to the PUT that minted it; `hasAgentSecret` is the only thing any read path will say about it, and re-reading it is impossible by construction rather than by omission. `suspendedAt` non-null means the employee is off the floor because a charge was refused — `suspendedReason` says which — and saving the config again clears it. `brainKind` is idle (stands there), rules (the list in `rules`, evaluated in order, first match wins) or agent (your own endpoint decides)."
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: sceneId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialEmployeeConfigResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialEmployeeConfig
    put:
      summary: Create or replace the shop employee in one of your rooms.
      tags:
        - Inventory
      description: "A full replace, not a patch: every field is written from this body, so read GET /api/v1/spatial/employee/config first and send it back changed. Owner-only — a room this account does not own answers 404, the same as one that does not exist. `brainKind` is idle (stands there), rules (`rules` evaluated in order, first match wins, max 12) or agent (your endpoint decides, and an endpoint URL is then required). A rule is `{ when, afterSeconds?, do: { act, line?, offerId?, itemId? } }`; `when` and `do.act` must come from the published vocabularies and anything else is a 400. NOTHING IN A RULE CARRIES A PRICE — `do.offerId` is a key into your own offers and the server prices it, so an employee can propose a discount it cannot grant. `displayName` and `do.line` must be printable ASCII: they are drawn in the room from a fixed glyph atlas and anything else renders as a floating box, so they are refused rather than silently rewritten. `agentEndpointUrl` is resolved and validated before it is stored — a public-looking hostname that answers with a private address is refused here rather than accepted and then never called. THE SIGNING SECRET IS RETURNED AT MOST ONCE, in the response that MINTS it: when you pass `rotateSecret: true`, or when you set an agent endpoint on a room that had no secret. Store it then — there is no read path that will ever return it again, and `hasAgentSecret` is all any GET will say. Send an Idempotency-Key if you might retry a rotation: without one, a retried rotate mints a SECOND secret and invalidates the one you just received. Saving anything also CLEARS a suspension — if the employee was paused for want of COSM it is back on the floor, and will be paused again by the next refused charge. Note what this endpoint cannot do: it cannot start a conversation. Engagements are emitted by the room as it is drawn, and they are what costs money."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateSpatialEmployeeConfigResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSpatialEmployeeConfig
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSpatialEmployeeConfigRequest"
  /v1/spatial/employee/usage:
    get:
      summary: What your shop employees cost over a period, per room.
      tags:
        - Inventory
      description: "One row per room that had at least one conversation in the window; rooms with none are ABSENT rather than reported as zero. `since`/`until` are ISO 8601 and default to the last 30 days, and a window may span at most 366 days — longer is a 400, not a silently shortened period. Money: `billedCents` is COSM cents that were actually charged, and it is the figure to report. `burnBaseUnits` and `poolBaseUnits` are COSM base units as STRINGS because they are 64-bit integers — half the fee is destroyed and half moves to the employee-tax pool. `openConversations` are running right now: measured, not yet billed, and contributing 0 to every money field until they settle, so a total read mid-conversation is a floor rather than a final figure. `unpaidConversations` were settled WITHOUT payment — the seller was short of COSM or COSM is not live on this deployment — and each of those also suspended the employee in that room; they are not a debt and will never be retried. `meta.totals` is the same window summed in the database, not the sum of the rows. `meta.rate` restates the price so a figure can be checked by hand: billing is per STARTED minute, per CUSTOMER, only while somebody is engaged. An employee standing in an empty shop costs nothing."
      parameters:
        - schema:
            type: string
          in: query
          name: since
          required: false
        - schema:
            type: string
          in: query
          name: until
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: sceneId
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialEmployeeUsageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialEmployeeUsage
  /v1/spatial/employee/sessions:
    get:
      summary: "The itemised bill: one row per customer-conversation."
      tags:
        - Inventory
      description: "Newest first, filtered by `since`/`until` (ISO 8601, default 30 days, max 366) and optionally by `sceneId`. `unpaidOnly` narrows to the conversations that settled without payment. This is what makes a usage total checkable by hand: each row carries the interval it was priced from. `engagedMs` is SERVER-measured, from two timestamps this server wrote — no client reports its own duration anywhere in this feature — and it is null, not zero, while the conversation is still running. `settledAt` null with an `endedAt` set means billing has not yet run; `unpaidReason` set means it ran and moved nothing. Base units are STRINGS (64-bit integers). THE CUSTOMER IS NOT NAMED. Billing is per customer, but no row here carries a visitor identity — a bill is an account of what was spent, not a list of who walked in, and publishing the user ids of strangers through a seller API key is a different feature with a different consent question."
      parameters:
        - schema:
            type: string
          in: query
          name: since
          required: false
        - schema:
            type: string
          in: query
          name: until
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: sceneId
          required: false
        - schema:
            type: boolean
            default: false
          in: query
          name: unpaidOnly
          required: false
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialEmployeeSessionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialEmployeeSessions
  /v1/listings:
    get:
      summary: List active platform listings.
      tags:
        - Listings
      description: "Each row carries `pricing`: `avgAsking` (average price across its active marketplace rows, per-platform overrides and price rules applied) and `avgSale` (average price per unit sold, refunds netted), each `{ amount, currency, count }` or null. Never averaged across currencies."
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
        - schema:
            type: string
          in: query
          name: platform
          required: false
        - schema:
            type: string
          in: query
          name: status
          required: false
        - schema:
            type: string
            maxLength: 200
          in: query
          name: sku
          required: false
          description: "Exact SKU match: look up the row a supplier product maps to."
        - schema:
            type: string
            format: date-time
          in: query
          name: updatedSince
          required: false
          description: Only rows created or changed at or after this time (ISO 8601), oldest change first. Poll with the updatedAt of the last row you saw.
        - schema:
            type: string
            enum:
              - physical
              - web3
          in: query
          name: kind
          required: false
          description: Physical goods or Web3 assets (NFT listings). Omit for both.
        - schema:
            type: array
            items:
              type: string
          in: query
          name: tag
          required: false
          description: "Only listings carrying ANY of these tags (case-insensitive): repeat `tag` or comma-separate."
        - schema:
            type: boolean
          in: query
          name: stillLive
          required: false
          description: "Only listings still active on at least one marketplace. With status=sold: sold items still buyable somewhere (a delist failed, is pending or never ran)."
        - schema:
            type: string
          in: query
          name: assignee
          required: false
          description: "Work assignment: 'me' (your own seat), 'none' (unassigned), 'any' (assigned to someone) or a team member id."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listListings
    post:
      summary: Create a listing and fan out crosspost jobs across platforms.
      tags:
        - Listings
      description: "Listing fields go in `data`. Channel apps can also send `categoryId` (GET /v1/categories/search), `itemSpecifics` (validated against GET /v1/categories/:id/aspects; `warnings` lists soft problems), `condition`, `brand`, per-marketplace `overrides` and `policies` (preset ids from GET /v1/policies), folded in the way the web form does: an override replaces the master value on that marketplace, anything derived only fills blanks."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingRequest"
  /v1/listings/facets:
    get:
      summary: Distinct brands + categories across listings + inventory.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingFacetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getListingFacet
  /v1/listings/ids:
    get:
      summary: Filter listings → return matching id list (no pagination).
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingIdsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listListingIds
  /v1/listings/sku-exists:
    get:
      summary: Check whether a SKU is already used by one of this user's items.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: query
          name: sku
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingSkuExistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getListingSkuExist
  /v1/listings/{id}:
    get:
      summary: Get one listing with its platform rows.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getListing
    patch:
      summary: Edit a listing and fan out update jobs to existing platform listings.
      tags:
        - Listings
      description: 'The fields to change go in `changes` (a sparse object, e.g. `{ "changes": { "price": 24.99 } }`). `data` is accepted as an alias of `changes` (the name create and bulk create use); sending both is a 400. Omit `platforms` to push the edit everywhere the listing is live.'
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateListing
    delete:
      summary: Delist a listing (optionally narrowed to specific platforms via ?platforms=).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: query
          name: platforms
          required: false
          description: Comma-separated platform slugs to limit the delist fan-out.
        - schema:
            type: string
          in: query
          name: platformListingIds
          required: false
          description: Comma-separated platform listing ids — end only those copies (e.g. one eBay site's copy).
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteListing
  /v1/listings/{id}/discrepancies:
    get:
      summary: List detected marketplace-drift discrepancies for a listing.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingDiscrepanciesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listListingDiscrepancies
  /v1/orders:
    get:
      summary: List orders, each with its sale price, fees, SKU and line items.
      tags:
        - Orders
      description: "Each order carries its sale exactly as the order.created webhook sent it: salePrice, platformFee, taxCollected and shippingCharged in DOLLARS as JSON numbers (not decimal strings), feeSource (\"exact\" = the fee the marketplace charged, \"estimated\"), sku (the SKU of the listing), quantity (units), and lineItems: one entry per order row {lineKey, listingId, inventoryItemId, platformListingId (the MARKETPLACE listing id), sku (variant SKU, else the listing SKU), variantId, quantity, unitPrice (dollars per unit, rounded to the cent), total (dollars)}. A multi-item marketplace order is one order row per line sharing platformOrderId, each with its own lineKey. detailsPending: true (the sale was recorded before its price and buyer loaded), an order with no sale, or a sale with no listing behind it has null money and lineItems [] (sku and quantity are still given when known). channel is the business channel that sold it (retail, wholesale, auction, live, world, pos), purchaseOrderRef the buyer's PO number, and trade the on-account invoice behind a wholesale order {invoiceId, invoiceNumber, invoiceStatus (open, partial, overdue, paid, void), netDays, dueAt, totalCents, amountPaidCents, balanceCents} or null, and buyerCompany the trade buyer's business {id, name}: their company (id set), else their verified business name (id null), or null on a consumer order. orderNumber is the readable order number of a Crossly sale (NNN-NNNNNNN-NNNNNNN, the same number the buyer sees); null on other platforms, whose platformOrderId is readable. Show orderNumber ?? platformOrderId; platformOrderId stays the payment reference of a Crossly sale."
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
        - schema:
            type: string
          in: query
          name: status
          required: false
        - schema:
            type: string
          in: query
          name: platform
          required: false
        - schema:
            type: string
            enum:
              - retail
              - wholesale
              - auction
              - live
              - world
              - pos
              - rental
          in: query
          name: channel
          required: false
          description: Only orders sold through this business channel (e.g. wholesale).
        - schema:
            type: string
            enum:
              - pending
          in: query
          name: details
          required: false
          description: pending = only orders whose sale details (price, buyer) have not loaded yet.
        - schema:
            type: string
            enum:
              - "1"
              - "true"
              - "0"
              - "false"
          in: query
          name: unlinked
          required: false
          description: 1 or true = only orders whose sale is not linked to any listing (an orphan sale).
        - schema:
            type: string
            maxLength: 200
          in: query
          name: orderNumber
          required: false
          description: "Find an order by the number the buyer quotes: a Crossly order number (NNN-NNNNNNN-NNNNNNN, also accepted without dashes or with a leading #) or a marketplace order id (exact match on platformOrderId)."
        - schema:
            type: string
            format: date-time
          in: query
          name: updatedSince
          required: false
          description: "Only orders created or changed at or after this time (ISO 8601): poll with the time of your last call to catch new orders and status/tracking changes."
        - schema:
            type: string
          in: query
          name: assignee
          required: false
          description: "Work assignment: 'me' (your own seat), 'none' (unassigned), 'any' (assigned to someone) or a team member id."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listOrders
  /v1/orders/{id}:
    get:
      summary: Get one order, with its sale price, fees, SKU and line items.
      tags:
        - Orders
      description: "Each order carries its sale exactly as the order.created webhook sent it: salePrice, platformFee, taxCollected and shippingCharged in DOLLARS as JSON numbers (not decimal strings), feeSource (\"exact\" = the fee the marketplace charged, \"estimated\"), sku (the SKU of the listing), quantity (units), and lineItems: one entry per order row {lineKey, listingId, inventoryItemId, platformListingId (the MARKETPLACE listing id), sku (variant SKU, else the listing SKU), variantId, quantity, unitPrice (dollars per unit, rounded to the cent), total (dollars)}. A multi-item marketplace order is one order row per line sharing platformOrderId, each with its own lineKey. detailsPending: true (the sale was recorded before its price and buyer loaded), an order with no sale, or a sale with no listing behind it has null money and lineItems [] (sku and quantity are still given when known). channel is the business channel that sold it (retail, wholesale, auction, live, world, pos), purchaseOrderRef the buyer's PO number, and trade the on-account invoice behind a wholesale order {invoiceId, invoiceNumber, invoiceStatus (open, partial, overdue, paid, void), netDays, dueAt, totalCents, amountPaidCents, balanceCents} or null, and buyerCompany the trade buyer's business {id, name}: their company (id set), else their verified business name (id null), or null on a consumer order. orderNumber is the readable order number of a Crossly sale (NNN-NNNNNNN-NNNNNNN, the same number the buyer sees); null on other platforms, whose platformOrderId is readable. Show orderNumber ?? platformOrderId; platformOrderId stays the payment reference of a Crossly sale."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrder
    patch:
      summary: Update order (status, notes, tracking).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateOrderRequest"
  /v1/orders/{id}/shipments:
    get:
      summary: List the parcels an order shipped in.
      tags:
        - Orders
      description: "An order can ship in more than one box: eBay allows a second label, Poshmark sells up to ten additional ones, and a bundle can need two. The order record carries only the PRIMARY parcel, so this is the only place the rest are visible. totalLabelCostCents sums every non-voided parcel — reading label cost off the order understates a multi-parcel order by a whole label."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderShipmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderShipment
  /v1/sales:
    get:
      summary: List sales (each unique sale event).
      tags:
        - Sales
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSalesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSales
  /v1/inbox:
    get:
      summary: List conversations. `filter` narrows to the rows GET /v1/inbox/counts counts.
      tags:
        - Inbox
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
        - schema:
            type: string
            enum:
              - unread
              - needs_reply
          in: query
          name: filter
          required: false
          description: unread | needs_reply (services/inbox/attention.ts). Omit for all.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInboxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listInbox
  /v1/inbox/{id}:
    get:
      summary: Get one conversation with its messages and the item it is about (itemTitle, itemThumbnail, itemPrice, itemCurrency, itemUrl on the platform, listingId in Crossly, crosslyListingSlug, canSendOffer). An offer made in the thread is a message with offerAmount + offerStatus.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInboxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInbox
  /v1/analytics/summary:
    get:
      summary: Headline KPIs for the last N days (the same numbers as the analytics overview).
      tags:
        - Analytics
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 30
          in: query
          name: days
          required: false
          description: Calendar days back, today included. Larger values are clamped to 365.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticSummaryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticSummary
  /v1/analytics/by-platform:
    get:
      summary: Sales, net sales, fees and net profit by platform for the last N days.
      tags:
        - Analytics
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 30
          in: query
          name: days
          required: false
          description: Calendar days back, today included. Larger values are clamped to 365.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticByPlatformResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticByPlatform
  /v1/analytics/timeseries:
    get:
      summary: Sales and net sales over the last N days, zero-filled, one row per calendar day.
      tags:
        - Analytics
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 30
          in: query
          name: days
          required: false
          description: Calendar days back, today included. Larger values are clamped to 365.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticTimeseryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticTimesery
  /v1/analytics/dashboard:
    get:
      summary: "Composite dashboard: KPIs + breakdowns + recent activity."
      tags:
        - Analytics
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticDashboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticDashboard
      parameters:
        - name: range
          in: query
          required: false
          schema:
            type: string
            enum:
              - custom
              - 7d
              - 30d
              - 90d
              - 1y
        - name: startDate
          in: query
          required: false
          schema:
            type: string
        - name: endDate
          in: query
          required: false
          schema:
            type: string
        - name: labels
          in: query
          required: false
          schema:
            type: string
        - name: tz
          in: query
          required: false
          schema:
            type: string
  /v1/analytics/today:
    get:
      summary: Today's checklist + 14-day activity streak.
      tags:
        - Analytics
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticTodayResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticToday
  /v1/analytics/items:
    get:
      summary: Per-item P&L for sold inventory.
      tags:
        - Analytics
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticItem
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: number
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: sortBy
          in: query
          required: false
          schema:
            type: string
            enum:
              - platform
              - netProfit
              - costOfGoods
              - salePrice
              - detectedAt
              - itemTitle
              - daysToSell
              - margin
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
  /v1/analytics/bookkeeping:
    get:
      summary: Monthly P&L + per-platform breakdown for a calendar year.
      tags:
        - Analytics
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticBookkeepingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticBookkeeping
      parameters:
        - name: year
          in: query
          required: false
          schema:
            type: number
  /v1/insights/by-platform:
    get:
      summary: "Platform velocity + margin insight (90-day window): units, net sales, median days to sell, ASP and net after the real marketplace fees."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInsightByPlatformResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listInsightByPlatform
  /v1/analytics/overview:
    get:
      summary: KPIs with deltas (net sales, net profit, units, ASP, margin, sell-through, median days to sell, active listings, take rate), the trend series, by-marketplace split, top categories, brands and items, sell-through cohort, data health and insights.
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            enum:
              - 7d
              - 30d
              - 90d
              - 1y
              - ytd
              - all
              - custom
          in: query
          name: range
          required: false
          description: Reporting window. Default 30d. custom needs from and to.
        - schema:
            type: string
          in: query
          name: from
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
          in: query
          name: to
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
            enum:
              - prev
              - yoy
              - none
              - custom
          in: query
          name: compare
          required: false
          description: "Comparison window for deltas: prev (same length just before), yoy, none, custom (cmpFrom/cmpTo)."
        - schema:
            type: string
          in: query
          name: cmpFrom
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: cmpTo
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: labels
          required: false
          description: Comma-separated inventory labels (any of them).
        - schema:
            type: string
          in: query
          name: platforms
          required: false
          description: Comma-separated platform ids.
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: Canonical main-category key.
        - schema:
            type: string
          in: query
          name: brand
          required: false
          description: Brand name.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC. An invalid name is a 400.
        - schema:
            type: string
          in: query
          name: stores
          required: false
          description: Comma-separated store ids.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticOverviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticOverview
  /v1/analytics/performance:
    get:
      summary: "Per-listing performance: channels, views, favorites, offers and conversations in the period, units sold, net sales and profit, margin, days to sell and a 0-100 health score, paged and sortable."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            enum:
              - 7d
              - 30d
              - 90d
              - 1y
              - ytd
              - all
              - custom
          in: query
          name: range
          required: false
          description: Reporting window. Default 30d. custom needs from and to.
        - schema:
            type: string
          in: query
          name: from
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
          in: query
          name: to
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
            enum:
              - prev
              - yoy
              - none
              - custom
          in: query
          name: compare
          required: false
          description: "Comparison window for deltas: prev (same length just before), yoy, none, custom (cmpFrom/cmpTo)."
        - schema:
            type: string
          in: query
          name: cmpFrom
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: cmpTo
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: labels
          required: false
          description: Comma-separated inventory labels (any of them).
        - schema:
            type: string
          in: query
          name: platforms
          required: false
          description: Comma-separated platform ids.
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: Canonical main-category key.
        - schema:
            type: string
          in: query
          name: brand
          required: false
          description: Brand name.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC. An invalid name is a 400.
        - schema:
            type: string
            enum:
              - all
              - active
              - sold
              - unsold
              - ended
          in: query
          name: status
          required: false
          description: unsold = listed at least minDays with no completed sale.
        - schema:
            type: string
          in: query
          name: q
          required: false
          description: Title, SKU or brand contains.
        - schema:
            type: string
            enum:
              - lastActivity
              - title
              - price
              - daysListed
              - views
              - favorites
              - offers
              - unitsSold
              - netSales
              - netProfit
              - margin
              - daysToSell
              - health
          in: query
          name: sort
          required: false
          description: Default lastActivity.
        - schema:
            type: string
            enum:
              - asc
              - desc
          in: query
          name: dir
          required: false
          description: Default desc.
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
          description: 1-indexed page. Default 1.
        - schema:
            type: integer
            enum:
              - 25
              - 50
              - 100
          in: query
          name: size
          required: false
          description: Rows per page. Default 50.
        - schema:
            type: integer
            minimum: 0
          in: query
          name: minDays
          required: false
          description: Minimum days listed (for status=unsold). Default 0.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticPerformanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticPerformance
  /v1/analytics/items/{listingId}:
    get:
      summary: "One listing in depth: channels with views, favorites and offers, the merged timeline, engagement series, price history, comps, money waterfall, days on market, offers, messages, experiments and suggestions."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            enum:
              - listing
              - inventory
          in: query
          name: by
          required: false
          description: inventory = the id is an inventory item id; the answer is { redirectListingId }. Default listing.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC.
        - schema:
            type: string
          in: path
          name: listingId
          required: true
          description: A listings.id you own (or an inventory item id with by=inventory).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticItemByListingIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticItemByListingId
  /v1/analytics/compare:
    get:
      summary: "Compare 2-4 of your listings: columns of price, quality, channels, views, favorites, offers and outcome, engagement curves, the fields that differ, and observational tests of favorite rate, view-to-offer rate and views per day."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
          in: query
          name: ids
          required: true
          description: Comma-separated listing ids, 2 to 4. The first is arm A.
        - schema:
            type: string
            enum:
              - age
              - calendar
          in: query
          name: align
          required: false
          description: age = x is days since first listed (default); calendar = x is the date.
        - schema:
            type: string
          in: query
          name: platform
          required: false
          description: Restrict engagement to one channel (platform id).
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone. Default UTC.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticCompareResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticCompare
  /v1/analytics/marketplaces:
    get:
      summary: "Every marketplace side by side: net sales and profit, units, ASP, take rate, margin, shipping subsidy, days to sell, sell-through, cancel and return rates, offers and engagement; with vs=2-3 platforms, a head-to-head over listings live on all of them."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            enum:
              - 7d
              - 30d
              - 90d
              - 1y
              - ytd
              - all
              - custom
          in: query
          name: range
          required: false
          description: Reporting window. Default 30d. custom needs from and to.
        - schema:
            type: string
          in: query
          name: from
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
          in: query
          name: to
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
            enum:
              - prev
              - yoy
              - none
              - custom
          in: query
          name: compare
          required: false
          description: "Comparison window for deltas: prev (same length just before), yoy, none, custom (cmpFrom/cmpTo)."
        - schema:
            type: string
          in: query
          name: cmpFrom
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: cmpTo
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: labels
          required: false
          description: Comma-separated inventory labels (any of them).
        - schema:
            type: string
          in: query
          name: platforms
          required: false
          description: Comma-separated platform ids.
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: Canonical main-category key.
        - schema:
            type: string
          in: query
          name: brand
          required: false
          description: Brand name.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC. An invalid name is a 400.
        - schema:
            type: string
          in: query
          name: vs
          required: false
          description: Comma-separated 2-3 platform ids for the head-to-head.
        - schema:
            type: string
            enum:
              - netSales
              - netProfit
              - unitsSold
              - asp
              - takeRate
              - marginRate
              - shippingSubsidy
              - medianDaysToSell
              - sellThroughRate
              - cancelRate
              - returnRate
              - offerAcceptRate
              - avgOfferPctOfAsk
              - viewsPerListingDay
              - favoriteRate
              - platform
              - activeListings
              - staleListings
          in: query
          name: sort
          required: false
          description: Default netSales.
        - schema:
            type: string
            enum:
              - asc
              - desc
          in: query
          name: dir
          required: false
          description: Default desc.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticMarketplaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticMarketplace
  /v1/analytics/marketplaces/{platform}:
    get:
      summary: "One marketplace in depth: its row, the money series, fee breakdown, days-to-sell and price-realization histograms, categories, top items, at-risk listings, a day-by-hour sales heatmap and offer stats."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            enum:
              - 7d
              - 30d
              - 90d
              - 1y
              - ytd
              - all
              - custom
          in: query
          name: range
          required: false
          description: Reporting window. Default 30d. custom needs from and to.
        - schema:
            type: string
          in: query
          name: from
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
          in: query
          name: to
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
            enum:
              - prev
              - yoy
              - none
              - custom
          in: query
          name: compare
          required: false
          description: "Comparison window for deltas: prev (same length just before), yoy, none, custom (cmpFrom/cmpTo)."
        - schema:
            type: string
          in: query
          name: cmpFrom
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: cmpTo
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: labels
          required: false
          description: Comma-separated inventory labels (any of them).
        - schema:
            type: string
          in: query
          name: platforms
          required: false
          description: Comma-separated platform ids.
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: Canonical main-category key.
        - schema:
            type: string
          in: query
          name: brand
          required: false
          description: Brand name.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC. An invalid name is a 400.
        - schema:
            type: string
          in: path
          name: platform
          required: true
          description: A platform id, e.g. ebay, poshmark.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticMarketplaceByPlatformResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticMarketplaceByPlatform
  /v1/analytics/segments:
    get:
      summary: "Niches along one dimension: listed and active counts, units sold, cohort sell-through, median days to sell, net sales and profit, margin, ROI, ASP and discount from ask; rows under minN are flagged lowSample."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            enum:
              - 7d
              - 30d
              - 90d
              - 1y
              - ytd
              - all
              - custom
          in: query
          name: range
          required: false
          description: Reporting window. Default 30d. custom needs from and to.
        - schema:
            type: string
          in: query
          name: from
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
          in: query
          name: to
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
            enum:
              - prev
              - yoy
              - none
              - custom
          in: query
          name: compare
          required: false
          description: "Comparison window for deltas: prev (same length just before), yoy, none, custom (cmpFrom/cmpTo)."
        - schema:
            type: string
          in: query
          name: cmpFrom
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: cmpTo
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: labels
          required: false
          description: Comma-separated inventory labels (any of them).
        - schema:
            type: string
          in: query
          name: platforms
          required: false
          description: Comma-separated platform ids.
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: Canonical main-category key.
        - schema:
            type: string
          in: query
          name: brand
          required: false
          description: Brand name.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC. An invalid name is a 400.
        - schema:
            type: string
            enum:
              - category
              - subcategory
              - brand
              - condition
              - size
              - source
              - department
              - priceBand
              - ageBand
          in: query
          name: dim
          required: false
          description: category = main category; subcategory = main > sub; brand; condition; size; source = where you acquired it; department; priceBand = ask in <$10, $10-25, $25-50, $50-100, $100-250, $250+; ageBand = days live at sale or now (<7, 7-30, 30-90, 90+).
        - schema:
            type: string
            enum:
              - label
              - listedCount
              - activeCount
              - unitsSold
              - sellThrough
              - medianDaysToSell
              - netSales
              - netProfit
              - marginRate
              - margin
              - roi
              - asp
              - share
          in: query
          name: sort
          required: false
          description: Default netSales.
        - schema:
            type: string
            enum:
              - asc
              - desc
          in: query
          name: dir
          required: false
          description: Default desc.
        - schema:
            type: integer
            minimum: 1
          in: query
          name: minN
          required: false
          description: Minimum sample for a row to count as a winner or loser. Default 3.
        - schema:
            type: string
          in: query
          name: q
          required: false
          description: Segment label contains.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticSegmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticSegment
  /v1/analytics/segments/{dim}/{key}:
    get:
      summary: "One niche in depth: its row, series, by-marketplace split, days-to-sell histogram, price bands, top items and the 10 oldest unsold listings in it."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            enum:
              - 7d
              - 30d
              - 90d
              - 1y
              - ytd
              - all
              - custom
          in: query
          name: range
          required: false
          description: Reporting window. Default 30d. custom needs from and to.
        - schema:
            type: string
          in: query
          name: from
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
          in: query
          name: to
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
            enum:
              - prev
              - yoy
              - none
              - custom
          in: query
          name: compare
          required: false
          description: "Comparison window for deltas: prev (same length just before), yoy, none, custom (cmpFrom/cmpTo)."
        - schema:
            type: string
          in: query
          name: cmpFrom
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: cmpTo
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: labels
          required: false
          description: Comma-separated inventory labels (any of them).
        - schema:
            type: string
          in: query
          name: platforms
          required: false
          description: Comma-separated platform ids.
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: Canonical main-category key.
        - schema:
            type: string
          in: query
          name: brand
          required: false
          description: Brand name.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC. An invalid name is a 400.
        - schema:
            type: string
          in: path
          name: dim
          required: true
          description: One of category, subcategory, brand, condition, size, source, department, priceBand, ageBand. category = main category; subcategory = main > sub; brand; condition; size; source = where you acquired it; department; priceBand = ask in <$10, $10-25, $25-50, $50-100, $100-250, $250+; ageBand = days live at sale or now (<7, 7-30, 30-90, 90+).
        - schema:
            type: string
          in: path
          name: key
          required: true
          description: The segment key from a segments row (URL-encoded). A key with no data in scope is a 404.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticSegmentByKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticSegmentByKey
  /v1/analytics/inventory:
    get:
      summary: "Unsold stock: aging buckets with cost, listed value and market value, the 20 listings most in need of attention, shelf value over time, cohort sell-through at the chosen maturity, listed vs sold velocity and data health."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            enum:
              - 7d
              - 30d
              - 90d
              - 1y
              - ytd
              - all
              - custom
          in: query
          name: range
          required: false
          description: Reporting window. Default 30d. custom needs from and to.
        - schema:
            type: string
          in: query
          name: from
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
          in: query
          name: to
          required: false
          description: YYYY-MM-DD, inclusive, in tz. Only with range=custom.
        - schema:
            type: string
            enum:
              - prev
              - yoy
              - none
              - custom
          in: query
          name: compare
          required: false
          description: "Comparison window for deltas: prev (same length just before), yoy, none, custom (cmpFrom/cmpTo)."
        - schema:
            type: string
          in: query
          name: cmpFrom
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: cmpTo
          required: false
          description: YYYY-MM-DD. Only with compare=custom.
        - schema:
            type: string
          in: query
          name: labels
          required: false
          description: Comma-separated inventory labels (any of them).
        - schema:
            type: string
          in: query
          name: platforms
          required: false
          description: Comma-separated platform ids.
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: Canonical main-category key.
        - schema:
            type: string
          in: query
          name: brand
          required: false
          description: Brand name.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA time zone for day boundaries. Default UTC. An invalid name is a 400.
        - schema:
            type: integer
            enum:
              - 30
              - 60
              - 90
          in: query
          name: maturity
          required: false
          description: Days an item has to sell within to count as sold in the cohort. Default 30.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticInventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticInventory
  /v1/analytics/experiments:
    get:
      summary: Your listing A/B experiments, newest first, with status, days running and the current verdict.
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            enum:
              - all
              - running
              - concluded
              - draft
          in: query
          name: status
          required: false
          description: Default all.
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
          description: 1-indexed page. Default 1.
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: size
          required: false
          description: Rows per page. Default 20.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticExperiment
    post:
      summary: "Start a listing experiment. split: 2-4 live platform listings observed over the same window; sequential: one platform listing, before vs after changeAt (optionally applying a new price)."
      tags:
        - Analytics
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AnalyticExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAnalyticExperiment
  /v1/analytics/experiments/{id}:
    get:
      summary: "One experiment: arms with their windows, exposure and rates, the primary-metric test per arm against A, guardrail tests, the daily series and what to do next."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: The experiment id (a uuid).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticExperimentByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticExperimentById
    patch:
      summary: Rename an experiment or change its hypothesis, notes or planned end.
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: The experiment id (a uuid; any other id is a 404).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AnalyticExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateAnalyticExperiment
    delete:
      summary: Delete an experiment. The listings are untouched.
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: The experiment id (a uuid; any other id is a 404).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteStoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteAnalyticExperiment
  /v1/books:
    get:
      summary: "Profit and loss for a year and period on the Schedule C lines: income, COGS, gross profit, expenses (marketplace fees, postage, mileage, your categories), net profit, monthly table, per-marketplace table with 1099-K expectations, Part III COGS, estimated tax and sales tax collected by marketplaces. Money in cents."
      tags:
        - Books
      parameters:
        - schema:
            type: integer
            minimum: 2020
            maximum: 2099
          in: query
          name: year
          required: false
          description: Tax year. Default the current year.
        - schema:
            type: string
            enum:
              - fy
              - ytd
              - q1
              - q2
              - q3
              - q4
              - m01
              - m02
              - m03
              - m04
              - m05
              - m06
              - m07
              - m08
              - m09
              - m10
              - m11
              - m12
          in: query
          name: period
          required: false
          description: fy = full year (default), ytd, q1-q4, m01-m12. Boundaries are in your tax-profile time zone.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA zone; default your tax profile zone.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBook
  /v1/books/transactions:
    get:
      summary: "The sale rows behind any P&L line, newest first: gross, refunded, fee and fee source, shipping, COGS, tax collected and net, in cents."
      tags:
        - Books
      parameters:
        - schema:
            type: integer
            minimum: 2020
            maximum: 2099
          in: query
          name: year
          required: false
          description: Tax year. Default the current year.
        - schema:
            type: string
            enum:
              - fy
              - ytd
              - q1
              - q2
              - q3
              - q4
              - m01
              - m02
              - m03
              - m04
              - m05
              - m06
              - m07
              - m08
              - m09
              - m10
              - m11
              - m12
          in: query
          name: period
          required: false
          description: fy = full year (default), ytd, q1-q4, m01-m12. Boundaries are in your tax-profile time zone.
        - schema:
            type: string
          in: query
          name: tz
          required: false
          description: IANA zone; default your tax profile zone.
        - schema:
            type: string
          in: query
          name: platform
          required: false
          description: One platform id.
        - schema:
            type: string
            enum:
              - completed
              - cancelled
              - refunded
              - pending
              - all
          in: query
          name: status
          required: false
          description: completed = counted in income; pending = details not in yet (no money); default all.
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
          description: 1-indexed page. Default 1.
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: size
          required: false
          description: Rows per page, at most 100. Default 50.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBookTransactionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBookTransaction
  /v1/books/expenses:
    get:
      summary: Your logged business expenses in a year and period (recurring ones expanded), with their Schedule C category. Amounts in cents.
      tags:
        - Books
      parameters:
        - schema:
            type: integer
            minimum: 2020
            maximum: 2099
          in: query
          name: year
          required: false
          description: Tax year. Default the current year.
        - schema:
            type: string
            enum:
              - fy
              - ytd
              - q1
              - q2
              - q3
              - q4
              - m01
              - m02
              - m03
              - m04
              - m05
              - m06
              - m07
              - m08
              - m09
              - m10
              - m11
              - m12
          in: query
          name: period
          required: false
          description: fy = full year (default), ytd, q1-q4, m01-m12. Boundaries are in your tax-profile time zone.
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: An expense category id, e.g. supplies, postage, software_subscriptions.
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
          description: 1-indexed page. Default 1.
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: size
          required: false
          description: Rows per page, at most 100. Default 25.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBookExpenseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBookExpense
    post:
      summary: "Log a business expense: date, amountCents, a Schedule C category, vendor, description, receipt link, optionally recurring monthly or yearly."
      tags:
        - Books
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBookExpenseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBookExpense
  /v1/books/1099k:
    get:
      summary: "Per marketplace for a year: the 1099-K gross you recorded beside the gross Crossly computed, the difference, and whether a form is expected (federal: over $20,000 and over 200 transactions)."
      tags:
        - Books
      parameters:
        - schema:
            type: integer
            minimum: 2020
            maximum: 2099
          in: query
          name: year
          required: false
          description: Tax year. Default the current year.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBook1099kResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBook1099k
    put:
      summary: Record what a marketplace reported on its 1099-K for a year (gross in cents, transactions, notes). Answers the year's reconciliation, as GET /v1/books/1099k does.
      tags:
        - Books
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBook1099kResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBook1099k
  /v1/books/tax-profile:
    get:
      summary: "Your tax profile: time zone for books boundaries, filing status, state, set-aside and rate assumptions, accounting method, and business name, EIN and address."
      tags:
        - Books
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBookTaxProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBookTaxProfile
    put:
      summary: "Update your tax profile: time zone, filing status, state, set-aside and rate assumptions (basis points), accounting method, business name, EIN and address. Fields left out are unchanged."
      tags:
        - Books
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBookTaxProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBookTaxProfile
  /v1/hub/setup/{section}:
    get:
      summary: "A Hub section's setup checklist: each step, whether it is done and the page that completes it. Derived from what exists, never stored."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
            enum:
              - storefront
              - wholesale
              - ads
              - rentals
              - funding
              - world
              - vault
              - discounts
              - branding
              - drops
              - events
              - market
              - payouts
          in: path
          name: section
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetHubSetupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getHubSetup
  /v1/analytics/programs/{program}:
    get:
      summary: "One program's report over a date range (default the last 30 days, at most 366): KPIs, a daily trend and a breakdown table. Money in integer cents."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
            format: date
          in: query
          name: from
          required: false
          description: First UTC day (YYYY-MM-DD), inclusive.
        - schema:
            type: string
            format: date
          in: query
          name: to
          required: false
          description: Last UTC day (YYYY-MM-DD), inclusive. Default today.
        - schema:
            type: string
          in: query
          name: by
          required: false
          description: "Breakdown dimension, when the program offers one (worlds: showroom, property, event)."
        - schema:
            type: string
            enum:
              - wholesale
              - ads
              - rentals
              - branding
              - events
              - drops
              - discounts
              - market
              - worlds
              - funding
              - vault
              - team
              - referrals
              - developer-apps
          in: path
          name: program
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAnalyticProgramResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAnalyticProgram
  /v1/accounts:
    get:
      summary: List your connected platform accounts.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAccountsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listAccounts
    post:
      summary: Connect a new platform account (kicks off OAuth or extension handshake).
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAccountResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAccountRequest"
  /v1/connections:
    get:
      summary: List OAuth-connected API platforms, each flagged with whether this store (X-Storefront-Id) uses it.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListConnectionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listConnections
  /v1/connections/extension-online:
    get:
      summary: Check if the browser extension is online.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetConnectionExtensionOnlineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getConnectionExtensionOnline
  /v1/platforms/limits:
    get:
      summary: eBay free-tier + Etsy fees aggregate.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPlatformLimitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPlatformLimit
  /v1/platforms:
    get:
      summary: List marketplaces with their availability (connect, own_app, coming_soon) and capability chips.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPlatformsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPlatforms
  /v1/stockx/catalog:
    get:
      summary: Search the StockX catalog (style code, SKU or words) to pick the product a StockX ask is on.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            minLength: 2
            maxLength: 120
          in: query
          name: q
          required: true
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 50
          in: query
          name: pageSize
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStockxCatalogResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStockxCatalog
  /v1/stockx/catalog/{productId}/variants:
    get:
      summary: List the sizes (variants) of a StockX catalog product.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: productId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStockxCatalogVariantsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStockxCatalogVariants
  /v1/stockx/catalog/{productId}/variants/{variantId}/market-data:
    get:
      summary: Lowest ask, highest bid and suggested prices for one StockX size.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            pattern: ^[A-Z]{3}$
          in: query
          name: currency
          required: false
        - schema:
            type: string
          in: path
          name: productId
          required: true
        - schema:
            type: string
          in: path
          name: variantId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStockxCatalogVariantMarketDataResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStockxCatalogVariantMarketData
  /v1/account/deletion-status:
    get:
      summary: Get the currently-pending deletion request, if any.
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAccountDeletionStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAccountDeletionStatus
  /v1/account/closure-checklist:
    get:
      summary: What closing the account will and will not do, before you request it.
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAccountClosureChecklistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAccountClosureChecklist
  /v1/auth/sessions:
    get:
      summary: List, search and filter your sign-in sessions.
      tags:
        - Account
      parameters:
        - schema:
            type: string
            maxLength: 120
          in: query
          name: q
          required: false
        - schema:
            type: string
            enum:
              - active
              - expired
              - all
          in: query
          name: status
          required: false
        - schema:
            type: string
            enum:
              - all
              - desktop
              - mobile
              - tablet
              - app
              - unknown
          in: query
          name: deviceType
          required: false
        - schema:
            type: string
            maxLength: 10
          in: query
          name: from
          required: false
        - schema:
            type: string
            maxLength: 10
          in: query
          name: to
          required: false
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAuthSessionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listAuthSessions
    delete:
      summary: Revoke all active browser sessions.
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteAuthSessionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteAuthSession
  /v1/account/notification-preferences:
    get:
      summary: Which notifications reach you, per event and channel (email, push, in-app).
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAccountNotificationPreferenceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAccountNotificationPreference
    put:
      summary: Turn notifications on or off per event and channel (email, push, in-app).
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAccountNotificationPreferenceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateAccountNotificationPreference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateAccountNotificationPreferenceRequest"
  /v1/account/sign-in-identity:
    get:
      summary: "How you sign in (Atlas): linked providers, password, passkeys, two-step."
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAccountSignInIdentityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAccountSignInIdentity
  /v1/billing/plans:
    get:
      summary: List the plans with their prices, limits and features.
      tags:
        - Billing
      description: Prices are the Stripe Prices checkout charges (whole USD). A null limit means no cap.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBillingPlansResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBillingPlans
  /v1/billing/app-allowances:
    get:
      summary: Your listing allowances through OAuth apps (used of limit, per app, with its platform scope).
      tags:
        - Billing
      description: Staff can let an OAuth app list above a seller's plan, counted apart from the plan's itemsPerMonth and only on the allowance's platforms. `label` is the sentence to show (12 of 10,000 managed by Infinity; ... this month via Infinity (resets Dec 1); or counts toward your plan for limitMode shared).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBillingAppAllowancesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBillingAppAllowances
  /v1/billing/usage:
    get:
      summary: A store's plan and its usage against the plan's limits (used of limit, per metered limit).
      tags:
        - Billing
      description: "The store is `X-Storefront-Id` (omitted: the default store). `pooled` is true when one plan covers several stores and its limits are shared by them; `used` is then the sum across those stores. A null `limit` means no cap. `upgradeTier` is the cheapest plan that raises a limit; `resetsAt` is when a monthly count starts again (null for a standing count). A teammate's token needs a billing grant on that store."
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBillingUsageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBillingUsage
  /v1/billing/invoices:
    get:
      summary: List a store's plan invoices, newest first, with search and filters.
      tags:
        - Billing
      description: "The store is `X-Storefront-Id` (omitted: the default store). Filters: `status`, `from`/`to` (YYYY-MM-DD, inclusive, UTC), `min`/`max` (amount in cents), `q` (part of the invoice number). Paged by `cursor`: pass `meta.nextCursor` of the previous page; null means the last page. Amounts are cents in `currency`."
      parameters:
        - schema:
            type: string
            maxLength: 200
          in: query
          name: cursor
          required: false
        - schema:
            type: string
            enum:
              - draft
              - open
              - paid
              - uncollectible
              - void
          in: query
          name: status
          required: false
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
          in: query
          name: from
          required: false
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
          in: query
          name: to
          required: false
        - schema:
            type: integer
            minimum: 0
          in: query
          name: min
          required: false
        - schema:
            type: integer
            minimum: 0
          in: query
          name: max
          required: false
        - schema:
            type: string
            maxLength: 80
          in: query
          name: q
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBillingInvoicesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBillingInvoices
  /v1/membership:
    get:
      summary: The caller's Crossly One membership status and benefits.
      tags:
        - Account
      description: Returns the active tier (or null), the period end, and the concrete benefit values for that tier. Benefits are the single source of truth shared with the web and mobile clients.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMembershipResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMembership
  /v1/automation/rules:
    get:
      summary: List automation rules.
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationRulesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listAutomationRules
    post:
      summary: Create an automation rule.
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationRulesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAutomationRule
  /v1/automation/rules/export:
    get:
      summary: Export the user's full rule library as a portable recipe bundle.
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAutomationRuleExportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAutomationRuleExport
  /v1/automation/rules/{id}:
    get:
      summary: Get a single automation rule.
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAutomationRuleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAutomationRule
    put:
      summary: Update an automation rule (full replace).
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAutomationRuleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateAutomationRule
    delete:
      summary: Delete an automation rule.
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteAutomationRule
  /v1/automation/rules/{id}/export:
    get:
      summary: Export a single automation rule as a portable recipe.
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAutomationRuleExportByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAutomationRuleExportById
  /v1/automation/catalog:
    get:
      summary: Supported triggerType / actionType / conditionType values for automation rules.
      tags:
        - Automation
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAutomationCatalogResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAutomationCatalog
  /v1/automation/runs:
    get:
      summary: Per-fire history for automation rules and workflow chain runs.
      tags:
        - Automation
      description: "Deprecated: use /v1/workflow-runs."
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: ruleId
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: chainId
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 100
          in: query
          name: limit
          required: false
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomationRunsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listAutomationRuns
  /v1/workflow-chains:
    get:
      summary: List workflow chains with their step graph.
      tags:
        - Workflows
      description: "Deprecated: workflow chains are workflows now. Use /v1/workflows."
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkflowChainsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorkflowChains
    post:
      summary: Create a multi-step workflow chain.
      tags:
        - Workflows
      description: "Deprecated: workflow chains are workflows now. Use /v1/workflows."
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowChain
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowChainRequest"
  /v1/workflow-chains/{id}:
    get:
      summary: Get one workflow chain with its steps.
      tags:
        - Workflows
      description: "Deprecated: workflow chains are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorkflowChainResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorkflowChain
    put:
      summary: Replace a workflow chain wholesale.
      tags:
        - Workflows
      description: "Deprecated: workflow chains are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorkflowChain
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowChainRequest"
    delete:
      summary: Delete a workflow chain (cascades steps + runs).
      tags:
        - Workflows
      description: "Deprecated: workflow chains are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorkflowChain
  /v1/notification-integrations:
    get:
      summary: "Deprecated (one release; use GET /api/v1/webhooks): every webhook of the seller as an old-style notification destination (provider slack/discord/webhook, plus kind), and any destination not yet copied to webhooks."
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListNotificationIntegrationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listNotificationIntegrations
    post:
      summary: "Deprecated alias: add a Slack/Discord/JSON webhook for automations. Use POST /api/v1/webhooks with kind."
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateNotificationIntegrationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createNotificationIntegration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateNotificationIntegrationRequest"
  /v1/network/pool:
    get:
      summary: The seller's Crossly Network pool membership row.
      tags:
        - Network
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetNetworkPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getNetworkPool
    post:
      summary: Join the Crossly Network reciprocal engagement pool.
      tags:
        - Network
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateNetworkPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createNetworkPool
    patch:
      summary: Update per-action toggles + platforms on pool membership.
      tags:
        - Network
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateNetworkPool
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateNetworkPoolRequest"
    delete:
      summary: Leave the Crossly Network pool.
      tags:
        - Network
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteNetworkPool
  /v1/network/pool/log:
    get:
      summary: Recent engagement history — both sent and received.
      tags:
        - Network
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 100
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListNetworkPoolLogResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listNetworkPoolLog
  /v1/network/pool/size:
    get:
      summary: Total members in the Crossly Network pool.
      tags:
        - Network
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetNetworkPoolSizeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getNetworkPoolSize
  /v1/webhooks:
    get:
      summary: "List your webhooks of every type. Optional: q (url, name, label or app), status (healthy|failing|disabled), event, kind, failing=true, page, pageSize."
      tags:
        - Webhooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhooksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWebhooks
    post:
      summary: "Register a webhook of any type (kind: json|slack|discord|teams|telegram|google_chat|mattermost|zapier; default json). eventDelivery false = automation only (notify.* steps). Returns the signing secret once (json)."
      tags:
        - Webhooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWebhookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWebhookRequest"
  /v1/webhooks/types:
    get:
      summary: List webhook types (json, slack, discord, teams, telegram, google_chat, mattermost, zapier) with their fields and hosts.
      tags:
        - Webhooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookTypesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWebhookTypes
  /v1/webhooks/events:
    get:
      summary: "List every webhook event you can subscribe to: id, group (family), label, description, and whether a workflow can start on it."
      tags:
        - Webhooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWebhookEvents
  /v1/webhooks/{id}/deliveries:
    get:
      summary: "List deliveries to one webhook (30 days, newest first): event, status, attempts, last HTTP status and error, payload."
      tags:
        - Webhooks
      parameters:
        - schema:
            type: string
            enum:
              - pending
              - succeeded
              - failed
          in: query
          name: status
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhookDeliveriesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWebhookDeliveries
  /v1/me/templates:
    get:
      summary: List the seller's templates.
      tags:
        - Templates
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMeTemplatesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMeTemplates
      parameters:
        - name: scope
          in: query
          required: false
          schema:
            type: string
            enum:
              - description
              - listing
        - name: category
          in: query
          required: false
          schema:
            type: string
    post:
      summary: Create a template.
      tags:
        - Templates
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMeTemplatesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMeTemplate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMeTemplateRequest"
  /v1/me/templates/suggest:
    get:
      summary: The seller's default template for a category.
      tags:
        - Templates
      description: 'Returns { template: null } rather than 404 when the seller has no default for that category — "no default" is a normal answer, not an error, and callers hydrate a form from it.'
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMeTemplateSuggestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMeTemplateSuggest
  /v1/me/templates/{id}:
    get:
      summary: Fetch one template in full.
      tags:
        - Templates
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMeTemplatesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMeTemplate
    patch:
      summary: Patch a template.
      tags:
        - Templates
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMeTemplatesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateMeTemplate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMeTemplateRequest"
    delete:
      summary: Delete a template.
      tags:
        - Templates
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteMeTemplate
  /v1/imports:
    get:
      summary: List bulk-import jobs.
      tags:
        - Imports
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListImportsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listImports
    post:
      summary: Start a bulk-import job for an existing platform connection.
      tags:
        - Imports
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createImport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateImportRequest"
  /v1/imports/{id}:
    get:
      summary: Get one import job.
      tags:
        - Imports
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListImportsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getImport
  /v1/catalog-matches:
    get:
      summary: "Pending catalog-match suggestions: inventory items that look like a catalog product, awaiting your confirm."
      tags:
        - Inventory
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: date-time
          in: query
          name: before
          required: false
          description: "Keyset cursor: createdAt of the last row seen."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCatalogMatchesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCatalogMatches
  /v1/inventory/{id}/catalog-matches:
    get:
      summary: One inventory item's catalog binding (if confirmed) and its pending match suggestions.
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInventoryCatalogMatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInventoryCatalogMatch
  /v1/returns:
    get:
      summary: "List returns. Default: your return records (the physical-return workflow), status=open|closed|<exact>. source=request: the OPEN return requests buyers made on the Crossly marketplace, newest first; accept or decline each with POST /v1/returns/{id}/accept | decline."
      tags:
        - Returns
      parameters:
        - schema:
            type: string
          in: query
          name: assignee
          required: false
          description: "Work assignment: 'me' (your own seat), 'none' (unassigned), 'any' (assigned to someone) or a team member id."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListReturnsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listReturns
    post:
      summary: Open a return record on an order (rejects if another open return exists).
      tags:
        - Returns
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetReturnResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createReturn
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/OrderIdReasonRequest"
  /v1/returns/{id}:
    get:
      summary: Get one return record.
      tags:
        - Returns
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetReturnResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getReturn
    patch:
      summary: Transition return status (received/inspected/restocked) and bump inventory on restock.
      tags:
        - Returns
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetReturnResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateReturn
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateReturnRequest"
  /v1/customers:
    get:
      summary: List aggregated customers (group-by lower(buyer_username)), each with its best avatar, display name and star rating.
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCustomersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCustomers
  /v1/customers/{handle}:
    get:
      summary: "Get one customer: recent 50 orders, buyer profiles per platform, and stats over all of their orders."
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCustomerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCustomer
  /v1/reference/countries:
    get:
      summary: Every country with its delivery-address rules.
      tags:
        - Reference
      description: "ISO 3166-1 alpha-2 code, name, main currency and region tags, plus what a delivery address there needs: whether a postal code / state is required, what they are called locally, and the fixed state list where carriers want one. `embargoed` marks destinations Crossly cannot deliver to."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListReferenceCountriesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listReferenceCountries
  /v1/categories:
    get:
      summary: List Crossly's canonical category tree.
      tags:
        - Reference
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCategoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCategory
  /v1/brands:
    get:
      summary: Search the Crossly brand index. Returns up to 50 matches.
      tags:
        - Reference
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBrand
  /v1/styles:
    get:
      summary: Search the eBay-sourced "Style" item-specific values.
      tags:
        - Reference
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStyleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStyle
  /v1/patterns:
    get:
      summary: Search the eBay-sourced "Pattern" item-specific values.
      tags:
        - Reference
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPatternResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPattern
  /v1/departments:
    get:
      summary: Search the eBay-sourced "Department" item-specific values.
      tags:
        - Reference
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDepartmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDepartment
  /v1/genders:
    get:
      summary: Search the eBay-sourced "Gender" item-specific values.
      tags:
        - Reference
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGenderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getGender
  /v1/types:
    get:
      summary: Search the eBay-sourced "Type" item-specific values.
      tags:
        - Reference
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTypeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getType
  /v1/size-systems:
    get:
      summary: Search the Poshmark + Vestiaire size-system union (US/UK/EU/AU/FR/KR).
      tags:
        - Reference
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSizeSystemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSizeSystem
  /v1/reference/metros:
    get:
      summary: Search US metro areas (CSA / CBSA) for location rules.
      tags:
        - Reference
      description: Combined Statistical Areas first, then Core-Based Statistical Areas, matched on title (or an exact code); at most 20. `q` needs 2+ characters. `meta.datasetAvailable` is false when the census dataset is not loaded, in which case no metro rule can match.
      parameters:
        - schema:
            type: string
            minLength: 2
          in: query
          name: q
          required: true
        - schema:
            type: integer
            minimum: 1
            maximum: 20
            default: 20
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListReferenceMetrosResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listReferenceMetros
  /v1/reference/postal/{country}/{code}:
    get:
      summary: "Look up a postal code: canonical shape, state and US metro areas."
      tags:
        - Reference
      description: "Every country gets its canonical shape and `valid`. A US ZIP (territories normalize to country US with `territory`) also gets state, county FIPS and CBSA/CSA. `metroStatus` is known (the ZIP is mapped), unmapped (a ZIP with no metro mapping: it matches no metro rule) or no_zip."
      parameters:
        - schema:
            type: string
          in: path
          name: country
          required: true
        - schema:
            type: string
          in: path
          name: code
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetReferencePostalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getReferencePostal
  /v1/geo/location-check:
    post:
      summary: Check whether a shipping policy ships to an address.
      tags:
        - PolicyPresets
      description: "Pass an unsaved `policy` draft or a `presetId` (neither = your default shipping policy), an `address`, and optionally `consolidateVia` (a ship-together hub). Returns `ships`, and when it does not: `reason`, `stage` (buyer | hub), `message` and the deciding `rule`. `partial` means a fuller address (state, ZIP) could change the answer. A draft that is not a valid shipping policy is a 422; a presetId that is not yours is a 404."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateGeoLocationCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGeoLocationCheck
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGeoLocationCheckRequest"
  /v1/mileage:
    get:
      summary: List mileage entries, newest trip first, paged (limit up to 500). Narrow by year and/or an inclusive from/to date range.
      tags:
        - Tax
      parameters:
        - schema:
            type: integer
          in: query
          name: year
          required: false
          description: Only trips dated in this calendar year.
        - schema:
            type: string
          in: query
          name: from
          required: false
          description: YYYY-MM-DD, inclusive. Only trips on or after this date. Combines with year.
        - schema:
            type: string
          in: query
          name: to
          required: false
          description: YYYY-MM-DD, inclusive. Only trips on or before this date; from <= to.
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
          description: 1-indexed page. Default 1.
        - schema:
            type: integer
            minimum: 1
          in: query
          name: limit
          required: false
          description: Rows per page, default 100, clamped to 500.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMileageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMileage
    post:
      summary: Create a mileage entry.
      tags:
        - Tax
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMileageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMileage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMileageRequest"
  /v1/mileage/summary:
    get:
      summary: Annual mileage totals + IRS deduction. Each trip is priced at the IRS rate on its own date (2026 has two rates, listed in `rates`); `ratePerMile` is the January rate.
      tags:
        - Tax
      parameters:
        - schema:
            type: integer
          in: query
          name: year
          required: false
          description: Calendar tax year. Default the current year.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMileageSummaryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMileageSummary
  /v1/tax/schedule-c:
    get:
      summary: "Schedule C JSON for a tax year (default the current year), from the same P&L as GET /v1/books: line 1 gross receipts before refunds, line 2 refunds, COGS in Part III, completed sales only. GET /v1/books has the full P&L by period."
      tags:
        - Tax
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTaxScheduleCResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTaxScheduleC
      parameters:
        - name: year
          in: query
          required: false
          schema:
            type: number
  /v1/tax/crossly-collects:
    get:
      summary: Where Crossly collects sales tax today (its active Stripe Tax registrations).
      tags:
        - Tax
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTaxCrosslyCollectsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTaxCrosslyCollects
  /v1/tax/sales-tax:
    get:
      summary: Crossly marketplace sales Crossly did not collect sales tax on, by jurisdiction.
      tags:
        - Tax
      parameters:
        - schema:
            type: string
          in: query
          name: from
          required: false
          description: YYYY-MM-DD, inclusive. Default 1 January this year.
        - schema:
            type: string
          in: query
          name: to
          required: false
          description: YYYY-MM-DD, inclusive. Default now.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTaxSalesTaxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTaxSalesTax
  /v1/tax/sales-tax/not-collected:
    get:
      summary: The individual Crossly sales Crossly did not collect sales tax on, newest first.
      tags:
        - Tax
      parameters:
        - schema:
            type: string
          in: query
          name: from
          required: false
        - schema:
            type: string
          in: query
          name: to
          required: false
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 500
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTaxSalesTaxNotCollectedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTaxSalesTaxNotCollected
  /v1/orders/{id}/sales-tax:
    get:
      summary: Who collected sales tax on one Crossly marketplace order, where, and the seller notice.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderSalesTaxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderSalesTax
  /v1/categories/search:
    get:
      summary: Search or browse Crossly's canonical categories (the ids listings take as categoryId).
      tags:
        - Taxonomy
      description: '`q` matches the category name and path. `path` (e.g. "Clothing & Shoes > Men") limits to one branch. Without `q`, `meta.branches` lists the next level under `path` (the root when omitted) so a client can walk the tree down to a leaf.'
      parameters:
        - schema:
            type: string
            maxLength: 120
          in: query
          name: q
          required: false
        - schema:
            type: string
            maxLength: 400
          in: query
          name: path
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCategorySearchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCategorySearch
  /v1/categories/{id}:
    get:
      summary: One canonical category and the category it maps to on each marketplace.
      tags:
        - Taxonomy
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 200
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCategoryByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCategoryById
  /v1/categories/{id}/aspects:
    get:
      summary: "Item specifics for a canonical category: required/optional, known values, per-marketplace names."
      tags:
        - Taxonomy
      description: Required-ness and cardinality come from the eBay category the concept maps to. `freeText` = any text is accepted; otherwise `values` are the known values (up to `valuesLimit`). `marketplaces` gives the attribute name each marketplace uses for the aspect. Send them as `itemSpecifics` on POST /v1/listings.
      parameters:
        - schema:
            type: integer
            minimum: 0
            maximum: 500
            default: 50
          in: query
          name: valuesLimit
          required: false
        - schema:
            type: string
            minLength: 1
            maxLength: 200
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCategoryAspectsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCategoryAspects
  /v1/taxonomy/ebay/charities:
    get:
      summary: Search eBay for Charity organisations (the charityId an eBay listing donates to).
      tags:
        - Taxonomy
      description: Send the chosen `charityOrgId` as `overrides.ebay.charityId` with `overrides.ebay.donationPercentage` (10-100 in steps of 5) on a listing to donate that share of the eBay sale. `q` needs at least 2 characters.
      parameters:
        - schema:
            type: string
            maxLength: 120
          in: query
          name: q
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 20
          in: query
          name: limit
          required: false
        - schema:
            type: string
            enum:
              - EBAY_US
              - EBAY_GB
            default: EBAY_US
          in: query
          name: marketplace
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTaxonomyEbayCharitiesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTaxonomyEbayCharities
  /v1/taxonomy/{platform}/categories:
    get:
      summary: Categories for a platform. Default is top-level; pass `?parent=<categoryId>` to drill down one level (supported on cookie platforms whose recipe returns flat parent_id-linked rows).
      tags:
        - Taxonomy
      parameters:
        - schema:
            type: string
          in: query
          name: parent
          required: false
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTaxonomyCategoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTaxonomyCategory
  /v1/taxonomy/{platform}/categories/{id}/children:
    get:
      summary: Direct children of a category node.
      tags:
        - Taxonomy
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTaxonomyCategoryChildrenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTaxonomyCategoryChildren
  /v1/taxonomy/{platform}/categories/{id}/aspects:
    get:
      summary: Item-specific aspects (eBay) / properties (Etsy) / hard-coded enums (cookie platforms) for a category.
      tags:
        - Taxonomy
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTaxonomyCategoryAspectResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTaxonomyCategoryAspect
  /v1/taxonomy/{platform}/suggest:
    get:
      summary: "Reverse lookup — suggest categories matching a search phrase: eBay live; Poshmark, Mercari, Depop, Grailed, Vinted, Whatnot, Vestiaire, OfferUp, Facebook and Curtsy over their harvested trees. Etsy answers an empty list (browse its tree instead)."
      tags:
        - Taxonomy
      parameters:
        - schema:
            type: string
          in: query
          name: q
          required: false
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTaxonomySuggestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTaxonomySuggest
  /v1/taxonomy/{platform}/required-fields:
    get:
      summary: Normalized field schema the seller needs to fill before crossposting to this platform. Combines master fields (title/description/price/condition) with platform-specific overrides.
      tags:
        - Taxonomy
      parameters:
        - schema:
            type: string
          in: query
          name: categoryId
          required: false
          description: Optional — used to inline aspects when present.
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTaxonomyRequiredFieldResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTaxonomyRequiredField
  /v1/magic/recent:
    get:
      summary: Recent Magic List scans for this seller.
      tags:
        - Magic
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMagicRecentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMagicRecent
  /v1/magic/drafts/{draftId}:
    get:
      summary: Get a synthesized Magic List draft.
      tags:
        - Magic
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: draftId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMagicDraftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMagicDraft
  /v1/magic/auto/settings:
    get:
      summary: The seller’s Magic List automated-matching mode.
      tags:
        - Magic
      description: "mode: off (every match is swiped by hand), auto (confident matches become DRAFTS on their own, never published, always undoable) or review_all (Crossly pre-marks its picks; the seller confirms). Default review_all."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMagicAutoSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMagicAutoSetting
    put:
      summary: Set the Magic List automated-matching mode (off | auto | review_all).
      tags:
        - Magic
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateMagicAutoSettingRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMagicAutoSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateMagicAutoSetting
  /v1/magic/auto/runs/{runId}/decisions:
    get:
      summary: Every match decision round (automated and seller) for a Magic List run.
      tags:
        - Magic
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: runId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMagicAutoRunDecisionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMagicAutoRunDecisions
  /v1/comp-watchlists:
    get:
      summary: List the seller's sold-comp watchlists.
      tags:
        - CompWatchlists
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCompWatchlistsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCompWatchlists
    post:
      summary: Create a sold-comp watchlist.
      tags:
        - CompWatchlists
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCompWatchlistsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCompWatchlist
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCompWatchlistRequest"
  /v1/comp-watchlists/{id}/recent:
    get:
      summary: Recent external sold comps matching this watchlist.
      tags:
        - CompWatchlists
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCompWatchlistRecentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCompWatchlistRecent
  /v1/catalog/lookup:
    get:
      summary: Live Crossly offers for a product identifier (barcode, style code, LEGO set…).
      tags:
        - Catalog
      description: "Identifier-first: a GTIN is validated against its GS1 check digit and every length is normalised to 14 digits before lookup, so a UPC-A and its EAN-13 twin resolve to the same product. There is no fuzzy fallback — an identifier we cannot validate returns nothing rather than a guess."
      parameters:
        - schema:
            type: string
            enum:
              - gtin
              - style_code
              - lego_set
              - tcgplayer
              - discogs
              - asin
          in: query
          name: namespace
          required: true
        - schema:
            type: string
            maxLength: 64
          in: query
          name: value
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCatalogLookupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCatalogLookup
  /v1/market/products:
    get:
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMarketProductsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMarketProducts
  /v1/market/products/{id}:
    get:
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMarketProductResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMarketProduct
  /v1/market/metals/spot:
    get:
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMarketMetalSpotResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMarketMetalSpot
  /v1/market/metals/spot/history:
    get:
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMarketMetalSpotHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMarketMetalSpotHistory
  /v1/market/bullion:
    get:
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMarketBullionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMarketBullion
  /v1/market/scrap/quote:
    get:
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMarketScrapQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMarketScrapQuote
  /v1/market/products/{id}/related:
    get:
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMarketProductRelatedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMarketProductRelated
  /v1/market/variants/{id}/tiers:
    get:
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMarketVariantTiersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMarketVariantTiers
  /v1/market/variants/{id}/book:
    get:
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMarketVariantBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMarketVariantBook
  /v1/market/graders:
    get:
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMarketGradersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMarketGraders
  /v1/inventory/aging:
    get:
      summary: Unsold stock by days since first listed (unlisted, 0-7, 7-30, 30-90, 90+), each bucket with items, units, known cost (items without a cost counted separately) and listed value.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInventoryAgingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInventoryAging
  /v1/inventory/sell-through:
    get:
      summary: "Cohort sell-through: of the items first listed in the window (default 30-60 days ago), the share sold within 30 days of listing, with n, immature items left out, and the change vs the previous window in percentage points (pp)."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInventorySellThroughResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInventorySellThrough
      parameters:
        - name: start
          in: query
          required: false
          schema:
            type: string
        - name: end
          in: query
          required: false
          schema:
            type: string
  /v1/inventory/value-history:
    get:
      summary: Cost and listed value of unsold stock over time, oldest first (one point per nightly snapshot).
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInventoryValueHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInventoryValueHistory
      parameters:
        - name: days
          in: query
          required: false
          schema:
            type: number
  /v1/pricing/sold-comps:
    get:
      summary: "What one catalog product (market_sku_id, in one condition) actually sold for across Crossly in the last 180 days: median, p25/p75, p10/p90 (null under 10 sales), sale count, last sold, and days from listing to sale (median, p25, p75). Pass marketSkuId (+ optional condition) or one of your listingIds. comps is null until there are 3+ sales from 2+ sellers; holdCode says why there is nothing (no_market_sku, mixed_inventory, below_privacy_floor) — the same reasons a sold_median reprice rule holds."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPricingSoldCompResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPricingSoldComp
      parameters:
        - name: marketSkuId
          in: query
          required: false
          schema:
            type: string
        - name: condition
          in: query
          required: false
          schema:
            type: string
        - name: listingId
          in: query
          required: false
          schema:
            type: string
  /v1/sellers/{handle}/share-targets:
    get:
      summary: "What a public seller profile can be shared as: its shown stats and earned milestones, each with its share page and card image."
      tags:
        - Seller profiles
      description: Only what the seller shows publicly. `text` is the public display text ("$100k+"); a rounded or tier stat never carries its real number. `verified` is true only when the number comes from sales Crossly recorded through connected marketplaces. A private or unknown profile is a 404.
      parameters:
        - schema:
            type: string
            maxLength: 64
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSellerShareTargetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSellerShareTarget
  /v1/profile/insights/{timeframe}:
    get:
      summary: Your seller profile's views, share actions and link previews (Discord, X, iMessage…) per day.
      tags:
        - Seller profiles
      description: 'Counts only: no viewer, IP or referrer is stored. Bots and your own visits are not views; a link preview is counted by the app that fetched the card. `topRefs` names the profile (""), a stat page (`stat:<key>:<timeframe>`) or a milestone page (`milestone:<key>`).'
      parameters:
        - schema:
            type: string
            enum:
              - 7d
              - 30d
              - 90d
              - 12mo
          in: path
          name: timeframe
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProfileInsightResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProfileInsight
  /v1/payout/estimate:
    get:
      summary: What one platform nets at a given price, after fees and shipping.
      tags:
        - Payout
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPayoutEstimateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPayoutEstimate
  /v1/payout/compare:
    get:
      summary: Rank platforms by what they net at a given price. Defaults to connected ones.
      tags:
        - Payout
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPayoutCompareResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPayoutCompare
  /v1/payout/gross-for-net:
    get:
      summary: The gross price needed to clear a target net on one platform.
      tags:
        - Payout
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPayoutGrossForNetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPayoutGrossForNet
  /v1/payout/connect:
    get:
      summary: "Your Stripe payout account: status, country, agreement and payout currency."
      tags:
        - Payout
      description: status is not_started (with defaultCountry), pending, active, restricted or payouts_unavailable. Only active can be paid; payouts_unavailable means Stripe offers no payout path to the account's country yet.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPayoutConnectResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPayoutConnect
  /v1/payout/wallet:
    get:
      summary: "Your payout wallet: balances, schedule, next payout, instant-payout quote, methods, payouts, transactions."
      tags:
        - Payout
      description: connected:false (with defaultCountry) before onboarding. balance has availableCents, pendingCents and instantAvailableCents in the account currency. instant.available says whether an instant payout can be made now, with feeCents/netCents for the full instant-available amount and reason when not.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPayoutWalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPayoutWallet
  /v1/variation-groups:
    get:
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVariationGroupsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVariationGroups
    post:
      summary: 'Group listings you already have: a variation (one product, an axis such as Size) or a purchase-rule group ("buy any 3").'
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVariationGroupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVariationGroup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVariationGroupRequest"
  /v1/variation-groups/{id}:
    get:
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVariationGroupsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVariationGroup
    patch:
      summary: Retitle a group, rename its axis, or change a group's purchase rule (written into every member's description).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVariationGroupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVariationGroup
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVariationGroupRequest"
    delete:
      summary: Dissolve a group. Its options stay as ordinary listings.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVariationGroup
  /v1/listings/{id}/variation-group:
    get:
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingVariationGroupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getListingVariationGroup
  /v1/variation-groups/{id}/publish-plan:
    get:
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVariationGroupPublishPlanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVariationGroupPublishPlan
  /v1/restock-prompts:
    get:
      summary: List pending restock prompts.
      tags:
        - RestockPrompts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRestockPromptsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listRestockPrompts
  /v1/restock-prompts/settings:
    get:
      summary: "Deprecated: whether every platform account of the store republishes restocked items automatically."
      tags:
        - RestockPrompts
      description: "autoRepublish (default true): when an item that sold out comes back in stock, Crossly republishes it to the marketplaces it came off without asking. False: a restock prompt is raised instead. A listing the seller ended by hand is never republished automatically. The setting is per platform account now (GET /api/v1/channel-accounts/:accountId/settings → restock.autoRepublish); this reads true only while every account of the store has it on. Removed next release."
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetRestockPromptSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getRestockPromptSetting
    put:
      summary: "Deprecated: turn automatic republish on or off for every platform account of the store at once. Use PUT /api/v1/channel-accounts/:accountId/settings { autoRepublish } per account (removed next release)."
      tags:
        - RestockPrompts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/GetRestockPromptSettingResponse"
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetRestockPromptSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateRestockPromptSetting
  /v1/saved-views:
    get:
      summary: List the seller's saved view presets.
      tags:
        - SavedViews
      parameters:
        - schema:
            type: string
          in: query
          name: resource
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSavedViewsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSavedViews
    post:
      summary: Create a saved view preset.
      tags:
        - SavedViews
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSavedViewsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSavedView
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSavedViewRequest"
  /v1/ai/status:
    get:
      summary: BYO-key state for the calling user.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAiStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAiStatus
  /v1/ai/providers:
    get:
      summary: Static catalog of supported AI providers.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAiProviderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAiProvider
  /v1/pat/scopes:
    get:
      summary: List the canonical scope catalog.
      tags:
        - PAT
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPatScopeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPatScope
  /v1/pat:
    get:
      summary: "List the caller's PATs (preview only). Optional: q (name or prefix), scope, lastUsed (7d|30d|90d|never|stale), status (active|expired|revoked|all), page, pageSize."
      tags:
        - PAT
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPat
    post:
      summary: Mint a new PAT. Full token returned ONCE — store it on the client.
      tags:
        - PAT
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPat
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePatRequest"
  /v1/connected-apps:
    get:
      summary: "List third-party OAuth apps with access to this account, each with its publisher (the store that owns it). Optional: q, scope, lastUsed (7d|30d|90d|never|stale), page, pageSize."
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListConnectedAppsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listConnectedApps
  /v1/connected-apps/{grantId}:
    delete:
      summary: Disconnect a third-party app. Its tokens stop working immediately.
      tags:
        - Account
      parameters:
        - schema:
            type: string
          in: path
          name: grantId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteConnectedApp
  /v1/apps:
    get:
      summary: "Browse the public Crossly app directories: seller apps, buyer apps or both (search, category, sort, featured, paging)."
      tags:
        - Apps
      parameters:
        - schema:
            type: string
            enum:
              - seller
              - buyer
              - all
          in: query
          name: directory
          required: false
        - schema:
            type: string
            enum:
              - popular
              - newest
              - verified
          in: query
          name: sort
          required: false
        - schema:
            type: string
            enum:
              - "true"
              - "false"
          in: query
          name: featured
          required: false
        - schema:
            type: string
          in: query
          name: category
          required: false
        - schema:
            type: string
          in: query
          name: q
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 60
          in: query
          name: limit
          required: false
        - schema:
            type: string
          in: query
          name: cursor
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAppsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listApps
  /v1/apps/{clientId}:
    get:
      summary: Get one listed app by client id or profile slug. 404 if it is not in the directory.
      tags:
        - Apps
      parameters:
        - schema:
            type: string
          in: path
          name: clientId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAppsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getApp
  /v1/apps/{id}/earnings:
    get:
      summary: "Your store's OAuth app's revenue-share earnings: summary (with the store they pay out to) + ledger. The app's store owner, or a teammate with apps:read on it."
      tags:
        - Apps
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAppEarningResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAppEarning
  /v1/apps/{id}/listing-allowance:
    get:
      summary: "Your OAuth app's listing allowance (read-only): whether staff let sellers list above their plan through it, its limitMode (separate pool or shared with the plan), limitPeriod (total or monthly), the per-seller limit and the platform scope. Owner only."
      tags:
        - Apps
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAppListingAllowanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAppListingAllowance
  /v1/listings/{id}/management:
    get:
      summary: Which app manages this listing (null when none). Its fee is charged only on Crossly Shop sales, never on eBay or other marketplaces.
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingManagementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getListingManagement
  /v1/listing-commands:
    get:
      summary: "Your app's listing (delist/update/relist) and order (submit_tracking, remove_tracking, cancel_order, refund_order, message_buyer) commands for this seller (default: open ones), oldest first."
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
          in: query
          name: state
          required: false
          description: "Comma-separated: pending, acked, completed, failed, expired, cancelled"
        - schema:
            type: string
          in: query
          name: type
          required: false
          description: "Comma-separated: delist, update, relist, submit_tracking, remove_tracking, cancel_order, refund_order, message_buyer"
        - schema:
            type: integer
            minimum: 1
            maximum: 200
          in: query
          name: limit
          required: false
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingCommandsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listListingCommands
  /v1/listings/{id}/platforms/{platform}/reclone:
    get:
      summary: The latest relist-under-Crossly run for this listing on a platform (null when none).
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingPlatformRecloneResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getListingPlatformReclone
    post:
      summary: "End this marketplace item and relist it under Crossly. Requires consent: true."
      tags:
        - App-managed listings
      description: Loses the item's watchers, sold count, sales history, Promoted Listings and open offers; the item number changes. Refused while an order awaits fulfilment or an auction has bids. The new listing is published only after the old one is confirmed ended.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingPlatformRecloneResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingPlatformReclone
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingPlatformRecloneRequest"
  /v1/mobile/push-tokens:
    get:
      summary: List registered Expo push tokens (masked).
      tags:
        - Mobile
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMobilePushTokensResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMobilePushTokens
    delete:
      summary: Clear ALL registered push tokens for this user.
      tags:
        - Mobile
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteMobilePushTokenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteMobilePushToken
  /v1/team:
    get:
      summary: List pending team invitations + active members.
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTeamResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTeam
  /v1/team/members:
    get:
      summary: List team members with the stores each staffs (search, store, preset, permission, status, last active).
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTeamMembersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTeamMembers
      parameters:
        - name: store
          in: query
          required: false
          description: A store id, or 'all' (members holding the all-stores entry).
          schema:
            type: string
        - name: role
          in: query
          required: false
          description: A preset id (viewer…admin), 'custom', or the account role 'account_admin'.
          schema:
            type: string
        - name: permission
          in: query
          required: false
          schema:
            type: string
        - name: status
          in: query
          required: false
          description: active = reaches at least one store; no_stores = a seat with no store yet.
          schema:
            type: string
            enum:
              - active
              - no_stores
        - name: lastActive
          in: query
          required: false
          schema:
            type: string
            enum:
              - never
              - 7d
              - 30d
              - 90d
              - over_90d
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - added
              - last_active
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: number
        - name: pageSize
          in: query
          required: false
          schema:
            type: number
  /v1/team/invites:
    get:
      summary: List team invitations with the stores each adds the person to.
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTeamInvitesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTeamInvites
      parameters:
        - name: store
          in: query
          required: false
          schema:
            type: string
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - expired
              - pending
              - accepted
              - revoked
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - email
              - expires
              - newest
              - oldest
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: number
        - name: pageSize
          in: query
          required: false
          schema:
            type: number
    post:
      summary: Invite someone to one or more stores, each with its permissions; returns the one-time accept URL.
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTeamInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTeamInvite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTeamInviteRequest"
  /v1/team/stores:
    get:
      summary: The stores whose team you may see, invite to and manage.
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTeamStoresResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTeamStores
  /v1/team/members/{id}:
    get:
      summary: "One team member: added, last active and the stores they staff."
      tags:
        - Team
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTeamMemberResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTeamMember
  /v1/team/members/{id}/stores/{store}:
    get:
      summary: A member's permissions and limits in one store (`all` = all current and future stores).
      tags:
        - Team
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TeamMemberStoreResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTeamMemberStore
    put:
      summary: Set a member's permissions and limits in one store.
      tags:
        - Team
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TeamMemberStoreResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateTeamMemberStore
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateTeamMemberStoreRequest"
    delete:
      summary: Remove a team member from one store (their other stores stay).
      tags:
        - Team
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteTeamMemberStore
  /v1/sourcing/receipts:
    get:
      summary: List parsed sourcing receipts in this user's ledger.
      tags:
        - Sourcing
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSourcingReceiptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSourcingReceipt
    post:
      summary: Append a parsed receipt to the sourcing ledger.
      tags:
        - Sourcing
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSourcingReceiptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSourcingReceipt
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSourcingReceiptRequest"
  /v1/sourcing/demand:
    get:
      summary: Items buyers looked for on other sites that Crossly did not have.
      tags:
        - Sourcing
      description: Aggregate demand observed by the Scout extension, ranked by MISSES — the times somebody asked and we had nothing. `medianPageCents` is what the retailers were charging, which is the number to source against. Anonymous in every case; there is no per-buyer view of this.
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 365
            default: 30
          in: query
          name: days
          required: false
        - schema:
            type: integer
            minimum: 1
            default: 3
          in: query
          name: minLooks
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourcingDemandResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSourcingDemand
  /v1/sourcing/demand/mine:
    get:
      summary: Unmet buyer demand for items you hold or have sold before.
      tags:
        - Sourcing
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 365
            default: 60
          in: query
          name: days
          required: false
        - schema:
            type: integer
            minimum: 1
            default: 2
          in: query
          name: minLookers
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourcingDemandMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSourcingDemandMine
  /v1/scan/captures:
    get:
      summary: Your capture sessions and what they produced.
      tags:
        - Scan
      description: "One row per scan, newest first. `status` is capturing | uploaded | processing | ready | failed | rejected; `rejectReason` says why in the same words the seller was shown. A capture that reports `ready` with no mesh is normal — most items are textured onto a known shape rather than having geometry generated, which is cheaper and looks the same. When an item that WOULD have been generated was not, `generationSkipped` says why: out of monthly allowance, too few distinct angles, or you had already had a model built from this object."
      parameters:
        - schema:
            type: string
          in: query
          name: status
          required: false
          description: Filter to one status.
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListScanCapturesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listScanCaptures
  /v1/scan/models:
    get:
      summary: Which items already have a 3D model.
      tags:
        - Scan
      description: "Ask by CATALOGUE variant (`variantIds`) or by your own inventory rows (`inventoryItemIds`), comma separated, up to 200 of each. At least one is required. Returns only the ones that have a model. The two are different KINDS of answer. A catalogue model belongs to the product and is shared: a hit means your listing gets it with nothing to capture, because somebody else already paid to generate it. An inventory model belongs to one of your rows, because an object with no catalogue identity — a lamp, a one-off — is not a product anyone else can claim. `longestEdgeMm` is present only when a capture MEASURED the item against something of known size; null means the mesh has correct proportions and no real-world scale."
      parameters:
        - schema:
            type: string
          in: query
          name: variantIds
          required: false
          description: Comma-separated catalogue variant ids, max 200.
        - schema:
            type: string
          in: query
          name: inventoryItemIds
          required: false
          description: Comma-separated inventory item ids, max 200.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListScanModelsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listScanModels
  /v1/action-log:
    get:
      summary: List Activity Log events, newest first. Each event carries `view` (title, sentence, fields, failure advice, who did it) and typed `detail`. Page with `cursor`; `pagination.total` counts matches.
      tags:
        - Activity
      parameters:
        - schema:
            type: string
          in: query
          name: platform
          required: false
          description: Platform id (`ebay`, `poshmark`, ...).
        - schema:
            type: string
          in: query
          name: action
          required: false
          description: A canonical action key (`listing.delist`, see the public action catalog) or a legacy action word.
        - schema:
            type: string
          in: query
          name: category
          required: false
        - schema:
            type: string
            enum:
              - listings
              - inventory
              - orders
              - shipping
              - messages
              - automations
              - connections
              - settings
              - billing
              - account
              - emails
          in: query
          name: area
          required: false
          description: "A seller area: every action of that area (the grouped filter of the dashboard)."
        - schema:
            type: string
            enum:
              - pending
              - success
              - failure
              - partial
              - skipped
          in: query
          name: status
          required: false
        - schema:
            type: string
          in: query
          name: source
          required: false
        - schema:
            type: string
          in: query
          name: targetType
          required: false
          description: "With targetId: events about that object (any of their targets)."
        - schema:
            type: string
          in: query
          name: targetId
          required: false
        - schema:
            type: string
          in: query
          name: actorUserId
          required: false
          description: Only what one team member did.
        - schema:
            type: string
            maxLength: 512
          in: query
          name: q
          required: false
          description: A search in the activity query language (`action:listing.* -outcome:failure "free text"`), ANDed with the other filters. POST /api/v1/action-log/search/translate turns a question in words into one.
        - schema:
            type: string
            format: date-time
          in: query
          name: since
          required: false
          description: Inclusive lower bound on when the action happened.
        - schema:
            type: string
            format: date-time
          in: query
          name: until
          required: false
          description: Exclusive upper bound.
        - schema:
            type: string
            format: date-time
          in: query
          name: at
          required: false
          description: "Jump to a time: the page starts at the newest event at or before it."
        - schema:
            type: string
          in: query
          name: cursor
          required: false
          description: "`pagination.nextCursor` of the previous page."
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
          in: query
          name: limit
          required: false
        - schema:
            type: integer
            minimum: 0
            maximum: 999
          in: query
          name: offset
          required: false
          description: "Deprecated: use cursor. offset + limit may reach at most 1000 events."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListActionLogResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listActionLog
  /v1/action-log/facets:
    get:
      summary: "Filter options of the caller's Activity Log (last 90 days): areas with their actions and counts, the team members who acted, platforms and outcomes."
      tags:
        - Activity
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetActionLogFacetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getActionLogFacet
  /v1/action-log/histogram:
    get:
      summary: "Events per UTC day for the list filters (default: the last 30 days; at most 366)."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
          in: query
          name: platform
          required: false
          description: Platform id (`ebay`, `poshmark`, ...).
        - schema:
            type: string
          in: query
          name: action
          required: false
          description: A canonical action key (`listing.delist`, see the public action catalog) or a legacy action word.
        - schema:
            type: string
          in: query
          name: category
          required: false
        - schema:
            type: string
            enum:
              - listings
              - inventory
              - orders
              - shipping
              - messages
              - automations
              - connections
              - settings
              - billing
              - account
              - emails
          in: query
          name: area
          required: false
          description: "A seller area: every action of that area (the grouped filter of the dashboard)."
        - schema:
            type: string
            enum:
              - pending
              - success
              - failure
              - partial
              - skipped
          in: query
          name: status
          required: false
        - schema:
            type: string
          in: query
          name: source
          required: false
        - schema:
            type: string
          in: query
          name: targetType
          required: false
          description: "With targetId: events about that object (any of their targets)."
        - schema:
            type: string
          in: query
          name: targetId
          required: false
        - schema:
            type: string
          in: query
          name: actorUserId
          required: false
          description: Only what one team member did.
        - schema:
            type: string
            maxLength: 512
          in: query
          name: q
          required: false
          description: A search in the activity query language (`action:listing.* -outcome:failure "free text"`), ANDed with the other filters. POST /api/v1/action-log/search/translate turns a question in words into one.
        - schema:
            type: string
            format: date-time
          in: query
          name: since
          required: false
          description: Inclusive lower bound on when the action happened.
        - schema:
            type: string
            format: date-time
          in: query
          name: until
          required: false
          description: Exclusive upper bound.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListActionLogHistogramResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listActionLogHistogram
  /v1/action-log/exports:
    post:
      summary: "Queue an export of the Activity Log: every event (csv, ndjson, pdf) or a summary report (pdf, ndjson). Poll GET /api/v1/action-log/exports/{exportId}, then download it. Exports never contain IP addresses."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateActionLogExportRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetActionLogExportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createActionLogExport
  /v1/action-log/exports/{exportId}:
    get:
      summary: The state of one Activity Log export.
      tags:
        - Activity
      parameters:
        - schema:
            type: string
          in: path
          name: exportId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetActionLogExportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getActionLogExport
  /v1/action-log/exports/{exportId}/download:
    get:
      summary: Download a finished Activity Log export (for 24 hours after it completes).
      tags:
        - Activity
      parameters:
        - schema:
            type: string
          in: path
          name: exportId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetActionLogExportDownloadResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getActionLogExportDownload
  /v1/action-log/search/translate:
    post:
      summary: 'Turn a question in words ("failed delists on Mercari last week") into an Activity Log search: pass the returned `q` to GET /api/v1/action-log (or the histogram and csv/ndjson exports). Nothing is run. A 404 with details.code `not_enabled` means natural-language search is off for this account.'
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateActionLogSearchTranslateRequest"
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateActionLogSearchTranslateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createActionLogSearchTranslate
  /v1/action-log/{id}:
    get:
      summary: One Activity Log event by id, with `view` including its steps and, for bulk jobs, its children.
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListActionLogItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getActionLog
  /v1/action-log/{id}/calls:
    get:
      summary: The outbound platform HTTP calls under an event (oldest first) — platform, operation, method, host, status, latency, error class/message, proxy + recipe id. Answers "what was sent / what went wrong". The URL path, request/response bodies and persisted-query hash are never returned.
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListActionLogCallsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listActionLogCalls
  /v1/email-events:
    get:
      summary: "List email-detected events waiting for the seller (status=needs_review): a possible sale, ended listing, cancellation or other event an email reported that was not certain enough to act on automatically."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            enum:
              - needs_review
            default: needs_review
          in: query
          name: status
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEmailEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listEmailEvents
  /v1/email-events/{id}:
    get:
      summary: "One marketplace email Crossly read: what it did with it (outcome), the fields the template extracted, and the mailbox it came from."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetEmailEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getEmailEvent
  /v1/email-events/{id}/preview:
    get:
      summary: "A marketplace email's sanitized preview: text only, buyer address lines hidden, links without their query. Crossly keeps each email 30 days; after that this is a 409."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetEmailEventPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getEmailEventPreview
  /v1/detected-events/rules:
    get:
      summary: "The seller's detection rules, top-down in the order they are evaluated (first match wins unless a rule says continue): the seller's own rules, translations of their event-policy rules (source legacy), then the shipped default set (source default, ids default:<key>; a stored edit of a default replaces it). Each rule has a filter (event kinds, platforms, accounts, apps, tags, items), an optional condition over any event axis, the actions it runs (then / else) and its guard loosenings."
      tags:
        - Activity
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDetectedEventRulesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDetectedEventRules
    post:
      summary: "Create a detection rule: which detected events it applies to (filter + optional condition over any event axis) and what Crossly does then (and else). Without order it is placed most-specific-first, above the default set. Returns the stored rule with its id."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventRuleRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDetectedEventRuleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventRule
  /v1/detected-events/rules/{ref}:
    get:
      summary: "One detection rule by its ref: a stored rule's id, or default.<key> for a situation (the store's effective rule for it: your edit when there is one, else the shipped default). Returns the rule, the situation it decides (topic, title, why it is the default), the choice cards offered for that situation (each a complete rule body, the recommended one first) and which card the rule is (custom when none). A retired key (order.notify, account) opens the key it was split into. 404 when the ref names nothing."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
          in: path
          name: ref
          required: true
          description: A stored rule id (uuid), or default.<key> for a situation default (default:<key> also works).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDetectedEventRuleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDetectedEventRule
  /v1/detected-events/situations:
    get:
      summary: "Every situation Crossly decides (a sale of an item in Crossly, a sale not in Crossly with no match, a return opened, a connection lost…), grouped by topic (sales, orders, listings, buyers, account): its title, whether it is a headline row of the Overview, why the default is what it is, its rule ref (default.<key>) and the choice cards offered for it. To pick a card, PUT its body to the rule default:<key>. The same catalog for every seller; GET overview says what each does today."
      tags:
        - Activity
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDetectedEventSituationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDetectedEventSituations
  /v1/detected-events/overview:
    get:
      summary: "What Crossly does today in each situation for the store, computed from the store's real rules the way the engine decides: per situation its topic, title, the outcome in words, the rule ref that decides it, whether it differs from the recommended default, and narrower rules (one marketplace, account or app) that decide it differently there. Also the headline situations per topic, the starting point (hands_on / balanced / hands_off / custom), how many rules are your own and how many events wait for you. The store is X-Storefront-Id (omitted: the default store)."
      tags:
        - Activity
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDetectedEventOverviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDetectedEventOverview
  /v1/detected-events/starting-point:
    get:
      summary: "The store's starting point: hands_on, balanced (recommended), hands_off, or custom once a default was edited by hand. Preview a change with POST starting-point/preview, apply it with PUT starting-point."
      tags:
        - Activity
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDetectedEventStartingPointResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDetectedEventStartingPoint
    put:
      summary: "Apply a starting point to the store: rewrites the store's untouched default rules as ordinary rules (balanced removes them, so the shipped defaults apply). Defaults you edited and your own rules stay as they are; starting points do not stack. Logged to Activity. Returns the starting point now in effect."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateDetectedEventStartingPointRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDetectedEventStartingPointResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDetectedEventStartingPoint
  /v1/detected-events/events:
    get:
      summary: "Every event Crossly detected (sales, order changes, listing changes, offers, messages, account notices), newest first: all its axes, the rule that decided it, its corroborating reports, the plan per target and how each action went, with canConfirm (an open ask) and canUndo. Cursor-paged; filter by kinds, platforms, statuses, accounts and channels (comma-separated), one item, listing, order or deciding rule, and since (ISO time). statuses=asked is what waits for you; dismissed is an ask closed without acting. Rows from before the rules update carry legacy: true and have no actions. Per store: X-Storefront-Id (omitted: the default store, which also keeps events recorded before stores existed)."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
          in: query
          name: kinds
          required: false
        - schema:
            type: string
          in: query
          name: platforms
          required: false
        - schema:
            type: string
          in: query
          name: accounts
          required: false
          description: Comma-separated platform account ids (scope.account).
        - schema:
            type: string
          in: query
          name: statuses
          required: false
          description: "Comma-separated: acted, held, asked, confirmed, ignored, undone, failed, received, corrected, dismissed"
        - schema:
            type: string
          in: query
          name: channels
          required: false
          description: "Comma-separated, how it was reported: platform_webhook, platform_poll, cookie_poll, health_probe, listing_discovery, app_push, email, extension, manual"
        - schema:
            type: string
            format: uuid
          in: query
          name: itemId
          required: false
          description: Only events about this inventory item.
        - schema:
            type: string
            format: uuid
          in: query
          name: listingId
          required: false
          description: Only events about this platform listing.
        - schema:
            type: string
            format: uuid
          in: query
          name: orderId
          required: false
          description: Only events about this order.
        - schema:
            type: string
          in: query
          name: ruleId
          required: false
          description: Only events this rule decided (a rule id, or default:<key>).
        - schema:
            type: string
          in: query
          name: ownership
          required: false
          description: Comma-separated, who manages the item (crossly, imported, app_managed, other_tool, untracked).
        - schema:
            type: string
            format: date-time
          in: query
          name: since
          required: false
        - schema:
            type: string
          in: query
          name: cursor
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDetectedEventEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDetectedEventEvents
  /v1/detected-events/events/{id}:
    get:
      summary: One detected event with every report of it (first + corroborations, with correlation and contradiction), the guards that held actions back, the plan and each executed action's outcome and reversibility.
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDetectedEventEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDetectedEventEvent
  /v1/event-policies:
    get:
      summary: What Crossly does with each detected marketplace event (sale, listing ended, offer, cancellation, label, shipped, delivered, refund, return, payout, message), per who owns the item (crossly, imported, app_managed, other_tool, untracked). Each matrix cell lists the allowed actions and the effective one, with the scope it comes from (app > platform > global > default). Pass platform (or appId) to see the matrix as that platform's (or app's) items see it. Also returns the rules, platforms and connected apps.
      tags:
        - Activity
      parameters:
        - schema:
            type: string
          in: query
          name: platform
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: appId
          required: false
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetEventPolicyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getEventPolicy
  /v1/event-policies/decisions:
    get:
      summary: "The decision log, newest first: for each detected event, what the rule or default asked for, what was done (after capability fallback and the email confidence ceiling), the rule that decided it, and the outcome (done / skipped / failed / review). Cursor-paged; filter by event, ownership, platform or outcome (outcome=review: still waiting for the seller). Kept 90 days."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
          in: query
          name: cursor
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
        - schema:
            type: string
            enum:
              - sale
              - listing_ended
              - offer
              - order_cancelled
              - label_ready
              - shipped
              - delivered
              - refunded
              - return_opened
              - payout_sent
              - message
          in: query
          name: event
          required: false
        - schema:
            type: string
            enum:
              - crossly
              - imported
              - app_managed
              - other_tool
              - untracked
          in: query
          name: ownership
          required: false
        - schema:
            type: string
          in: query
          name: platform
          required: false
        - schema:
            type: string
            enum:
              - done
              - skipped
              - failed
              - review
          in: query
          name: outcome
          required: false
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEventPolicyDecisionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listEventPolicyDecisions
  /v1/profile:
    get:
      summary: "Your seller profile: the @handle, the PUBLISHED document (what crossly.net/seller/<handle> shows), the DRAFT the editor is working on, when it was last published and whether the draft has unpublished changes. A profile never edited reads as the default profile built from your account."
      tags:
        - Profile
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProfile
  /v1/profile/sources:
    get:
      summary: "The accounts, stores and marketplace connections your profile may show: your own account, plus every team you belong to whose owner granted you profile:showcase. Toggle them in document.sources."
      tags:
        - Profile
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProfileSourcesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listProfileSources
  /v1/profile/stats:
    get:
      summary: "Profile stats in the OWNER view: exact values and coverage, whatever display mode the public page uses. keys is a comma list (gmv, items_sold, orders, avg_sale_price, best_sale, sell_through_rate, median_days_to_sale, rating, vault_value, …); timeframe is a rolling token (7d 30d 90d 6mo 12mo ytd all) or a custom range cYYYYMMDD-YYYYMMDD in your time zone. Money is USD cents, rates bps, durations days. verified is true only for numbers backed by marketplace-reported or Crossly-checkout sales."
      tags:
        - Profile
      parameters:
        - schema:
            type: string
          in: query
          name: keys
          required: true
          description: Comma-separated stat keys, at most 30.
        - schema:
            type: string
            default: all
          in: query
          name: timeframe
          required: false
        - schema:
            type: string
            enum:
              - exact
              - rounded
              - tier
          in: query
          name: display
          required: false
        - schema:
            type: string
            enum:
              - verified
              - all
          in: query
          name: basis
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProfileStatsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listProfileStats
  /v1/profile/milestones:
    get:
      summary: Milestones you earned (first sale, $100k verified sales, 1-year streak, 10 countries…) with when, and whether each is verified. Earned only from verified data; each has its own share page and card.
      tags:
        - Profile
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProfileMilestonesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listProfileMilestones
  /v1/sellers/{handle}/profile:
    get:
      summary: "Any seller's public profile: the person, the published document, resolved stats (a rounded or tier stat never carries its exact value), shown marketplaces, stores, milestones and the share card URLs. 404 when the handle does not exist or the profile is private."
      tags:
        - Profile
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSellerProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSellerProfile
  /v1/workflows:
    get:
      summary: "List workflows, newest change first. A workflow is a graph of nodes: one or more triggers, then actions, lookups and flow nodes (if, switch, wait, approval…). Each row carries its trigger and node types and a 7-day run sparkline, not the graph (GET /v1/workflows/{id} has it)."
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            enum:
              - "true"
              - "false"
          in: query
          name: active
          required: false
          description: Only active (true) or paused (false) workflows.
        - schema:
            type: string
          in: query
          name: tag
          required: false
          description: Only workflows carrying this tag.
        - schema:
            type: string
          in: query
          name: trigger
          required: false
          description: Only workflows started by this trigger node type, e.g. on.listing.sold.
        - schema:
            type: string
          in: query
          name: q
          required: false
          description: Name contains (case-insensitive).
        - schema:
            type: string
          in: query
          name: legacyRef
          required: false
          description: "The workflow an old automation became: rule:<id>, chain:<id> or sale_event:<id>."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkflowsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorkflows
    post:
      summary: 'Create a workflow: from blank ({ name, graph? }), from a template ({ from: "template", templateId, setup?, activate? }) or from an export document ({ from: "import", document }). New workflows start paused; activate one with POST /v1/workflows/{id}/activate. Returns the workflow and its validation issues.'
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflow
  /v1/workflows/catalog:
    get:
      summary: "Everything needed to build a workflow: every node type (params, ports, output fields, risk, platforms capability), which platforms each capability covers and which of those you have connected, the expression helpers and bindings ({{ $json.listingId }}…) and the condition operators. Read this before composing a graph rather than guessing node types or param keys."
      tags:
        - Workflows
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorkflowCatalogResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorkflowCatalog
  /v1/workflows/templates:
    get:
      summary: Ready-made workflows (weekend sale, stale-listing markdowns, offer responder, ship-by alerts…), each a complete graph plus the setup fields its "use" call asks for.
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
          in: query
          name: category
          required: false
          description: Exact template category, e.g. "Sales & markdowns".
        - schema:
            type: string
          in: query
          name: q
          required: false
          description: Matches name, description, category or tags.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkflowTemplatesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorkflowTemplates
  /v1/workflows/sales/active:
    get:
      summary: "Every live or upcoming sale (a sales event started by a sale.start node) with the workflow that runs it: percent off, window, and how many listings it applies to."
      tags:
        - Workflows
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkflowSaleActiveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorkflowSaleActive
  /v1/workflows/{id}:
    get:
      summary: Get one workflow with its full graph and current version.
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorkflowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorkflow
    put:
      summary: "Save a workflow. Pass the version you edited: a save over a newer version is 409 version_conflict (re-read and merge). Saving an active workflow validates it like activation does (422 with issues)."
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorkflowRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkflowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorkflow
    delete:
      summary: "Delete (archive) a workflow: its triggers stop, open runs are cancelled, run history stays readable."
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorkflowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorkflow
  /v1/workflows/{id}/versions:
    get:
      summary: The saved versions of a workflow, newest first (restore one with POST …/versions/{v}/restore).
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkflowVersionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorkflowVersions
  /v1/workflows/{id}/export:
    get:
      summary: Export a workflow as a portable document (format crossly.workflow) that POST /v1/workflows/import accepts. Credentials and account handles are stripped; pinned test data only with pinnedData=true.
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            enum:
              - "true"
              - "false"
          in: query
          name: pinnedData
          required: false
          description: Keep the nodes' pinned test data.
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorkflowExportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorkflowExport
  /v1/workflows/{id}/runs:
    get:
      summary: Run history of one workflow, newest first, with per-node status and item counts.
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
          in: query
          name: status
          required: false
          description: "Comma-separated run statuses: queued, running, waiting, succeeded, failed, cancelled."
        - schema:
            type: string
            enum:
              - live
              - test
              - dry
          in: query
          name: mode
          required: false
          description: "live (triggers), test (editor test run) or dry (safe test: no writes)."
        - schema:
            type: string
            format: date-time
          in: query
          name: since
          required: false
          description: Runs queued at or after this time (ISO 8601).
        - schema:
            type: string
            format: date-time
          in: query
          name: until
          required: false
          description: Runs queued at or before this time (ISO 8601).
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
          description: 1-indexed page.
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
          description: Rows per page (1-100).
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkflowRunsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorkflowRuns
  /v1/workflow-runs:
    get:
      summary: Runs of every workflow, newest first. Filter by workflow, status, mode and time.
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: workflowId
          required: false
          description: Only runs of this workflow.
        - schema:
            type: string
          in: query
          name: status
          required: false
          description: "Comma-separated run statuses: queued, running, waiting, succeeded, failed, cancelled."
        - schema:
            type: string
            enum:
              - live
              - test
              - dry
          in: query
          name: mode
          required: false
          description: "live (triggers), test (editor test run) or dry (safe test: no writes)."
        - schema:
            type: string
            format: date-time
          in: query
          name: since
          required: false
          description: Runs queued at or after this time (ISO 8601).
        - schema:
            type: string
            format: date-time
          in: query
          name: until
          required: false
          description: Runs queued at or before this time (ISO 8601).
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
          description: 1-indexed page.
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
          description: Rows per page (1-100).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkflowRunsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorkflowRuns2
  /v1/workflow-runs/{runId}:
    get:
      summary: "One run: its summary, the graph version it ran, and every node execution (status, item counts per port, timing, errors). Item data per node: GET …/nodes/{nodeId}."
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: runId
          required: true
          description: Workflow run id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorkflowRunResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorkflowRun
  /v1/workflow-runs/{runId}/nodes/{nodeId}:
    get:
      summary: "Every execution of one node in a run with its input and output items (each port keeps the first 50 items, 16 KB per item; truncated=true when cut). Data older than the retention window, or not kept by settings.saveSuccessData=false, is pruned: that execution has input/output null and pruned=true, and when every execution is pruned the response is { data: null, meta: { pruned: true } } (never an empty list)."
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: runId
          required: true
          description: Workflow run id.
        - schema:
            type: string
          in: path
          name: nodeId
          required: true
          description: Node id within the run's graph.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorkflowRunNodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorkflowRunNode
  /v1/workflow-approvals:
    get:
      summary: Approval requests from flow.approval nodes, newest first (pending only unless status says otherwise). Decide one with POST /v1/workflow-approvals/{id}/decide.
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
          in: query
          name: status
          required: false
          description: "Comma-separated: pending, approved, rejected, expired. Default pending."
        - schema:
            type: string
            format: uuid
          in: query
          name: workflowId
          required: false
          description: Only approvals of this workflow.
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
          description: 1-indexed page.
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
          description: Rows per page (1-100).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkflowApprovalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorkflowApprovals
  /v1/offers:
    get:
      summary: List buyer offers on your Crossly marketplace listings, including bundles.
      tags:
        - Offers
      parameters:
        - schema:
            type: string
            enum:
              - pending
              - accepted
              - declined
              - countered
              - expired
              - withdrawn
          in: query
          name: status
          required: false
          description: Filter to one status. Omit for all.
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOfferResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOffer
  /v1/listings/{id}/offer-floor:
    get:
      summary: "The lowest price an offer may be accepted or countered at for this listing on a platform: grossCents, origin (listing | item | break_even | null), text, and the same as floorCents + floorSource."
      tags:
        - Offers
      parameters:
        - schema:
            type: string
          in: query
          name: platform
          required: true
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingOfferFloorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getListingOfferFloor
  /v1/orders/{id}/suggested-parcel:
    get:
      summary: "The suggested parcel for this order: source (learned | box | item | none), presetId, presetName, lengthIn, widthIn, heightIn, weightOz, sampleSize."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderSuggestedParcelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderSuggestedParcel
  /v1/orders/pick-list:
    get:
      summary: "The items to pull for a batch of orders, grouped by storage bin: groups[{bin, lines[{orderId, orderNumber, platform, title, sku, quantity, buyer}]}], orderCount, itemCount. orderIds (comma list, at most 500) or every order still to ship; storefrontId for one store; format=pdf for the printable list."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: query
          name: orderIds
          required: false
        - schema:
            type: string
            enum:
              - json
              - pdf
          in: query
          name: format
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderPickListResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderPickList
  /v1/policy-presets:
    get:
      summary: List the seller's return / shipping / payment / pricing policy presets (no kind = the three listing kinds). meta.migrationNotices lists defaults the policy migration demoted (kind still has no default).
      tags:
        - PolicyPresets
      parameters:
        - schema:
            type: string
            enum:
              - return
              - shipping
              - payment
              - pricing
          in: query
          name: kind
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPolicyPresetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPolicyPresets
    post:
      summary: Create a return / shipping / payment / pricing policy preset.
      tags:
        - PolicyPresets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePolicyPresetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPolicyPreset
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePolicyPresetRequest"
  /v1/policy-presets/accounts:
    get:
      summary: The connected platform accounts a policy can apply to ("Where this applies").
      tags:
        - PolicyPresets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPolicyPresetAccountsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPolicyPresetAccounts
  /v1/policy-presets/{id}:
    get:
      summary: "One policy: its fields, how many listings use it, where it applies per platform account (use this policy / the marketplace's own setting / default for that marketplace) with what each marketplace receives, and its history."
      tags:
        - PolicyPresets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPolicyPresetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPolicyPreset
    patch:
      summary: Update a policy preset.
      tags:
        - PolicyPresets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePolicyPresetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePolicyPreset
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdatePolicyPresetRequest"
    delete:
      summary: Delete a policy preset. Listings that used it switch to the default preset of its kind.
      tags:
        - PolicyPresets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeletePolicyPresetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deletePolicyPreset
  /v1/policies/general:
    get:
      summary: "Settings that fit no policy kind: vacation mode (schedule, scope, message, auto-actions)."
      tags:
        - PolicyPresets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPolicyGeneralResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPolicyGeneral
    put:
      summary: "Save vacation mode: on now or scheduled, everywhere or chosen accounts, message, auto-actions."
      tags:
        - PolicyPresets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdatePolicyGeneralResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePolicyGeneral
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdatePolicyGeneralRequest"
  /v1/policies:
    get:
      summary: The store's shipping / return / payment policy presets by kind, with each kind's default (X-Storefront-Id, else the default store).
      tags:
        - PolicyPresets
      description: Pass a preset `id` as `policies.shippingPresetId` / `returnPresetId` / `paymentPresetId` on POST or PATCH /v1/listings (null = the marketplace's own default). A kind you omit uses `defaultPresetId`.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPolicyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPolicy
  /v1/price-rules:
    get:
      summary: List the seller's per-channel price rules.
      tags:
        - PriceRules
      parameters:
        - schema:
            type: string
          in: query
          name: platform
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPriceRulesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPriceRules
    put:
      summary: Create or replace the price rule for a platform (and optional account / category).
      tags:
        - PriceRules
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPriceRulesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePriceRule
  /v1/sku-presets:
    get:
      summary: List the store's SKU presets, which one is the default, and the template new listings auto-fill their SKU from (meta.autoFill).
      tags:
        - SkuPresets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSkuPresetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSkuPresets
    post:
      summary: Create a named SKU preset in the store (optionally the default).
      tags:
        - SkuPresets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSkuPresetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSkuPreset
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSkuPresetRequest"
  /v1/sku-presets/{id}:
    get:
      summary: Get one SKU preset of the store.
      tags:
        - SkuPresets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSkuPresetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSkuPreset
    patch:
      summary: Rename a SKU preset, change its template, or make it the store's default.
      tags:
        - SkuPresets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSkuPresetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSkuPreset
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSkuPresetRequest"
    delete:
      summary: Delete a SKU preset of the store.
      tags:
        - SkuPresets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSkuPresetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteSkuPreset
  /v1/field-rules:
    get:
      summary: List the seller's per-channel field rules.
      tags:
        - FieldRules
      parameters:
        - schema:
            type: string
          in: query
          name: platform
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListFieldRulesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listFieldRules
    post:
      summary: Create a per-channel field rule.
      tags:
        - FieldRules
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListFieldRulesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFieldRule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFieldRuleRequest"
  /v1/field-rules/{id}:
    get:
      summary: Get one field rule.
      tags:
        - FieldRules
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListFieldRulesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFieldRule
    patch:
      summary: Update a field rule.
      tags:
        - FieldRules
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListFieldRulesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateFieldRule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateFieldRuleRequest"
    delete:
      summary: Delete a field rule.
      tags:
        - FieldRules
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteFieldRule
  /v1/bulk-batches:
    get:
      summary: List recent bulk list batches, newest first.
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBulkBatchesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBulkBatches
    post:
      summary: Open an empty capture batch for a preset.
      tags:
        - BulkBatches
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBulkBatchesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBulkBatch
  /v1/bulk-batches/{id}:
    get:
      summary: Get one bulk batch with its items (capture order) and matched catalog rows.
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBulkBatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBulkBatch
    patch:
      summary: Change batch settings, or set stage "identify" when capture is done.
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBulkBatchesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBulkBatch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBulkBatchRequest"
    delete:
      summary: Discard a batch (listings it produced stay).
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteBulkBatch
  /v1/channel-accounts:
    get:
      summary: List every platform account of the store with its inventory and restock settings.
      tags:
        - ChannelInventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccountsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listChannelAccounts
  /v1/channel-accounts/{accountId}/settings:
    get:
      summary: Get one platform account's inventory and restock settings in the store.
      tags:
        - ChannelInventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: accountId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccountsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getChannelAccountSetting
    put:
      summary: Set a platform account's quantity cap, buffer, sync toggle, out-of-stock action, exclusions and restock auto-republish in the store (merge write).
      tags:
        - ChannelInventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: accountId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccountsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateChannelAccountSetting
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateChannelInventoryRequest"
    delete:
      summary: Reset a platform account's settings in the store to the defaults (no cap, no buffer, sync on, end on sell-out, republish automatically).
      tags:
        - ChannelInventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: accountId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccountsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteChannelAccountSetting
  /v1/channel-accounts/{accountId}/history-import:
    get:
      summary: "Get one platform account's order-history import window (how far back its past sales and active listings import): days null = All time, 0 = None, N = the last N days; chosen=false = never chosen."
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: accountId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetChannelAccountHistoryImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getChannelAccountHistoryImport
    put:
      summary: Set one platform account's order-history import window (how far back its past sales and active listings import). Runs the one-time backfill now when the account has not had it yet.
      tags:
        - Accounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateChannelAccountHistoryImportRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: accountId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateChannelAccountHistoryImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateChannelAccountHistoryImport
  /v1/channel-inventory:
    get:
      summary: Deprecated alias of GET /api/v1/channel-accounts (removed next release).
      tags:
        - ChannelInventory
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccountsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listChannelInventory
  /v1/channel-inventory/{platform}/{slot}:
    get:
      summary: Deprecated alias of GET /api/v1/channel-accounts/:accountId/settings (removed next release).
      tags:
        - ChannelInventory
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - schema:
            type: integer
            minimum: 1
          in: path
          name: slot
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccountsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getChannelInventory
    put:
      summary: Deprecated alias of PUT /api/v1/channel-accounts/:accountId/settings (removed next release).
      tags:
        - ChannelInventory
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - schema:
            type: integer
            minimum: 1
          in: path
          name: slot
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccountsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateChannelInventory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateChannelInventoryRequest"
    delete:
      summary: Deprecated alias of DELETE /api/v1/channel-accounts/:accountId/settings (removed next release).
      tags:
        - ChannelInventory
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - schema:
            type: integer
            minimum: 1
          in: path
          name: slot
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListChannelAccountsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteChannelInventory
  /v1/product-sets:
    get:
      summary: List your saved product sets with their live member counts.
      tags:
        - ProductSets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductSetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listProductSets
    post:
      summary: Create a product set (filters, explicit picks, or both).
      tags:
        - ProductSets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductSetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductSet
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductSetRequest"
  /v1/product-sets/{id}:
    get:
      summary: Get one product set (its filters and pick counts).
      tags:
        - ProductSets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductSetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductSet
    patch:
      summary: "Update a set: rename, description, or replace its filters."
      tags:
        - ProductSets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductSetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateProductSet
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateProductSetRequest"
    delete:
      summary: Delete a product set (its id is also dropped from any channel exclusion lists).
      tags:
        - ProductSets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteProductSet
  /v1/product-sets/{id}/members:
    get:
      summary: Evaluate a set now and return a page of its member listings.
      tags:
        - ProductSets
      parameters:
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 200
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductSetMembersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listProductSetMembers
    post:
      summary: Add / exclude / remove explicit picks for a set.
      tags:
        - ProductSets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductSetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductSetMember
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductSetMemberRequest"
  /v1/source-sync:
    get:
      summary: List source-capable stores with their continuous-sync settings and status.
      tags:
        - SourceSync
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceSyncResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSourceSync
  /v1/source-sync/events:
    get:
      summary: "Recent source-sync activity: each webhook delivery and reconcile change, with its outcome."
      tags:
        - SourceSync
      parameters:
        - schema:
            type: string
            enum:
              - shopify
              - woocommerce
              - bigcommerce
              - wix
              - squarespace
              - lightspeed_r
              - lightspeed_x
              - square
          in: query
          name: platform
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 200
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceSyncEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSourceSyncEvents
  /v1/source-sync/{platform}/locations:
    get:
      summary: "POS only (lightspeed_r, lightspeed_x, square): the shops/outlets/locations on the account and which one Crossly syncs stock and sales with."
      tags:
        - SourceSync
      parameters:
        - schema:
            type: string
            enum:
              - lightspeed_r
              - lightspeed_x
              - square
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSourceSyncLocationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSourceSyncLocation
  /v1/creator/overview:
    get:
      summary: "Creator Studio overview: earnings this month and last by rail, live creations, review queue, publish lock and next steps."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorOverviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorOverview
  /v1/creator/items:
    get:
      summary: Every creation of your shop — wearables, decor, uploaded 3D models, interactive objects, Classic games, card games (incl. unpublished designer sets), physical runs — with status, price and earnings.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
            enum:
              - wearable
              - decor
              - model
              - interactive
              - classic_game
              - card_game
              - physical_run
          in: query
          name: kind
          required: false
        - schema:
            type: string
            enum:
              - draft
              - in_review
              - changes_requested
              - live
              - rejected
              - retired
          in: query
          name: status
          required: false
        - schema:
            type: string
            enum:
              - cash
              - cosm
          in: query
          name: rail
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorItemsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorItems
  /v1/creator/earnings:
    get:
      summary: Your creator earnings ledger across every rail (cash, COSM, CBX), newest first. Each row names the source ledger row it is. meta.totals holds per-rail and per-source totals for the same filter; meta.nextCursor pages.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
            enum:
              - cash
              - cosm
              - cbx
          in: query
          name: rail
          required: false
        - schema:
            type: string
            enum:
              - item_sale
              - classic_store
              - vault_creator_code
              - item_royalty
              - card_sale
              - resale_royalty
              - production_royalty
              - world_pass
              - world_product
              - world_subscription
              - world_private_server
              - world_paid_access
              - world_commerce_affiliate
              - toolbox_asset
              - creator_rewards
              - world_ads
          in: query
          name: source
          required: false
        - schema:
            type: string
            enum:
              - creator
              - carnival
              - toolbox
              - rewards
              - physical
              - items
              - cards
              - collections
              - royalties
          in: query
          name: group
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: gameId
          required: false
        - schema:
            type: string
            enum:
              - available
              - paid
              - reversed
          in: query
          name: state
          required: false
        - schema:
            type: string
            format: date-time
          in: query
          name: from
          required: false
        - schema:
            type: string
            format: date-time
          in: query
          name: to
          required: false
        - schema:
            type: string
          in: query
          name: cursor
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 200
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorEarningsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorEarnings
  /v1/creator/earnings/trend:
    get:
      summary: "Your creator earnings over time: net (available + paid) per day, week or month (UTC) and rail, for the same filter as the ledger. meta.totals holds the per-rail and per-source totals of that filter."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
            enum:
              - day
              - week
              - month
          in: query
          name: bucket
          required: false
        - schema:
            type: string
            enum:
              - cash
              - cosm
              - cbx
          in: query
          name: rail
          required: false
        - schema:
            type: string
            enum:
              - creator
              - carnival
              - toolbox
              - rewards
              - physical
              - items
              - cards
              - collections
              - royalties
          in: query
          name: group
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: gameId
          required: false
        - schema:
            type: string
            format: date-time
          in: query
          name: from
          required: false
        - schema:
            type: string
            format: date-time
          in: query
          name: to
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorEarningTrendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorEarningTrend
  /v1/creator/earnings/reconcile:
    get:
      summary: "Reconcile your creator earnings: every source recomputed directly from its own ledger, side by side with the earnings view. ok is true when every source matches."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorEarningReconcileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorEarningReconcile
  /v1/creator/earnings/export:
    get:
      summary: "Download your creator earnings: format=csv (every ledger row for the filter) or format=pdf (a statement with per-rail totals for the same filter: rail, source, group, gameId, state; period defaults to this month)."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
            enum:
              - csv
              - pdf
          in: query
          name: format
          required: false
        - schema:
            type: string
            enum:
              - cash
              - cosm
              - cbx
          in: query
          name: rail
          required: false
        - schema:
            type: string
            enum:
              - item_sale
              - classic_store
              - vault_creator_code
              - item_royalty
              - card_sale
              - resale_royalty
              - production_royalty
              - world_pass
              - world_product
              - world_subscription
              - world_private_server
              - world_paid_access
              - world_commerce_affiliate
              - toolbox_asset
              - creator_rewards
              - world_ads
          in: query
          name: source
          required: false
        - schema:
            type: string
            enum:
              - available
              - paid
              - reversed
          in: query
          name: state
          required: false
        - schema:
            type: string
            enum:
              - creator
              - carnival
              - toolbox
              - rewards
              - physical
              - items
              - cards
              - collections
              - royalties
          in: query
          name: group
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: gameId
          required: false
        - schema:
            type: string
            format: date-time
          in: query
          name: from
          required: false
        - schema:
            type: string
            format: date-time
          in: query
          name: to
          required: false
      responses:
        "200":
          description: "The file in the requested `format`: a CSV file or a PDF document."
          content:
            text/csv:
              schema:
                type: string
                description: CSV text with a header row.
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorEarningExport
  /v1/creator/reviews:
    get:
      summary: Every creator submission (items, interactive objects, Classic games, card games) and its review decision with the reviewer note.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
            enum:
              - item
              - interactive
              - classic_game
              - card_game
              - model
              - toolbox
          in: query
          name: kind
          required: false
        - schema:
            type: string
            enum:
              - in_review
              - approved
              - rejected
              - withdrawn
              - superseded
          in: query
          name: state
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 300
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorReviewsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorReviews
  /v1/creator/collections/{collectionId}:
    get:
      summary: "One collection (a card set, a launch or a claimed contract): its six-stage road to the chain, the launch (phase timeline, proceeds, recent mints), sales by marketplace, royalty estimate, holders, its cards or creations with their earnings, holder perks set at mint, and which actions apply."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: collectionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorCollectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorCollection
  /v1/connection-health:
    get:
      summary: Health of each connected marketplace account, with a plain-English diagnosis.
      tags:
        - Connections
      description: One entry per ACCOUNT, not per platform — a healthy slot 1 must not speak for a dead slot 2. States that were never measured are reported as "unknown" rather than as failures.
      parameters:
        - schema:
            type: boolean
          in: query
          name: includeUnconnected
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetConnectionHealthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getConnectionHealth
  /v1/devices:
    get:
      summary: Machines paired to this account, and what each can do.
      tags:
        - Connections
      description: Capabilities are what the machine DECLARED it can do at pairing — print, scan_watch, browser, cookie_jar, proxy_bind, scale. A machine only declares "scale" when one actually answered, never on the assumption that one might.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDevicesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDevices
  /v1/devices/{id}:
    patch:
      summary: Rename a paired machine.
      tags:
        - Connections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateDeviceRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateDeviceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDevice
    delete:
      summary: Unpair a machine. Its access ends at once and any waiting print job is cancelled.
      tags:
        - Connections
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteDeviceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteDevice
  /v1/search:
    get:
      summary: "Search everything in your business at once: inventory, listings, orders, sales, customers, conversations, offers, shipments and returns. Exact identifiers (SKU, barcode, order number, tracking number, buyer email, marketplace listing id or a pasted listing URL) rank first, then prefixes, then fuzzy title / brand / buyer matches. Operators: sku:, order:, buyer:, tracking:, in:<type>, status:, platform:. Groups your token has no read scope for are left out."
      tags:
        - Search
      parameters:
        - schema:
            type: string
            maxLength: 300
          in: query
          name: q
          required: false
          description: What to search for (operators allowed).
        - schema:
            type: string
          in: query
          name: types
          required: false
          description: "Comma-separated groups to search: inventory, listings, orders, sales, customers, conversations, offers, shipments, returns."
        - schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 5
          in: query
          name: limit
          required: false
          description: Hits per group.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSearchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSearch
  /v1/trade-block/posts:
    get:
      summary: Browse open Trade Block posts (wants + offers) on the Crossly Market.
      tags:
        - Trade Block
      parameters:
        - schema:
            type: string
            enum:
              - want
              - offer
          in: query
          name: kind
          required: false
          description: Filter to wants or offers.
        - schema:
            type: string
          in: query
          name: categorySlug
          required: false
          description: Filter to a market category.
        - schema:
            type: string
          in: query
          name: brand
          required: false
          description: Filter to posts with a product of this brand (case-insensitive).
        - schema:
            type: string
          in: query
          name: model
          required: false
          description: Filter to posts with a product of this catalogue model (case-insensitive).
        - schema:
            type: string
          in: query
          name: q
          required: false
          description: Search title + want text.
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 40
          in: query
          name: limit
          required: false
        - schema:
            type: integer
            minimum: 0
            default: 0
          in: query
          name: offset
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTradeBlockPostResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTradeBlockPost
  /v1/trade-block/posts/{id}:
    get:
      summary: Get one Trade Block post with its items and open-offer count.
      tags:
        - Trade Block
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTradeBlockPostByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTradeBlockPostById
  /v1/trade-block/trades:
    get:
      summary: List the trades you are a party to, newest first.
      tags:
        - Trade Block
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTradeBlockTradeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTradeBlockTrade
  /v1/trade-block/evolutions:
    get:
      summary: List your Trade Evolution unlocks — completed swaps that unlocked an evolved or set-master NFT you can mint by burning COSM.
      tags:
        - Trade Block
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTradeBlockEvolutionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTradeBlockEvolution
  /v1/production/ballot:
    get:
      summary: "The ballot: designs waiting for a physical run, most backed first, and whether you may vote."
      tags:
        - Production
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductionBallotResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductionBallot
  /v1/shop/listings/{slug}/provenance:
    get:
      summary: "Crossly provenance behind a shop listing: owners on Crossly and since when (never who or for how much). Null when not bought here."
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetShopListingProvenanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShopListingProvenance
  /v1/production/runs:
    get:
      summary: Browse open limited-edition physical runs (graduated designs).
      tags:
        - Production
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductionRunResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductionRun
  /v1/production/candidates:
    get:
      summary: Your designs that have graduated toward a physical run.
      tags:
        - Production
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductionCandidateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductionCandidate
  /v1/production/lines:
    get:
      summary: Your production lines dashboard (candidate + run + inventory).
      tags:
        - Production
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductionLineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductionLine
  /v1/production/drops:
    get:
      summary: Limited-edition units you own, with fulfillment status.
      tags:
        - Production
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductionDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductionDrop
  /v1/production/earnings:
    get:
      summary: Your CBX earnings from physical production (royalties + balance + lines).
      tags:
        - Production
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductionEarningResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductionEarning
  /v1/production/designs/{cosmeticId}/prefs:
    get:
      summary: Read a design's production preferences (spec, brief, opt-out).
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: cosmeticId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductionDesignPrefResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductionDesignPref
  /v1/production/pos:
    get:
      summary: "Ops: list purchase orders (optionally for one candidate). Admin PAT only."
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: query
          name: candidateId
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductionPoResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductionPo
  /v1/production/pos/{poId}/reconcile:
    get:
      summary: "Ops: reconcile a PO's actuals against the estimate. Admin PAT only."
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: poId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductionPoReconcileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductionPoReconcile
  /v1/grading/price-book:
    get:
      summary: "The grading price book: every grader, its services (per-card price, minimum cards, max declared value, turnaround) and add-ons, plus Crossly handling. The same data the dashboard prices from."
      tags:
        - Grading
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGradingPriceBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getGradingPriceBook
  /v1/grading/runs:
    get:
      summary: Grading Runs taking reservations now, soonest cutoff first. meta.open is false while runs are switched off.
      tags:
        - Grading
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListGradingRunsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listGradingRuns
  /v1/grading/rate-card:
    get:
      summary: Every grader and tier Crossly can send to, with the per-card price in cents (null = paused at the grader).
      tags:
        - Grading
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListGradingRateCardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listGradingRateCard
  /v1/grading/submissions:
    get:
      summary: Your cards out for grading (runs and Direct), newest first. active=1 keeps only the ones still in flight.
      tags:
        - Grading
      parameters:
        - schema:
            type: string
            enum:
              - "0"
              - "1"
              - "true"
              - "false"
          in: query
          name: active
          required: false
          description: Only cards that have not finished.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListGradingSubmissionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listGradingSubmissions
  /v1/grading/worth/{inventoryItemId}:
    get:
      summary: Worth grading? Raw value vs what each grade is worth at each grader, against the cost. Never predicts the grade.
      tags:
        - Grading
      parameters:
        - schema:
            type: string
          in: path
          name: inventoryItemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGradingWorthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getGradingWorth
  /v1/grading/settings:
    get:
      summary: "Your grading defaults: defaultGrader (null = ask each time), defaultMissMode (roll_over | release, if a run does not fill), defaultReturnMode (always vault: every graded card goes into your vault) and defaultPrescreen."
      tags:
        - Grading
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGradingSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getGradingSetting
    put:
      summary: Change your grading defaults (any of defaultGrader, defaultMissMode, defaultPrescreen; defaultReturnMode is always vault, and an old "return" is saved as vault). Logged to Activity. Returns the saved defaults.
      tags:
        - Grading
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGradingSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateGradingSetting
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateGradingSettingRequest"
  /v1/streets/{slug}/stalls:
    get:
      summary: Today's pop-up stalls on a street (each with its live listings, awning, sign and seller), plus the spots still free today. meta carries the street, the phase (day / night_market / swap_meet) and the free spots.
      tags:
        - Stalls
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStreetStallsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStreetStalls
  /v1/streets/{slug}/events:
    get:
      summary: Current and upcoming street events (Night Market, Swap Meet) on a street, soonest first.
      tags:
        - Stalls
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStreetEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStreetEvents
  /v1/stalls/quote:
    get:
      summary: "Quote a stall: street, spot, and either unit=day with start (YYYY-MM-DD) and days, or unit=event with events (comma-separated event ids). Returns the line items in cents, the rails the spot accepts and whether it is bookable."
      tags:
        - Stalls
      parameters:
        - schema:
            type: string
          in: query
          name: street
          required: true
        - schema:
            type: integer
          in: query
          name: spot
          required: true
        - schema:
            type: string
            enum:
              - day
              - event
          in: query
          name: unit
          required: false
        - schema:
            type: string
          in: query
          name: start
          required: false
          description: YYYY-MM-DD (unit=day).
        - schema:
            type: integer
          in: query
          name: days
          required: false
          description: How many days (unit=day).
        - schema:
            type: string
          in: query
          name: events
          required: false
          description: Comma-separated street event ids (unit=event).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStallQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStallQuote
  /v1/stalls/mine:
    get:
      summary: Your stall bookings, newest first, with visits, offers and sales while the stall was up.
      tags:
        - Stalls
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStallMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStallMine
  /v1/neighbourhoods:
    get:
      summary: 'Every neighbourhood street (Sneaker Row, Card District, Vintage Alley, Vinyl Lane): open or "opening soon" (6 shops + open stalls, or a live street event), shops, stalls today, the next street event and its /c/<slug> URL.'
      tags:
        - Neighbourhoods
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListNeighbourhoodsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listNeighbourhoods
  /v1/neighbourhoods/{slug}:
    get:
      summary: One neighbourhood street by slug.
      tags:
        - Neighbourhoods
      parameters:
        - schema:
            type: string
            enum:
              - sneaker-row
              - card-district
              - vintage-alley
              - vinyl-lane
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetNeighbourhoodResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getNeighbourhood
  /v1/drops/{id}:
    get:
      summary: "A drop: its listings, units, times, eligibility, the sha256 seed commitment and the entry count. After release also the revealed seed, the sorted entry ids and the draw order (recompute it with drawWinners(seed, dropId, entryIds, units))."
      tags:
        - Drops
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDrop
    patch:
      summary: Change a drop before its line opens (any of the set-up fields).
      tags:
        - Drops
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDrop
    delete:
      summary: Call a drop off before its line opens.
      tags:
        - Drops
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteDrop
  /v1/streets/{slug}/drops:
    get:
      summary: Upcoming, open and just-released drops on a Crossly World street, one per shop, soonest first, with the plot (or live stall spot) each line forms at.
      tags:
        - Drops
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStreetDropsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStreetDrops
  /v1/drops/mine:
    get:
      summary: Your drops, latest release first, with entries, winners, claims, the waitlist and expired holds.
      tags:
        - Drops
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDropMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDropMine
  /v1/spatial/emotes:
    get:
      summary: "Your Crossly World emotes: every emote pack (unlocked or not, with the quest that unlocks it), your 8-slot emote wheel as stored and as it shows (labels, locks, ready dots), and the moments earned and not yet played."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialEmoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialEmote
  /v1/spatial/moments:
    get:
      summary: "Your moment emotes, newest first: unbox (a Crossly purchase delivered), slab_flip (a card graded through Crossly Grading), handshake (a trade-table shake settled). Each plays once in a room; playedAt is null until then. ready=true lists only the unplayed ones."
      tags:
        - Inventory
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 200
          in: query
          name: limit
          required: false
        - schema:
            type: string
            enum:
              - "true"
              - "false"
          in: query
          name: ready
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialMomentsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialMoments
  /v1/homes/mine:
    get:
      summary: "Your Crossly World home: its address, privacy (open / friends / locked), theme, the room, the layout (each piece with what it shows -- things you no longer own are left out at read time) and the guestbook. Made on first read."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetHomeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getHomeMine
  /v1/homes/mine/builders:
    get:
      summary: "Your co-builders: friends you let rearrange your home in the world (move, turn, take out your things, add free furniture; never your bought pieces). Each: userId, name, friends (false once the friendship ended: listed but powerless)."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListHomeMineBuildersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listHomeMineBuilders
  /v1/homes/of-the-week:
    get:
      summary: "Home of the week: open homes by how many different people signed their guestbook in the last 7 days, most first."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListHomeOfTheWeekResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listHomeOfTheWeek
  /v1/homes/{slug}:
    get:
      summary: "A home by its address, as you may see it: open homes to anybody, friends-only homes to mutual follows, locked homes to their owner. 404 when you may not enter."
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetHomeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getHome
  /v1/spatial/party:
    get:
      summary: "Your Crossly World party: party is null when you are in none, else its id, leader and up to 8 members (each with the place and copy they are in right now, or null), plus the invites it has out. invites lists the invites waiting for you."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialPartyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialParty
  /v1/spatial/party/wishlist:
    get:
      summary: "Your party's shared wishlist, newest first: each listing (title, price in cents, image, shop slug while it is live), who added it, and every member's thumb up or down with the totals. Empty when you are in no party."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyWishlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialPartyWishlist
  /v1/games/results/mine:
    get:
      summary: "Your market-game results, newest first: game (price_guess, price_guess_solo, hunt, speed_trade, break_host), the round/hunt/trade/break id, score, whether you won, Bucks prize in cents (0 while prizes are pins only) and detail. meta.unlocks lists the hunt coupons you earned (with their codes); meta.hits the break hits pulled for spots you bought, with the order each ships with."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListGameResultMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listGameResultMine
  /v1/games/hunts:
    get:
      summary: 'Scavenger hunts running now in Crossly World shops and pop-up stalls, ending soonest first: title, shop (name and slug -- for a hunt at a stall, the street slug, with stall.bookingId set), how many tokens, what finishing unlocks ("10% off" -- never the code), when it ends and how many people have finished. Optional place filters to one shop or street slug.'
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
          in: query
          name: place
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListGameHuntsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listGameHunts
  /v1/games/hunts/mine:
    get:
      summary: "Your scavenger hunts (spec WD6: made from Branding events, built in Crossly World), newest first: title, place slug, the event it belongs to (eventId), your discount code if it rewards one, whether it is a draft (not yet built and published), live or ended, its coins, and how many people finished."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListGameHuntMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listGameHuntMine
  /v1/games/hunts/{id}/build:
    get:
      summary: "One of your scavenger hunts as the in-world builder sees it: place, rules (days, time limit, hints, winners, ordered), rewards, the build document (coins and clue signs with positions), what still blocks publishing, and buildLink -- the Worlds app link that opens the builder. Read-only: coins are placed in the World."
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGameHuntBuildResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getGameHuntBuild
  /v1/games/events/{eventId}/summary:
    get:
      summary: "The results of one of your metaverse events (a Branding event of type scavenger_hunt or pack_break): for a hunt -- status, place, coins and clues, players, finishers, winners (place, masked name, when) and the rewards paid or failed per kind; for a pack break -- status, whether it is live on the stage, spots, spots sold and hits revealed. 404 for an event that is not a World event of yours."
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: eventId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGameEventSummaryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getGameEventSummary
  /v1/games/breaks/upcoming:
    get:
      summary: "Pack breaks staged on shop stages in Crossly World, live first then soonest: the break, its shop, start time, spots (taken or not, buyer masked), hits revealed so far, and buyUrl -- the break's page on crossly.net, the only place a spot is bought (null once every spot has sold)."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListGameBreakUpcomingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listGameBreakUpcoming
  /v1/games/leaderboards:
    get:
      summary: 'Game leaderboards: for each of Price Guess (wins, then points), scavenger hunts (finished) and speed trades (won), the top ten this week (Monday 00:00 UTC on) under week and of all time under all -- rank, name, named, value and, for Price Guess, score. A name appears only for somebody who chose to be seen by name in Crossly World; everyone else is "A player" in their place.'
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGameLeaderboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getGameLeaderboard
  /v1/reputation/mine:
    get:
      summary: "Your Crossly World reputation: four tracks (trader, collector, seller, host) with points, level, what each level has unlocked and the next unlock, and how the points were earned (recency-weighted; a lost dispute or a failed authentication costs points). Earned from real activity only; nothing buys a level."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetReputationMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getReputationMine
  /v1/reputation/{profile}:
    get:
      summary: "Somebody's public reputation levels by their storefront handle: the level on each track and their nameplate badge. 404 for an unknown handle."
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
          in: path
          name: profile
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetReputationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getReputation
  /v1/jobs/shifts:
    get:
      summary: "Open shifts on the Crossly World Jobs board, soonest first: shop staff shifts in boutiques and grading-desk helper shifts, each with its window, place and pay. meta.payOn says whether Crossly is paying jobs yet."
      tags:
        - Inventory
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListJobShiftsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listJobShifts
  /v1/jobs/appraisals:
    get:
      summary: Open price checks appraisers can answer (Collector level 3+ holding 3+ pieces in the category), newest first, optionally one market category. Each has its bounty; meta.payOn says whether bounties are paid yet.
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
          in: query
          name: category
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListJobAppraisalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listJobAppraisals
  /v1/pets/mine:
    get:
      summary: "Your Crossly World pets: every kind (cat, dog, slab bot) with whether you own it, when it was earned and the ways to earn it (a quest or a reputation level -- pets are never sold), plus the pet walking beside you and the one greeting visitors at your shop door."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPetMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPetMine
  /v1/main-stage:
    get:
      summary: "The Crossly World Main Stage right now: the live show (title, kind, host lineup), the stream on its big screen while a lineup host is on air, how many people are there (it holds 64 per copy and opens copies as it fills) and what is on next."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetMainStageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getMainStage
  /v1/main-stage/events:
    get:
      summary: "Live and upcoming Main Stage events, soonest first: brand launches, creator meetups, talks, live sales and festival shows, each with its window and host lineup."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMainStageEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listMainStageEvents
  /v1/world/pulse:
    get:
      summary: "Crossly World's pulse, aggregated with no people in it: the public world shops that made a sale today (slugs only -- never counts, amounts or buyers), the times the world's shops passed each sales milestone today (each fires a fireworks show), and what Crossly Cares took in this month against the Commons fountain's mark."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPulseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPulse
  /v1/festivals:
    get:
      summary: "Live and upcoming Crossly World festivals, soonest first: a weekend when every street wears one decor and the festival quest line (limited pins) counts. meta.live is the festival on now, if any."
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListFestivalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listFestivals
  /v1/world/items/search:
    get:
      summary: "Find an item on a shelf anywhere in Crossly World: what public rooms have for sale now, by title or catalogue name (q, 2+ characters). Each hit names the room (roomSlug) and the item (itemId); /c/<roomSlug>?item=<itemId> opens it there."
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
          in: query
          name: q
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldItemSearchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldItemSearch
  /v1/world/shelf/{listingSlug}:
    get:
      summary: Where a Crossly listing sits on a shelf in a public room right now (roomSlug, roomName, itemId), or data:null when it is in no room.
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
          in: path
          name: listingSlug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldShelfResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldShelf
  /v1/world/skus/{skuId}/cheapest:
    get:
      summary: The cheapest copy of a catalogue piece for sale on Crossly now, matched by the catalogue id (listingSlug, priceCents, and the room and item when it stands on a shelf), or data:null.
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: skuId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldSkusCheapestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldSkusCheapest
  /v1/world/rooms/{sceneId}/funnel:
    get:
      summary: "Your room's funnel over the last `days` (1-35, default 30): visitors (people, once a day), looks, items opened, checkouts started from the room, paid sales and revenueCents. Sales count only lines the room itself put in a cart."
      tags:
        - Inventory
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 35
          in: query
          name: days
          required: false
        - schema:
            type: string
            format: uuid
          in: path
          name: sceneId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldRoomFunnelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldRoomFunnel
  /v1/world/rooms/{sceneId}/wants:
    get:
      summary: "Items your room shows but does not sell that visitors said they would buy (\"I'd buy this\"), most wanted first: itemId and how many people."
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: sceneId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldRoomWantsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldRoomWants
  /v1/world/blocks:
    get:
      summary: The people you blocked in Crossly World, as you saw them (label, never the account behind a pseudonym), oldest first. Blocks are made in a room, on the person.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldBlocksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldBlocks
  /v1/world/wallet:
    get:
      summary: "Every balance you hold in Crossly World, read-only: bucksCents (Crossly Bucks, cents); cbx (available, decimals, and the three CBX balances kept apart as base-unit STRINGS -- granted (spend here only), earned (withdrawable once matured), connected (a delegation ceiling on your own wallet, not cash on hand) -- plus pendingCents of cashback not yet matured); cosm (available, decimals, baseUnits string). available:false means that currency is not provisioned on this deployment, not that you hold none."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldWalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldWallet
  /v1/world/quests:
    get:
      summary: "Every world quest with your progress: key, the pin it earns, goal, target, count, done, colour. meta.wearing is the pin on your nameplate (or null); meta.streak your current and best daily visit streak. Progress only comes from what the server saw -- there is no write of it."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldQuestsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldQuests
  /v1/world/crew:
    get:
      summary: "Your crew: data.crew is null when you are in none, else its name, tag, join code and whether you own it; data.members lists up to 30 members, each with the public room they are in right now when they chose to be seen by name (else null)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldCrewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldCrew
  /v1/world/crew/leaderboards:
    get:
      summary: The game leaderboards (Price Guess, hunts, speed trades; this week and all time) ranked among your crew only, each member by the name the crew sees. 404 when you are in no crew.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGameLeaderboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldCrewLeaderboard
  /v1/world/crew/chat:
    get:
      summary: "Your crew chat: data.messages is the last 50 lines (from, name, text, at), kept in memory only, so it starts empty after a restart. 404 when you are in no crew."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldCrewChat
    post:
      summary: "Say a line to your crew (body: text, up to 400 characters). Returns data.messages, the crew chat ring (the last 50 lines, kept in memory only), and data.said when your line went out; a blocked or too-quick line is dropped silently. 404 when you are in no crew."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldCrewChatRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldCrewChat
  /v1/world/avatar/loadout:
    get:
      summary: "What you are wearing: the rig, its slots (avatar_head, avatar_body, avatar_outer -- a jacket over the top, avatar_legs, avatar_feet, avatar_back) and each worn entry -- a cosmetic or a real item -- with its verified-purchase mark. Carries no price, receipt id, seller or order."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAvatarLoadoutResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldAvatarLoadout
  /v1/world/avatar/loadout/{userId}:
    get:
      summary: What somebody else is wearing, with the verified-purchase mark on each real item -- public on purpose, since a check only its owner can see is not a check. No price, receipt id, seller or order.
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAvatarLoadoutResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldAvatarLoadoutByUserId
  /v1/world/avatar/closet:
    get:
      summary: "Everything you can verifiably wear (your Crossly purchase receipts), newest first: receiptId, item title, brand, size, image, catalog sku/variant, quantity, purchasedAt. Pass a receiptId to POST /v1/world/avatar/equip to put one on. limit 1-200, offset for paging."
      tags:
        - World
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 200
          in: query
          name: limit
          required: false
        - schema:
            type: integer
            minimum: 0
          in: query
          name: offset
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldAvatarClosetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldAvatarCloset
  /v1/world/avatar/stock:
    get:
      summary: "Items of your OWN inventory you could wear into a room as a walking storefront: inventoryItemId, title, image and the slot it would go on. Pass an inventoryItemId to POST /v1/world/avatar/equip."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldAvatarStockResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldAvatarStock
  /v1/world/avatar/wearables:
    get:
      summary: "Wearables you have authored as a designer: id, sku, name, slot, priceBaseUnits (COSM base units, a string), maxSupply, mintedCount, active (false until reviewed). meta.available is false when COSM is not provisioned here."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldAvatarWearablesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldAvatarWearables
    post:
      summary: "Author a wearable for a body slot (a mesh profile and params, an asking price in COSM base units as a string). A submission: inactive until an operator approves it."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldAvatarWearableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldAvatarWearable
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldAvatarWearableRequest"
  /v1/world/cosm/balance:
    get:
      summary: "Your COSM balance: baseUnits (a STRING -- COSM has 6 decimals and overflows a JSON number), decimals, available (false = COSM is not provisioned on this deployment, not a zero balance)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldCosmBalanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldCosmBalance
  /v1/world/cosm/cosmetics:
    get:
      summary: "The active cosmetics catalogue, optionally by tier (premium | earned | stake_exclusive) or slot: sku, name, slot, tier, priceCents (premium only), priceBaseUnits (earned only, COSM base units string), supply, fusable, preview and what it unlocks. Read-only: cosmetics are bought on crossly.net. meta.available / meta.decimals."
      tags:
        - World
      parameters:
        - schema:
            type: string
            enum:
              - premium
              - earned
              - stake_exclusive
          in: query
          name: tier
          required: false
        - schema:
            type: string
            maxLength: 64
          in: query
          name: slot
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmCosmeticsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldCosmCosmetics
  /v1/world/cosm/inventory:
    get:
      summary: "Cosmetics you hold, newest first: ownershipId, cosmeticId, sku, name, slot, tier, how it was acquired, bound, edition number, acquiredAt and what it unlocks. Pass a cosmeticId to POST /v1/world/avatar/equip to wear one. meta.available."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldCosmInventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldCosmInventory
  /v1/world/trade-tables/listings:
    get:
      summary: Your open Trade Block trade listings a trade table can be opened on in the world, each with its items' names.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldTradeTableListingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldTradeTableListings
  /v1/world/trade-tables/binder:
    get:
      summary: "Your binder: unsold collection rows that are catalog items and may be laid on a trade mat -- key, variantId, condition, grade, portfolioId, name, image and valueCents (market value, cents)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldTradeTableBinderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldTradeTableBinder
  /v1/world/friends:
    get:
      summary: Your friends (mutual follows), each with the PUBLIC room they are in right now when they chose to be seen by name there (else null), and their home address slug when they let friends visit. Invisible and anonymous friends are never located.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldFriendsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldFriends
  /v1/world/fit-value:
    get:
      summary: "What your outfit is worth on the market: cents (sum of each catalogued piece's order-book price -- last sale, else lowest ask), pieces worn, how many were priced, and share (whether you show it on your card)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldFitValueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldFitValue
  /v1/world/fits/stats:
    get:
      summary: 'Your walking storefront, last 7 days: distinct people who tapped "Shop this" or "Offer" on what you wore, and how many of each. Counts only; nobody is identified.'
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldFitStatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldFitStat
  /v1/world/best-dressed:
    get:
      summary: "This week's best-dressed board (Monday-based), top ten: name, profile username and loves. Only people still choosing to be seen by name."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldBestDressedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldBestDressed
  /v1/world/streaks:
    get:
      summary: "The longest current daily visit streaks (2+ days), top ten: name and days. Only people still choosing to be seen by name."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldStreaksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldStreaks
  /v1/world/outfits:
    get:
      summary: "Your saved outfits (up to 6, oldest first): id, name, appearance (skin, hair, hairColour, eyes, build) and items -- each worn thing as the door it goes back on by (slot, door: cosmetic | receipt | stock, id, label). Put one on with POST /v1/world/outfits/:id/apply."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldOutfitsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldOutfits
    post:
      summary: "Save what you are wearing now as a named look: { name (1-32 chars), appearance? (skin, hair, hairColour, eyes, build -- unknown keys fall back to the default) }. Each worn thing is recorded as the door it goes back on by; one that no longer traces to something you own is listed in skipped and not saved. 409 when you already keep 6."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldOutfitRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldOutfitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldOutfit
  /v1/world/hunt:
    get:
      summary: "Your Great Hunt: data.season (id, name, startsAt, endsAt, the title and how many earn it, live), started (you read the first clue), held (keys held, 0-3, always in the order copper, jade, crystal), keys (each with its name, colour, its riddle once it is yours to read, and when you picked it up), and cleared (your rank through the Gate this season, when, and whether you earned the title) or null. Keys are picked up by walking to them in Crossly World; nothing here takes one."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldHuntResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldHunt
  /v1/world/hunt/scoreboard:
    get:
      summary: 'The Great Hunt Scoreboard, as the monolith in the Commons shows it: data.season (the running season, or the last one between seasons), finishers (the first ten through the Gate in order: rank, name, short, named, at, titled -- a name shows only for somebody who chose to be seen by name in the world, everyone else is "A player") and total (everybody through the Gate this season).'
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldHuntScoreboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldHuntScoreboard
  /v1/world/wishes:
    get:
      summary: "The Wishing Fountain in the Commons: data.day (today, UTC), today (wishes everyone has made today) and mine (madeToday, days -- how many days you have wished on, the Wishmaker pin comes at 7 -- and nextAt, when tomorrow's wish opens). One wish a day; a wish is made by tossing a coin at the fountain in Crossly World, never over the API, and nothing is spent."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldWishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldWish
  /v1/world/fireflies:
    get:
      summary: "Fireflies on the Commons lawn: data.day (today, UTC), today (fireflies everyone has caught today) and mine (today -- your catches today, up to perDay -- total, all your catches; the Firefly Catcher pin comes at 30 -- and perDay). Fireflies are caught by walking up to a lit one in Crossly World after dark, never over the API, and nothing is spent."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldFireflyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldFirefly
  /v1/world/lanterns:
    get:
      summary: "Sky lanterns in the Commons: data.day (today, UTC), today (lanterns everyone has released today) and mine (today -- yours today, up to perDay -- perDay, and days -- the days you have released one on; the Lantern lighter pin comes at 5). Lanterns are released at the lantern stand in Crossly World, never over the API, and nothing is spent."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldKiteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldLantern
  /v1/world/kites:
    get:
      summary: "Kites flown on the Commons lawn: data.day (today, UTC), today (kites everyone has flown today) and mine (today -- yours today, up to perDay -- perDay, and days -- the days you have flown one on; the Kite flyer pin comes at 5). Kites are flown by standing out on the lawn in Crossly World by day, never over the API, and nothing is spent."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldKiteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldKite
  /v1/world/hall:
    get:
      summary: "The Hall of Grails in Crossly World: data.exhibition (key, title, blurb, endsAt -- a new one every Monday UTC -- and next, the coming one's title) and data.exhibits, up to twelve real catalogue items in slot order (skuId, name, brand, imageUrl, thumbUrl, retailCents, lowestAskCents, lastSaleCents: the live order book, null when the market has none). The first stands on the centre plinth. Buy, bid or watch an exhibit through the market endpoints with its skuId."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldHallResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldHall
  /v1/world/aurora:
    get:
      summary: "The Sales Aurora over the Commons in Crossly World: every real sale on Crossly in the last data.windowDays (30) days. data.total (sales in the window), data.families (key, label, colour, count per colour family: cards, coins, jewellery, electronics, media, fashion, toys, other) and data.sales (newest first, at most 48: family, ageHours, fresh -- sold in the last ten minutes, which shimmers). Aggregate only: no item, price, seller or platform. data.updatedAt is when it was read."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAuroraResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldAurora
  /v1/world/grails/match:
    post:
      summary: "Grail glints: send the ids on show somewhere (listingIds -- listings.id, inventoryIds, skuIds -- catalogue market SKUs; up to 400 each) and get back data.listingIds / data.inventoryIds / data.skuIds: the ones that are things you already want -- an open bid, a watched or wishlisted listing (or one selling the same SKU), a market watch, or a card your deck is missing. Read-only."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGrailMatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGrailMatch
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldGrailMatchRequest"
  /v1/world/provenance:
    get:
      summary: 'Provenance trails: where in Crossly World your purchases were found, newest first (optionally ?listingIds=a,b -- platform listing ids). data: [{ platformListingId, slug (the listing public slug), kind (room | window | stall | space | drop | auction | worn | agent), place (its name, or null when gone), at, line -- e.g. "Found at The Sneaker Vault, Oct 2026" }]. Yours only.'
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldProvenanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldProvenance
      parameters:
        - name: listingIds
          in: query
          required: false
          schema:
            type: string
  /v1/world/chests:
    get:
      summary: "The Commons chest: data.window (this 20-minute window, UTC), spot ([x, z] on the plaza), endsAt (when the next chest comes) and mine (openedThis, and opened -- how many windows you have opened one in; the Chest opener pin comes at 10). A chest is opened by walking up to it in Crossly World, never over the API."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldChestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldChest
  /v1/world/trials/mine:
    get:
      summary: "Your Hoverboard Time Trials bests: data.week (its Monday, YYYY-MM-DD, UTC) and courses, each with course (id, name, parMs, rings, lengthM), week (your best lap this week in ms, your place on the weekly board, laps finished, and the split at each ring) or null, and allTime (your best ever in ms, your place on the all-time board, when) or null. Laps are timed by Crossly from where it saw you ride in the world; nothing here writes one."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldTrialMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldTrialMine
  /v1/world/trials/{course}/leaderboard:
    get:
      summary: "A Time Trials course's boards, as the board beside it in the Commons shows them: data.course, week, weekly (this week's ten fastest: rank, name, short, named, ms, at) and allTime (the ten fastest ever, each person once). A name shows only for somebody who chose to be seen by name in the world; everyone else is \"A player\". 404 for an unknown course; course 1 is commons-loop."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: course
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldTrialLeaderboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldTrialLeaderboard
  /v1/world/arcade:
    get:
      summary: 'The Arcade in Crossly World: data.cabinets (slot, where it stands, host -- piece, price_guess or empty --, game, title, blurb, the piece it hosts and where, record, packageId and thumbnail for a creator game from the Game Directory, players) and data.scores (the High Score wall: per game a title, kind -- leaderboard, record or top -- and up to five ASCII lines; a name shows only for somebody who chose to be seen by name, everyone else is "A player"), plus creatorGames (creator games with a cabinet now). Games are played in the world.'
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldArcadeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldArcade
  /v1/world/decor/catalogue:
    get:
      summary: "The Decor Shop: every active cosmetic grouped by surface (avatar | home | shop | stall | street) and slot -- name, tier, priceCents (premium: the dollar price, paid in CBX at spot) or priceBaseUnits (earned: COSM, base-unit string), edition supply and remaining, tint swatch, preview, what it unlocks, owned + your edition number, and buyWith. Read-only: buying and minting happen on crossly.net/shop/decor. meta.available, meta.mint {open, reason}, meta.cbx {open, reason} (CBX opens at mint), meta.balances (your COSM and CBX, base-unit strings), meta.surfaces. Never sold by card."
      tags:
        - World
      parameters:
        - schema:
            type: string
            enum:
              - avatar
              - home
              - shop
              - stall
              - street
          in: query
          name: surface
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldDecorCatalogueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldDecorCatalogue
  /v1/world/decor/mine:
    get:
      summary: "Decor you hold AND decor you have minted to your wallet, newest first: ownershipId, cosmeticId, sku, name, surface, slot, tier, acquiredVia, bound, editionNumber of maxSupply, mintState (held | minting | minted), mintAddress, mintable, and what it unlocks. meta.available, meta.mint."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldDecorMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldDecorMine
  /v1/world/decor/inventory:
    get:
      summary: "Your decor as an INVENTORY. Decor is a quantity: every copy is one unit -- a placed prop (home_prop, prop) uses one per placement, a finish (wallpaper, floor, theme, shopfront, facade, sign style, street lamp/banner/paving/arch, booth canopy/pattern/lights/counter) one per space it dresses; free values are unlimited. Per item: key, value, pair (key:value), name, sku, surface, placeable, tint, owned, placed, available, placements [{ space { kind: home | shop | stall | street, id, name }, count }], copies [{ ownershipId, editionNumber }]. meta.available, meta.spaces (every space you dress). Read-only: placing and retracting happen in the app or on crossly.net."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldDecorInventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldDecorInventory
  /v1/world/interactive/catalogue:
    get:
      summary: "Interactive objects: every piece that runs a shared script in a room (first-party and approved creator designs). Per item: model (the piece key a home layout or boutique prop stores), decorValue (the home_prop value its SKU claims), source (first_party | creator), name, blurb, size [x, z] metres, fallbackMesh, cosmeticId (the SKU on the Decor Shop, null when not on sale) and version (a creator design: the approved version every copy runs). Read-only: buying is on crossly.net/shop/decor."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldInteractiveCatalogueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldInteractiveCatalogue
  /v1/world/interactive/designs:
    get:
      summary: "Your interactive-object designs (MML documents you wrote), newest first: id, handle, name, footprint (s | m | l | f), tint, priceBaseUnits (COSM, base-unit string), maxSupply, model, decorValue, cosmeticId, liveVersion (the approved version every copy runs; null = none), withdrawnReason, archivedAt (you archived it: off sale, owned copies keep running; null = not archived), latestVersion { version, state: pending | approved | rejected | withdrawn | cancelled, decisionNote }, inReview. `archived`: exclude (default), include or only archived designs. Read-only: writing, previewing, submitting and archiving happen in the Creator Studio on crossly.net (/studio/creator/creations/interactive/new/edit)."
      tags:
        - World
      parameters:
        - schema:
            type: string
            enum:
              - exclude
              - include
              - only
          in: query
          name: archived
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldInteractiveDesignsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldInteractiveDesigns
    post:
      summary: "Create an interactive design: name, footprint (s, m, l or f), optional tint and description, an asking price in COSM base units (a string, six decimals) and optional max supply. Inactive until ops approve a submitted version."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldInteractiveDesignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldInteractiveDesign
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldInteractiveDesignRequest"
  /v1/nft-market/listings:
    get:
      summary: Browse open on-platform NFT listings (Crossly cosmetics for resale in CBX/SOL).
      tags:
        - NFT Market
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetNftMarketListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getNftMarketListing
    post:
      summary: List an NFT you own for resale on the Crossly marketplace.
      tags:
        - NFT Market
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateNftMarketListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createNftMarketListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateNftMarketListingRequest"
  /v1/web3/wallets:
    get:
      summary: List your verified, linked wallets (EVM and Solana).
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3WalletsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Wallets
  /v1/web3/nfts:
    get:
      summary: List the NFTs in your inventory, imported from your linked wallets.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
          in: query
          name: chain
          required: false
        - schema:
            type: string
          in: query
          name: walletId
          required: false
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 200
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3NftsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Nfts
  /v1/web3/listings:
    get:
      summary: Open NFT listings in the Crossly book — the cheapest per token.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3ListingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Listings
      parameters:
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: contract
          in: query
          required: false
          schema:
            type: string
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - price_asc
              - price_desc
              - recent
        - name: page
          in: query
          required: false
          schema:
            type: number
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/web3/collections:
    get:
      summary: Collections ranked by 30-day Crossly volume, with floor and listed count.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3CollectionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Collections
      parameters:
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/web3/browse:
    get:
      summary: The Web3 directory's categories and chains, with how many collections each holds.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3BrowseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Browse
      parameters:
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: category
          in: query
          required: false
          schema:
            type: string
            enum:
              - pfps
              - art
              - gaming
              - memberships
              - music
              - photography
              - sports-collectibles
              - physical-collectibles
              - virtual-worlds
              - domains
  /v1/web3/featured:
    get:
      summary: "The NFT home's featured collections: chosen by Crossly, else the hottest."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3FeaturedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Featured
  /v1/web3/browse/collections:
    get:
      summary: Browse NFT collections by chain, category and name; sort hot (Crossly sales, listings, favourites), new, volume, floor or name.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3BrowseCollectionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3BrowseCollections
      parameters:
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: category
          in: query
          required: false
          schema:
            type: string
            enum:
              - pfps
              - art
              - gaming
              - memberships
              - music
              - photography
              - sports-collectibles
              - physical-collectibles
              - virtual-worlds
              - domains
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - new
              - hot
              - floor
              - volume
        - name: listed
          in: query
          required: false
          schema:
            type: boolean
        - name: verified
          in: query
          required: false
          schema:
            type: boolean
        - name: floorMin
          in: query
          required: false
          description: Floor range in the chosen chain's native coin, e.g. 0.5 (ETH); ignored without a chain.
          schema:
            type: string
        - name: floorMax
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: offset
          in: query
          required: false
          schema:
            type: number
  /v1/web3/browse/tokens:
    get:
      summary: "Hot NFTs: what is for sale on Crossly first, then tokens from the hottest collections."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3BrowseTokensResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3BrowseTokens
      parameters:
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: category
          in: query
          required: false
          schema:
            type: string
            enum:
              - pfps
              - art
              - gaming
              - memberships
              - music
              - photography
              - sports-collectibles
              - physical-collectibles
              - virtual-worlds
              - domains
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/web3/sales:
    get:
      summary: The latest NFT sales across the directory, from the chain (Seaport and Blur) and the Crossly book, newest first; page with `before`.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3SalesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Sales
      parameters:
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: category
          in: query
          required: false
          schema:
            type: string
            enum:
              - pfps
              - art
              - gaming
              - memberships
              - music
              - photography
              - sports-collectibles
              - physical-collectibles
              - virtual-worlds
              - domains
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: before
          in: query
          required: false
          schema:
            type: string
  /v1/web3/rankings:
    get:
      summary: "Collections by sales volume over 24h, 7d or 30d, in one coin: the ETH chains together, or Polygon / Solana on their own."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3RankingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Rankings
      parameters:
        - name: window
          in: query
          required: false
          schema:
            type: string
            enum:
              - 7d
              - 30d
              - 24h
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: category
          in: query
          required: false
          schema:
            type: string
            enum:
              - pfps
              - art
              - gaming
              - memberships
              - music
              - photography
              - sports-collectibles
              - physical-collectibles
              - virtual-worlds
              - domains
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/web3/collections/{chain}/{contract}:
    get:
      summary: "A collection: metadata and Crossly stats (floor, listed, volume, best collection offer)."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3CollectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Collection
  /v1/web3/collections/{chain}/{contract}/insights:
    get:
      summary: "On-chain insights for a collection: holders, trait counts across the whole collection, recent transfers and a 30-day activity series."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3CollectionInsightResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3CollectionInsight
  /v1/web3/collections/{chain}/{contract}/items:
    get:
      summary: "A collection's NFTs: filter by traits (repeat trait=Type:Value; OR within a type, AND across), search by name or token id, sort by id, rarity or Crossly price. Whole-collection once indexed."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
        - name: offset
          in: query
          required: false
          schema:
            type: number
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - id
              - price
              - rarity
        - name: trait
          in: query
          required: false
          schema:
            type: string
        - name: listed
          in: query
          required: false
          schema:
            type: boolean
        - name: pageKey
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3CollectionItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3CollectionItem
  /v1/web3/collections/{chain}/{contract}/traits:
    get:
      summary: Every trait type and value in a collection, with how many tokens have each.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3CollectionTraitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3CollectionTrait
  /v1/web3/resolve/{chain}/{slug}:
    get:
      summary: A collection's chain and contract from its readable URL slug (e.g. eth / boredapeyachtclub).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3ResolveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Resolve
  /v1/web3/tokens/{chain}/{contract}/{tokenId}:
    get:
      summary: "One NFT: metadata, traits, owner, open listings and offers, activity."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
        - schema:
            type: string
          in: path
          name: tokenId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3TokenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Token
  /v1/web3/activity:
    get:
      summary: Listings, offers, sales and cancels in the Crossly book, newest first.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3ActivityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Activity
      parameters:
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: contract
          in: query
          required: false
          schema:
            type: string
        - name: tokenId
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/web3/orders:
    get:
      summary: "Your orders in the Crossly book (listings and offers), any status. With X-Storefront-Id: that store's listings (offers always)."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3OrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Orders
    post:
      summary: Place a signed Seaport 1.6 order (listing, offer or collection offer) in the Crossly book.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3OrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3Order
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3OrderRequest"
  /v1/web3/crosslist/quote:
    get:
      summary: "Each marketplace's terms for listing a token: Crossly fee, OpenSea required fees and zone, Tensor availability."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3CrosslistQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3CrosslistQuote
      parameters:
        - name: chain
          in: query
          required: true
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: contract
          in: query
          required: true
          schema:
            type: string
        - name: tokenId
          in: query
          required: true
          schema:
            type: string
  /v1/web3/approvals:
    get:
      summary: Your collections the OpenSea conduit is approved to move, per linked wallet.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3ApprovalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Approvals
  /v1/web3/collections/{chain}/{contract}/trait-tokens:
    get:
      summary: Token ids in a collection with one trait — what a trait offer commits to.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
        - name: type
          in: query
          required: true
          schema:
            type: string
        - name: value
          in: query
          required: true
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3CollectionTraitTokenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3CollectionTraitToken
  /v1/web3/profiles/{address}:
    get:
      summary: "A wallet's public profile: NFTs held, open Crossly listings, and activity."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: address
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3ProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Profile
  /v1/web3/search:
    get:
      summary: Find collections by contract address (every chain) or by name.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3SearchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Search
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: string
  /v1/web3/search/tokens:
    get:
      summary: "Find tokens by collection name and number: 'pudgy 42', 'Bored Ape #1234'."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3SearchTokensResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3SearchTokens
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: string
  /v1/web3/inventory/{itemId}:
    get:
      summary: "The NFT behind an inventory item: its token, wallet, and open listings on every marketplace (null if it is not an NFT)."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: itemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3InventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Inventory
  /v1/web3/collections/{chain}/{contract}/depth:
    get:
      summary: A collection's Crossly order book by price level — asks cheapest first, bids dearest first, with running totals — and the floor of every trait value.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3CollectionDepthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3CollectionDepth
  /v1/web3/collections/{chain}/{contract}/history:
    get:
      summary: Daily floor, sales, volume, holders and listed count for a collection, oldest first (up to 365 days).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
        - name: days
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3CollectionHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3CollectionHistory
  /v1/web3/portfolio:
    get:
      summary: Your NFTs with value (Crossly floor, else recent sales) and cost (what a linked wallet paid), realised sales, and USD totals at each day’s coin price.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3PortfolioResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Portfolio
  /v1/web3/purchases:
    get:
      summary: NFTs your linked wallets bought — on Crossly or any marketplace the chain feed saw — newest first, with price and whether you still hold each.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3PurchasesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Purchases
  /v1/web3/collector:
    get:
      summary: "Your collector perks: how many different NFTs you bought through Crossly, your Collector pin tier, relist rewards paid, and each NFT you still hold with the Bought on Crossly mark."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3CollectorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Collector
  /v1/web3/portfolio/tax:
    get:
      summary: "One calendar year of NFT disposals from your linked wallets as CSV text: acquired, sold, proceeds, cost basis, gain (coin and USD)."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3PortfolioTaxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3PortfolioTax
      parameters:
        - name: year
          in: query
          required: true
          schema:
            type: number
  /v1/passports:
    get:
      summary: "Product passports you registered (optionally for one Crossly listing): the code and URL each tag carries."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPassportsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPassports
      parameters:
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - active
              - draft
              - revoked
        - name: custody
          in: query
          required: false
          schema:
            type: string
            enum:
              - in_vault
              - with_seller
              - to_vault
              - with_owner
        - name: tag
          in: query
          required: false
          schema:
            type: string
            enum:
              - none
              - bound
        - name: printed
          in: query
          required: false
          schema:
            type: string
            enum:
              - no
              - yes
        - name: itemId
          in: query
          required: false
          schema:
            type: string
        - name: platformListingId
          in: query
          required: false
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
    post:
      summary: Register a product passport for a Crossly listing or an inventory item you sell, optionally bound to an NFC tag UID (hex). Active at once. Returns the URL to write to the NFC tag or print as a QR; ownership then follows the item’s sales. For several items with photos and labels, use the drafts flow (POST /passports/drafts).
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PassportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPassport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePassportRequest"
  /v1/passports/{id}:
    get:
      summary: "One passport: its item and every listing of it, the event history (created, printed, tag bound, transferred, claimed…), scans per day for 30 days, custody, grading."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPassportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPassport
    patch:
      summary: "Change what a passport says (title, condition, maker, year, materials, notes) or add photo URLs (photos append: a passport keeps the ones it was registered with)."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdatePassportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePassport
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdatePassportRequest"
  /v1/passports/{id}/events:
    get:
      summary: A passport’s event history, newest first (never a buyer or a price).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPassportEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPassportEvents
  /v1/passports/{id}/revoke:
    post:
      summary: Revoke a passport (a lost or misprinted tag). Refused once the item has sold — the passport is then part of its history.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PassportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPassportRevoke
  /v1/passports/{id}/tag:
    post:
      summary: "Bind (or re-bind) a passport to the NFC tag you wrote its nfcUrl to: the tag UID (hex), and whether you locked the tag read-only. Refused once the item has sold, for a locked tag, or a tag already on another item."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PassportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPassportTag
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePassportTagRequest"
  /v1/passports/drafts:
    post:
      summary: "Start a passport draft for up to 100 inventory items (or Crossly listings): one draft passport per item with its code reserved. Items whose every unit already has a passport come back in skipped."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PassportDraftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPassportDraft
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePassportDraftRequest"
  /v1/passports/drafts/{id}:
    get:
      summary: A passport draft and its passports (photos, serial, tag and label state of each).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PassportDraftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPassportDraft
    patch:
      summary: Move a draft to a step, pick its label template, add items or remove draft passports.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PassportDraftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePassportDraft
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdatePassportDraftRequest"
  /v1/passports/drafts/{id}/activate:
    post:
      summary: "Activate every passport of a draft: their pages open for anyone who scans the tag or QR. Closes the draft’s capture link."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PassportDraftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPassportDraftActivate
  /v1/passports/drafts/{id}/capture-link:
    post:
      summary: A link (and its QR as SVG) any phone opens with no sign-in to add photos, serials and NFC tags to this draft. Open 30 minutes after its last use, 4 hours at most; minting a new one closes the old.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePassportDraftCaptureLinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPassportDraftCaptureLink
  /v1/passports/print:
    post:
      summary: "Print passport labels: sent to your printer agent (the Crossly desktop app includes one) when it is online and prints the template, else a signed PDF link with the reason. Templates: sticker-2in, sticker-1in, label-4x6, hang-tag, sheet-letter, sheet-a4, transfer-card."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePassportPrintResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPassportPrint
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePassportPrintRequest"
  /v1/passports/print/{jobId}:
    get:
      summary: "Where a passport print job sent to your agent is: queued, sent, done, failed, expired or duplicate."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: jobId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPassportPrintResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPassportPrint
  /v1/passports/print-targets:
    get:
      summary: Your printer agents (online, printers, default) and the passport label templates each can print.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPassportPrintTargetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPassportPrintTargets
  /v1/live-streams/{id}/lineup:
    put:
      summary: "Set a live show’s lineup: your Crossly listings, in the order you will sell them. Buyers see it before they join; a sale of a lineup item while the show is live is recorded at its replay moment."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateLiveStreamLineupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateLiveStreamLineup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateLiveStreamLineupRequest"
  /v1/live-shipments:
    get:
      summary: "Your show boxes: every buyer’s orders from one live show, to ship together."
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLiveShipmentsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLiveShipments
      parameters:
        - name: streamId
          in: query
          required: false
          schema:
            type: string
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - open
              - shipped
  /v1/live-shipments/{id}/label:
    post:
      summary: Buy ONE label for a show box, rated for all its orders packed together; every order takes its tracking and the buyer’s extra postage is refunded.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLiveShipmentShipResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLiveShipmentLabel
  /v1/live-shipments/{id}/ship:
    post:
      summary: "Ship a show box with your own label: every order is marked shipped with this tracking and the buyer’s extra postage is refunded."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLiveShipmentShipResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLiveShipmentShip
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLiveShipmentShipRequest"
  /v1/storefront/highlights:
    get:
      summary: Your store’s story highlights in display order, each with its saved stories (media, overlays, product tie-in, when posted). Empty highlights included.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStorefrontHighlightsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStorefrontHighlights
    post:
      summary: "Create a highlight: title (up to 24 characters), optional coverUrl, and optional storyIds (your live or archived stories) to save into it. Up to 50 per store."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStorefrontHighlightResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontHighlight
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateStorefrontHighlightRequest"
  /v1/storefront/highlights/order:
    put:
      summary: "Set the highlight order in one call: every highlight id, first to last."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStorefrontHighlightsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontHighlightOrder
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingByIdRequest"
  /v1/storefront/highlights/{id}:
    patch:
      summary: Rename a highlight or change its cover (coverUrl null = use the first story).
      tags:
        - Storefront
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontHighlightResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontHighlight
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateStorefrontHighlightRequest"
    delete:
      summary: Delete a highlight and its saved stories. The original stories are unaffected.
      tags:
        - Storefront
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteStoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteStorefrontHighlight
  /v1/storefront/highlights/{id}/items:
    post:
      summary: Save stories into a highlight (appended in the order given). Each is copied, so it stays after the story expires. A story already in the highlight is skipped.
      tags:
        - Storefront
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontHighlightResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontHighlightItem
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateStorefrontHighlightItemRequest"
  /v1/storefront/highlights/{id}/items/order:
    put:
      summary: "Set the order of a highlight’s saved stories: every item id, first to last."
      tags:
        - Storefront
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontHighlightResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontHighlightItemOrder
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingByIdRequest"
  /v1/storefront/highlights/{id}/items/{itemId}:
    delete:
      summary: Remove one saved story from a highlight.
      tags:
        - Storefront
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: itemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontHighlightResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteStorefrontHighlightItem
  /v1/storefront/stories/archive:
    get:
      summary: "Your stories, live and expired, newest first: what can be saved to a highlight. Paginated: pass before = meta.nextCursor of the previous page."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStorefrontStoryArchiveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStorefrontStoryArchive
      parameters:
        - name: before
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/stories:
    get:
      summary: "Your active story slides (newest run first, each run in play order), with their overlays: text, listing stickers, @mentions, links, emoji and drawing."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStoriesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStories
    post:
      summary: "Share a story: 1–10 slides played in order. Each slide is a photo or video plus optional overlays (positions are fractions of the 9:16 frame). Listing stickers must be your own Crossly listings and also tag the slide; @mentions must be real shops. audience: everyone | followers; expiresInHours: 6, 12, 24 or 48."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateStoryRequest"
  /v1/stories/{id}:
    delete:
      summary: Take one story slide down before it expires.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteStoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteStory
  /v1/live-streams:
    get:
      summary: "Your live shows, newest scheduled first: status, cover, category, connection method and peak viewers."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLiveStreamsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLiveStreams
    post:
      summary: "Schedule a live show: title, start time, optional cover, category and the listings to feature (becomes the lineup, in order)."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LiveStreamResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLiveStream
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLiveStreamRequest"
  /v1/live-streams/{id}:
    patch:
      summary: "Edit a show that has not ended: title, description, cover, category, start time (not once live) or connection method (browser | phone | encoder)."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LiveStreamResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateLiveStream
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateLiveStreamRequest"
  /v1/live-streams/{id}/connection:
    post:
      summary: "The show’s video connection, minted on first call and identical after: RTMP(S) server + stream key, SRT URL, WHIP URL for browser publishing (null where the ingest has none) and the HLS playback URL. configured=false (with a reason) when the deployment has no streaming provider."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLiveStreamConnectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLiveStreamConnection
  /v1/live-streams/{id}/connection/rotate:
    post:
      summary: Replace the show’s stream key (e.g. after it was shown on screen). Refused while the show is live.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLiveStreamConnectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLiveStreamConnectionRotate
  /v1/live-streams/{id}/start:
    post:
      summary: "Go live: the show’s status becomes live and followers are notified once. Idempotent while live; refused once ended."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LiveStreamResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLiveStreamStart
  /v1/live-streams/{id}/end:
    post:
      summary: End the show. Idempotent.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LiveStreamResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLiveStreamEnd
  /v1/live-streams/{id}/recap:
    get:
      summary: "The show’s numbers: duration, peak viewers, items sold and gross, tips, chat messages, auctions run, lineup size and the replay URL."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetLiveStreamRecapResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getLiveStreamRecap
  /v1/hotspots:
    put:
      summary: Tag your listings at points on a story or lookbook photo (shop the look). Replaces that photo’s tags; at most 12.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateHotspotResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateHotspot
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateHotspotRequest"
  /v1/loyalty/club:
    get:
      summary: "Your loyalty club: tiers and how many members are in each."
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetLoyaltyClubResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getLoyaltyClub
    put:
      summary: "Create or update your loyalty club: name, on/off, and up to 6 spend tiers each with a discount (≤ 30%) and perks."
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetLoyaltyClubResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateLoyaltyClub
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateLoyaltyClubRequest"
  /v1/loyalty/members:
    get:
      summary: Your loyalty club’s members, by spend with you.
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLoyaltyMembersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLoyaltyMembers
  /v1/discount-codes:
    get:
      summary: "Your discount codes: kind, status (active, scheduled, paused, expired, exhausted, archived), every rule, and usage."
      tags:
        - Discounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDiscountCodesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDiscountCodes
      parameters:
        - name: archived
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
    post:
      summary: "Create a discount code: percent, fixed, free shipping, buy X get Y, spend tiers or a set price, with requirements, item scope, limits (total, per buyer, per day, budget, regions), schedule and stacking."
      tags:
        - Discounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DiscountCodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDiscountCode
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDiscountCodeRequest"
  /v1/discount-codes/{id}:
    get:
      summary: One discount code with its rules and usage.
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDiscountCodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDiscountCode
    patch:
      summary: Update a discount code. The code itself can be renamed only until it is first used.
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DiscountCodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDiscountCode
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateDiscountCodeRequest"
  /v1/discount-codes/{id}/status:
    post:
      summary: Pause, resume (active) or archive a discount code.
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DiscountCodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDiscountCodeStatus
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDiscountCodeStatusRequest"
  /v1/discount-codes/pause-all:
    post:
      summary: "Pause every active discount code of the store at once (paused: true), or resume every paused one (paused: false). Archived codes are left alone; returns how many changed."
      tags:
        - Discounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDiscountCodePauseAllResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDiscountCodePauseAll
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDiscountCodePauseAllRequest"
  /v1/discount-codes/{id}/generate:
    post:
      summary: Generate up to 5,000 unique single-use codes with this code’s rules (their uses count toward its limits).
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDiscountCodeGenerateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDiscountCodeGenerate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDiscountCodeGenerateRequest"
  /v1/discount-codes/{id}/share:
    get:
      summary: The share link that pre-applies the code at checkout (the store page with ?code=) and a QR code of it as a PNG data URL.
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDiscountCodeShareResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDiscountCodeShare
  /v1/discount-codes/{id}/redemptions:
    get:
      summary: "A code’s usage history: orders, masked buyers, region, channel and the amount given, newest first."
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: offset
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDiscountCodeRedemptionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDiscountCodeRedemptions
  /v1/automatic-discounts:
    get:
      summary: "Your automatic discounts (buy more, save more): quantity and mixed-item tiers, scope, channels and schedule."
      tags:
        - Discounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAutomaticDiscountsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listAutomaticDiscounts
    post:
      summary: Create an automatic discount.
      tags:
        - Discounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAutomaticDiscountResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAutomaticDiscount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAutomaticDiscountRequest"
  /v1/automatic-discounts/{id}:
    put:
      summary: Replace an automatic discount.
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAutomaticDiscountResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateAutomaticDiscount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAutomaticDiscountRequest"
    delete:
      summary: Delete an automatic discount.
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteAutomaticDiscount
  /v1/automatic-discounts/preview:
    post:
      summary: "Preview a hypothetical cart of your listings against your automatic discounts (or an unsaved draft): what each line gets."
      tags:
        - Discounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAutomaticDiscountPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAutomaticDiscountPreview
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAutomaticDiscountPreviewRequest"
  /v1/loyalty/program:
    get:
      summary: "Your loyalty program: qualification (spend, orders, points), window, joining, downgrade and grace, and its tiers with typed perks."
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetLoyaltyProgramResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getLoyaltyProgram
    put:
      summary: Create or update your loyalty program settings.
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateLoyaltyProgramResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateLoyaltyProgram
  /v1/loyalty/tiers:
    post:
      summary: "Add a tier: name, look, threshold and typed perks (% off, free shipping, early access, members-only listings, wholesale access, token gates, airdrops, Bucks, World items, event tickets, …)."
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLoyaltyTierResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLoyaltyTier
  /v1/loyalty/tiers/{id}:
    put:
      summary: Replace a tier. Members holding it get the edited perks.
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLoyaltyTierResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateLoyaltyTier
    delete:
      summary: Delete a tier; its members are re-evaluated.
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteLoyaltyTier
  /v1/loyalty/program/members:
    get:
      summary: Your loyalty members with tier, standing, grace and overrides; search, tier, status and sort filters.
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLoyaltyProgramMembersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLoyaltyProgramMembers
  /v1/loyalty/program/members/{id}:
    get:
      summary: "One member: standing, tier, progress, perks held, history and any override."
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetLoyaltyProgramMemberResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getLoyaltyProgramMember
  /v1/loyalty/program/members/{id}/override:
    post:
      summary: Pin a member to a tier (tierId null clears the pin), with a reason.
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetLoyaltyProgramMemberResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLoyaltyProgramMemberOverride
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLoyaltyProgramMemberOverrideRequest"
  /v1/loyalty/program/invite-candidates:
    get:
      summary: "Crossly buyers who bought from you and are not loyalty members yet (q searches by name): who you can invite."
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLoyaltyProgramInviteCandidatesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLoyaltyProgramInviteCandidates
  /v1/loyalty/program/invite:
    post:
      summary: Invite Crossly buyers to your loyalty program by user id (up to 500); returns how many were newly invited.
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLoyaltyProgramInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLoyaltyProgramInvite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLoyaltyProgramInviteRequest"
  /v1/loyalty/rewards:
    get:
      summary: "Your loyalty rewards shelf: typed perks members buy with points, each with its cost, stock left, per-member limit and how many were redeemed."
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLoyaltyRewardsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLoyaltyRewards
    put:
      summary: Replace the rewards shelf (up to 50 rewards). A price perk (% off, $ off, free shipping) is redeemed as a single-use code.
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLoyaltyRewardsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateLoyaltyReward
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateLoyaltyRewardRequest"
  /v1/loyalty/rewards/{rewardId}:
    put:
      summary: Add a reward to the shelf, or replace the one with this id.
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: rewardId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateLoyaltyRewardByRewardIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateLoyaltyRewardByRewardId
    delete:
      summary: Take a reward off the shelf. Perks already redeemed stay with their buyers.
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: rewardId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteLoyaltyReward
  /v1/loyalty/program/members/{id}/points:
    get:
      summary: "A member’s points history: purchases, hunts, event check-ins, photo reviews, group buys, manual grants and redeemed rewards."
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLoyaltyProgramMemberPointsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLoyaltyProgramMemberPoints
    post:
      summary: "Give a member points by hand (Idempotency-Key required: the same key awards once). Fires loyalty.points_awarded."
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLoyaltyProgramMemberPointResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLoyaltyProgramMemberPoint
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLoyaltyProgramMemberPointRequest"
  /v1/share-images/group-buys/{id}:
    get:
      summary: "The share card (og:image) of one of yours: { kind, imageUrl, pageUrl, bucket, title, description }. The image changes only when its state bucket does (progress in tenths, tier reached, time left, sold out)."
      tags:
        - Share images
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ShareImageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShareImageGroupBuy
  /v1/share-images/drops/{id}:
    get:
      summary: "The share card (og:image) of one of yours: { kind, imageUrl, pageUrl, bucket, title, description }. The image changes only when its state bucket does (progress in tenths, tier reached, time left, sold out)."
      tags:
        - Share images
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ShareImageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShareImageDrop
  /v1/share-images/events/{slug}:
    get:
      summary: "The share card (og:image) of one of yours: { kind, imageUrl, pageUrl, bucket, title, description }. The image changes only when its state bucket does (progress in tenths, tier reached, time left, sold out)."
      tags:
        - Share images
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ShareImageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShareImageEvent
  /v1/loyalty/airdrops:
    get:
      summary: "NFT airdrops your loyalty tiers earned members: queued to send, submitted (waiting on the receipt), sent, failed (with why) or cancelled."
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLoyaltyAirdropsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLoyaltyAirdrops
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - cancelled
              - sent
              - failed
              - queued
              - submitted
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/loyalty/airdrops/{id}:
    get:
      summary: "One loyalty NFT airdrop: member, collection, recipient wallet, transaction hash and status."
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LoyaltyAirdropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getLoyaltyAirdrop
  /v1/loyalty/airdrops/{id}/prepare:
    post:
      summary: "The mint transaction for your launch owner wallet to send: chain, from, to (your launch contract) and calldata, to the member’s verified wallet. Refused airdrop_not_sendable with a reason when it cannot be built."
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLoyaltyAirdropPrepareResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLoyaltyAirdropPrepare
  /v1/loyalty/airdrops/{id}/submit:
    post:
      summary: Record the hash your wallet broadcast; Crossly reads the receipt (now, then on a schedule) and marks it sent or failed.
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LoyaltyAirdropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLoyaltyAirdropSubmit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLoyaltyAirdropSubmitRequest"
  /v1/loyalty/airdrops/{id}/check:
    post:
      summary: Read a submitted airdrop’s receipt again now.
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LoyaltyAirdropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLoyaltyAirdropCheck
  /v1/loyalty/airdrops/{id}/cancel:
    post:
      summary: Cancel a queued or failed airdrop (one already sent is the member’s).
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LoyaltyAirdropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLoyaltyAirdropCancel
  /v1/group-buys/{id}:
    get:
      summary: "One group buy: progress towards each tier, committed buyers (masked), time left, revenue at the current tier and the activity feed."
      tags:
        - Group buys
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getGroupBuy
    patch:
      summary: Edit a group buy. Copy, visibility, placement and the per-buyer max change any time; tiers, goal, minimum, payment mode and goal-miss policy only before anyone commits.
      tags:
        - Group buys
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateGroupBuy
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateGroupBuyRequest"
  /v1/group-buys/{id}/extend:
    post:
      summary: Move the deadline later by N days (authorize-now pools run at most 6 days, pay-now pools 30).
      tags:
        - Group buys
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateGroupBuyExtendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGroupBuyExtend
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGroupBuyExtendRequest"
  /v1/group-buys/{id}/close:
    post:
      summary: "Close a group buy now: every buyer pays the price reached (the minimum and goal-miss policy still apply)."
      tags:
        - Group buys
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateGroupBuyCloseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGroupBuyClose
  /v1/group-buys/{id}/cancel:
    post:
      summary: "Cancel a group buy: every hold is released and every charge refunded."
      tags:
        - Group buys
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateGroupBuyCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGroupBuyCancel
  /v1/group-buys/{id}/message:
    post:
      summary: Send a notification to every buyer committed to the group buy.
      tags:
        - Group buys
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateGroupBuyMessageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGroupBuyMessage
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGroupBuyMessageRequest"
  /v1/group-buys/{id}/participants.csv:
    get:
      summary: "Every participant of a group buy as CSV: quantity, status, amounts and ship-to."
      tags:
        - Group buys
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetGroupBuyParticipants.csvResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getGroupBuyParticipants.csv
  /v1/pricing/settings:
    get:
      summary: "Selling options: own-price match (Crossly sells your items at your own lower price for the same item on another marketplace; dollar-priced copies only) and layaway (buyers may put items on layaway). Both on by default."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPricingSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPricingSetting
    put:
      summary: "Turn own-price match and/or layaway on or off for every one of your stores. One store: PUT /v1/storefronts/{id}/settings."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPricingSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePricingSetting
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdatePricingSettingRequest"
  /v1/video-requests:
    get:
      summary: "Buyers asking for a video of your items. status: open (default), answered, declined or all."
      tags:
        - Inbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVideoRequestsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVideoRequests
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - open
              - declined
              - answered
  /v1/video-requests/upload-url:
    post:
      summary: "A presigned upload for a video answer: PUT the file to uploadUrl with the same Content-Type and exact Content-Length, then answer with publicUrl."
      tags:
        - Inbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVideoRequestUploadUrlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVideoRequestUploadUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingInvoiceFileRequest"
  /v1/video-requests/{id}/answer:
    post:
      summary: Answer a video request with a clip you uploaded (POST /v1/video-requests/upload-url, then PUT the file to uploadUrl). The buyer is notified and the clip shows on the listing.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVideoRequestAnswerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVideoRequestAnswer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVideoRequestAnswerRequest"
  /v1/video-requests/{id}/decline:
    post:
      summary: Decline a video request, with an optional note to the buyer.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVideoRequestAnswerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVideoRequestDecline
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVideoRequestDeclineRequest"
  /v1/layaways:
    get:
      summary: "Your items on layaway (active and paid off). Do not ship an active one: its order moves to needs_fulfillment when paid in full."
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLayawaysResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLayaways
  /v1/rentals:
    get:
      summary: Rentals of your items, with the ship-to and the outbound label.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRentalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listRentals
  /v1/rentals/offers:
    get:
      summary: "What you offer for rent. Each offer carries `policy`: the return and payment policies it inherits from Settings › Policies, resolved (preset ids and names, the level they came from, protections, claim window, deposit, accepted methods, and editPath), with `returnPolicyOverride` when the offer writes its own return text."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRentalOffersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listRentalOffers
  /v1/rentals/offers/{platformListingId}:
    put:
      summary: "Offer a Crossly listing for rent: day rate, optional week rate, deposit, min/max days, turnaround buffer, rent-only (off sale while offered), seller approval, unavailable date ranges (blackoutRanges, inclusive YYYY-MM-DD) and a return policy. Keeps the listing’s own rental terms in step. Needs a ship-from address."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: platformListingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateRentalOfferResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateRentalOffer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateRentalOfferRequest"
    delete:
      summary: Stop offering a listing for rent (existing bookings stand).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: platformListingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteRentalOffer
  /v1/rentals/{id}/labels:
    post:
      summary: "Buy both labels for a booked rental: outbound to the renter, and the return label they use."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalLabel
  /v1/rentals/{id}/shipped:
    post:
      summary: Mark a booked rental shipped, with at least 2 photos of its condition as it leaves (URLs you uploaded) — the evidence any later claim is judged against.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalShipped
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateRentalShippedRequest"
  /v1/rentals/{id}/approve:
    post:
      summary: "Approve a requested rental (offers with requireApproval): the renter’s held card is charged."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalApprove
  /v1/rentals/{id}/decline:
    post:
      summary: "Decline a requested rental: the hold on the renter’s card is released."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalDecline
  /v1/rentals/{id}/returned:
    post:
      summary: Mark a rental back with you. You then have 3 days to claim damage before the deposit goes back.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalReturned
  /v1/rentals/{id}/cancel:
    post:
      summary: "Cancel a booked rental that has not shipped: the renter is refunded in full."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalCancel
  /v1/rentals/{id}/claim:
    post:
      summary: "Claim part or all of the deposit (cents, a note, photo URLs): within 3 days of the return, or 14 days after the end if it never came back."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalClaim
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateRentalClaimRequest"
  /v1/rentals/settings:
    get:
      summary: The store’s rental defaults (every item inherits them) and its payout timing.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetRentalSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getRentalSetting
    put:
      summary: Set the store’s rental defaults and payout timing (on_start needs 3 rentals that came back).
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetRentalSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateRentalSetting
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateRentalSettingRequest"
  /v1/rentals/policy:
    get:
      summary: "The return and payment policies a rental inherits from Settings › Policies, resolved for the store (or for one listing with ?listingId): preset ids and names, the level each came from, the return line, protections, arrival photos, the deposit claim window in days, a required deposit in basis points, accepted methods, and editPath."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetRentalPolicyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getRentalPolicy
      parameters:
        - name: listingId
          in: query
          required: false
          schema:
            type: string
  /v1/rentals/calendar:
    get:
      summary: Every rentable item’s bookings (per unit), turnaround buffers and blackouts between two dates (≤ 93 days).
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetRentalCalendarResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getRentalCalendar
      parameters:
        - name: from
          in: query
          required: true
          schema:
            type: string
        - name: to
          in: query
          required: true
          schema:
            type: string
        - name: platformListingId
          in: query
          required: false
          schema:
            type: string
  /v1/rentals/history:
    get:
      summary: Active rentals and history, filtered by view, status, dates, item or a search.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRentalHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listRentalHistory
      parameters:
        - name: view
          in: query
          required: false
          schema:
            type: string
            enum:
              - active
              - all
              - history
        - name: status
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: from
          in: query
          required: false
          schema:
            type: string
        - name: to
          in: query
          required: false
          schema:
            type: string
        - name: platformListingId
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: offset
          in: query
          required: false
          schema:
            type: number
  /v1/rentals/bulk-rentable:
    post:
      summary: Make up to 200 Crossly listings rentable with the same options (a day rate, or a share of each price).
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateRentalBulkRentableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalBulkRentable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateRentalBulkRentableRequest"
  /v1/rentals/inventory/{inventoryItemId}:
    get:
      summary: "An inventory item’s rentals: units out with a renter now (reserved on the item), upcoming bookings and returns waiting for inspection."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: inventoryItemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetRentalInventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getRentalInventory
  /v1/rentals/{id}:
    get:
      summary: "One rental: its timeline, both sides’ condition photos, payments, extensions and what can be done next."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetRentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getRental
  /v1/rentals/{id}/delivered:
    post:
      summary: Mark a rental delivered to the renter.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalDelivered
  /v1/rentals/{id}/inspect:
    post:
      summary: "Record the return inspection: the checklist, photos, and optionally release the deposit."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalInspect
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateRentalInspectRequest"
  /v1/rentals/{id}/release-deposit:
    post:
      summary: Release the deposit now, without a claim.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalReleaseDeposit
  /v1/rentals/{id}/not-returned:
    post:
      summary: "Report a rental not returned (14 days past due): the deposit goes to you."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalNotReturned
  /v1/rentals/{id}/extensions/{extensionId}/decide:
    post:
      summary: Approve or decline a renter’s request for more days.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: extensionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateRentalExtensionDecideResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRentalExtensionDecide
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateRentalExtensionDecideRequest"
  /v1/sponsored-ads/campaigns:
    get:
      summary: Your Sponsored Listings campaigns with status, pacing (spent today, daily cap reached), budgets, bids, placements and stats for the range (from/to, YYYY-MM-DD; default last 30 days).
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSponsoredAdCampaignsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSponsoredAdCampaigns
      parameters:
        - name: from
          in: query
          required: false
          schema:
            type: string
        - name: to
          in: query
          required: false
          schema:
            type: string
    post:
      summary: 'Create a Sponsored Listings campaign: name, dailyBudgetCents (≥100), optional totalBudgetCents, defaultBidCents (5–10000; the max bid under bidStrategy "auto"), placements (search, browse, product_page, home_rail, storefront, worlds_surface), goal (sales | visits), optional targetCategories / targetRegions (ISO countries) / targetDevices (mobile, desktop, app), optional startsAt/endsAt, listings [{platformListingId, bidCents?, boostBps? (100–2000, pay-on-sale Boost; null clears)}], keywords [{keyword, matchType broad|phrase|exact, negative?, bidCents?}], worldTargets [{kind showroom|convention, id, bidCents?, status?}] (your showroom or a convention you host, promoted in the Crossly World directory; at least one listing or world target), status active|draft. A catalog boost: targetType "wholesale_catalog" + targetCatalogId (your catalog), no listings, keywords or world targets; it ranks Sponsored in the wholesale directory. bidStrategy defaults to your account default. Clicks are charged from your ad funds (ad balance and/or CBX, ad credit first); with none it waits as out_of_budget.'
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SponsoredAdCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSponsoredAdCampaign
  /v1/sponsored-ads/campaigns/{id}:
    get:
      summary: "One campaign: settings, its listings (bid, suggested bid, live, per-listing stats) and keywords. A catalog boost (targetType wholesale_catalog) has `catalogs`: per boosted catalog impressions, clicks, spend, attributed trade orders and revenue, CTR and ROAS."
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: from
          in: query
          required: false
          schema:
            type: string
        - name: to
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SponsoredAdCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSponsoredAdCampaign
    patch:
      summary: Edit a campaign. Any of the create fields; listings and keywords, when given, replace the current set. Raising the total budget resumes a campaign stopped by it.
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SponsoredAdCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSponsoredAdCampaign
  /v1/sponsored-ads/campaigns/{id}/status:
    post:
      summary: Set a campaign active (launch/resume), paused, or ended (final). Resuming with no ad funds to pay for clicks leaves it out_of_budget until you top up.
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SponsoredAdCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSponsoredAdCampaignStatus
  /v1/sponsored-ads/campaigns/{id}/duplicate:
    post:
      summary: Copy a campaign (settings, listings, keywords) as a new draft.
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SponsoredAdCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSponsoredAdCampaignDuplicate
  /v1/sponsored-ads/report:
    get:
      summary: "Sponsored report for a range: totals (spend, impressions, clicks, CTR, average CPC, attributed orders and revenue, ROAS), a zero-filled daily series, per-campaign rows (targetType listings | wholesale_catalog) and `catalogs`, one row per boosted catalog. Listing orders are Crossly purchases of the advertised listing within 7 days of a click by the same buyer; catalog orders are trade orders with that seller within 7 days of a catalog click by the same buyer. Catalog impressions count once per viewer per day."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSponsoredAdReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSponsoredAdReport
      parameters:
        - name: from
          in: query
          required: false
          schema:
            type: string
        - name: to
          in: query
          required: false
          schema:
            type: string
  /v1/sponsored-ads/listings:
    get:
      summary: "Per-listing ad performance across campaigns for a range, plus suggestions: live listings with views but few sales that are not sponsored yet, with a suggested bid."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSponsoredAdListingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSponsoredAdListings
      parameters:
        - name: from
          in: query
          required: false
          schema:
            type: string
        - name: to
          in: query
          required: false
          schema:
            type: string
  /v1/sponsored-ads/billing:
    get:
      summary: "What pays for your ads: headroom across the billing rails (ad balance and/or CBX), unbilled click spend, settlement charges, daily spend, Boost fees and CBX ad-credit grants; funds is the full funds summary (same as /v1/sponsored-ads/funds). refresh=true re-reads the balance."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSponsoredAdBillingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSponsoredAdBilling
      parameters:
        - name: refresh
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
  /v1/sponsored-ads/boosts:
    get:
      summary: "Boosted (pay-on-sale) listings: the rate, sales and fees taken so far. A boost lifts organic ranking by up to 10% and costs its rate only when the listing sells on Crossly."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSponsoredAdBoostsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSponsoredAdBoosts
    put:
      summary: Boost listings in bulk (platformListingIds, upliftBps 100–2000 = 1–20%), or change their rate. Your own live Crossly listings only.
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateSponsoredAdBoostResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSponsoredAdBoost
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSponsoredAdBoostRequest"
  /v1/sponsored-ads/boosts/remove:
    post:
      summary: Stop boosting listings in bulk.
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSponsoredAdBoostRemoveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSponsoredAdBoostRemove
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateLiveStreamLineupRequest"
  /v1/sponsored-ads/funds:
    get:
      summary: "What can pay for clicks now: the billing rails in effect (ad balance and/or CBX), the ad balance and ad credit, CBX headroom, unbilled clicks, available cents, auto top-up, the saved payment method and the refundable balance. refresh=true re-reads CBX."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSponsoredAdFundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSponsoredAdFund
      parameters:
        - name: refresh
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
  /v1/sponsored-ads/billing/history:
    get:
      summary: "Billing history newest first: top-ups (status, receipt number), click charges (how each was paid: ad balance, credit, CBX, written off), credits, refunds and Boost fees. kind filters; before (ISO time) pages; limit ≤ 100."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSponsoredAdBillingHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSponsoredAdBillingHistory
      parameters:
        - name: kind
          in: query
          required: false
          schema:
            type: string
            enum:
              - topup
              - refund
              - credit
              - charge
              - boost_fee
        - name: before
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/sponsored-ads/billing/statements:
    get:
      summary: Months (YYYY-MM) with any ad billing activity, newest first.
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSponsoredAdBillingStatementsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSponsoredAdBillingStatements
  /v1/sponsored-ads/billing/statements/{month}:
    get:
      summary: "One month's ads statement: opening and closing ad balance, top-ups, click spend by campaign, how clicks were paid, credits, refunds and Boost fees."
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: month
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSponsoredAdBillingStatementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSponsoredAdBillingStatement
  /v1/sponsored-ads/billing/statements/{month}/pdf:
    get:
      summary: One month's ads statement as a PDF.
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: month
          required: true
      responses:
        "200":
          description: A PDF document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSponsoredAdBillingStatementPdf
  /v1/sponsored-ads/billing/topups/{id}/receipt:
    get:
      summary: One ad balance top-up's receipt as a PDF (each top-up in the billing history carries its id and receipt number).
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: A PDF document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSponsoredAdBillingTopupReceipt
  /v1/sponsored-ads/billing/topup-link:
    post:
      summary: A Stripe Checkout link that adds amountCents ($5–$10,000) to the ad balance when the seller pays it. Nothing is charged until they do. Use an Idempotency-Key to get the same link back on a retry.
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSponsoredAdBillingTopupLinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSponsoredAdBillingTopupLink
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSponsoredAdBillingTopupLinkRequest"
  /v1/sponsored-ads/billing/auto-topup:
    put:
      summary: "Auto top-up: enabled, thresholdCents (top up when the ad balance drops below it), amountCents (how much). Needs a saved payment method (the first top-up saves it)."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SponsoredAdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSponsoredAdBillingAutoTopup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSponsoredAdBillingAutoTopupRequest"
  /v1/sponsored-ads/settings:
    get:
      summary: "Ads quick settings: adsPaused, accountDailyCapCents and spentTodayCents, defaultBidStrategy, autoTopup."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SponsoredAdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSponsoredAdSetting
    patch:
      summary: "Change ads quick settings: adsPaused (pause / resume every ad), accountDailyCapCents (null = no cap), defaultBidStrategy (auto | manual) for new campaigns, autoTopup {enabled, thresholdCents?, amountCents?}, railPreference (cash_first | cbx_first, both rails live only)."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SponsoredAdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSponsoredAdSetting
  /v1/listing-ads/platforms:
    get:
      summary: "The ads registry: each marketplace that sells promotion, its programs (kind, scope, campaign and listing fields), which verbs are wired / need a capture / are unsupported, and whether you are connected there."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingAdPlatformsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listListingAdPlatforms
  /v1/listing-ads/{platform}/campaigns:
    get:
      summary: Your ad campaigns on one marketplace (cached up to 15 minutes; refresh=true asks the marketplace now).
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - name: refresh
          in: query
          required: false
          schema:
            type: string
            enum:
              - "0"
              - "1"
              - "true"
              - "false"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingAdCampaignsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listListingAdCampaigns
    post:
      summary: "Create a campaign on the marketplace: program (promoted_listing_rate = eBay General, a % of the sale; cpc_campaign = eBay Priority, a daily budget), name, ratePct or dailyBudgetCents, startsAt/endsAt, and the program fields. Idempotency-Key supported."
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingAdCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingAdCampaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingAdCampaignRequest"
  /v1/listing-ads/{platform}/campaigns/{campaignId}:
    patch:
      summary: "Change a marketplace campaign: name, dailyBudgetCents, endsAt (null clears), status paused | running | ended."
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - schema:
            type: string
          in: path
          name: campaignId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingAdCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateListingAdCampaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateListingAdCampaignRequest"
  /v1/listing-ads/{platform}/campaigns/{campaignId}/listings:
    post:
      summary: Promote listings in a marketplace campaign. platformListingIds are Crossly platform-listing ids on that marketplace; ratePct sets the ad rate (eBay General). One result per listing.
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - schema:
            type: string
          in: path
          name: campaignId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingAdCampaignListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingAdCampaignListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingAdCampaignListingRequest"
  /v1/listing-ads/{platform}/campaigns/{campaignId}/listings/remove:
    post:
      summary: Stop promoting listings in a marketplace campaign. One result per listing.
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - schema:
            type: string
          in: path
          name: campaignId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingAdCampaignListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingAdCampaignListingRemove
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateLiveStreamLineupRequest"
  /v1/listing-ads/{platform}/listings/{platformListingId}/rate:
    put:
      summary: Change one promoted listing's ad rate (percent of the sale) in the campaign it is in.
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
        - schema:
            type: string
          in: path
          name: platformListingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateListingAdListingRateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateListingAdListingRate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateListingAdListingRateRequest"
  /v1/listing-ads/listings/{listingId}:
    get:
      summary: "Every promotion of one listing: its Crossly campaigns and Boost, and each marketplace ad with status, campaign, rate and last sync."
      tags:
        - Ads
      parameters:
        - schema:
            type: string
          in: path
          name: listingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetListingAdListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getListingAdListing
  /v1/listing-ads/bulk-add:
    post:
      summary: "Add listings to a campaign by master listing id: each listing's live row on `platform` joins campaignId (a Crossly campaign uuid, or the marketplace's campaign id). A listing not live there is its own failed result."
      tags:
        - Ads
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingAdBulkAddResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingAdBulkAdd
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingAdBulkAddRequest"
  /v1/funding/offer:
    get:
      summary: "Your pre-qualified Crossly Funding limit and the eligibility checklist: each rule, whether you pass it, and what to do if not. Works with or without a line."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetFundingOfferResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingOffer
  /v1/funding/apply:
    post:
      summary: "Apply for Crossly Funding. Decided at once on the checklist rules: approved opens your line (limit = 25% of 90 days of settled Crossly payouts), declined lists why, needs_review goes to a person."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingApply
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingApplyRequest"
  /v1/funding/line:
    get:
      summary: "Your line: limit, available, outstanding (principal + interest), APR, interest accrued since the last posting, the payoff figure, next due date, anything overdue, the per-draw schedule and your auto-repay share."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetFundingLineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingLine
  /v1/funding/invoice-advance-eligibility:
    get:
      summary: "What your Crossly Funding line could advance against your open wholesale invoices: per invoice its balance due, the advance at the rate (80%), what the line can cover now within its headroom (earliest due first), and why not (overdue, no line, line unavailable, over headroom). Eligibility only: an advance cannot be drawn against an invoice yet. X-Storefront-Id narrows to one store."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetFundingInvoiceAdvanceEligibilityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingInvoiceAdvanceEligibility
  /v1/funding/draws:
    get:
      summary: "Every draw on your line: what it paid for (a supplier order, or a Crossly checkout), its APR, estimated fee and due date."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListFundingDrawsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listFundingDraws
    post:
      summary: Draw on your line for a supplier order. Send the supplier, the invoice (an uploaded invoiceFileId from POST /v1/funding/invoice-files, a reference, or a URL) and the APR from the quote you accepted (acceptedAprBps); refused if your rate changed. The advance is held as in-platform Crossly balance, never cash. Idempotent on idempotencyKey.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingDrawResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingDraw
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingDrawRequest"
  /v1/funding/draws/quote:
    post:
      summary: "The disclosure for a draw of amountCents: APR, the simple-interest fee for the full term, the total and the due date, plus your available headroom. Nothing is drawn."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingDrawQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingDrawQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingDrawQuoteRequest"
  /v1/funding/invoice-files:
    post:
      summary: "Sign an upload for a supplier invoice: a PDF or image (application/pdf, image/jpeg, image/png, image/webp, image/heic) of at most 15 MB. PUT the bytes to uploadUrl with the same Content-Type and exactly contentLength bytes, then draw with invoiceFileId = file.id. Stored privately; one draw per file."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingInvoiceFileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingInvoiceFile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingInvoiceFileRequest"
  /v1/funding/draws/{id}/invoice:
    get:
      summary: A 15-minute signed link to a draw's uploaded supplier invoice, with the file's name, type and size. 404 when the draw has no uploaded file.
      tags:
        - Funding
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetFundingDrawInvoiceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingDrawInvoice
  /v1/funding/repayments:
    get:
      summary: Manual repayments (card / bank, or from your payout balance), newest first.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListFundingRepaymentsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listFundingRepayments
  /v1/funding/repay:
    post:
      summary: Repay. source "balance" (default) takes it from your available Stripe payout balance and applies it at once. source "card" returns a PaymentIntent client secret to confirm with Stripe; source "checkout" returns checkoutUrl, a hosted Stripe Checkout page the seller pays on (no Stripe SDK needed). source "cbx" pays early from your EARNED CBX at the obligation rate (granted and funding CBX never repay a line) and applies at once. Card and checkout apply when the payment succeeds. Never more than you owe; idempotent on idempotencyKey.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingRepayResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingRepay
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingRepayRequest"
  /v1/funding/autorepay:
    put:
      summary: "Set the share of each Crossly payout applied to what you owe: a whole percent from 10 to 100 (default 20). Never more than you owe is taken."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateFundingAutorepayResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateFundingAutorepay
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateFundingAutorepayRequest"
  /v1/funding/statements:
    get:
      summary: "A monthly statement (?month=YYYY-MM, default the latest): opening balance, every draw, interest posting and payment, and the closing balance; plus the months available."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetFundingStatementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingStatement
  /v1/funding/pool:
    get:
      summary: "The Crossly Funding pool: live or not and why (no token yet, no pool, no price, no capacity), capacity, utilisation, the reserve, and the uses and suppliers it allows."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetFundingPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingPool
  /v1/funding/controls:
    get:
      summary: "Your funding spend controls: approved uses, supplier allow/block lists, the approval threshold, the two-person rule and each team member’s funding limit."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetFundingControlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingControl
    put:
      summary: "Change your funding spend controls. Enforced at every spend: wholesale checkout, labels, ads, Crossly and Vault fees."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateFundingControlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateFundingControl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateFundingControlRequest"
  /v1/funding/members/{memberUserId}:
    put:
      summary: Set a team member’s funding limit (per draw or per month).
      tags:
        - Funding
      parameters:
        - schema:
            type: string
          in: path
          name: memberUserId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateFundingMemberResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateFundingMember
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateFundingMemberRequest"
    delete:
      summary: "Remove a team member’s funding limit: they can no longer draw."
      tags:
        - Funding
      parameters:
        - schema:
            type: string
          in: path
          name: memberUserId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteFundingMemberResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteFundingMember
  /v1/funding/draws/use:
    post:
      summary: "Request a draw for an approved use. Refused by the spend controls, held for approval (stage requested — no debt until disbursed), or disbursed at once as restricted funding CBX. A DEBT with interest: show the disclosure first."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingDrawUseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingDrawUse
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingDrawUseRequest"
  /v1/funding/draws/{id}:
    get:
      summary: "One draw: amount, use, supplier, stage and its timeline (requested → approved → disbursed → spent → repaid)."
      tags:
        - Funding
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetFundingDrawResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingDraw
  /v1/funding/approvals:
    get:
      summary: Draws your spend controls hold for approval, with the approvals so far and how many are needed.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListFundingApprovalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listFundingApprovals
  /v1/funding/draws/{id}/approve:
    post:
      summary: Approve a held draw. The two-person rule needs two distinct approvers; the requester never approves their own.
      tags:
        - Funding
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingDrawRejectResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingDrawApprove
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/NoteRequest"
  /v1/funding/draws/{id}/reject:
    post:
      summary: Reject a held draw. Nothing was drawn, so nothing is owed.
      tags:
        - Funding
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingDrawRejectResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingDrawReject
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/NoteRequest"
  /v1/funding/pool/stake:
    get:
      summary: Your position in the funding pool, the trailing APY reading (never a promise), lockup, unstake queue, history and the risk disclosure.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FundingPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingPoolStake
    post:
      summary: Stake earned CBX into the funding pool. Refused, with the reason, until the pool is live and staking is open.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingPoolStakeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingPoolStake
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingPoolStakeRequest"
  /v1/funding/pool/unstake:
    post:
      summary: Queue an unstake. Paid first-in first-out once your lockup has passed.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FundingPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingPoolUnstake
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingPoolUnstakeRequest"
  /v1/funding/pool/unstake/{id}/cancel:
    post:
      summary: Cancel a queued unstake that has not been paid yet.
      tags:
        - Funding
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FundingPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingPoolUnstakeCancel
  /v1/funding/pool/waitlist:
    post:
      summary: "Join the staker waitlist: told the moment staking into the funding pool opens."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FundingPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingPoolWaitlist
  /v1/funding/spendable:
    get:
      summary: What your restricted funding CBX can pay right now, in cents, for each Crossly use (shipping labels, Crossly fees, ads, Vault fees). 0 = none, or your spend controls refuse that use.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetFundingSpendableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getFundingSpendable
  /v1/funding/receipts:
    get:
      summary: "Your funding payments to Crossly, newest first: the use, what it paid for, cents, status (pending, paid, failed) and the draw it was stamped against."
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListFundingReceiptsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listFundingReceipts
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/funding/pay/shipping-labels:
    post:
      summary: Top up your shipping wallet with restricted funding CBX; labels you buy are then debited from it. Idempotent on idempotencyKey. Refused when the spend controls forbid shipping labels or it is over your approval threshold with no approved draw.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingPayShippingLabelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingPayShippingLabel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingPayShippingLabelRequest"
  /v1/funding/pay/crossly-fees:
    post:
      summary: Pay an open invoice of your Crossly plan with restricted funding CBX (no card is charged; the invoice is marked paid). Idempotent per invoice.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingPayCrosslyFeeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingPayCrosslyFee
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingPayCrosslyFeeRequest"
  /v1/funding/pay/vault-fees:
    post:
      summary: Ship a stored Vault unit home and pay its fee (shipping, storage owed, early withdrawal) with restricted funding CBX instead of your card.
      tags:
        - Funding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFundingPayVaultFeeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFundingPayVaultFee
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingPayVaultFeeRequest"
  /v1/events:
    get:
      summary: "Your events (launches, sales, live shows, drops, meetups, pop-ups, workshops, parties): schedule, status, phase, and going/interested counts."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listEvents
    post:
      summary: Create an event. A draft unless publish:true. Linked listings, the live show, the drop and the discount code must all be yours.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateEventRequest"
  /v1/events/{id}:
    get:
      summary: One of your events.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getEvent
    patch:
      summary: Edit an event. Omitted fields are unchanged; null clears.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateEventRequest"
    delete:
      summary: Delete a draft, or cancel a published event (its page then says it was called off).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteEvent
  /v1/events/{id}/publish:
    post:
      summary: "Publish an event: its page goes live, and with notifyFollowers your followers are told once."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEventPublish
  /v1/events/{id}/attendees:
    get:
      summary: "Who RSVPd: display name, avatar, going or interested, and when. No contact details."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEventAttendeesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listEventAttendees
  /v1/events/{id}/analytics:
    get:
      summary: Views, RSVPs, and what the linked listings sold on Crossly during the event (orders, units, revenue in cents).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetEventAnalyticResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getEventAnalytic
  /v1/variation-groups/generate:
    post:
      summary: "Turn one listing into a variation group: each new value becomes its own listing (a copy, with its own price, quantity and SKU) and all of them one group."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVariationGroupGenerateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVariationGroupGenerate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVariationGroupGenerateRequest"
  /v1/variation-groups/generate-matrix:
    post:
      summary: "Turn one listing into a variation group over up to three axes (Size × Color): each other cell is a listing you already have (listingId) or a new copy of this one with its own price, quantity and SKU."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVariationGroupGenerateMatrixResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVariationGroupGenerateMatrix
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVariationGroupGenerateMatrixRequest"
  /v1/variation-groups/{id}/publish:
    post:
      summary: "Publish a variation group per platform: one listing with a variation picker where the platform supports it (eBay, Shopify, Etsy), one per option elsewhere. Each platform reports its own outcome."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVariationGroupPublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVariationGroupPublish
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVariationGroupPublishRequest"
  /v1/reprice-events:
    get:
      summary: "Reprice decisions, newest first: applied, held at a floor, or pending approval (pending=true for only those waiting)."
      tags:
        - Automation
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRepriceEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listRepriceEvents
      parameters:
        - name: pending
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
        - name: listingId
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/reprice-events/{id}/approve:
    post:
      summary: "Apply a pending reprice proposal: the recorded price goes to the recorded platform listing. Proposals older than three days expire instead."
      tags:
        - Automation
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateRepriceEventSkipResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRepriceEventApprove
  /v1/reprice-events/{id}/skip:
    post:
      summary: Skip a pending reprice proposal; the price stays as it is.
      tags:
        - Automation
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateRepriceEventSkipResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRepriceEventSkip
  /v1/repricing/strategies:
    get:
      summary: The repricing strategies with the settings each takes, the settings every strategy takes, how often an assignment can check, and the approval modes.
      tags:
        - Automation
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetRepricingStrategyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getRepricingStrategy
  /v1/repricing/assignments:
    get:
      summary: "Repricing assignments: which listings are repriced with which strategy, floor and approval mode, with the last price moved, the next check and how many changes wait for approval."
      tags:
        - Automation
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRepricingAssignmentsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listRepricingAssignments
    post:
      summary: Reprice a listing set, a saved listings view or a category with one strategy. The floor is never breached (breakEvenFloor raises it to cover cost); approvalMode "ask" records each change for approval instead of applying it.
      tags:
        - Automation
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateRepricingAssignmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRepricingAssignment
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateRepricingAssignmentRequest"
  /v1/repricing/assignments/{id}:
    patch:
      summary: Change a repricing assignment (any field; a new strategy starts from the params sent with it), or pause / resume it with enabled.
      tags:
        - Automation
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateRepricingAssignmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateRepricingAssignment
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateRepricingAssignmentRequest"
    delete:
      summary: Stop a repricing assignment. Its past decisions stay in /v1/reprice-events.
      tags:
        - Automation
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteStoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteRepricingAssignment
  /v1/breaks:
    get:
      summary: Your card breaks, newest first.
      tags:
        - Breaks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBreaksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBreaks
    post:
      summary: "Start a break on one of your listings: pick (buyers choose a spot) or random (drawn). The seed is committed now and revealed at the draw."
      tags:
        - Breaks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBreakResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBreak
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBreakRequest"
  /v1/breaks/{id}:
    get:
      summary: A break’s board with every spot, its buyer and its hits.
      tags:
        - Breaks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBreakResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBreak
  /v1/breaks/{id}/draw:
    post:
      summary: "Draw a sold-out random break: assigns spots from the committed seed and reveals it."
      tags:
        - Breaks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBreakDrawResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBreakDraw
  /v1/breaks/{id}/spots/{spotId}/hits:
    post:
      summary: Record what a spot pulled.
      tags:
        - Breaks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: spotId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBreakSpotHit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBreakSpotHitRequest"
  /v1/breaks/{id}/opened:
    post:
      summary: Mark the product opened on stream.
      tags:
        - Breaks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBreakOpened
  /v1/breaks/{id}/cancel:
    post:
      summary: Cancel a break before any spot is paid for; after that, refund those orders instead (409).
      tags:
        - Breaks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBreakCancel
  /v1/group-buys:
    get:
      summary: "Your group buys, open ones first: tiers, buyers joined, the price reached and when it ends."
      tags:
        - Group buys
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListGroupBuysResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listGroupBuys
    post:
      summary: "Run a group buy on a listing with stock: price tiers by committed quantity, a goal and minimum to proceed, a per-buyer max, a deadline, authorize-now or pay-now-refund-the-difference, a goal-miss policy (cancel, proceed, extend once), visibility, placement and share copy. The original body (tiers by buyer count, minBuyers, days) is still accepted."
      tags:
        - Group buys
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBreakResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGroupBuy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGroupBuyRequest"
  /v1/orders/{id}/pickup-label:
    post:
      summary: Buy the carrier label for a Crossly order the buyer collects from a pickup point (debits your shipping wallet). 402 when the wallet is short. An order that already has a label answers 409 label_exists unless allowSecondLabel is true.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderPickupLabelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderPickupLabel
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderPickupLabelRequest"
  /v1/policy-returns:
    get:
      summary: Returns Crossly buyers opened under your return policy or try at home; filter by orderId.
      tags:
        - Returns
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPolicyReturnsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPolicyReturns
      parameters:
        - name: orderId
          in: query
          required: false
          schema:
            type: string
  /v1/policy-returns/{id}/received:
    post:
      summary: "Mark a return received: refunds the buyer, less the restocking or try fee you keep."
      tags:
        - Returns
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePolicyReturnReceivedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPolicyReturnReceived
  /v1/billing/upgrade:
    post:
      summary: Start an upgrade of a store's plan.
      tags:
        - Billing
      description: "Returns a Stripe Checkout URL. Nothing is charged by this call — a person completes the payment. Downgrades and cancellation are not available to a token at all; they stay with the account owner. Every store has its own plan: the store is `X-Storefront-Id` (omitted: the default store). A store already on a plan answers 409 (change it in Billing); a store sharing a grandfathered plan can pass `separate: true` to take its own."
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBillingUpgradeRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBillingUpgradeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBillingUpgrade
  /v1/payout/connect/onboard:
    post:
      summary: Start or resume payout-account onboarding; returns a Stripe-hosted URL.
      tags:
        - Payout
      description: country (ISO 3166-1 alpha-2) defaults to the storefront ship-from country, then US. Fixed once the account exists. Nothing is set up until a person completes the link.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePayoutConnectOnboardRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePayoutConnectOnboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPayoutConnectOnboard
  /v1/payout/payouts:
    post:
      summary: "Pay out now: instant (fee, minutes, to an eligible card/bank) or standard (free, manual schedule only)."
      tags:
        - Payout
      description: amountCents defaults to everything eligible. Pass idempotencyKey so a retry is the same payout. Returns { payout, feeCents }. 409 when the account cannot be paid or instant is unavailable.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePayoutPayoutRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePayoutPayoutResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPayoutPayout
  /v1/payout/schedule:
    put:
      summary: Change the automatic payout schedule.
      tags:
        - Payout
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdatePayoutScheduleRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdatePayoutScheduleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePayoutSchedule
  /v1/account/identity-verification:
    get:
      summary: "Your identity verification: one status for the whole account, read by every feature that needs ID."
      tags:
        - Account
      description: status is unverified, requires_input, processing, verified or canceled. requires_input with a lastError { code, reason } is a failed try the person can redo on the same link (start returns it); processing is being reviewed; neither is a decline, only canceled is. attempts counts the failed tries. ageVerified passes the age-restricted checkout gate. message is the next step in words (null once verified).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAccountIdentityVerificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAccountIdentityVerification
  /v1/account/identity-verification/start:
    post:
      summary: Start the identity check (photo ID + selfie). Returns a Stripe-hosted URL the person completes.
      tags:
        - Account
      description: alreadyVerified:true when there is nothing to do. Nothing is verified until a person completes the link.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAccountIdentityVerificationStartRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMatureVerifyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAccountIdentityVerificationStart
  /v1/payouts/identity:
    get:
      summary: "Stripe's verification of your payout account: status and what Stripe still needs, in plain words."
      tags:
        - Payout
      description: status is not_started, pending (Stripe is checking), action_required (dueNow lists what to add), verified (payouts on) or restricted (disabledReasonText says why). dueNow / dueLater / inReview are Stripe's requirement keys as plain-words lines ({ keys, label }); errors carry Stripe's reason. Cached up to 60 s; fresh=1 re-reads Stripe. Payouts are gated on payoutsEnabled only.
      parameters:
        - schema:
            type: string
            enum:
              - "0"
              - "1"
          in: query
          name: fresh
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPayoutIdentityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPayoutIdentity
  /v1/payouts/identity/link:
    post:
      summary: "Continue with Stripe: a one-time Stripe-hosted link that collects what Stripe needs."
      tags:
        - Payout
      description: "Creates the payout account first when there is none (country: ISO alpha-2, default the ship-from country). type is account_onboarding (Stripe shows only what is outstanding) or account_update. The link expires in minutes; ask for a new one rather than storing it. Nothing changes until a person completes it."
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePayoutConnectOnboardRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePayoutIdentityLinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPayoutIdentityLink
  /v1/inventory/merge:
    post:
      summary: Merge inventory items that are the same physical item into one (stock is not summed).
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryMergeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryMerge
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryMergeRequest"
  /v1/inventory/{id}/units/identifiers:
    post:
      summary: Record a serial, IMEI, or licence key against an inventory item.
      tags:
        - Inventory
      description: Creates the unit lazily if no `unitId` is given. Recording BEFORE the item sells is what makes the identifier usable as evidence on a return — one first recorded after a dispute opens is graded `weak` and says so.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryUnitIdentifierResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryUnitIdentifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryUnitIdentifierRequest"
  /v1/inventory/units/lookup:
    post:
      summary: Find a unit by identifier.
      tags:
        - Inventory
      description: "\"Have I ever seen this serial?\" — for when something arrives back and nobody knows which order it belongs to. Scoped to the caller, so it can never be used to probe another seller's stock."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryUnitLookupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryUnitLookup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryUnitLookupRequest"
  /v1/inventory/holds/{holdId}/release:
    post:
      summary: Release an inventory hold.
      tags:
        - Inventory
      description: Ends a hold now and puts its units back on sale. 404 for a hold that is not yours; 409 `hold_already_released` for one that already ended (released, converted to an order or expired).
      parameters:
        - schema:
            type: string
          in: path
          name: holdId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryHoldReleaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryHoldRelease
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryHoldReleaseRequest"
  /v1/inventory/bulk-quantity:
    post:
      summary: Set / add / subtract stock across many items, or set a stock per item; syncs live listings.
      tags:
        - Inventory
      description: 'Two bodies. {ids, mode: "set"|"increase"|"decrease", value, syncMarketplaces?} applies one value to every id. {mode: "set", items: [{id, quantity}], syncMarketplaces?} sets each item to its own quantity (1-5000 items, each id once; a repeated id, more than 5000 items, or a body mixing items with ids/value is a 400 naming both shapes). The value is the AVAILABLE stock (reserved units of open orders are kept). Stock changes at once; live listings are pushed in the background against the returned bulkJobId (anything dropping to 0 is delisted). Response: {affected, skipped, bulkJobId?}: skipped = ids that did not move (already at that number, or not yours). Send an Idempotency-Key to retry safely.'
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryBulkQuantityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryBulkQuantity
  /v1/inventory/bulk-labels:
    post:
      summary: Bulk add/remove labels on inventory items.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkUpdateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryBulkLabel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryBulkLabelRequest"
  /v1/inventory/labels/stats:
    get:
      summary: List distinct labels with usage counts + colors.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInventoryLabelStatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInventoryLabelStat
  /v1/inventory/labels/rename:
    post:
      summary: Rename a label across every inventory item.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdatedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryLabelRename
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingTagRenameRequest"
  /v1/inventory/bulk-archive:
    post:
      summary: Bulk archive inventory items (soft).
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryBulkArchiveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryBulkArchive
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingByIdRequest"
  /v1/inventory/bulk-restore:
    post:
      summary: Restore archived inventory items (status returns to active, or sold_out when no stock).
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryBulkRestoreResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryBulkRestore
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingByIdRequest"
  /v1/inventory/bulk-delete:
    post:
      summary: Bulk delete inventory items (delinks listings).
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryBulkDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryBulkDelete
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryBulkDeleteRequest"
  /v1/inventory/csv/import:
    post:
      summary: Import a CSV. Rows whose sku matches an existing item update it; others are added. Pass dryRun to preview.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryCsvImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryCsvImport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryCsvImportRequest"
  /v1/inventory/csv/export:
    post:
      summary: Export inventory as CSV. Round-trips back through csv/import.
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryCsvExportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryCsvExport
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryCsvExportRequest"
  /v1/listings/bulk:
    post:
      summary: Create up to 50 listings in one call, with a result per item.
      tags:
        - Listings
      description: "Each item is a POST /v1/listings body plus a required `clientReferenceId` (your id for it). Items run in order and independently: `data[i].status` is `created`, `existing` (that reference was already used — the listing is returned, nothing is created) or `error` with the code the single route would give. `error` means no listing exists for the item. A listing that was saved but could not be sent to a platform (e.g. no weight) is `created`, with that platform in `skipped` (reason, code, details). `meta` counts each. Retrying a batch only creates what is missing."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingBulk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingBulkRequest"
  /v1/listings/combine:
    post:
      summary: "Combine duplicate listings into one: sums their stock, delists and archives the rest."
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingCombineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingCombine
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingMergeRequest"
  /v1/listings/merge:
    post:
      summary: Merge the same item listed on different marketplaces into one listing; all stay live.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingMergeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingMerge
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingMergeRequest"
  /v1/listings/check-duplicates:
    post:
      summary: Check whether the seller already owns something matching this title/photo, and what to do about it.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingCheckDuplicateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingCheckDuplicate
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingCheckDuplicateRequest"
  /v1/listings/{id}/import-by-url:
    post:
      summary: Attach a real platform listing to this listing by pasting its live URL.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingImportByUrlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingImportByUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingImportByUrlRequest"
  /v1/listings/{id}/magic-fill:
    post:
      summary: Auto-fill empty fields on one platform tab from the master listing + AI/deterministic taxonomy resolution.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingMagicFillResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingMagicFill
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingMagicFillRequest"
  /v1/listings/{id}/discrepancies/{discrepancyId}/resolve:
    post:
      summary: "Resolve a detected marketplace-drift discrepancy: accept the platform value, push ours back, relist to apply it, or dismiss."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
            format: uuid
          in: path
          name: discrepancyId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingDiscrepancyResolveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingDiscrepancyResolve
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingDiscrepancyResolveRequest"
  /v1/listings/{id}/platform-listings/{plId}:
    patch:
      summary: Set one marketplace copy's price (e.g. the ebay.com copy of a listing also live on ebay.co.uk), in that copy's own currency.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
            format: uuid
          in: path
          name: plId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateListingPlatformListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateListingPlatformListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateListingPlatformListingRequest"
  /v1/listings/link:
    post:
      summary: Link a live marketplace listing your app already manages into Crossly (no re-listing). Idempotent.
      tags:
        - App-managed listings
      description: "Direct when Crossly holds the seller's own connection (verified by item id: exists, active, theirs); relayed otherwise, on your attestation plus `snapshot`. The listing shows \"Managed by <your app>\". Your revenue share is charged only on sales made on Crossly Shop; sales on eBay or any other marketplace never carry an app fee."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingLinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingLink
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingLinkRequest"
  /v1/listings/link/bulk:
    post:
      summary: Link up to 100 live marketplace listings. Each item succeeds or fails on its own; re-sending is safe.
      tags:
        - App-managed listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingLinkBulkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingLinkBulk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingLinkBulkRequest"
  /v1/listings/{id}/unlink:
    post:
      summary: Stop the app managing this listing. It stays live everywhere; the app's Crossly Shop fee ends for future sales.
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingUnlinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingUnlink
  /v1/listings/{id}/events:
    post:
      summary: Report a marketplace event (item.updated / ended / sold / relisted) for a listing your app manages.
      tags:
        - App-managed listings
      description: Idempotent on `eventId`. State events apply only when `sequence` is higher than the last applied one (else `stale`, ignored). `item.sold` runs Crossly's sale cascade (other channels delist) and is never dropped as stale.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingEventRequest"
  /v1/listings/events:
    post:
      summary: Report up to 100 marketplace events keyed by platform + externalId. One bad event never fails the rest.
      tags:
        - App-managed listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingEvent2Response"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingEvent2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingEvent2Request"
  /v1/listing-commands/{id}/ack:
    post:
      summary: "Acknowledge a command (you will act on it). Extends its deadline: 24 h for listing commands; tracking 2 h, cancel 4 h, refund 24 h, message 1 h."
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingCommandsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingCommandAck
  /v1/listing-commands/{id}/complete:
    post:
      summary: "Report a command done on the marketplace. relist: newExternalId when a new id was issued; refund_order: platformRefundId + amount (required); submit_tracking: trackingNumber/carrier as the marketplace holds them; message_buyer: platformMessageId."
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingCommandsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingCommandComplete
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingCommandCompleteRequest"
  /v1/listing-commands/{id}/fail:
    post:
      summary: Report a command failed, with a reason the seller will see.
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingCommandsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingCommandFail
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingCommandFailRequest"
  /v1/orders/events:
    post:
      summary: Report up to 100 order events (shipped, cancelled, refunded, delivered) keyed by platform + platformOrderId. Each completes the matching open order command. One bad event never fails the rest.
      tags:
        - App-managed listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderEventRequest"
  /v1/listings/{id}/platforms/{platform}/take-over:
    post:
      summary: "Take over an app-managed item: Crossly acts on the marketplace itself (needs your own connection)."
      tags:
        - App-managed listings
      description: "Verifies the item is on your connected account first. mode 'direct' (default) keeps the app as manager; 'full' also unlinks it (listing.unlinked reason 'taken_over'; its Crossly Shop fee stops). An app command already acknowledged answers 409 app_command_in_flight until you send confirm: true."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingPlatformTakeOverResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingPlatformTakeOver
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderTakeOverRequest"
  /v1/orders/{id}/take-over:
    post:
      summary: Take over the app-managed item behind an order; its actions then go through your own connection.
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderTakeOverResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderTakeOver
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderTakeOverRequest"
  /v1/listings/{id}/platforms/{platform}/reclone/seller-ended:
    post:
      summary: You ended the old item on the marketplace yourself (Done).
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingPlatformRecloneResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingPlatformRecloneSellerEnded
  /v1/listings/{id}/platforms/{platform}/reclone/cancel:
    post:
      summary: Cancel a relist still waiting for you to end the old item.
      tags:
        - App-managed listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingPlatformRecloneResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingPlatformRecloneCancel
  /v1/listings/bulk-relist:
    post:
      summary: Bulk relist across platforms
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingBulkRelist
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingBulkRelistRequest"
  /v1/listings/bulk-crosspost:
    post:
      summary: Bulk crosspost (no delist phase)
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingBulkCrosspost
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingBulkRelistRequest"
  /v1/listings/bulk-delist:
    post:
      summary: Bulk delist from platforms
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingBulkDelist
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingBulkDeleteRequest"
  /v1/listings/bulk-delete:
    post:
      summary: Bulk archive + delist
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingBulkDelete
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingBulkDeleteRequest"
  /v1/listings/bulk-hard-delete:
    post:
      summary: Permanently delete listings (live ones need allowLive)
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkHardDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingBulkHardDelete
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingBulkDeleteRequest"
  /v1/listings/bulk-update:
    post:
      summary: Bulk update listing fields
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkUpdateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingBulkUpdate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingBulkUpdateRequest"
  /v1/listings/bulk-check-status:
    post:
      summary: Check listing status on platforms
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingBulkCheckStatus
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingBulkDeleteRequest"
  /v1/listings/bulk-delist-preview:
    post:
      summary: Preview which marketplaces a delist would touch
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingBulkDelistPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingBulkDelistPreview
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingBulkDeleteRequest"
  /v1/listings/by-ids:
    post:
      summary: Fetch hydrated listings by ID
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingById
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingByIdRequest"
  /v1/orders/{id}/tracking:
    post:
      summary: Submit tracking number + carrier and notify the platform.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderTrackingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderTracking
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderTrackingRequest"
  /v1/orders/{id}/refund:
    post:
      summary: "DEPRECATED: use POST /v1/orders/{id}/refunds. Full or partial refund (amount in dollars). Same idempotency and cap as /refunds: the same request twice refunds once (Idempotency-Key, else the body), never past what the buyer paid."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderRefundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderRefund
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderRefundRequest"
  /v1/orders/import:
    post:
      summary: Manually (re-)pull one or more connected platforms' order history for a day-window.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderImport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderImportRequest"
  /v1/orders/bulk-delete:
    post:
      summary: Bulk soft- or hard-delete orders by id.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderBulkDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderBulkDelete
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderBulkDeleteRequest"
  /v1/orders/bulk-mark-shipped:
    post:
      summary: Bulk flip status=shipped, clear the reserved-stock marker, and notify each platform.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderBulkMarkShippedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderBulkMarkShipped
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderBulkMarkShippedRequest"
  /v1/orders/bulk-mark-disputed:
    post:
      summary: Bulk mark orders as disputed with a shared reason.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdatedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderBulkMarkDisputed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderBulkMarkDisputedRequest"
  /v1/orders/bulk-export:
    post:
      summary: Bulk export selected orders as CSV.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderBulkExportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderBulkExport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderBulkExportRequest"
  /v1/orders/{id}/dispute:
    post:
      summary: Flag an order as disputed.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderDisputeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderDispute
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderDisputeRequest"
  /v1/orders/{id}/cancel-eligibility:
    get:
      summary: Whether this order can be cancelled, and which reason codes the marketplace accepts.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderCancelEligibilityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderCancelEligibility
  /v1/orders/{id}/cancel:
    post:
      summary: "Cancel an order before it ships. Crossly-marketplace orders refund the buyer (also needs orders:refund) and restock; crossposted orders go to the marketplace, or fail not_supported_on_platform (recordOnly: true records a cancel made on the marketplace). Fires order.cancelled."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderCancel
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderCancelRequest"
  /v1/orders/{id}/message:
    post:
      summary: Message the order's buyer on the marketplace.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderMessageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderMessage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderMessageRequest"
  /v1/orders/{id}/rates:
    post:
      summary: Crossly Shipping rate quote for an order.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderRateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderRate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderRateRequest"
  /v1/orders/{id}/label:
    post:
      summary: Purchase a Crossly Shipping label. An order that already has a label answers 409 label_exists unless allowSecondLabel is true.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderLabelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderLabel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderLabelRequest"
  /v1/orders/{id}/label/void:
    post:
      summary: Void a Crossly Shipping label and refund it to the shipping wallet.
      tags:
        - Orders
      description: "Voids the order's unused label, owes the wallet charge back in full (markup included) and sets the order back to needs_fulfillment. The refund is held as pending (`refundPendingCents`; `refundedCents` stays 0) and is credited to the shipping wallet when Crossly releases held credits. Only while the carrier has not scanned the parcel and within 30 days of purchase. `tracking.outcome` says what happens to tracking already sent to the marketplace: not_submitted, removal_queued, replace_on_next_label, or update_manually (with `platformOrderUrl`). Repeating the call returns the same result with `alreadyVoided: true` and refunds nothing again."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderLabelVoidResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderLabelVoid
  /v1/orders/{id}/correct-tracking:
    post:
      summary: Correct a wrong tracking number the marketplace already holds.
      tags:
        - Orders
      description: "Replaces the order's tracking number with `trackingNumber`, on Crossly and on the marketplace, where the platform can change tracking it already has (its trackingCorrection capability): `correction` is replace (overwritten), remove_then_submit (the old number removed, then the new one sent) or submit (the platform held none). Refused with validation_error where the platform cannot change it (update it there), when the order has no tracking, its tracking came with a label (void the label instead), or it is closed or delivered; conflict while the previous tracking update is still in flight."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderCorrectTrackingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderCorrectTracking
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderCorrectTrackingRequest"
  /v1/orders/{id}/platform-label/pull:
    post:
      summary: Pull the marketplace's prepaid label into Crossly (every platform with a label descriptor).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderPlatformLabelPullResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderPlatformLabelPull
  /v1/orders/{id}/pull-platform-label:
    post:
      summary: Pull a pre-paid label from cookie platforms (Poshmark/Mercari).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderPullPlatformLabelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderPullPlatformLabel
  /v1/orders/{id}/packing-slip:
    get:
      summary: Single-order packing slip PDF.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: A PDF document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderPackingSlip
  /v1/orders/{id}/proof-of-delivery:
    get:
      summary: Proof-of-delivery evidence from the carrier's scan record (PDF, or JSON).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderProofOfDeliveryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderProofOfDelivery
  /v1/orders/bulk-packing-slips:
    post:
      summary: Bulk packing slips PDF.
      tags:
        - Orders
      responses:
        "200":
          description: A PDF document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderBulkPackingSlip
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderBulkExportRequest"
  /v1/orders/counts:
    get:
      summary: Tab badge counts by status.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: number
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderCount
  /v1/orders/pickup-ready:
    get:
      summary: Orders with a purchased Crossly Shipping label a courier can collect or a SCAN form can cover, grouped by carrier.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOrderPickupReadyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listOrderPickupReady
  /v1/orders/pickups:
    post:
      summary: Book a carrier pickup for labelled orders (one carrier per pickup; window at least an hour, up to 14 days ahead).
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderPickupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderPickup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderPickupRequest"
    get:
      summary: Booked carrier pickups, newest first.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOrderPickupsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listOrderPickups
  /v1/orders/scan-forms:
    post:
      summary: Create SCAN forms (one per carrier account and ship-from address) for labels the carrier has not scanned yet.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderScanFormResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderScanForm
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderScanFormRequest"
    get:
      summary: SCAN forms, newest first.
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOrderScanFormsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listOrderScanForms
  /v1/orders/scan-forms/{id}:
    get:
      summary: One SCAN form; a queued form is re-read from the carrier and its PDF appears once built.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderScanFormResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderScanForm
  /v1/orders/{id}/platform-label/state:
    get:
      summary: The marketplace's shipment for an order (package, label, tracking). Records a label found on it.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderWhatnotShipmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderPlatformLabelState
  /v1/orders/{id}/platform-label/options:
    get:
      summary: What buying a marketplace label offers for this order (weight tiers, mailbox state).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderPlatformLabelOptionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderPlatformLabelOption
  /v1/orders/{id}/platform-label/url:
    get:
      summary: A fresh, short-lived link to the marketplace's label sheet. Never stored.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UrlExpiresInSecondsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderPlatformLabelUrl
  /v1/orders/{id}/platform-label/packing-slip:
    get:
      summary: A fresh link to the marketplace's own packing slip PDF.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UrlExpiresInSecondsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderPlatformLabelPackingSlip
  /v1/orders/{id}/platform-label/quote:
    post:
      summary: Quote what buying a marketplace label costs, before you are charged.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderPlatformLabelQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderPlatformLabelQuote
  /v1/orders/{id}/platform-label/package/quote:
    post:
      summary: Quote what a change to the marketplace shipment's package costs (cents).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderWhatnotPackageQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderPlatformLabelPackageQuote
  /v1/orders/{id}/platform-label/package:
    post:
      summary: Save the package (weight oz, box inches) the marketplace prices the label from.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderWhatnotShipmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderPlatformLabelPackage
  /v1/orders/{id}/platform-label/purchase:
    post:
      summary: Buy a replacement / extra marketplace label, or have the marketplace generate it, and record it.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderPlatformLabelPurchaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderPlatformLabelPurchase
  /v1/orders/{id}/whatnot/shipment:
    get:
      summary: Whatnot shipment for an order (package, label, tracking). Records a label found on it.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderWhatnotShipmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderWhatnotShipment
  /v1/orders/{id}/whatnot/package/quote:
    post:
      summary: Quote what a Whatnot package change costs (cents).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderWhatnotPackageQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderWhatnotPackageQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderWhatnotPackageRequest"
  /v1/orders/{id}/whatnot/package:
    post:
      summary: Save a Whatnot shipment package (weight oz, box inches).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderWhatnotShipmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderWhatnotPackage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderWhatnotPackageRequest"
  /v1/orders/{id}/whatnot/label:
    post:
      summary: Generate the Whatnot shipping label and record it on the order.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderWhatnotLabelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderWhatnotLabel
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderWhatnotLabelRequest"
  /v1/orders/{id}/whatnot/packing-slip:
    get:
      summary: A fresh link to Whatnot's packing slip PDF.
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UrlExpiresInSecondsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderWhatnotPackingSlip
  /v1/orders/{id}/order-chat:
    get:
      summary: "The order's buyer chat thread on the marketplace (separate from listing comments): { orderId, platform, messages: [{ id, sender (buyer|seller|platform), body, sentAt, attachments? }], canSend }, oldest message first."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderOrderChatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderOrderChat
    post:
      summary: Send a message to the order's buyer chat on the marketplace. Mirrored into the Crossly inbox.
      tags:
        - Orders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderOrderChatRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderOrderChat
  /v1/orders/{id}/label/print:
    get:
      summary: The order's shipping label as a PDF sized for printing (cropped, upright, fitted).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            enum:
              - 4x6
              - letter
              - a4
              - native
          in: query
          name: size
          required: false
          description: Paper. Default 4x6.
        - schema:
            type: string
            enum:
              - "0"
              - "1"
              - "true"
              - "false"
          in: query
          name: flip
          required: false
          description: Turn the label a half turn.
        - schema:
            type: string
            format: uuid
          in: query
          name: parcelId
          required: false
          description: A specific parcel's label; default the order's primary.
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: A PDF document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderLabelPrint
    post:
      summary: "Send the label to your print agent: mode agent (jobId), pdf (url, reason no_agent | offline | not_capable) or skipped (already_printed; pass reprint true to print again)."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderLabelPrintResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderLabelPrint
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderLabelPrintRequest"
  /v1/orders/{id}/link-listing:
    post:
      summary: Link an unmatched sale to one of your listings (marks it sold, delists it elsewhere).
      tags:
        - Orders
      description: "For an order whose listing is an auto-created external-sale stub. Body: { listingId, platformListingId? }. Moves the sale onto the listing's row on the order's platform (or moves the stub's row under the listing when it has none), decrements its stock like a detected sale, archives the stub, and delists the item from every other marketplace once no unit is left. 409 when the order is already linked."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderLinkListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderLinkListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderLinkListingRequest"
  /v1/orders/{id}/refunds:
    post:
      summary: "Refund an order, in full or in part. `amount` is dollars; omit it for everything left (or the line items' value). Crossly-marketplace orders refund the buyer's card; crossposted orders refund through the marketplace, or fail not_supported_on_platform. Never refunds past the order (refund_exceeds_remaining). The same request twice refunds once: send an Idempotency-Key (without one, the body is the key). A partial refund keeps the order's status. What the platform takes (full/partial, its own reason keys, a comment) is GET /v1/orders/{id}/refund-options; a request outside it fails partial_refund_unsupported, invalid_refund_reason or refund_exceeds_item_amount. Fires order.refunded."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderRefundByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderRefundById
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderRefundByIdRequest"
    get:
      summary: Every refund requested on this order through the API or a cancel, newest first (amounts in dollars).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOrderRefundsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listOrderRefunds
  /v1/orders/{id}/refunds/{refundId}/resolve:
    post:
      summary: "Settle an `unverified` refund (one Crossly could not confirm with the marketplace after its request was interrupted) once you have checked the marketplace: succeeded (with the amount actually refunded, dollars) or failed (nothing moved; the same Idempotency-Key can then try again). Crossly-marketplace refunds are confirmed by support instead."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
            format: uuid
          in: path
          name: refundId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOrderRefundsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderRefundResolve
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderRefundResolveRequest"
  /v1/orders/{id}/refund-options:
    get:
      summary: "What a refund on this order may be, from the platform's declared capability: whether Crossly can refund it at all, full and/or partial, what a partial is measured against (total = what the buyer paid, item = the item price only), whether it may precede shipment, the platform's own reason keys (when listed, a refund's reason must be one of them), whether a comment is sent, whether the refund IS cancelling the sale (cancelsSale: Mercari, full only), whether the window closes when the order completes (untilCompleted; windowClosed = it has) and a one-line note on what the platform does not allow."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOrderRefundOptionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOrderRefundOption
  /v1/conversations:
    get:
      summary: "List buyer conversations, newest activity first. orderId: the conversation(s) about that order (same platform, its listing, its buyer). listingId: about that listing. updatedSince (ISO 8601): only threads with activity at or after it, for polling. search: contains-match on the buyer username or the subject (case-insensitive). Pair with the message.received webhook."
      tags:
        - Conversations
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: orderId
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: listingId
          required: false
        - schema:
            type: string
          in: query
          name: platform
          required: false
        - schema:
            type: string
            format: date-time
          in: query
          name: updatedSince
          required: false
        - schema:
            type: string
            minLength: 1
            maxLength: 200
          in: query
          name: search
          required: false
          description: Contains-match (case-insensitive) on the buyer username or the thread subject.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListConversationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listConversations
  /v1/conversations/{id}/messages:
    get:
      summary: "A conversation's messages, oldest first. sender is buyer | seller; a reply you sent shows deliveryStatus sending → sent | failed. since (ISO 8601): only messages sent at or after it."
      tags:
        - Conversations
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: date-time
          in: query
          name: since
          required: false
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListConversationMessagesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listConversationMessages
    post:
      summary: "Reply to the buyer, on the marketplace the conversation is on (Crossly marketplace: straight into the thread). The message is in the thread at once with deliveryStatus 'sending'; it settles to 'sent' or 'failed'. reply_not_supported when the thread cannot take a reply (a no-reply sender, a platform with no reply wire)."
      tags:
        - Conversations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateConversationMessageRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateConversationMessageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createConversationMessage
  /v1/returns/{id}/accept:
    post:
      summary: "Accept a Crossly-marketplace return request: a prepaid return label to your return address (the buyer has 14 days to ship), a return record linked to it, and optionally a refund now (refund: { amount? } in dollars; needs orders:refund). Without one, the rest is refunded when the return is delivered. Safe to repeat. Crossposted orders: not_supported_on_platform."
      tags:
        - Returns
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateReturnAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createReturnAccept
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateReturnAcceptRequest"
  /v1/returns/{id}/decline:
    post:
      summary: "Decline a Crossly-marketplace return request with a reason (required, 8-2000 chars), posted to the buyer as your response. It does not close the request: the buyer can reply or ask Crossly to decide. Not after the label is issued."
      tags:
        - Returns
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateReturnDeclineRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListReturnsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createReturnDecline
  /v1/customers/bulk-delete:
    post:
      summary: Bulk blocklist customer handles.
      tags:
        - Customers
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCustomerBulkDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCustomerBulkDelete
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCustomerBulkDeleteRequest"
  /v1/customers/{handle}/refresh-profile:
    post:
      summary: Queue a fresh read of a customer's buyer profiles on every platform they ordered on.
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCustomerRefreshProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCustomerRefreshProfile
  /v1/customers/{handle}/notes:
    get:
      summary: Your private notes on a customer (empty when none). Works before their first order.
      tags:
        - Customers
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCustomerNoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCustomerNote
    put:
      summary: Save your private notes on a customer (an empty string clears them).
      tags:
        - Customers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateCustomerNoteRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCustomerNoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateCustomerNote
  /v1/customers/bulk-export:
    post:
      summary: Bulk export aggregated customers as CSV.
      tags:
        - Customers
      responses:
        "200":
          description: A CSV file.
          content:
            text/csv:
              schema:
                type: string
                description: CSV text with a header row.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCustomerBulkExport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCustomerBulkDeleteRequest"
  /v1/sales/bulk-delete:
    post:
      summary: Bulk soft-delete sales rows.
      tags:
        - Sales
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSaleBulkDeleteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSaleBulkDelete
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingByIdRequest"
  /v1/inbox/{id}/reply:
    post:
      summary: Send a reply to a conversation thread.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxReplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInboxReply
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/BodyRequest"
  /v1/inbox/{id}/offer:
    post:
      summary: Accept, counter, or decline an offer on a conversation.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxOfferResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInboxOffer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInboxOfferRequest"
  /v1/inbox/{id}/send-offer:
    post:
      summary: Make the buyer an offer inside a conversation (seller → buyer). Only where the conversation's canSendOffer is true (Grailed today). `amount` is in the listing's currency, above 0 and below the listing price (whole dollars on Grailed). The offer is in the thread at once as a message with offerAmount + offerStatus, deliveryStatus 'sending' until the platform confirms.
      tags:
        - Inbox
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInboxSendOfferRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxSendOfferResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInboxSendOffer
  /v1/inbox/conversations/unread-count:
    get:
      summary: Unread conversation count (threads only; /v1/inbox/counts adds offers).
      tags:
        - Inbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3LaunchArtResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInboxConversationUnreadCount
  /v1/inbox/counts:
    get:
      summary: "Inbox badges: unread and needs-reply, split into conversations and offers."
      tags:
        - Inbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInboxCountResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInboxCount
  /v1/inbox/conversations/{id}/messages:
    get:
      summary: Paginated messages for a conversation.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInboxConversationMessageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInboxConversationMessage
  /v1/inbox/conversations/{id}:
    patch:
      summary: Mark read / change status / close conversation.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateInboxConversationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateInboxConversation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateInboxConversationRequest"
  /v1/inbox/conversations/{id}/offer-action:
    post:
      summary: Accept / counter / decline an active offer on a conversation.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateInboxConversationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInboxConversationOfferAction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInboxConversationOfferActionRequest"
  /v1/inbox/canned-responses:
    get:
      summary: List canned responses in the seller's order.
      tags:
        - Inbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInboxCannedResponseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getInboxCannedResponse
    post:
      summary: Create a canned response (added to the end of the list).
      tags:
        - Inbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxCannedResponseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInboxCannedResponse
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInboxCannedResponseRequest"
  /v1/inbox/canned-responses/order:
    put:
      summary: Reorder canned responses.
      tags:
        - Inbox
      description: Pass EVERY canned response id in the new order (first = top of the picker). A list with an unknown, missing or repeated id is refused with a validation error and nothing changes.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateInboxCannedResponseOrderRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetInboxCannedResponseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateInboxCannedResponseOrder
  /v1/inbox/canned-responses/{id}:
    put:
      summary: Update a canned response.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxCannedResponseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateInboxCannedResponse
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateInboxCannedResponseRequest"
    delete:
      summary: Delete a canned response.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteInboxCannedResponse
  /v1/inbox/ai-suggest:
    post:
      summary: AI reply suggestion for a conversation.
      tags:
        - Inbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxAiSuggestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInboxAiSuggest
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInboxAiSuggestRequest"
  /v1/inbox/messages/{id}/triage:
    post:
      summary: Manually re-triage a buyer message.
      tags:
        - Inbox
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxMessageTriageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInboxMessageTriage
  /v1/inbox/conversations/bulk:
    post:
      summary: Bulk mark read / mark unread / soft-delete conversations.
      tags:
        - Inbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxConversationBulkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInboxConversationBulk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInboxConversationBulkRequest"
  /v1/inbox/conversations/bulk-ai-respond:
    post:
      summary: AI reply suggestion for multiple conversations — draft or send.
      tags:
        - Inbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxConversationBulkAiRespondResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInboxConversationBulkAiRespond
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInboxConversationBulkAiRespondRequest"
  /v1/accounts/{id}:
    delete:
      summary: Disconnect a platform account.
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteAccount
  /v1/account/request-deletion:
    post:
      summary: Schedule account deletion after a grace period. Requires confirmEmail.
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAccountRequestDeletionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAccountRequestDeletion
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAccountRequestDeletionRequest"
  /v1/account/reconfirm-deletion:
    post:
      summary: Confirm again a deletion paused because the account was in use.
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAccountReconfirmDeletionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAccountReconfirmDeletion
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAccountReconfirmDeletionRequest"
  /v1/account/cancel-deletion:
    post:
      summary: Cancel a pending account deletion.
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAccountCancelDeletionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAccountCancelDeletion
  /v1/account/logout-all:
    post:
      summary: Revoke every browser auth session for this user.
      tags:
        - Account
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAccountLogoutAllResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAccountLogoutAll
  /v1/auth/sessions/sign-out:
    post:
      summary: Sign out several sessions at once.
      tags:
        - Account
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAuthSessionSignOutRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAuthSessionSignOutResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAuthSessionSignOut
  /v1/auth/sessions/{sessionId}:
    delete:
      summary: Revoke a single browser session by id.
      tags:
        - Account
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 64
          in: path
          name: sessionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SuccessResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteAuthSessionBySessionId
  /v1/platform-accounts/{platform}/connect:
    post:
      summary: Revive or initiate connection for a cookie platform.
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePlatformAccountConnectResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPlatformAccountConnect
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePlatformAccountConnectRequest"
  /v1/platform-accounts/{platform}/disconnect:
    post:
      summary: Disconnect every account of a platform (archives the rows and deletes their stored sessions).
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePlatformAccountDisconnectResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPlatformAccountDisconnect
  /v1/platform-accounts/refresh-status:
    post:
      summary: Run on-demand healthchecks across cookie accounts.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePlatformAccountRefreshStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPlatformAccountRefreshStatus
  /v1/platform-accounts/{platform}/history-import:
    post:
      summary: Set how far back to backfill order history + active listings for a platform account (or every pending account of the platform), and run it now.
      tags:
        - Accounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePlatformAccountHistoryImportRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePlatformAccountHistoryImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPlatformAccountHistoryImport
  /v1/connections/by-id/{id}:
    delete:
      summary: Disconnect a specific OAuth connection by id.
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SuccessResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteConnectionById
  /v1/platforms/{platform}/preferences:
    patch:
      summary: Update per-platform connection preferences.
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: connection_id
          required: false
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdatePlatformPreferenceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePlatformPreference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdatePlatformPreferenceRequest"
  /v1/oauth/{platform}/init:
    get:
      summary: Return the OAuth authorize URL for an API-track platform.
      tags:
        - Accounts
      description: 'Most platforms return `{ url }` (Shopify, Etsy, Amazon and the other marketplaces Atlas Connections connects: the URL Atlas returns for this seller). Bonanza adds `{ oneShot: true }`. WooCommerce requires `?siteUrl=...`. Walmart (and CardNexus before its approval link) returns `{ status: "own_credentials", connectWith, docsUrl, message }`: connect with your own keys. An own_app marketplace (GET /api/v1/platforms) needs your app saved first (PUT /api/v1/connections/own-apps/:platform), else 400 own_app_required.'
      parameters:
        - schema:
            type: string
          in: query
          name: shop
          required: false
        - schema:
            type: string
          in: query
          name: region
          required: false
        - schema:
            type: string
          in: query
          name: siteUrl
          required: false
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetOauthInitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getOauthInit
  /v1/connections/own-apps:
    get:
      summary: List the marketplaces you can connect with your own developer app, and what you've saved.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListConnectionOwnAppsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listConnectionOwnApps
  /v1/connections/own-apps/{platform}:
    put:
      summary: Save your own developer app for a marketplace (client id, secret and any required parameters).
      tags:
        - Accounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateConnectionOwnAppRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateConnectionOwnAppResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateConnectionOwnApp
    delete:
      summary: Remove your own developer app for a marketplace; the connections it authorized are switched off.
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteConnectionOwnAppResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteConnectionOwnApp
  /v1/connections/email:
    get:
      summary: List email connections (mailboxes Crossly reads marketplace email from).
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListConnectionEmailResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listConnectionEmail
  /v1/connections/email/{id}:
    get:
      summary: "One email connection: health, last scan, the marketplaces it watches and its 7-day counts."
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetConnectionEmailResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getConnectionEmail
    patch:
      summary: "Change an email connection: label, watchedPlatforms (null = every marketplace), isActive (false pauses it), or an IMAP server / username / password (the sign-in is verified first)."
      tags:
        - Accounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateConnectionEmailImapRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateConnectionEmailResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateConnectionEmail
    delete:
      summary: Disconnect an email connection.
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteConnectionEmailResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteConnectionEmail
  /v1/connections/email/{id}/emails:
    get:
      summary: "An email connection's inbox: the marketplace emails Crossly picked up from it and what it did with each, newest first. Filter by platform, type, matched/unmatched and date; page with next_cursor."
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
          in: query
          name: q
          required: false
        - schema:
            type: string
          in: query
          name: platform
          required: false
        - schema:
            type: string
            enum:
              - sale
              - offer
              - shipped
              - delist
              - label
              - message
              - cancel
              - payout
              - notice
          in: query
          name: type
          required: false
        - schema:
            type: string
            enum:
              - matched
              - unmatched
          in: query
          name: match
          required: false
        - schema:
            type: string
            format: date
          in: query
          name: from
          required: false
        - schema:
            type: string
            format: date
          in: query
          name: to
          required: false
        - schema:
            type: string
          in: query
          name: cursor
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListConnectionEmailEmailsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listConnectionEmailEmails
  /v1/connections/email/imap/{id}:
    patch:
      summary: "Change an email connection: label, watchedPlatforms (null = every marketplace), isActive (false pauses it), or an IMAP server / username / password (the sign-in is verified first)."
      tags:
        - Accounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateConnectionEmailImapRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateConnectionEmailResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateConnectionEmailImap
    delete:
      summary: Disconnect an email connection.
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteConnectionEmailResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteConnectionEmailImap
  /v1/connections/email/{id}/check:
    post:
      summary: "Check an email connection now: sign in to it live (IMAP login, or a working Gmail / Outlook token) and, when that works and it is not paused, scan it straight away. data.ok false carries a plain reason."
      tags:
        - Accounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateConnectionEmailCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createConnectionEmailCheck
  /v1/connections/email/imap:
    post:
      summary: Add an IMAP mailbox. The sign-in is verified before it is saved; most providers need an app password. watchedPlatforms picks the marketplaces it is read for (null = all).
      tags:
        - Accounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateConnectionEmailImapRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateConnectionEmailImapResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createConnectionEmailImap
  /v1/connections/email/imap/test:
    post:
      summary: Check IMAP credentials without saving them. A failure is a 400 with a plain reason.
      tags:
        - Accounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateConnectionEmailImapTestRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateConnectionEmailImapTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createConnectionEmailImapTest
  /v1/connections/cardnexus/api-key:
    post:
      summary: Connect CardNexus with a personal API key (validated live before it is stored).
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateConnectionCardnexusApiKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createConnectionCardnexusApiKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWeb3MarketplaceKeyRequest"
  /v1/connections/stores:
    get:
      summary: Your stores and which marketplace accounts each may use (its default per platform, and the store each account was connected from).
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetConnectionStoreResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getConnectionStore
  /v1/connections/stores/attach:
    post:
      summary: Let this store (X-Storefront-Id) use one of your marketplace accounts.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateConnectionStoreAttachResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createConnectionStoreAttach
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateConnectionStoreAttachRequest"
  /v1/connections/stores/detach:
    post:
      summary: Stop this store using a marketplace account. The account stays connected for your other stores.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateConnectionStoreDetachResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createConnectionStoreDetach
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateConnectionStoreAttachRequest"
  /v1/connections/stores/copy:
    post:
      summary: Let several of your stores use a marketplace account at once.
      tags:
        - Accounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateConnectionStoreCopyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createConnectionStoreCopy
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateConnectionStoreCopyRequest"
  /v1/automation/rules/{id}/toggle:
    post:
      summary: Flip an automation rule between active and inactive.
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAutomationRuleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAutomationRuleToggle
  /v1/automation/rules/{id}/run-now:
    post:
      summary: Fire an automation rule immediately.
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAutomationRuleRunNowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAutomationRuleRunNow
  /v1/automation/rules/import:
    post:
      summary: Import one or more rules from recipe JSON (single or bundle).
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: boolean
            default: false
          in: query
          name: activate
          required: false
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAutomationRuleImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAutomationRuleImport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAutomationRuleImportRequest"
  /v1/automation/rules/validate-recipe:
    post:
      summary: Dry-run validate one or more recipes against the live catalog.
      tags:
        - Automation
      description: "Deprecated: automation rules are workflows now. Use /v1/workflows."
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAutomationRuleValidateRecipeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAutomationRuleValidateRecipe
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAutomationRuleValidateRecipeRequest"
  /v1/workflow-chains/{id}/toggle:
    post:
      summary: Flip a workflow chain between active and inactive.
      tags:
        - Workflows
      description: "Deprecated: workflow chains are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowChainToggleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowChainToggle
  /v1/workflow-chains/{id}/run-now:
    post:
      summary: Enqueue an ad-hoc run of a workflow chain.
      tags:
        - Workflows
      description: "Deprecated: workflow chains are workflows now. Use /v1/workflows."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowChainRunNowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowChainRunNow
  /v1/notification-integrations/{id}:
    patch:
      summary: "Deprecated alias: edit a notification destination. Use PATCH /api/v1/webhooks/{id}."
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateNotificationIntegration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateNotificationIntegrationRequest"
    delete:
      summary: "Deprecated alias: delete a notification destination. Use DELETE /api/v1/webhooks/{id}."
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteNotificationIntegration
  /v1/notification-integrations/{id}/test:
    post:
      summary: "Deprecated alias: send a test message to a destination. Use POST /api/v1/webhooks/{id}/test."
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateNotificationIntegrationTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createNotificationIntegrationTest
  /v1/webhooks/{id}:
    patch:
      summary: "Edit a webhook: name, description, events, enabled, eventDelivery, and its destination fields (url, botToken, chatId, channel, headers). The type never changes."
      tags:
        - Webhooks
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWebhookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWebhook
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWebhookRequest"
    delete:
      summary: Delete a webhook endpoint.
      tags:
        - Webhooks
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWebhook
  /v1/webhooks/{id}/test:
    post:
      summary: 'Fire a test to one webhook: test.ping (json/zapier) or a test message (chat types), or a sample of any event (body {"event":"order.created"}, payload marked test: true).'
      tags:
        - Webhooks
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWebhookTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWebhookTest
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWebhookTestRequest"
  /v1/webhooks/{id}/rotate-secret:
    post:
      summary: Rotate the signing secret of a webhook, keeping its id, events and delivery history.
      tags:
        - Webhooks
      description: "Returns the new `secret` once. Every delivery from this moment on, retries of earlier deliveries included, is signed with it: update the receiver as soon as you have it. Only signed (json) webhooks have a secret; other types answer 400."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWebhookRotateSecretResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWebhookRotateSecret
  /v1/webhooks/{id}/deliveries/{deliveryId}/redeliver:
    post:
      summary: "Redeliver one past delivery: a new delivery (new Crossly-Delivery-Id) of the same event id and payload."
      tags:
        - Webhooks
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
            format: uuid
          in: path
          name: deliveryId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWebhookDeliveryRedeliverResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWebhookDeliveryRedeliver
  /v1/notify/actions:
    post:
      summary: "Decide a notification action from its signed token (an offer, a reprice, a label buy, a workflow approval). Single use; the token must be your own. Errors: expired (410), already decided (409)."
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateNotifyActionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createNotifyAction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TokenObject"
  /v1/orders/{id}/pack-scan:
    post:
      summary: "Check a scanned item against the order being packed: ok true with matchedBy (sku | custom_label | item_id) and expectedQuantity, or ok false with reason (wrong_item | no_item) and the expected item."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOrderPackScanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOrderPackScan
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderPackScanRequest"
  /v1/devices/scale:
    get:
      summary: "Read your USB postal scale: ok true with weightOz and stable, or ok false with reason (no_agent | not_capable | offline | failed | timeout)."
      tags:
        - Orders
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: agentId
          required: false
        - schema:
            type: integer
          in: query
          name: timeoutMs
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeviceScaleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDeviceScale
  /v1/profile/document:
    put:
      summary: Replace your profile DRAFT with a whole ProfileDocument (theme, hero, ordered sections, socials, sources, share card, privacy). Nothing public changes until you publish. Read the current draft from GET /v1/profile, change it, and send it back. A 400 lists every invalid field.
      tags:
        - Profile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateProfileDocumentRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateProfileDocumentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateProfileDocument
  /v1/profile/publish:
    post:
      summary: "Publish the draft: crossly.net/seller/<handle>, its share cards and link previews switch to it, and a version is kept (label optional, up to 80 characters)."
      tags:
        - Profile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProfilePublishRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProfilePublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProfilePublish
  /v1/profile/share-cards:
    post:
      summary: "Make a share card for your profile, one stat (ref.key + ref.timeframe) or one earned milestone (ref.key). Returns pageUrl (the link to post: Discord, X and iMessage unfurl it with the card), imageUrl (the 1200x630 PNG) and discordText (a ready line ending in the link). A stat you do not show, or a milestone you have not earned, is a 404. settings overrides the card design (template, background, accent…)."
      tags:
        - Profile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProfileShareCardRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProfileShareCardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProfileShareCard
  /v1/profile/milestones/{key}/celebrate:
    post:
      summary: 'Celebrate an earned milestone with a storefront code: percentOff (default 10) off, ending hours (default 48) from now, with a storefront banner (bannerText, default like "We just hit 1,000 sales"). One code per milestone: a second call returns the same code (200, existing: true). A milestone you have not earned is a 404.'
      tags:
        - Profile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProfileMilestoneCelebrateRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProfileMilestoneCelebrateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProfileMilestoneCelebrate
  /v1/ai/key:
    put:
      summary: Save a BYO-key for an AI provider on the store and make it the store's default.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SuccessResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateAiKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateAiKeyRequest"
    delete:
      summary: Remove the store's BYO-key for a provider.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SuccessResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteAiKey
      parameters:
        - name: provider
          in: query
          required: false
          schema:
            type: string
            enum:
              - custom
              - openai
              - anthropic
              - google
              - groq
              - openrouter
              - xai
              - together
  /v1/ai/test-key:
    post:
      summary: Live-ping a candidate BYO-key.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiTestKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiTestKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateAiKeyRequest"
  /v1/ai/enhance-title:
    post:
      summary: SEO-rewrite a listing title.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiEnhanceTitleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiEnhanceTitle
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiEnhanceTitleRequest"
  /v1/ai/enhance-description:
    post:
      summary: SEO-rewrite a listing description.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiEnhanceDescriptionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiEnhanceDescription
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiEnhanceDescriptionRequest"
  /v1/ai/enhance-listing:
    post:
      summary: Rewrite title + description + tags in one call.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiEnhanceListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiEnhanceListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiEnhanceListingRequest"
  /v1/ai/extract-receipt:
    post:
      summary: Structured data extraction from a receipt photo.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiExtractReceiptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiExtractReceipt
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiExtractReceiptRequest"
  /v1/ai/generate-listing:
    post:
      summary: Generate full listing fields from up to 4 image URLs.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiMagicListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiGenerateListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiGenerateListingRequest"
  /v1/ai/magic-listing:
    post:
      summary: Generate full listing fields from base64 photos.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiMagicListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiMagicListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiMagicListingRequest"
  /v1/ai/categorize:
    post:
      summary: Taxonomy guess from a single image URL.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiCategorizeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiCategorize
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiCategorizeRequest"
  /v1/ai/categorize-from-image:
    post:
      summary: Taxonomy guess from a single base64 image.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiCategorizeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiCategorizeFromImage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiExtractReceiptRequest"
  /v1/ai/help:
    post:
      summary: In-app help Q&A grounded in supplied docs.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiHelpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiHelp
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiHelpRequest"
  /v1/ai/copy:
    post:
      summary: Draft store copy (ads, branding, policy wording, lookbook copy) from the facts you give, on your AI key.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiCopyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiCopy
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiCopyRequest"
  /v1/ai/keys:
    get:
      summary: The store's AI provider keys with their scopes and priority (never the key).
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAiKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAiKey
    post:
      summary: Connect an AI provider key to the store, with scopes and priority.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiKey
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiKeyRequest"
  /v1/ai/keys/test:
    post:
      summary: Test an AI provider key before saving it.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiKeyTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiKeyTest
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAiKeyTestRequest"
  /v1/ai/keys/{id}:
    patch:
      summary: "Edit an AI key: replace it, rename it, or change its scopes, priority and models."
      tags:
        - AI
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateAiKeyById
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateAiKeyByIdRequest"
    delete:
      summary: Disconnect an AI provider key.
      tags:
        - AI
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SuccessResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteAiKeyById
  /v1/ai/keys/{id}/test:
    post:
      summary: Re-test a saved AI key.
      tags:
        - AI
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiKeyTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiKeyTestById
  /v1/ai/routing:
    get:
      summary: Which AI provider serves each feature of the store, in order, and whether it is on.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAiRoutingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAiRouting
  /v1/ai/routing/{scope}:
    put:
      summary: Set one AI feature's provider chain, model or on/off.
      tags:
        - AI
      parameters:
        - schema:
            type: string
          in: path
          name: scope
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateAiRoutingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateAiRouting
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateAiRoutingRequest"
  /v1/integrations:
    get:
      summary: Every connected integration of the store (AI, CRM, email senders, design apps) as uniform rows.
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetIntegrationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getIntegration
  /v1/listings/ai-image/prompt:
    post:
      summary: Build the AI product-photo prompt for a listing (no image is generated).
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingAiImagePromptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingAiImagePrompt
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingAiImagePromptRequest"
  /v1/listings/ai-image:
    post:
      summary: Generate a listing photo with the caller's own image-provider key; the result is marked AI-generated.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingAiImageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingAiImage
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingAiImageRequest"
  /v1/ai/image-config:
    put:
      summary: Choose the AI image provider/model, independently of the text provider.
      tags:
        - AI
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateAiImageConfigResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateAiImageConfig
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateAiImageConfigRequest"
  /v1/video-studio/upload-url:
    post:
      summary: Presign an R2 PUT (video/mp4, 15 min) for a listing video; finalize it after the upload.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVideoStudioUploadUrlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVideoStudioUploadUrl
  /v1/video-studio/finalize:
    post:
      summary: Check an uploaded listing video (exists, MP4, size) and, with listingId, set it as that listing's video.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVideoStudioFinalizeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVideoStudioFinalize
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVideoStudioFinalizeRequest"
  /v1/listings/{id}/ai-detections:
    get:
      summary: Crossly's AI-image detections for a listing's photos.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingAiDetectionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listListingAiDetections
  /v1/ai-detections/{id}/dispute:
    post:
      summary: Dispute an AI-image detection on your photo (sends it to Crossly review).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAiDetectionDisputeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAiDetectionDispute
  /v1/me/templates/{id}/share:
    post:
      summary: Mint or return an existing share token for a template.
      tags:
        - Templates
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TokenObject"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMeTemplateShare
    delete:
      summary: Revoke a template share link.
      tags:
        - Templates
      description: Clears the share token, so the public link stops resolving. The template itself is untouched. Sharing again mints a NEW token — the old link is dead for good, which is the point of revoking.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SuccessResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteMeTemplateShare
  /v1/me/templates/{id}/render:
    post:
      summary: Render a template's title + description against a context.
      tags:
        - Templates
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMeTemplateRenderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMeTemplateRender
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMeTemplateRenderRequest"
  /v1/me/templates/import:
    post:
      summary: Bulk-create templates from an exported payload.
      tags:
        - Templates
      description: Accepts one template object or an array of them. Entries that fail validation are SKIPPED rather than failing the batch — an import is usually someone else's export, and rejecting fifty good templates over one bad row helps nobody. The response reports how many landed, so a short count is visible rather than silent.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMeTemplateImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMeTemplateImport
  /v1/imports/sites:
    get:
      summary: Which sites (eBay marketplaces) an account's listings are on, with counts — to choose what an import brings in.
      tags:
        - Imports
      parameters:
        - schema:
            type: string
          in: query
          name: platform
          required: false
          description: Default ebay.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetImportSiteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getImportSite
  /v1/catalog-matches/{id}/confirm:
    post:
      summary: "Confirm a catalog-match suggestion: links the item to the catalog product (sets its market_sku_id), so sold comps and market pricing apply to it."
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCatalogMatchConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCatalogMatchConfirm
  /v1/catalog-matches/{id}/dismiss:
    post:
      summary: Dismiss a catalog-match suggestion. That product is never suggested for this item again.
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCatalogMatchConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCatalogMatchDismiss
  /v1/inventory/{id}/catalog-matches/refresh:
    post:
      summary: Run catalog matching for one item now. An identifier (UPC, style code, catalogue number) that resolves to exactly one product links it; otherwise likely products are returned as suggestions to confirm.
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInventoryCatalogMatchRefreshResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createInventoryCatalogMatchRefresh
  /v1/assignees:
    get:
      summary: The teammates work can be assigned to (active seats; isMe marks yours).
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAssigneeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAssignee
  /v1/listings/assignee:
    patch:
      summary: Assign many listings to a teammate, round robin across several, or unassign them (null).
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateOrderAssigneeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateListingAssignee
  /v1/listings/{id}/assignee:
    patch:
      summary: Assign one listing to a teammate, or unassign it (null).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateOrderAssigneeByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateListingAssigneeById
  /v1/inventory/assignee:
    patch:
      summary: Assign many inventory items to a teammate, round robin across several, or unassign them (null).
      tags:
        - Inventory
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateOrderAssigneeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateInventoryAssignee
  /v1/inventory/{id}/assignee:
    patch:
      summary: Assign one inventory item to a teammate, or unassign it (null).
      tags:
        - Inventory
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateOrderAssigneeByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateInventoryAssigneeById
  /v1/orders/assignee:
    patch:
      summary: Assign many orders to a teammate, round robin across several, or unassign them (null).
      tags:
        - Orders
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateOrderAssigneeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateOrderAssignee
  /v1/orders/{id}/assignee:
    patch:
      summary: Assign one order to a teammate, or unassign it (null).
      tags:
        - Orders
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateOrderAssigneeByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateOrderAssigneeById
  /v1/returns/assignee:
    patch:
      summary: Assign many returns to a teammate, round robin across several, or unassign them (null).
      tags:
        - Returns
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateOrderAssigneeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateReturnAssignee
  /v1/returns/{id}/assignee:
    patch:
      summary: Assign one return to a teammate, or unassign it (null).
      tags:
        - Returns
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateOrderAssigneeByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateReturnAssigneeById
  /v1/magic/scan:
    post:
      summary: Run a Magic List image scan. Optional matchMode (off | auto | review_all) sets this scan's automated matching; omitted = your remembered default.
      tags:
        - Magic
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMagicScanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMagicScan
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMagicScanRequest"
  /v1/magic/scan/{runId}/synthesize:
    post:
      summary: Synthesize a draft from confirmed matches.
      tags:
        - Magic
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: runId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMagicScanSynthesizeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMagicScanSynthesize
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMagicScanSynthesizeRequest"
  /v1/magic/auto/runs/{runId}:
    post:
      summary: Score a Magic List run automatically; a confident match in auto mode becomes a draft.
      tags:
        - Magic
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: runId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMagicAutoRunResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMagicAutoRun
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMagicAutoRunRequest"
  /v1/magic/auto/items:
    post:
      summary: Scan one item and match it automatically (drafts only, never publishes).
      tags:
        - Magic
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMagicAutoItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMagicAutoItem
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMagicAutoItemRequest"
  /v1/magic/auto/runs/{runId}/swipes:
    post:
      summary: Record a seller swipe session (kept and rejected match keys) for a Magic List run.
      tags:
        - Magic
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: runId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMagicAutoRunSwipeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMagicAutoRunSwipe
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMagicAutoRunSwipeRequest"
  /v1/magic/auto/decisions/{decisionId}/undo:
    post:
      summary: Undo an automated Magic List decision, deleting its unpublished draft.
      tags:
        - Magic
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: decisionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMagicAutoDecisionUndoResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMagicAutoDecisionUndo
  /v1/comp-watchlists/{id}:
    delete:
      summary: Delete a sold-comp watchlist.
      tags:
        - CompWatchlists
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteCompWatchlist
  /v1/comp-watchlists/{id}/scrape:
    post:
      summary: Manually trigger a watchlist scrape.
      tags:
        - CompWatchlists
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCompWatchlistScrapeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCompWatchlistScrape
  /v1/restock-prompts/{id}/dismiss:
    post:
      summary: Dismiss a pending restock prompt.
      tags:
        - RestockPrompts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRestockPromptDismiss
  /v1/restock-prompts/{id}/republish:
    post:
      summary: Republish a restock prompt to platforms.
      tags:
        - RestockPrompts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateRestockPromptRepublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createRestockPromptRepublish
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateRestockPromptRepublishRequest"
  /v1/saved-views/{id}:
    patch:
      summary: Update a saved view preset.
      tags:
        - SavedViews
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSavedViewsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSavedView
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSavedViewRequest"
    delete:
      summary: Delete a saved view preset.
      tags:
        - SavedViews
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteSavedView
  /v1/pat/{id}:
    delete:
      summary: Revoke a PAT by id.
      tags:
        - PAT
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deletePat
  /v1/mileage/{id}:
    patch:
      summary: Update a mileage entry.
      tags:
        - Tax
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateMileageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateMileage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateMileageRequest"
    delete:
      summary: Delete a mileage entry.
      tags:
        - Tax
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteMileage
  /v1/analytics/experiments/{id}/stop:
    post:
      summary: "Stop an experiment: no more data is counted after now."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: The experiment id (a uuid; any other id is a 404).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AnalyticExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAnalyticExperimentStop
  /v1/analytics/experiments/{id}/declare:
    post:
      summary: "Record the outcome: a winning arm, no difference, or inconclusive. Concludes the experiment."
      tags:
        - Analytics
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: The experiment id (a uuid; any other id is a 404).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AnalyticExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAnalyticExperimentDeclare
  /v1/books/expenses/{id}:
    patch:
      summary: Change a logged expense.
      tags:
        - Books
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: The expense id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBookExpenseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBookExpense
    delete:
      summary: Delete a logged expense. It leaves the P&L and the exports.
      tags:
        - Books
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: The expense id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteStoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteBookExpense
  /v1/mobile/push-token:
    post:
      summary: Register an Expo push token for this user.
      tags:
        - Mobile
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMobilePushToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMobilePushTokenRequest"
  /v1/mobile/push-test:
    post:
      summary: Fire a no-op test push to this user's devices.
      tags:
        - Mobile
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createMobilePushTest
  /v1/team/invite:
    post:
      summary: Issue a team invitation; returns the one-time accept URL (nothing is emailed).
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTeamInvite2Response"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTeamInvite2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTeamInvite2Request"
  /v1/team/accept:
    post:
      summary: Accept a team invitation by the raw token from its link.
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTeamAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTeamAccept
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TokenObject"
  /v1/team/revoke:
    post:
      summary: Revoke a pending invite OR an active team member.
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTeamRevokeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTeamRevoke
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTeamRevokeRequest"
  /v1/team/leave:
    post:
      summary: Leave every team this user is currently a member of.
      tags:
        - Team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTeamLeaveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTeamLeave
  /v1/team/{memberId}:
    patch:
      summary: Update a team member's scopes (owner only).
      tags:
        - Team
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: memberId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateTeam
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateTeamRequest"
  /v1/team/members/{id}/stores:
    post:
      summary: Add a team member to a store with its permissions.
      tags:
        - Team
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TeamMemberStoreResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTeamMemberStore
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTeamMemberStoreRequest"
  /v1/offers/{id}/respond:
    post:
      summary: "Accept, decline, or counter a buyer offer on a Crossly marketplace listing. The response carries floorCents and floorSource (listing | item | break_even | null): your floor for that listing, null for a bundle."
      tags:
        - Offers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOfferRespondRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Offer UUID.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOfferRespondResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createOfferRespond
  /v1/trade-block/posts/{id}/close:
    post:
      summary: Close one of your posts so it stops taking offers.
      tags:
        - Trade Block
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTradeBlockPostClose
  /v1/trade-block/posts/{id}/offers:
    post:
      summary: "Respond to a post with a concrete swap: items on each side (0..N), optional cash."
      tags:
        - Trade Block
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTradeBlockPostOffer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTradeBlockPostOfferRequest"
  /v1/trade-block/offers/{id}/respond:
    post:
      summary: Accept, decline, counter, or withdraw a Trade Block offer.
      tags:
        - Trade Block
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTradeBlockOfferRespondResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTradeBlockOfferRespond
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTradeBlockOfferRespondRequest"
  /v1/trade-block/evolutions/{id}/claim:
    post:
      summary: Burn COSM and mint the evolved (or set-master) NFT for one of your unlocks.
      tags:
        - Trade Block
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTradeBlockEvolutionClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTradeBlockEvolutionClaim
  /v1/trade-block/evolution-recipes:
    post:
      summary: Author a Trade Evolution recipe (a graded item or pair that, when swapped, unlocks a cosmetic you designed). Born unreviewed until ops approves.
      tags:
        - Trade Block
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTradeBlockEvolutionRecipeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTradeBlockEvolutionRecipe
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTradeBlockEvolutionRecipeRequest"
  /v1/trade-block/set-recipes:
    post:
      summary: Author a set-completion recipe (a set of items that, once assembled through trading, unlocks a set-master cosmetic you designed). Born unreviewed until ops approves.
      tags:
        - Trade Block
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTradeBlockSetRecipeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTradeBlockSetRecipe
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTradeBlockSetRecipeRequest"
  /v1/production/candidates/{id}/vote:
    post:
      summary: "Back (support: true) or un-back a design on the production ballot. One vote per person per design; voters must have bought on Crossly."
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProductionCandidateVoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductionCandidateVote
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductionCandidateVoteRequest"
  /v1/receipts/{id}/relist:
    post:
      summary: "Sell it again: a draft listing of something you bought on Crossly, carrying its purchase receipt so the next buyer inherits its provenance."
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateReceiptRelistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createReceiptRelist
  /v1/production/candidates/{id}/accept:
    post:
      summary: Accept a graduated design's production terms (edition size, cost, holder access).
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProductionCandidateAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductionCandidateAccept
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductionCandidateAcceptRequest"
  /v1/production/runs/{id}/purchase:
    post:
      summary: Buy a limited-edition unit of a physical run (holder pricing applies).
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProductionRunPurchaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductionRunPurchase
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductionRunPurchaseRequest"
  /v1/production/estimate:
    post:
      summary: Estimate a run's landed cost from a spec + edition size (overshoots for safety).
      tags:
        - Production
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProductionEstimateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductionEstimate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductionEstimateRequest"
  /v1/production/designs/{cosmeticId}/spec:
    post:
      summary: Set a design's production spec (category, materials, complexity, packaging).
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: cosmeticId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProductionDesignSpecResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductionDesignSpec
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductionDesignSpecRequest"
  /v1/production/designs/{cosmeticId}/brief:
    post:
      summary: Set a design's production brief (materials, finish, box, reference images).
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: cosmeticId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProductionDesignSpecResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductionDesignBrief
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductionDesignBriefRequest"
  /v1/production/designs/{cosmeticId}/consent:
    post:
      summary: Opt a design in or out of physical production.
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: cosmeticId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProductionDesignSpecResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductionDesignConsent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductionDesignConsentRequest"
  /v1/production/candidates/{id}/po:
    post:
      summary: "Ops: open a purchase order for a candidate. Admin PAT only."
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateProductionPoResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductionCandidatePo
  /v1/production/pos/{poId}:
    patch:
      summary: "Ops: update a PO (supplier, freight, actuals, QC, status). Admin PAT only."
      tags:
        - Production
      parameters:
        - schema:
            type: string
          in: path
          name: poId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateProductionPoResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateProductionPo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateProductionPoRequest"
  /v1/grading/runs/{id}/reserve:
    post:
      summary: Hold a slot in a Grading Run. Free now; charged on your saved card only if the run locks. Full-access token and Idempotency-Key required.
      tags:
        - Grading
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGradingRunReserve
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGradingRunReserveRequest"
  /v1/grading/submissions/{id}/cancel:
    post:
      summary: Pull a reserved card out of its run. Only while it is reserved; nothing was charged.
      tags:
        - Grading
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGradingSubmissionCancel
  /v1/grading/submissions/{id}/shipped:
    post:
      summary: Say you mailed a charged card to the hub, with optional tracking.
      tags:
        - Grading
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGradingSubmissionShipped
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGradingSubmissionShippedRequest"
  /v1/grading/verify-cert:
    post:
      summary: Look a cert number up with its grader. found=false when the grader has no record.
      tags:
        - Grading
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateGradingVerifyCertResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGradingVerifyCert
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGradingVerifyCertRequest"
  /v1/stalls/book:
    post:
      summary: 'Book and pay for a pop-up stall: { street, spotIndex, rail, unit: "day", startDate, days } or { ..., unit: "event", eventIds }, optional booth { canopy, pattern, lights, counter, piece } (premium values need holding; checked before paying). Paid up front; full-access token and Idempotency-Key required.'
      tags:
        - Stalls
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStallBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStallBook
  /v1/stalls/bookings/{id}:
    patch:
      summary: "Change a booked stall before or while it is up: listingIds (up to 6 of your live listings), awning { colour, pattern }, booth { canopy, pattern, lights, counter, piece } (premium values need holding), sign, attendant."
      tags:
        - Stalls
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStallBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStallBooking
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateStallBookingRequest"
  /v1/stalls/bookings/{id}/cancel:
    post:
      summary: "Cancel a stall before it opens: a full refund on the rail it was paid on. Final once it has opened."
      tags:
        - Stalls
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStallBookingCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStallBookingCancel
  /v1/drops:
    post:
      summary: 'Set up a drop: { title, listingIds (1-10 of your live Crossly listings), units (at most their stock), opensLineAt, releaseAt (ISO), eligibility: "signed_in" | "verified" }. The line opens at opensLineAt with a published seed commitment; the draw runs at releaseAt.'
      tags:
        - Drops
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDrop
  /v1/nft-market/listings/{id}/cancel:
    post:
      summary: Cancel one of your open NFT listings.
      tags:
        - NFT Market
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createNftMarketListingCancel
  /v1/nft-market/listings/{id}/confirm-sale:
    post:
      summary: "Ops: record a finalized on-Crossly NFT sale (verifies the royalty landed, funds the pot). Admin PAT only."
      tags:
        - NFT Market
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createNftMarketListingConfirmSale
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateNftMarketListingConfirmSaleRequest"
  /v1/nft-market/external-resale:
    post:
      summary: "Ops: record a Crossly NFT resold on ANY marketplace — maps mint → design and funds the pot. Admin PAT only."
      tags:
        - NFT Market
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateNftMarketExternalResaleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createNftMarketExternalResale
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateNftMarketExternalResaleRequest"
  /v1/web3/wallets/challenge:
    post:
      summary: "Start linking a wallet: returns the message the wallet must sign."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3WalletChallengeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3WalletChallenge
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3WalletChallengeRequest"
  /v1/web3/wallets/verify:
    post:
      summary: Finish linking a wallet with its signature over the challenge message.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3WalletVerifyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3WalletVerify
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3WalletVerifyRequest"
  /v1/web3/wallets/{id}/sync:
    post:
      summary: Import a linked wallet's NFTs into inventory; archives ones that have left the wallet.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3WalletSyncResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3WalletSync
  /v1/web3/wallets/{id}:
    delete:
      summary: Unlink a wallet. Its NFTs stay in inventory but stop syncing.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWeb3Wallet
    patch:
      summary: "Change a linked wallet: `autoImport` (a sync adds new NFTs to inventory; off, it only refreshes the ones there) and `label`."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWeb3WalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWeb3Wallet
  /v1/web3/orders/{chain}/{hash}/cancel:
    post:
      summary: Take one of your orders out of the Crossly book.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: hash
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3OrderCancel
  /v1/web3/orders/{chain}/{hash}/fulfillment:
    get:
      summary: The signed order a taker passes to Seaport, after re-checking it can still fill.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: hash
          required: true
        - name: tokenId
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3OrderFulfillmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3OrderFulfillment
  /v1/web3/orders/fulfillment-batch:
    post:
      summary: Fulfilments for sweeping several listings in one Seaport transaction; unfillable ones are skipped with a reason.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3OrderFulfillmentBatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3OrderFulfillmentBatch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3OrderFulfillmentBatchRequest"
  /v1/web3/transactions:
    post:
      summary: Apply a Seaport transaction's fills and cancels to the Crossly book (read from the receipt).
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3TransactionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3Transaction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3TransactionRequest"
  /v1/web3/crosslist:
    post:
      summary: Submit signed Seaport listings for several marketplaces at once (crossly, opensea); results per marketplace.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3CrosslistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3Crosslist
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3CrosslistRequest"
  /v1/web3/solana/{marketplace}/list-tx:
    post:
      summary: Build an unsigned listing transaction on the Crossly book, Tensor or Magic Eden for a Solana NFT in your linked wallet.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            enum:
              - crossly
              - tensor
              - magic_eden
          in: path
          name: marketplace
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaListTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaListTx
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaListTxRequest"
  /v1/web3/solana/{marketplace}/listings:
    post:
      summary: Record a Crossly-book, Tensor or Magic Eden listing your wallet sent (read back from the chain first).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            enum:
              - crossly
              - tensor
              - magic_eden
          in: path
          name: marketplace
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OrderHashResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaListingRequest"
  /v1/web3/solana/orders/{hash}/delist-tx:
    post:
      summary: Build the unsigned transaction that takes your Solana listing down.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: hash
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaListTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaOrderDelistTx
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaOfferCancelTxRequest"
  /v1/web3/solana/orders/{hash}/buy-tx:
    post:
      summary: Build the unsigned transaction that buys a Solana listing (price capped at the listed price).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: hash
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaOrderBuyTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaOrderBuyTx
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaOrderBuyTxRequest"
  /v1/web3/solana/orders/{hash}/confirm:
    post:
      summary: Apply a sent Solana buy or delist to the book (the transaction is read back from the chain).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: hash
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaOfferConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaOrderConfirm
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaOrderConfirmRequest"
  /v1/web3/rarible/draft:
    post:
      summary: "Draft a Rarible V2 listing for an NFT in your linked wallet: the EIP-712 order to sign and whether Rarible's transfer proxy is approved."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3RaribleDraftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3RaribleDraft
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3RaribleDraftRequest"
  /v1/web3/rarible/listings:
    post:
      summary: "Submit a signed Rarible V2 listing: the signature is verified, then the order is posted to Rarible and recorded."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OrderHashResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3RaribleListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3RaribleListingRequest"
  /v1/web3/marketplace-keys:
    get:
      summary: Your own marketplace API keys (last four characters only) and whether Crossly's key covers each marketplace.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3MarketplaceKeysResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3MarketplaceKeys
  /v1/web3/marketplace-keys/{marketplace}:
    put:
      summary: Save your own API key for a marketplace (checked against the marketplace first where it can be); stored encrypted.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            enum:
              - opensea
              - tensor
              - magic_eden
              - rarible
          in: path
          name: marketplace
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3MarketplaceKeysItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWeb3MarketplaceKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWeb3MarketplaceKeyRequest"
    delete:
      summary: Remove your own key for a marketplace; Crossly's key is used again.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            enum:
              - opensea
              - tensor
              - magic_eden
              - rarible
          in: path
          name: marketplace
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWeb3MarketplaceKey
  /v1/web3/store-wallets:
    get:
      summary: List the store's selling wallets (X-Storefront-Id; default store when omitted).
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3StoreWalletsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3StoreWallets
    post:
      summary: Link one of your verified wallets to the store so it sells NFTs from it and is paid into it.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3StoreWalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3StoreWallet
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3StoreWalletRequest"
  /v1/web3/store-wallets/balances:
    get:
      summary: The native-coin balance (SOL, ETH, POL, …) of each of the store's selling wallets, read on chain.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3StoreWalletBalancesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3StoreWalletBalances
  /v1/web3/store-wallets/nfts:
    get:
      summary: "The store's Crossly NFTs: plots (deeds and leases), streets its owner founded and vault receipt tokens in its wallets, with the wallets a plot purchase and a receipt export use."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3StoreWalletNftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3StoreWalletNft
  /v1/web3/store-wallets/challenge:
    post:
      summary: "Start adding a selling wallet to the store: the message the wallet signs."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3WalletChallengeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3StoreWalletChallenge
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3WalletChallengeRequest"
  /v1/web3/store-wallets/verify:
    post:
      summary: "Finish adding a selling wallet: verify its signature and link it to the store."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3StoreWalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3StoreWalletVerify
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3StoreWalletVerifyRequest"
  /v1/web3/store-wallets/{walletId}/default:
    put:
      summary: Make a linked wallet the store's default selling wallet on its network (EVM or Solana).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: walletId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3StoreWalletsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWeb3StoreWalletDefault
  /v1/web3/store-wallets/marketplaces:
    get:
      summary: "Each NFT marketplace's status for this store: Live only with a usable API key AND a verified store wallet of its network switched on for it. `keyMode` is `crossly` (Crossly's key, nothing to set up) or `own_key` (connect your own key)."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3StoreWalletMarketplacesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3StoreWalletMarketplaces
  /v1/web3/store-wallets/{walletId}/marketplaces/{marketplace}:
    put:
      summary: "Switch one NFT marketplace (opensea, rarible on EVM; magic_eden, tensor on Solana) on or off for a store wallet: `{ enabled }`."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: walletId
          required: true
        - schema:
            type: string
            enum:
              - opensea
              - rarible
              - magic_eden
              - tensor
          in: path
          name: marketplace
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWeb3StoreWalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWeb3StoreWalletMarketplace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnabledRequest"
  /v1/web3/store-wallets/{walletId}:
    delete:
      summary: Stop the store selling from a wallet (the wallet and its other stores are unaffected).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: walletId
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWeb3StoreWallet
    patch:
      summary: Turn on or off whether syncing this store wallet adds new NFTs to the store’s inventory (X-Storefront-Id).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: walletId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWeb3StoreWalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWeb3StoreWallet
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWeb3StoreWalletRequest"
  /v1/web3/store-wallets/{walletId}/sync:
    post:
      summary: "Sync a store wallet: refresh its NFTs in inventory; new ones are added when the store's link auto-imports."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: walletId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3StoreWalletSyncResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3StoreWalletSync
  /v1/web3/store-wallets/{walletId}/holdings:
    get:
      summary: What a store wallet holds (chain + contract + token id), each marked in-inventory or not.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: walletId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3WalletHoldingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3StoreWalletHolding
  /v1/web3/store-wallets/{walletId}/import:
    post:
      summary: "Add picked NFTs (`tokens: [{ chain, contract, tokenId }]`) from a store wallet to inventory."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: walletId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3WalletImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3StoreWalletImport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3StoreWalletImportRequest"
  /v1/wallet/defaults:
    get:
      summary: Your default wallet per purpose (royalties, deploys, drops, game rewards, staking, CBX withdrawals), with per-collection and per-game overrides and what each resolves to today.
      tags:
        - Wallet
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWalletDefaults
    put:
      summary: 'Set the default wallet for a purpose, or an override for one collection (`ref: { kind: "collection", chain, contract }`) or game (`ref: { kind: "game", experienceId }`). The wallet must be yours, verified, and on a network the purpose accepts.'
      tags:
        - Wallet
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWalletDefault
    delete:
      summary: Clear a default (the purpose falls back to your only wallet, or none) or one override (`refKind` + `refKey`).
      tags:
        - Wallet
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWalletDefault
  /v1/web3/launches/{id}/perks:
    get:
      summary: The perks holders of this launch’s collection get (percent off your shop, early drop access, a World item, a loyalty tier, live early entry, an event ticket).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3LaunchPerksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3LaunchPerks
    put:
      summary: "Replace a launch’s collection perks: `{ perks: [{ config: { type, ... }, active }] }`, one per type; a type left out is removed."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3LaunchPerksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWeb3LaunchPerk
    delete:
      summary: Remove every collection perk of a launch. Returns `{ ok }`.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWeb3LaunchPerk
  /v1/discounts/holders:
    get:
      summary: "The store’s Collection holders deals: a percent off for buyers holding any token of a collection (by chain + contract), with scope, channels, schedule, stacking and limits."
      tags:
        - Discounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDiscountHoldersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDiscountHolders
    post:
      summary: Create a Collection holders deal in the store (X-Storefront-Id; default store when omitted).
      tags:
        - Discounts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDiscountHolderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDiscountHolder
  /v1/discounts/holders/{id}:
    get:
      summary: One Collection holders deal with its usage (uses, cents given).
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDiscountHolderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDiscountHolder
    put:
      summary: Replace a Collection holders deal.
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDiscountHolderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDiscountHolder
    delete:
      summary: Delete a Collection holders deal. Returns `{ ok }`.
      tags:
        - Discounts
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteDiscountHolder
  /v1/web3/watchlist:
    get:
      summary: Your favourited NFTs, with the cheapest open Crossly listing and the last sale of each.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3WatchlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Watchlist
  /v1/web3/favorites:
    post:
      summary: Favourite an NFT, or unfavourite it if it already is. Returns `{ favorited }`.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3FavoriteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3Favorite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3FavoriteRequest"
  /v1/web3/alerts:
    get:
      summary: Your NFT price alerts, with the cheapest open Crossly listing each one covers now.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3AlertsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Alerts
    post:
      summary: "Set a price alert on a token, or on a whole collection without tokenId: you are notified when one is listed at or below `price` (the chain's native coin). Setting it again moves the price."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3Alert
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3AlertRequest"
  /v1/web3/alerts/{id}:
    delete:
      summary: Delete a price alert.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWeb3Alert
  /v1/web3/auctions:
    get:
      summary: Live English auctions on the Crossly book, ending soonest first, each with its top bid and the least the next bid can be.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3AuctionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Auctions
      parameters:
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: limit
          in: query
          required: false
          schema:
            type: number
    post:
      summary: "Start an English auction on a token in your linked wallet: `reserve` is the opening bid in the chain's native coin, `hours` its length (1–720). Bids must rise 5%; a late bid extends the end by 10 minutes."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3AuctionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3Auction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3AuctionRequest"
  /v1/web3/auctions/{chain}/{contract}/{tokenId}:
    get:
      summary: "A token's live (or latest) auction: reserve, end, top bid, bid count and the minimum next bid."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
        - schema:
            type: string
          in: path
          name: tokenId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3AuctionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Auction
  /v1/web3/bundles:
    get:
      summary: Open bundle listings (2–30 NFTs for one price), newest first, by chain or by a contract any item is from.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3BundlesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Bundles
      parameters:
        - name: chain
          in: query
          required: false
          schema:
            type: string
            enum:
              - ethereum
              - base
              - polygon
              - arbitrum
              - optimism
              - solana
        - name: contract
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/web3/reserved:
    get:
      summary: Private listings reserved for one of your linked wallets — only you can see or buy them.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3BundlesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Reserved
  /v1/web3/auctions/{id}/cancel:
    post:
      summary: Call off your auction while it has no bids.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3AuctionCancel
  /v1/web3/drops:
    get:
      summary: Upcoming and live NFT drops (curated mints on the creator's own page), soonest first, with whether you asked to be reminded.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3DropsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Drops
  /v1/web3/drops/{id}/remind:
    post:
      summary: Turn the 15-minute reminder for a drop on, or off if it already is. Returns `{ remindMe }`.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3DropRemindResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3DropRemind
  /v1/web3/tokens/{chain}/{contract}/{tokenId}/refresh:
    post:
      summary: Re-read a token's metadata from the chain's provider (name, traits, image — a new image is copied to Crossly's CDN). Once per token per 10 minutes.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
        - schema:
            type: string
          in: path
          name: tokenId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3TokenRefreshResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3TokenRefresh
  /v1/web3/launches:
    get:
      summary: Your launchpad collections (drafts and live), newest first, with minted count and phase.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3LaunchesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3Launches
    post:
      summary: "Draft a launchpad collection: name, symbol, supply, mint price (wei of the chain’s native currency), schedule, optional holder phase and royalty. Crossly takes 5% of each mint inside the contract."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3LaunchesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3Launch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3LaunchRequest"
  /v1/web3/launches/{id}/deploy-tx:
    get:
      summary: "The contract-creation transaction for the draft: send it from the owner wallet, then confirm it. Returns `{ chain, from, data }`."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3LaunchDeployTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3LaunchDeployTx
  /v1/web3/launches/{id}/confirm-deploy:
    post:
      summary: "Confirm a sent deploy transaction: the contract must be the Crossly launch contract with this draft’s settings; it then goes live."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3LaunchesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3LaunchConfirmDeploy
  /v1/web3/launches/{id}:
    delete:
      summary: Delete a launch draft that never went live. Returns `{ ok }`.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWeb3Launch
    patch:
      summary: "Edit a launch draft (or a failed deploy) before it deploys: any creation field except chain and owner. The schedule is re-checked; 409 once live."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWeb3LaunchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWeb3Launch
  /v1/web3/holder-perks:
    get:
      summary: "DEPRECATED: use /api/v1/discounts/holders. Your Collection holders deals in the old holder-perk shape, best first."
      tags:
        - Web3
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3HolderPerksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3HolderPerks
    put:
      summary: "DEPRECATED: use /api/v1/discounts/holders. Set the percent off (100–5000 bps) holders of a collection get in your store (the key’s store, else the default); one per collection."
      tags:
        - Web3
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWeb3HolderPerkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWeb3HolderPerk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWeb3HolderPerkRequest"
  /v1/web3/holder-perks/{id}:
    delete:
      summary: "DEPRECATED: use /api/v1/discounts/holders/:id. Remove a Collection holders deal. Returns `{ ok }`."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWeb3HolderPerk
  /v1/web3/creator/collections:
    get:
      summary: "Collections you are the creator of: your launches, and contracts you claimed by owning them."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWeb3CreatorCollectionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWeb3CreatorCollections
  /v1/web3/creator/claims:
    post:
      summary: "Claim an EVM collection as its creator: its owner() must be one of your verified wallets. Returns `{ chain, contract }`."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3CreatorClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3CreatorClaim
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3CreatorClaimRequest"
  /v1/web3/creator/{chain}/{contract}:
    get:
      summary: "A collection’s creator dashboard: sales by marketplace and day, estimated royalties, holders, and for a launch the mint revenue and what is waiting to be withdrawn (wei of the chain’s native currency)."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3CreatorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Creator
  /v1/web3/balances:
    get:
      summary: Every CBX you have, in one read, with the three balances kept apart.
      tags:
        - Web3
      description: "`credit`: EARNED (withdrawable once matured; `withdrawableBaseUnits` is earned minus anything staked) and GRANTED (in-platform spend only, never withdrawable). `connected`: headroom on your connected-wallet delegation, a ceiling on what Crossly may pull, never a balance. `wallets`: each linked wallet with its own on-chain CBX (`status` read / not_solana / not_live / unavailable). `totals.allBaseUnits` is credit + wallets and never adds the delegation headroom. Amounts are base-unit strings (`decimals`)."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3BalanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Balance
  /v1/web3/staking:
    get:
      summary: "Your CBX stake: what is locked, its tier, the tier ladder and your past positions."
      tags:
        - Web3
      description: A stake locks EARNED CBX; it moves nothing and pays no yield. Each tier buys a withdrawal-fee discount and an earn-rate boost on future purchases, and has a cooldown before an unstake releases.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3StakingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Staking
  /v1/web3/staking/stake:
    post:
      summary: Lock earned CBX (`baseUnits`, a string) into the best tier it reaches. 409 while a stake or unstake is in progress.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3StakingStakeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3StakingStake
  /v1/web3/staking/unstake:
    post:
      summary: "Start unstaking: the earn boost stops now, the tokens release when the tier’s cooldown ends. Returns `{ unlocksAt, cooldownDays }`."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3StakingUnstakeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3StakingUnstake
  /v1/web3/wallets/{id}/holdings:
    get:
      summary: What a linked wallet holds right now, each NFT marked `inInventory` or not. Reads the chain; writes nothing.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3WalletHoldingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3WalletHolding
  /v1/web3/wallets/{id}/import:
    post:
      summary: "Add picked NFTs (`tokens`: chain, contract, tokenId; up to 200) from a linked wallet to inventory. Tokens the wallet does not hold are counted in `notInWallet`, never added."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3WalletImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3WalletImport
  /v1/web3/launches/{id}/stats:
    get:
      summary: A launch’s phase timeline, mint progress, proceeds (gross, Crossly’s cut, yours; airdrops excluded), allowlist and art counts, and recent mints.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3LaunchStatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3LaunchStat
  /v1/web3/launches/{id}/tools:
    get:
      summary: "A launch’s creator tools: allowlist size and root (and whether the contract has it yet), uploaded art and reveal, supply minted."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3LaunchToolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3LaunchTool
  /v1/web3/launches/{id}/allowlist:
    put:
      summary: Replace the early-phase allowlist (up to 10,000 wallets). EVM live launches get back `rootTx`, the setAllowlistRoot transaction for the owner wallet.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWeb3LaunchAllowlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWeb3LaunchAllowlist
  /v1/web3/launches/{id}/allowlist/root-tx:
    get:
      summary: "The setAllowlistRoot transaction for the allowlist Crossly holds (EVM, live): `{ chain, from, to, data }`."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3LaunchAllowlistRootTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3LaunchAllowlistRootTx
  /v1/web3/launches/{id}/art:
    post:
      summary: Append per-token art (image URL, name, traits), up to the supply, before the reveal. Returns `{ count }`.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3LaunchArtResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3LaunchArt
  /v1/web3/launches/{id}/reveal:
    post:
      summary: "Reveal the art: one random offset maps every token to its asset for good. Returns `{ revealedAt }`."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3LaunchRevealResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3LaunchReveal
  /v1/web3/launches/{id}/airdrop:
    post:
      summary: Plan an airdrop (one free NFT each, up to 500) to `addresses` and/or the holders of `holdersOf`. Returns the transactions for the owner wallet; no payment moves.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3LaunchAirdropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3LaunchAirdrop
  /v1/web3/solana/collections/{collection}/tensor-bids:
    get:
      summary: A Solana collection’s Tensor bids (collection-wide and by trait), best first; price in lamports. Needs your Tensor key.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: collection
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3SolanaCollectionTensorBidResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3SolanaCollectionTensorBid
  /v1/web3/solana/tensor-bids/place-tx:
    post:
      summary: Build a Tensor collection bid (or trait bid with `trait`) for your Solana wallet to sign. Price in lamports.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaTensorBidPlaceTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaTensorBidPlaceTx
  /v1/web3/solana/tensor-bids/accept-tx:
    post:
      summary: Build the transaction that sells your NFT into a Tensor bid, never below `minLamports`.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaTensorBidPlaceTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaTensorBidAcceptTx
  /v1/web3/solana/tensor-bids/cancel-tx:
    post:
      summary: Build the transaction that cancels your Tensor bid.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaTensorBidPlaceTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaTensorBidCancelTx
  /v1/web3/solana/tensor-bids/confirm:
    post:
      summary: "After your wallet’s Tensor transaction confirms: `action` place, cancel or accept, with its `signature` and the `wallet` that signed. Checked on chain, then recorded in your Activity. Accept needs listings:write; place and cancel need buyer:offers:write."
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaTensorBidConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaTensorBidConfirm
  /v1/world/spaces/{slug}/holder-gate:
    put:
      summary: "Make your Space holders-only: only holders of an NFT collection join it (others can look in). Send null to open it again. Returns `{ gate }`."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldRoomHolderGateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldSpaceHolderGate
  /v1/world/rooms/{id}/holder-gate:
    put:
      summary: Make your room holders-only (its collection rooms follow). Send null to open it again. Returns `{ gate }`.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldRoomHolderGateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldRoomHolderGate
  /v1/world/avatar/nft-badge:
    get:
      summary: The NFT you wear on your nameplate in the world, or null.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAvatarNftBadgeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldAvatarNftBadge
    put:
      summary: Wear an NFT you hold on your nameplate (null to take it off). Checked again each time you join a room.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAvatarNftBadgeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldAvatarNftBadge
  /v1/live-streams/{id}/pin-launch:
    post:
      summary: Pin one of your live NFT launches on your live show; viewers mint it from the stream. Returns `{ ok }`.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLiveStreamPinLaunch
    delete:
      summary: Unpin the launch from your live show. Returns `{ ok }`.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteLiveStreamPinLaunch
  /v1/web3/launches/{id}/follow-creator:
    post:
      summary: "Follow the creator of a launch: their launches are announced to you, and again when each opens. Returns `{ following }`."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3LaunchFollowCreatorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3LaunchFollowCreator
    delete:
      summary: Stop following the creator of a launch. Returns `{ following }`.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3LaunchFollowCreatorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWeb3LaunchFollowCreator
  /v1/vault-markets/pro/snapshot:
    get:
      summary: A book key's depth (20 levels a side), last 50 trades, 24 h stats, mark and any halt, in one call.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProSnapshotResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProSnapshot
  /v1/vault-markets/pro/depth:
    get:
      summary: "The L2 depth ladder: price levels and units per side, best first; asks show how many units are authenticated vault stock."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProDepthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProDepth
  /v1/vault-markets/pro/tape:
    get:
      summary: The latest trades on a book key, newest first, with which side made and which took.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketProTapeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketProTape
  /v1/vault-markets/pro/stats:
    get:
      summary: 24 h open, high, low, last, volume and change on a book key.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProStatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProStat
  /v1/vault-markets/pro/candles:
    get:
      summary: OHLCV candles (1m, 5m, 15m, 1h, 4h, 1d) from the trades on a book key.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketProCandlesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketProCandles
  /v1/vault-markets/pro/stream:
    get:
      summary: "A long-lived text/event-stream for a book key: `snapshot` first, then `depth`, `trades`, `mark` and `halt` events as they change."
      tags:
        - Vault Markets
      responses:
        "200":
          description: A server-sent event stream.
          content:
            text/event-stream:
              schema:
                type: string
                description: Server-sent events; each `data:` line is one JSON object.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProStream
      parameters:
        - name: bookKey
          in: query
          required: true
          schema:
            type: string
  /v1/vault-markets/pro/orders:
    post:
      summary: "Place an order on a vault book: limit, market (protected, IOC), stop or stop-limit; GTC, GTD, IOC or FOK; post-only; an iceberg `displayQuantity`; a TWAP or VWAP algo over a window. Idempotent on `clientOrderId`. `subaccountId` trades for a firm sub-account you may trade (your role, its KYB, its limits, no firm halt; buys pay from its custodian account and land in it)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketProOrderRequest"
    get:
      summary: "Your orders: open (default) or done, optionally on one book key, or only those booked to one sub-account (`subaccountId`)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketProOrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketProOrders
  /v1/vault-markets/pro/orders/{id}:
    get:
      summary: One order with its full event log.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProOrder
  /v1/vault-markets/pro/orders/{id}/cancel:
    post:
      summary: Cancel an order; what filled stays filled.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProOrderCancel
  /v1/vault-markets/pro/orders/{id}/replace:
    post:
      summary: "Amend an order's price, stop or quantity (cancel-replace: it re-queues at its new price)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProOrderReplace
  /v1/vault-markets/pro/orders/cancel-all:
    post:
      summary: Cancel every open order, or every one on a book key. Returns `{ cancelled }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProOrderCancelAllResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProOrderCancelAll
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketProOrderCancelAllRequest"
  /v1/vault-markets/pro/events:
    get:
      summary: "Your order event log after a sequence number (new, leg, fill, replaced, cancelled, expired, done): a replayable drop copy."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketProEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketProEvents
  /v1/vault-markets/pro/quotes:
    post:
      summary: "Market makers: set a two-sided post-only quote on a book key (replaces the last). With cancel-on-disconnect (default) heartbeat every 30 s or it is pulled."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProQuote
    get:
      summary: Your live quotes.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketProQuotesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketProQuotes
    delete:
      summary: Pull your quote on a book key, or every quote. Returns `{ pulled }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketProQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketProQuote
  /v1/vault-markets/pro/quotes/heartbeat:
    post:
      summary: Keep your quotes alive (cancel-on-disconnect). Returns `{ quotes, at }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionMmHeartbeatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProQuoteHeartbeat
  /v1/vault-markets/pro/rewards:
    get:
      summary: Your daily market-maker liquidity rewards (paid in CBX).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketProRewardsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketProRewards
  /v1/vault-markets/gifts:
    post:
      summary: Give a unit in your vault to another Crossly user (by @username or email). It stays on its shelf; they have 7 days to accept. ID needed above $1,000 at the mark. Returns `{ id, expiresAt }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketGiftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGift
    get:
      summary: Gifts you sent and received, newest first, with their status.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGiftsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketGifts
  /v1/vault-markets/gifts/{id}/accept:
    post:
      summary: "Accept a gift: the unit becomes yours in place. Returns `{ status }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGiftAccept
  /v1/vault-markets/gifts/{id}/decline:
    post:
      summary: "Decline a gift: the unit stays with the giver. Returns `{ status }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGiftDecline
  /v1/vault-markets/gifts/{id}/cancel:
    post:
      summary: Cancel a gift you sent before it is accepted. Returns `{ status }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGiftCancel
  /v1/vault-markets/donations:
    post:
      summary: Give a unit to Crossly Cares (once the charity can receive; otherwise its gate message). Returns `{ id, markCents }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketDonationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketDonation
  /v1/vault-markets/tax:
    get:
      summary: "Your tax year on the vault markets: units bought and sold with cost, proceeds, gain and term; lending fees, staking interest (estimate), market-maker rewards; closed positions. Links to the CSV and PDF."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketTaxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTax
  /v1/vault-markets/tax.csv:
    get:
      summary: "The tax year as a CSV: one row per sale, purchase, gift, income line and closed position."
      tags:
        - Vault Markets
      responses:
        "200":
          description: A CSV file.
          content:
            text/csv:
              schema:
                type: string
                description: CSV text with a header row.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTax.csv
  /v1/vault-markets/tax.pdf:
    get:
      summary: The tax year as a PDF summary.
      tags:
        - Vault Markets
      responses:
        "200":
          description: A PDF document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTax.pdf
  /v1/vault-markets/auctions:
    get:
      summary: Open vault auction events (weekly, ending Sunday; premier, units marked $10,000+) and their lots, soonest ending first.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAuctionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketAuctions
  /v1/vault-markets/auctions/mine:
    get:
      summary: Lots you consigned (with your reserve) and lots you bid on (with your maximum and whether you lead).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketAuctionMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketAuctionMine
  /v1/vault-markets/auctions/lots/{id}:
    get:
      summary: "One lot: the price showing, the next minimum bid, whether a reserve exists and is met, the end (extended by late bids), the bid history and your standing."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketAuctionLotResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketAuctionLot
  /v1/vault-markets/auctions/lots:
    post:
      summary: Consign a stored, authenticated unit to the next weekly or premier event, with an optional opening price and reserve. The unit is held until the close. Returns `{ lotId, eventId, endsAt }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketAuctionLotResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAuctionLot
  /v1/vault-markets/auctions/lots/{id}/withdraw:
    post:
      summary: Withdraw your lot before any bid; the unit goes back on your shelf. Returns `{ ok }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAuctionLotWithdraw
  /v1/vault-markets/auctions/lots/{id}/bids:
    post:
      summary: Leave or raise your maximum on a lot; the system bids for you up to it. A bid in the last 2 minutes extends the lot by 2 minutes. The winner's saved card is charged at the close through the order book. ID needed above $10,000.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketAuctionLotBidResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAuctionLotBid
  /v1/vault-markets/live-streams/{id}/featured-lot:
    post:
      summary: "Feature an open lot on your live show (or `lotId: null` to take it off). Viewers hear LIVE_PIN_CHANGED. Returns `{ ok }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLiveStreamFeaturedLot
  /v1/vault-markets/units/{id}/quote:
    get:
      summary: "The market around a vault unit: its mark and source, the best bid that could take it, the Instant Exit price (the best bid) and a pack pull's own sell-back credit."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketUnitQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketUnitQuote
  /v1/vault-markets/units/{id}/sell-now:
    post:
      summary: "Sell one unit of this item now into the best bid (Instant Exit: an immediate-or-cancel pro order), never below `minCents`. Returns `{ status: filled | missed, filledCents, quote, order }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketInstantExitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketUnitSellNow
  /v1/vault-markets/credit:
    get:
      summary: "Your vault loans and advances (live by default): what is owed, interest accrued, loan-to-value, the liquidation line and the collateral value it is called at."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketCreditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketCredit
  /v1/vault-markets/credit/{id}:
    get:
      summary: One loan or advance with its pledged units and its money log (draws, interest, repayments, sale proceeds).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCreditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketCredit
  /v1/vault-markets/credit/{id}/repay:
    post:
      summary: Repay from your custodian account, interest first. Omit `amountCents` to repay everything; pass `requestId` to make a retry safe. Repaid in full, the items are free.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketCreditRepayResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketCreditRepay
  /v1/vault-markets/loans/quote:
    get:
      summary: "How much you can borrow against vault units (`vaultItemIds`, comma-separated; none = every stored unit you hold): each unit's tier, mark and limit, the pool's rate and yours."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLoanQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketLoanQuote
  /v1/vault-markets/loans:
    post:
      summary: "Borrow against stored vault units: they are pledged (no listing, lending or withdrawal) and the market pool lends `amountCents` into your custodian account. Needs a verified ID."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCreditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLoan
    get:
      summary: "Units you lent: rate, fees earned, recall due."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketLoansResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketLoans
  /v1/vault-markets/loans/{id}/units:
    post:
      summary: Pledge more stored units to a loan (answers a loan call, or makes room).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCreditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLoanUnit
  /v1/vault-markets/loans/{id}/units/{vaultItemId}/release:
    post:
      summary: Free one pledged unit, if what is owed still fits inside the other units' limit.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: vaultItemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCreditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLoanUnitRelease
  /v1/vault-markets/loans/{id}/units/{vaultItemId}/sale-floor:
    get:
      summary: "The lowest price a pledged unit can be sold at to repay its loan: after the sale (less the vault fee and storage) what is still owed must fit inside the other units' limit."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: vaultItemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLoanUnitSaleFloorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketLoanUnitSaleFloor
  /v1/vault-markets/loans/{id}/units/{vaultItemId}/sell:
    post:
      summary: "Sell a pledged unit to repay its loan: it is listed at `priceCents` (at least the sale floor) and stays pledged until it sells; the proceeds repay the loan first and the rest is yours. Calling it again re-prices it."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: vaultItemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketLoanUnitSellResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLoanUnitSell
  /v1/vault-markets/advances/quote:
    get:
      summary: "What an advance on a vault unit for sale could be: up to half of the lower of its mark and asking price, free for 60 days."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketAdvanceQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketAdvanceQuote
  /v1/vault-markets/advances:
    post:
      summary: "Take an advance against a vault unit that is listed for sale: paid into your custodian account, netted from the sale. Free for 60 days, then the pool rate. Needs a verified ID."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCreditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAdvance
  /v1/vault-markets/advances/{id}/relist:
    post:
      summary: Relist an advance's unit at a new price (never so low its sale could not repay the advance).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketAdvanceRelistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAdvanceRelist
  /v1/vault-markets/indexes:
    get:
      summary: "Indexes over book keys: per category, per top brand, the Crossly 50 and your own. Each with its level now (base 1000 at inception) and change since the last daily close."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexes
    post:
      summary: "Make an index of your own: 1 to 50 book keys, weighted by mark or equally. Up to 10 per account."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketIndex
  /v1/vault-markets/indexes/movers:
    get:
      summary: The built-in indexes that moved most since their last daily close.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexMovers
  /v1/vault-markets/indexes/{slug}:
    get:
      summary: One index with its daily closes (oldest first) and its level now.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketIndex
    patch:
      summary: Rename, re-weight, share or change the keys of an index of your own; its level carries on.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketIndex
    delete:
      summary: Delete an index of your own. Returns `{ ok }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketIndex
  /v1/vault-markets/indexes/{slug}/constituents:
    get:
      summary: The book keys in an index with their weight, move since the last close and contribution to the index's move (basis points).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexMembersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexConstituents
  /v1/vault-markets/indexes/{slug}/buy:
    post:
      summary: "Buy the basket: one limit buy per key in the index for 1-5 whole units each, at most `maxBpsOverMark` over each key's mark, IOC or GTC. Every unit is a real item that lands in your vault. Idempotent on `clientBasketId`; returns a result per key."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketIndexBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketIndexBuy
  /v1/vault-markets/watchlist:
    get:
      summary: Your watched book keys with mark, 24 h and 7 d change, and the last 30 daily marks (sparkline).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketWatchlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketWatchlist
    post:
      summary: Watch a book key. Returns `{ bookKey, watching }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketWatchlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketWatchlist
    delete:
      summary: Stop watching a book key (`?bookKey=`). Returns `{ bookKey, watching }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketWatchlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketWatchlist
  /v1/vault-markets/compare:
    get:
      summary: Up to 5 book keys and/or index slugs (`items`, comma-separated) as daily series on the same days, each rebased to 100.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCompareResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketCompare
  /v1/vault-markets/portfolio/history:
    get:
      summary: Your Vault Markets value by day at the marks (vault units, units on loan, positions) and today's return against yesterday's close.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPortfolioHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPortfolioHistory
  /v1/vault-markets/grading-signal:
    get:
      summary: "For a raw book key: the marks of the same item's graded keys, the spread over raw, grading cost per grader, the margin tier grading lifts it to, your raw vault units it pays to grade, and where to act."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketGradingSignalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketGradingSignal
  /v1/vault-markets/supply:
    get:
      summary: A book key's units in the vault and authentications passed, by day (oldest first, today live).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSupplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSupply
  /v1/vault-markets/instant-exit:
    get:
      summary: "The Instant Exit quote for one vault unit you hold: the best resting bid on its book key (anyone's, dealers' included), its share of the mark, the bid depth, and whether it can be taken now."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketInstantExitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketInstantExit
    post:
      summary: "Sell a unit now at the quoted price: a sell IOC at `priceCents` through the pro engine. Refused, with the new quote, if the best bid dropped below it. Crossly never buys or funds it."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketInstantExitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketInstantExit
  /v1/vault-markets/instant-exit/holdings:
    get:
      summary: Instant Exit quotes for everything you hold in the vault, one per book key, with units held and which are free to sell.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketInstantExitHoldingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketInstantExitHoldings
  /v1/vault-markets/instant-exit/history:
    get:
      summary: "Your Instant Exits, newest first: quoted price, mark, and whether it filled."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketInstantExitHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketInstantExitHistory
  /v1/vault-markets/offers:
    get:
      summary: "The offers inbox: for each book key you hold, the best bid from someone else, units at it, the top bid levels, the mark, and your alert."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOffersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOffers
  /v1/vault-markets/offers/alert:
    put:
      summary: Set (or clear with null) the bid price that should always notify you on a key you hold, and mute or unmute offer notices on it.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketOfferAlertResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketOfferAlert
  /v1/vault-markets/recurring:
    get:
      summary: "Your recurring buys: key, schedule, price cap, payment, auto-lend, next run."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRecurringResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketRecurring
    post:
      summary: "Start a recurring buy: one whole unit of a key every week, two weeks or month, at no more than `maxPriceCents` and/or the mark plus `capBpsOverMark`; card (with an optional backup) or custodian; optional auto-lend."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRecurringItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketRecurring
  /v1/vault-markets/recurring/{id}:
    patch:
      summary: Change a recurring buy's schedule, caps, cards or auto-lend, or pause / resume it.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRecurringItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketRecurring
    delete:
      summary: Stop a recurring buy for good; its history stays.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRecurringItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketRecurring
  /v1/vault-markets/recurring/{id}/runs:
    get:
      summary: "One recurring buy's runs: filled, skipped (with the reason, e.g. the price was over the cap) or failed."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRecurringRunsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketRecurringRuns
  /v1/vault-markets/recurring-runs:
    get:
      summary: Every run of all your recurring buys, newest first.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRecurringRunsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketRecurringRuns2
  /v1/vault-markets/pro/brackets:
    post:
      summary: A buy order with a take-profit and/or stop-loss attached; the exits arm as an OCO pair for what the entry fills.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProBracketResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProBracket
  /v1/vault-markets/pro/oco:
    post:
      summary: "Two orders on one key, one cancels the other: when one fills or its stop triggers, the other is cancelled (a partial fill shrinks it)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProOcoResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProOco
  /v1/vault-markets/pro/trailing-stops:
    post:
      summary: "A trailing stop: its stop follows the best price since it was placed, `trailBps` or `trailCents` behind (under the high for a sell, over the low for a buy)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProTrailingStopResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProTrailingStop
  /v1/vault-markets/pro/links:
    get:
      summary: "Your linked orders (brackets, OCO pairs, trailing stops, position exits): live (default) or done."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketProLinksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketProLinks
  /v1/vault-markets/pro/links/{id}/cancel:
    post:
      summary: "Cancel a linked order: its open child orders come off; a bracket's entry stays."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketProLinksItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProLinkCancel
  /v1/vault-markets/positions/{id}/exits:
    get:
      summary: A position's take-profit / stop-loss, if set.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPositionExitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPositionExit
    put:
      summary: "Set a position's take-profit / stop-loss: a long is closed, a short covered, when the last trade reaches one. Both null clears them."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketPositionExitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketPositionExit
  /v1/vault-markets/positions-risk:
    get:
      summary: "For each live position: its tier, health, margin state, the mark at which it is called and the mark at which it is liquidated, and the distance to it."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPositionsRiskResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPositionsRisk
  /v1/vault-markets/positions/{id}/risk:
    get:
      summary: One position's call and liquidation marks.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPositionsRiskItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPositionRisk
  /v1/vault-markets/rates:
    get:
      summary: Daily borrow APR (lent units) and pool APR on a book key, with the pool as a whole, oldest first.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketRateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketRate
  /v1/vault-markets/dealer:
    get:
      summary: Your dealer status (applied, approved, revoked) and your Instant Exit bands.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketDealerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketDealer
  /v1/vault-markets/dealer/apply:
    post:
      summary: Apply to be a dealer (ID check first). Ops review; approved dealers get raised limits and their bids show as dealer bids.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketDealerApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketDealerApply
  /v1/vault-markets/dealer/bids:
    get:
      summary: "Your standing dealer bids: open (default) or all."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerBidsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketDealerBids
    post:
      summary: "Place a standing dealer bid: a resting GTC/GTD limit buy, flagged as a dealer bid. Approved dealers only."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketDealerBid
  /v1/vault-markets/dealer/bands:
    get:
      summary: Your Instant Exit bands and whether each is being kept now.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerBandsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketDealerBands
    put:
      summary: "Commit to an Instant Exit band on a key: a standing bid for `units` kept at `bandBps` of the mark, never above `maxPriceCents`, re-quoted as the mark moves."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerBandsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketDealerBand
    delete:
      summary: Stop a band on a key; its standing bid comes off.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerBandsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketDealerBand
  /v1/vault-markets/grading:
    get:
      summary: "Your vault units sent to grading: where each card is in its run, and the grade once it is back."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketGrading
    post:
      summary: Send a raw vault unit on the grading hub's shelf to a Grading Run (`runId`). It is held until it comes back, graded, to the same vault item. The slot is free; your saved card is charged only if the run locks.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketGradingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGrading
  /v1/vault-markets/grading/{submissionId}/pull:
    post:
      summary: Pull a vault unit out of its run before the run locks (nothing was charged). It goes back on the shelf.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: submissionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradingPull
  /v1/vault-markets/channels:
    get:
      summary: "Your Vault Markets channel switches: Telegram alerts and digest, the daily cap on vault nudges by push (default 5), whether a Telegram chat is linked, and how many nudges went out today."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketChannelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketChannel
    put:
      summary: "Change the switches: `telegramAlerts`, `telegramDigest`, `pushCapPerDay` (0 to 20). Margin calls and recalls are never capped. Returns the new view."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketChannelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketChannel
  /v1/vault-markets/digest/preview:
    get:
      summary: "This week's vault digest as it would go out: units at the display marks (unmarked units counted, not valued), the like-for-like change from a week ago, offers on your units, watched keys that got a first mark, and one Learn card."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketDigestPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketDigestPreview
  /v1/vault-markets/digest/history:
    get:
      summary: "Past weekly digests: week, status (sent / skipped / failed), the channels used and a summary."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDigestHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketDigestHistory
  /v1/vault-markets/value:
    get:
      summary: "A catalogue item's vault book keys (`?skuId=`, optional `variantId`): each key's display mark with quality and n, units in the vault, the Instant Exit price a holder would get now, and whether it can be shipped in (ungraded keys)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketValueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketValue
  /v1/vault-markets/collection-worth:
    get:
      summary: "Your collection valued at the display marks: rows on a vault book key with a mark are summed; rows with no mark or no key are counted, never valued."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketCollectionWorthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketCollectionWorth
  /v1/vault-markets/collection-worth/watch:
    post:
      summary: Watch every collection item that sits on a vault book key (up to the watchlist cap). Returns `{ watched, skipped }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketCollectionWorthWatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketCollectionWorthWatch
  /v1/vault-markets/deposits:
    post:
      summary: "Open a ship-in deposit for an ungraded catalogue item (`skuId`, `variantId`, `condition` DS / VNDS / Used). It is inbound until the vault receives and checks it, then stored in your name. Returns `{ vaultItem: { id, status } }`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketDepositResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketDeposit
  /v1/vault-markets/supply/send:
    post:
      summary: "Send inventory items matched to a catalogue variant to the vault as one box: each becomes an inbound vault unit, and the box gets one prepaid inbound label (a PDF to print). Optional: auto-list each unit in the vault book at a share of the mark once stored, and lend when idle. Items that cannot go say why. Crosslisted listings stay live."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketSupplySendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSupplySend
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketSupplySendRequest"
  /v1/vault-markets/supply/deposits:
    get:
      summary: "Your units sent to the vault, newest first, each with its state and its key's Instant Exit line (\"Instant Exit now: $X (N% of mark)\" or \"No market yet\"). Filter with `inventoryItemIds` (comma-separated)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSupplyDepositsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketSupplyDeposits
      parameters:
        - name: inventoryItemIds
          in: query
          required: false
          schema:
            type: string
  /v1/vault-markets/supply/deposits/{id}:
    patch:
      summary: "Change a deposit's toggles: `autoListBps` (list at that share of the mark once stored; null = do not) and `lendWhenIdle`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketSupplyDepositResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketSupplyDeposit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVaultMarketSupplyDepositRequest"
  /v1/vault-markets/supply/batches/{id}:
    get:
      summary: "A box sent to the vault: its prepaid label and tracking, or why it has no label."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSupplyBatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSupplyBatch
  /v1/vault-markets/supply/batches/{id}/label:
    post:
      summary: Buy a box's prepaid label again after it failed (for example once a ship-from address is saved). A box that has a label keeps it.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSupplyBatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSupplyBatchLabel
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketSupplyBatchLabelRequest"
  /v1/vault-markets/holdings:
    get:
      summary: "Everything you own in the Crossly vault, newest activity first: each unit with its status (inbound, stored, listed, withdraw_requested…) and situation (lent, pledged, in_grading…), what it is worth (`valueCents` with `valueSource` mark | last_sale | declared | none), declared and insured value, storage owed, its open ask, the deposit toggles when you sent it in, and what you may do with it now (`actions`). Units sold or shipped home in the last 90 days have `past: true`. `meta` carries the totals (units, value, declared, insured, storage owed), your recent boxes and their labels, the ship-home prices and the lending gate."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketHoldingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketHoldings
  /v1/vault-markets/holdings/{id}/withdraw-quote:
    get:
      summary: "What shipping one unit you own home would charge now, for `standard` and `expedited`: shipping, the storage it owes and the early-withdrawal fee (within 90 days of arriving), and the total. Read-only; ship it home with POST /api/v1/buyer/vault/:id/withdraw."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketHoldingWithdrawQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketHoldingWithdrawQuote
  /v1/vault-markets/supply/round-up:
    get:
      summary: "Your seller round-up: the share of each payout that sets a vault buy's budget, the budget so far and what it is doing. `roundUp` is null when none is set."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSupplyRoundUpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSupplyRoundUp
    put:
      summary: "Set the round-up: `shareBps` (1%-50%) of each payout released to you adds to a budget; when it covers the cheapest vault unit on `bookKey`, one unit is bought with your saved card, never above the budget."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSupplyRoundUpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketSupplyRoundUp
    delete:
      summary: Stop the round-up (its history stays; an armed buy is cancelled).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSupplyRoundUpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketSupplyRoundUp
  /v1/vault-markets/supply/invites:
    get:
      summary: "Market Open invites to you as a dealer: keys Crossly is opening and asks you to quote."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSupplyInvitesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketSupplyInvites
  /v1/vault-markets/supply/invites/{id}:
    post:
      summary: Accept or decline a Market Open invite (`accept`).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSupplyInvite
  /v1/vault-markets/opening:
    get:
      summary: "Keys opening soon on the vault book (and just opened): units on the shelf, dealers quoting, the waitlist, the mark when the book has one, and your place."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOpeningResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOpening
  /v1/vault-markets/opening/{slug}:
    get:
      summary: One opening key.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOpeningItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOpening
  /v1/vault-markets/opening/{slug}/waitlist:
    post:
      summary: Join a key's waitlist, optionally with a friend's invite code (`ref`). Inviting moves you up the queue; nobody is paid. Returns your place and your own code.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOpeningWaitlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOpeningWaitlist
    delete:
      summary: Leave a key's waitlist.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketOpeningWaitlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketOpeningWaitlist
  /v1/vault-markets/partners/me:
    get:
      summary: "Your Vault Drop-off Partnership (null when you never applied): status, partner code, fee share and cap, finder profile, totals and batches; and whether your one-time ID check is done."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPartnerMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPartnerMe
    patch:
      summary: "Your drop-off partnership's finder profile: postal code, opening hours, services and whether you are listed."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketPartnerMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketPartnerMe
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVaultMarketPartnerMeRequest"
  /v1/vault-markets/partners/apply:
    post:
      summary: Apply as a Vault Drop-off Partner (a card shop that takes walk-ins for the vault). Needs the one-time ID check; ops approve.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPartnerApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPartnerApply
  /v1/vault-markets/partners/batches:
    post:
      summary: "An approved partner sends walk-ins in under its code: each item (catalogue variant, condition, grade, photos) becomes an inbound vault unit; the box gets one prepaid label. The partner earns a capped share of Crossly's fee on each unit's first sale."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPartnerBatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPartnerBatch
  /v1/vault-markets/partners/accruals:
    get:
      summary: "Your partner fee shares, newest first: accrued on a unit's first sale, paid in Bucks once the sale is final, void if it was refunded."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPartnerAccrualsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPartnerAccruals
  /v1/vault-markets/settings:
    get:
      summary: "Your vault defaults: Sell from first, new-inventory suggestions, the insurance rule and the default grading service."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSetting
    put:
      summary: Change your vault defaults; send only the fields you change.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketSetting
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVaultMarketSettingRequest"
  /v1/vault-markets/items/{inventoryItemId}/location:
    get:
      summary: "Where one inventory item's units are: in your own stock (warehouse) and in the vault per location, each vault unit's status (in transit, received, authenticated, graded, listed, shipped out), its Sell from first choice and whether it can be sent to the vault now (with the reason when not)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: inventoryItemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketItemLocationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketItemLocation
  /v1/vault-markets/items/{inventoryItemId}/sell-from:
    put:
      summary: "Set which unit a sale of this item ships first: `vault_first`, `warehouse_first` or `cheapest` (to ship); null = your default. Quantities stay the same on every channel: only who ships changes."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: inventoryItemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketItemLocationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketItemSellFrom
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVaultMarketItemSellFromRequest"
  /v1/vault-markets/supply/eligibility:
    get:
      summary: Can these inventory items (`inventoryItemIds`, comma-separated, or every item linked to `listingId`) be sent to the vault now? Each says why not.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSupplyEligibilityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketSupplyEligibility
      parameters:
        - name: inventoryItemIds
          in: query
          required: false
          schema:
            type: string
        - name: listingId
          in: query
          required: false
          schema:
            type: string
  /v1/vault-markets/holdings/{id}/inventory-item:
    get:
      summary: The inventory item a vault unit of yours came from (null for a unit bought on the book).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketHoldingInventoryItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketHoldingInventoryItem
  /v1/vault-markets/supply/send-in:
    post:
      summary: "Send inventory items to the vault: `method: label` (one box on a prepaid label) or `dropoff` at a partner (`partnerId`, from the finder; you get a counter code). Each item can carry its declared value; `insured` insures the box for it."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketSupplySendInResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSupplySendIn
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketSupplySendInRequest"
  /v1/vault-markets/supply/declared-values:
    get:
      summary: What each item's declared value starts at, by your insurance rule (market, cost or price). `inventoryItemIds` comma-separated.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSupplyDeclaredValuesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketSupplyDeclaredValues
      parameters:
        - name: inventoryItemIds
          in: query
          required: false
          schema:
            type: string
  /v1/vault-markets/supply/shipments:
    get:
      summary: "Your shipments into the vault, newest first: method, label or drop-off code, tracking and how many units were received."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSupplyShipmentsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketSupplyShipments
  /v1/vault-markets/supply/shipments/{id}:
    get:
      summary: One shipment into the vault, with each unit and whether it was received.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSupplyShipmentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSupplyShipment
  /v1/vault-markets/partners/finder:
    get:
      summary: "Vault drop-off partners near a `postalCode`, optionally offering a `service`: address, hours and services."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPartnerFinderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPartnerFinder
      parameters:
        - name: postalCode
          in: query
          required: false
          schema:
            type: string
        - name: service
          in: query
          required: false
          schema:
            type: string
            enum:
              - consignment
              - photography
              - authentication
              - walk_in
              - grading_prep
  /v1/vault-markets/auto-buy:
    get:
      summary: "Auto-buy with payouts: the share of each payout set aside as a vault buying budget, the budget, your want list with max prices, the purchase history and whether it is paused. `autoBuy` is null when it is not set up."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketAutoBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketAutoBuy
    put:
      summary: "Set up or change Auto-buy with payouts: `shareBps` (1–50%) and the whole want list in order, each with an optional `maxPriceCents` (fee included)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketAutoBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketAutoBuy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVaultMarketAutoBuyRequest"
    delete:
      summary: Stop Auto-buy with payouts. The history stays.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketAutoBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketAutoBuy
  /v1/vault-markets/auto-buy/pause:
    post:
      summary: "Pause Auto-buy with payouts: the budget and want list stay; no payouts are counted and nothing is bought."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketAutoBuyPauseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAutoBuyPause
  /v1/vault-markets/auto-buy/resume:
    post:
      summary: "Resume Auto-buy with payouts: payouts released from now on count."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketAutoBuyResumeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAutoBuyResume
  /v1/vault-markets/grading/candidates:
    get:
      summary: "What you can send to grading: raw units already in your vault and inventory items, each with a declared value to start from and the reason when one cannot go."
      tags:
        - Grading
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradingCandidatesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketGradingCandidates
      parameters:
        - name: q
          in: query
          required: false
          schema:
            type: string
  /v1/vault-markets/grading/orders:
    get:
      summary: Your grading submissions, newest first. Filter by status, active, grader, tier and dates; q searches the number, card names and cert numbers.
      tags:
        - Grading
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradingOrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketGradingOrders
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - draft
              - grading
              - cancelled
              - paid
              - received
              - graded
              - returned
              - shipped_to_grader
        - name: active
          in: query
          required: false
          schema:
            type: string
            enum:
              - "0"
              - "1"
              - "true"
              - "false"
        - name: grader
          in: query
          required: false
          schema:
            type: string
        - name: tier
          in: query
          required: false
          schema:
            type: string
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: from
          in: query
          required: false
          schema:
            type: string
        - name: to
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: offset
          in: query
          required: false
          schema:
            type: number
    post:
      summary: "Start a grading submission: cards (vault units or inventory items) to one grader at one service. Priced from the price book; vault units are held. Nothing is charged until you pay."
      tags:
        - Grading
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketGradingOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradingOrder
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketGradingOrderRequest"
  /v1/vault-markets/grading/orders/{id}:
    get:
      summary: "One grading submission: its timeline, every card with its grade, cert number and photos, the costs and the tracking."
      tags:
        - Grading
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketGradingOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketGradingOrder
  /v1/vault-markets/grading/orders/{id}/cancel:
    post:
      summary: Cancel a draft submission; its vault units go back on their shelf. A paid submission cannot be cancelled here.
      tags:
        - Grading
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradingOrderCancel
  /v1/vault-markets/grading/orders/{id}/pay:
    post:
      summary: "Pay for a draft submission. savedCard: true charges your saved card (paid, or requires_action with a client secret for 3-D Secure). Full-access token and Idempotency-Key required."
      tags:
        - Grading
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketGradingOrderPayResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradingOrderPay
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketGradingOrderPayRequest"
  /v1/vault-markets/grading/orders/{id}/pay/confirm:
    post:
      summary: "After a 3-D Secure step or a card form: confirm the PaymentIntent with Stripe and mark the submission paid."
      tags:
        - Grading
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradingOrderPayConfirm
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketGradingOrderPayConfirmRequest"
  /v1/vault-markets/share-cards:
    get:
      summary: Your share cards (not taken down), each as the public sees it.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareCardsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareCards
    post:
      summary: Make a verified share card of a position, a vault unit, a public index or your portfolio (`kind`, `refId`). The % on it is the price move since your real fill; amounts stay hidden unless `showAmounts`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareCardsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareCard
  /v1/vault-markets/share-cards/{id}:
    get:
      summary: One share card as the public sees it, with its image and link paths.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareCardsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShareCard
    patch:
      summary: Show or hide the dollar amounts on one of your share cards (`showAmounts`).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareCardsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketShareCard
    delete:
      summary: "Take a share card down: its link and image stop working. Returns `{ ok }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketShareCard
  /v1/vault-markets/profile:
    get:
      summary: "Your public vault profile switch: on or off, whether followers see new buys, your profile URL and follower count."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProfile
    put:
      summary: Turn your public vault profile on or off (`isPublic`) and whether followers see your new buys (`showBuys`). It shows weights by market, never dollars.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketProfile
  /v1/vault-markets/profiles/{handle}:
    get:
      summary: "Someone's public vault: each market's weight (bps of the marked value), followers, whether you follow, their recent buys (no prices)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProfileByHandleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProfileByHandle
  /v1/vault-markets/profiles/{handle}/follow:
    post:
      summary: "Follow someone with a public vault: their new vault buys appear in your feed. No copy trading."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProfileFollowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketProfileFollow
    delete:
      summary: Stop following someone.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProfileFollowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketProfileFollow
  /v1/vault-markets/feed:
    get:
      summary: New vault buys by the people you follow who share them, newest first (no prices). Page with `before` (the last item's `at`).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketFeedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketFeed
  /v1/vault-markets/learn:
    get:
      summary: "The Learn hub: each concept with whether you passed its quiz. Passing earns cosmetic pins only."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLearnResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketLearn
  /v1/vault-markets/learn/{concept}:
    get:
      summary: "One Learn concept: its sections and quiz questions (no answers)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: concept
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLearnByConceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketLearnByConcept
  /v1/vault-markets/learn/{concept}/quiz:
    post:
      summary: "Answer a concept's quiz (`answers`: the chosen choice index per question). Graded on the server; 5 tries an hour."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: concept
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketLearnQuizResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLearnQuiz
  /v1/vault-markets/report:
    get:
      summary: "The quarterly Crossly Vault Report (`quarter` like 2026-q3; default the latest): index levels, top movers, most-lent markets, grade premiums. Book data only."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketReport
  /v1/vault-markets/press:
    get:
      summary: 'The press kit: each built-in index with level, quality, n, CSV link and a "cite as" line, plus the methodology links.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPressResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPress
  /v1/vault-markets/indexes/{slug}/levels:
    get:
      summary: An index's daily closes (up to 5 years), oldest first.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexLevelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketIndexLevel
  /v1/vault-markets/widgets/index/{slug}:
    get:
      summary: "What the <crossly-index> widget shows: level, closes, quality, n, as-of, or `insufficient`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketWidgetIndexResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketWidgetIndex
  /v1/vault-markets/widgets/mark:
    get:
      summary: "What the <crossly-mark> widget shows for `bookKey`: mark, quality, trades over 30 days, as-of, sparkline, or `insufficient`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketWidgetMarkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketWidgetMark
  /v1/vault-markets/key-stats/{bookKey}:
    get:
      summary: "Everything derived about one book key in one read: the Crossly Estimate, the liquidity score, risk statistics and the gem rate. A part that cannot be read is `{ error }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: bookKey
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketKeyStatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketKeyStat
  /v1/vault-markets/estimates/{bookKey}:
    get:
      summary: "The Crossly Estimate for a book key — a model, not a price. Method (own trades, index-adjusted last trade, grade ratio), cents with 68% and 95% bands, High/Medium/Low from the walk-forward backtest's FSD, and n. Hidden (`available: false`) under 50 backtested trades or when FSD > 0.30. Never used for margin, loans or settlement."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: bookKey
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEstimateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketEstimate
  /v1/vault-markets/estimates-accuracy:
    get:
      summary: "The Crossly Estimate's track record: walk-forward backtest n, FSD and bias per method, category and liquidity bucket, and whether estimates in that cell are shown."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketEstimatesAccuracyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketEstimatesAccuracy
  /v1/vault-markets/liquidity/{bookKey}:
    get:
      summary: "The liquidity score (0-100) of a book key and every component behind it: trades in 30/90 days, distinct counterparties, median days between trades, time-weighted quoted spread, two-sided share and depth within 5% (hourly book snapshots), Amihud and Roll. Each component is a percentile within the category. No score under the data threshold."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: bookKey
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLiquidityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketLiquidity
  /v1/vault-markets/risk-stats/{bookKey}:
    get:
      summary: "Risk statistics for a book key (weekly returns from A-quality marks only) or an index slug (its closes): annualised volatility raw and Geltner-desmoothed (labelled), max drawdown and beta to the Composite. Needs 26 weekly returns, else no numbers."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: bookKey
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketRiskStatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketRiskStat
  /v1/vault-markets/correlations:
    get:
      summary: The correlation matrix of the sector indexes' weekly returns over `weeks` (default 52), pairwise-complete, with n per pair; a pair under 26 shared weeks has no number.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCorrelationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketCorrelation
  /v1/vault-markets/gem-rate/{bookKey}:
    get:
      summary: "The Crossly gem rate: of cards graded through Crossly, the share that came back at each grader's gem grade, for this item and its category, with a Wilson 95% band. 10 returns per grader or no number. Not a grader population report."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: bookKey
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketGemRateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketGemRate
  /v1/vault-markets/market-model/{bookKey}:
    get:
      summary: "How a book key trades: its liquidity tier (A continuous, B call auction every 15 minutes, C daily call, D listings only), the call collecting now with its indicative price and volume and nominal close, the next call, the LULD band and any limit state, pause or halt."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: bookKey
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketMarketModelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketMarketModel
  /v1/vault-markets/calls/{bookKey}:
    get:
      summary: "Recent call-auction uncrosses on a book key: kind (open, reopen, periodic, daily, buy-in, sell-off), clearing price in cents and units."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: bookKey
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCallResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketCall
  /v1/vault-markets/index-methodology:
    get:
      summary: "The index method in machine-readable form: version (semver), inputs, weightings and caps, the family and its screens, the engines and their publication gate, revisions and the settlement series, the calendar, governance and limitations."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexMethodologyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketIndexMethodology
  /v1/vault-markets/index-calendar:
    get:
      summary: "The next four quarterly reviews: reference day (2nd Friday of Mar/Jun/Sep/Dec), announcement day, last close under the old membership and the effective day; June and December also review the Blue-chip 50."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexCalendarResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketIndexCalendar
  /v1/vault-markets/index-events:
    get:
      summary: "Every index event, newest first: add, delete, rebalance, method, correction, halt; each with when it was announced, when it takes effect, the detail and the reason. Filter by `kind`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexEvents
  /v1/vault-markets/index-judgments:
    get:
      summary: "The expert-judgment log: every Index Committee action (halt, resume, exclude a key, void a trade, restate, retire) with its written reason."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexJudgmentsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexJudgments
  /v1/vault-markets/indexes/{slug}/events:
    get:
      summary: One index's events, newest first.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexEventsBySlug
  /v1/vault-markets/indexes/{slug}/level-series:
    get:
      summary: "An index's published levels. `engine=chain` (default): daily closes. `engine=tpd|repeat_sales`: weekly (else monthly) model estimates with a 95% band and n; labelled, never a price. `series=settlement` returns each value as first published (never restated). Below the data gate `data` is empty and `notice` explains."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexLevelSeriesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexLevelSeries
  /v1/vault-markets/indexes/{slug}/members:
    get:
      summary: The members of an index on a day (`asOf`, default today) with their weights, shares, moves and contributions; for a past day, the inputs stored with that day's close and each member's effective dates.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexMembersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexMembers
  /v1/vault-markets/index-committee/minutes:
    get:
      summary: "Published Index Committee minutes, newest first: attendees (names and roles), quorum, agenda, minutes and decisions."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexCommitteeMinutesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexCommitteeMinutes
  /v1/vault-markets/index-consultations:
    get:
      summary: Consultations on index method changes (open for at least 30 days), newest first. Filter by `status`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexConsultationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexConsultations
  /v1/vault-markets/index-consultations/{id}:
    get:
      summary: One consultation with its proposal, versions, dates, outcome and the public comments.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexConsultationsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketIndexConsultation
  /v1/vault-markets/index-consultations/{id}/comments:
    post:
      summary: Comment on an open consultation (5 to 5,000 characters; up to 5 per person). Comments are published without your name. Returns `{ ok }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketIndexConsultationComment
  /v1/vault-markets/index-complaints:
    post:
      summary: File a complaint about an index or the method (`slug` optional). Every complaint is answered. Returns `{ id, status, createdAt }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketIndexComplaintResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketIndexComplaint
    get:
      summary: Your complaints and their answers, newest first.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexComplaintsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexComplaints
  /v1/vault/unit-list:
    get:
      summary: "The published unit list (bar-list equivalent): every unit on a vault shelf with its warehouse receipt number (when receipts are registered), book key, shelf location code, insured value, status, pledged / on-loan flags and a per-receipt hashed holder (never a name or id). Filter with `bookKey`; pages with `page` / `limit`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultUnitListResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultUnitList
  /v1/vault/receipts:
    get:
      summary: Your warehouse receipts (documents of title for your vault units), live first. meta.receipts says whether receipts are registered (VAULT_WAREHOUSE_ISSUER) and their terms version.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultReceiptsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultReceipts
  /v1/vault/receipts/{receiptNo}:
    get:
      summary: "One of your receipts with its full hash chain (issued, transferred, pledged, released, surrendered), re-verified on read: `chain.ok` is false if any event was altered."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: receiptNo
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultReceiptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultReceipt
  /v1/vault/attestations:
    get:
      summary: "Vault attestations: independent physical counts, the insurance certificate (with a warning when insured value in the vault exceeds its aggregate or per-occurrence limit), SOC 1 Type II and SOC 2 reports. Each carries its signed document."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultAttestationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultAttestation
  /v1/vault-markets/proof-of-reserves:
    get:
      summary: "Proof of reserves: the latest daily Merkle root over every unit in custody (leaf count, stored / listed / grading / withdrawing, pledged, on loan, open loans, receipts, insured value), its Solana memo anchor when VAULT_POR_ANCHOR_KEY is set, the last `days` roots, and the exact hashing method."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProofOfReserveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProofOfReserve
  /v1/vault-markets/proof-of-reserves/me:
    get:
      summary: "Your inclusion proofs for a day (latest by default): each of your units' leaf fields, salt, owner commitment, leaf hash and sibling path. Verify with your OWN user id: commitment = SHA-256(JSON[\"crossly-por-owner-v1\", userId, salt]); then the leaf; then climb the path to the published root."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProofOfReserveMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProofOfReserveMe
  /v1/vault-markets/proof-of-reserves/{day}:
    get:
      summary: One day's proof-of-reserves snapshot (root, counts, anchor).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: day
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketProofOfReserveByDayResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketProofOfReserveByDay
  /v1/vault-markets/proof-of-reserves/{day}/leaves:
    get:
      summary: "One day's leaf hashes in tree order, a page at a time: enough to recount the units and rebuild the root yourself. Leaves are salted, so they name no owner."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: day
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketProofOfReserveLeavesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketProofOfReserveLeaves
  /v1/vault-markets/locates:
    get:
      summary: "A locate quote: how many units of `key` (a book key) you could borrow now (up to `qty`), the indicative rate (APR bps; `termDays` 30 or 90 for a fixed-rate term loan), and the collateral they need (150%, or 175% for units whose lenders elected return in kind only). Holds nothing; POST to hold."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLocateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketLocate
    post:
      summary: Hold up to `qty` lendable units of `bookKey` for 15 minutes so a short can open against them (`termDays` 30/90 for a term loan). Needs lending (VAULT_LENDING_TERMS_VERSION) and the ID check. Returns the locate with how many units it holds.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketLocateMineItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLocate
  /v1/vault-markets/locates/mine:
    get:
      summary: Your locates, newest first (held / used / released / expired).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketLocateMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketLocateMine
  /v1/vault-markets/locates/{id}:
    delete:
      summary: Release a live locate before it lapses.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketLocateMineItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketLocate
  /v1/vault-markets/lending/election:
    get:
      summary: "Your lender election: `returnInKind` (shorts post 175% collateral, a 14-day buy-in, never cash-settled) and `allowTerm` (your units may go out on 30/90-day fixed-rate term loans, not recallable before term)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLendingElectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketLendingElection
    put:
      summary: Change your lender election (applies to loans opened after the change). Needs lending.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLendingElectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketLendingElection
  /v1/vault-markets/lending/statement:
    get:
      summary: "Your daily collateral statement as a lender (today live, or `day`): per open loan the mark and its quality, fees owed to you, the short's collateral share at the custodian and its coverage against 105% of mark + fees. A unit without a mark usable for risk shows no coverage number."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLendingStatementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketLendingStatement
  /v1/vault-markets/lending/statements:
    get:
      summary: The days you have stored collateral statements for, newest first, with their summary.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketLendingStatementsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketLendingStatements
  /v1/vault-markets/lending/programme:
    get:
      summary: "Your lender programme report: lendable units, units out, utilisation, fee revenue (accrued / paid), term loans and return-in-kind loans in force, and each loan's rate against the key's rate today."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketLendingProgrammeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketLendingProgramme
  /v1/vault-markets/index-feed/{slug}:
    get:
      summary: 'The licensed index feed for one built-in index (needs VAULT_INDEX_DCM + VAULT_INDEX_FEED_SECRET): the level now (intraday from A/B marks, or the last close below 50% constituent coverage), the last close, the frozen 7-day TWAP settlement value and every constituent with its mark source, quality and trade count. Signed: `x-crossly-signature: t=<ms>,v1=<hex HMAC-SHA256(secret, t + "." + body)>`. Every read is logged for the licence. Crossly is the licensor and data feed only.'
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexFeedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketIndexFeed
  /v1/vault-markets/index-feed/{slug}/settlement:
    get:
      summary: The frozen 7-day TWAP settlement series for a licensed index (written once a day, never restated), with the closes behind each value. Signed like the feed.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - name: days
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexFeedSettlementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketIndexFeedSettlement
  /v1/vault-markets/index-feed/{slug}/funding:
    get:
      summary: "Reference funding for a perpetual-style future on the index: your premium `premiumBps` (TWAP of (impact mid - index)/index) through F = P + clamp(I - P, ±0.05%) per 8 h, |F| capped at 0.5%/day, with the index level it is relative to. The partner DCM computes and settles funding; this is the reference math."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - name: premiumBps
          in: query
          required: true
          schema:
            type: number
        - name: interestBps
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexFeedFundingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketIndexFeedFunding
  /v1/vault-markets/index-licence/mine:
    get:
      summary: "Your index feed licences (the indexes each covers, or all), as ops recorded them. No licence: the feed answers 403 not_a_licensee."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketIndexLicenceMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketIndexLicenceMine
  /v1/vault-markets/index-licence/usage:
    get:
      summary: Your licensed index feed reads over `days`, per index and endpoint (licence-usage report).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketIndexLicenceUsageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketIndexLicenceUsage
  /v1/vault-markets/entities/{id}/usd-election:
    put:
      summary: "Admin: elect USD for the entity (`usdOnly`). Its sub-accounts then post collateral in USD only and pay every fee in USD, and any CBX reward paid to one of them is converted to USD by the custodian in that account. Audited; it can be turned off again."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketEntityUsdElection
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVaultMarketEntityUsdElectionRequest"
  /v1/vault-markets/entities/{id}/conversions:
    get:
      summary: The custodian's CBX-to-USD reward conversions for an entity that elected USD, newest first, with their status.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketEntityConversionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketEntityConversions
  /v1/vault-markets/blocks:
    post:
      summary: "Place a block buy for an entity: one order booked to the first sub-account in `plan` (it pays from its custodian account), split across every sub-account in the plan at the average price, fees included, once it is done and the custodian confirmed each payment. Each share's cash moves between the entity's own custodian accounts; its units move only after that settles. Every sub-account must be one you may trade, and its share must fit its limits."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBlocksItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketBlock
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketBlockRequest"
    get:
      summary: An entity's block orders, newest first, each with its plan and how it was allocated.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBlocksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketBlocks
  /v1/vault-markets/blocks/{orderId}:
    get:
      summary: "One block order: its order, plan lines (planned and allocated units, average price, cash share, status)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: orderId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBlocksItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketBlock
  /v1/vault-markets/blocks/{orderId}/allocation:
    put:
      summary: "Post-trade allocation: set or replace the plan for a buy you placed for one of the entity's sub-accounts (that sub-account leads). Refused once any share has moved."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: orderId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBlocksItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketBlockAllocation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVaultMarketBlockAllocationRequest"
  /v1/vault-markets/blocks/{orderId}/allocate:
    post:
      summary: "Allocate a done block now (the keeper does it too). Returns `{ outcome, block }`: allocated, waiting (a payment or transfer is not settled yet), nothing_filled or none."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: orderId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketBlockAllocateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketBlockAllocate
  /v1/vault-markets/accounts:
    get:
      summary: "Every account you can act on: your own, and each sub-account your entity memberships reach, with your role."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAccountsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketAccounts
  /v1/vault-markets/entities:
    get:
      summary: The entities (funds, LLCs, trusts, SPVs) you belong to, and invitations waiting for you.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketEntity
    post:
      summary: "Open an entity account: you become its admin and the custodian partner starts KYB (its own flow; Crossly keeps only its reference). Needs a verified ID and the custodian (503 names what is missing)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketEntityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketEntity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketEntityRequest"
  /v1/vault-markets/entities/{id}:
    get:
      summary: "One entity: members and roles, sub-accounts with their limits, firm halts, caps."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketEntityById
  /v1/vault-markets/entities/{id}/kyb:
    post:
      summary: Refresh the entity's KYB status from the custodian (and its onboarding link while KYB is open).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketEntityKybResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketEntityKyb
  /v1/vault-markets/entities/{id}/ecp:
    post:
      summary: "Admin: record the entity's attestation that it is an eligible contract participant. Raising its caps is still an ops decision."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketEntityEcp
  /v1/vault-markets/entities/{id}/invitation:
    post:
      summary: Accept or decline an invitation (`accept`). Trading, admin and risk roles need a verified ID to accept.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketEntityInvitation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldSpaceRequestByUserIdRequest"
  /v1/vault-markets/entities/{id}/members:
    post:
      summary: "Admin: invite a Crossly user by email as admin, trader, risk, ops or viewer (a viewer can never place an order), with optional limits and sub-accounts."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketEntityMember
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketEntityMemberRequest"
  /v1/vault-markets/entities/{id}/members/{memberId}:
    patch:
      summary: "Admin: change a member's role, limits or sub-accounts. The last admin cannot be demoted."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: memberId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketEntityMember
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVaultMarketEntityMemberRequest"
    delete:
      summary: "Admin: remove a member (or leave, yourself). An entity always keeps one admin."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: memberId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketEntityMember
  /v1/vault-markets/entities/{id}/subaccounts:
    post:
      summary: "Admin: open a sub-account once the custodian approved the entity; its limits are held to the entity's caps."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketEntitySubaccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketEntitySubaccountRequest"
  /v1/vault-markets/entities/{id}/subaccounts/{subId}/limits:
    put:
      summary: "Admin: set a sub-account's limits (per-order notional, units per key, gross, net, leverage), held to the entity's caps. `limits: null` clears them."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: subId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketEntitySubaccountLimit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateVaultMarketEntitySubaccountLimitRequest"
  /v1/vault-markets/entities/{id}/subaccounts/{subId}/close:
    post:
      summary: "Admin: close a sub-account that holds nothing and has no open orders."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: subId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketEntitySubaccountClose
  /v1/vault-markets/entities/{id}/halts:
    post:
      summary: "Admin or risk: the firm kill switch. Halts the entity (no `subaccountId`) or one sub-account: open orders on it are cancelled and no new ones are placed until cleared."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketEntityHaltResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketEntityHalt
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketEntityHaltRequest"
  /v1/vault-markets/entities/{id}/halts/{haltId}/clear:
    post:
      summary: "Admin or risk: lift a firm halt."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: haltId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketEntityByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketEntityHaltClear
  /v1/vault-markets/entities/{id}/audit:
    get:
      summary: "The entity's audit trail, newest first: hash-chained rows with actor, account, API key, IP, session and source."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketEntityAuditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketEntityAudit
  /v1/vault-markets/nav:
    get:
      summary: Mark NAV, bid NAV (the resting bids) and liquidation NAV (the bids at 20% of ADV for 10 days), holding by holding, each with its ASC 820 level, mark quality and source, and your administrator's price when uploaded.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketNavResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketNav
  /v1/vault-markets/nav/history:
    get:
      summary: Daily NAV snapshots (mark, bid, liquidation, Level 2 / Level 3).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketNavHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketNavHistory
  /v1/vault-markets/nav/file/{format}:
    get:
      summary: The NAV as a csv, pdf or json file.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: format
          required: true
      responses:
        "200":
          description: "The file in the requested `format`: a CSV file, a PDF document or the JSON document."
          content:
            text/csv:
              schema:
                type: string
                description: CSV text with a header row.
            application/pdf:
              schema:
                type: string
                format: binary
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketNavResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketNavFile
  /v1/vault-markets/admin-marks:
    post:
      summary: "Upload your fund administrator's prices (`administrator`, `marks: [{ bookKey, day, cents }]`). Shown beside Crossly's marks and labelled as yours; they never change a Crossly figure."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketAdminMarkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAdminMark
  /v1/vault-markets/risk-report:
    get:
      summary: "Historical VaR 95/99 1d/10d and Bangia LVaR (model figures: labelled, with n and a band, null below the data threshold), stress scenarios (category −30%, CBX −50%, books thin to 25%, index drawdowns), concentration and counterparty exposure."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketRiskReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketRiskReport
  /v1/vault-markets/capacity:
    get:
      summary: "Capacity from the book: `bookKey` (+ `units`) gives ADV, depth within ±5% of the mark, vault stock, lendable units and days to liquidate at 20% of ADV; `index` + `notional` (cents) gives how much of the basket the asks fill now and the days the rest needs."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCapacityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketCapacity
  /v1/vault-markets/tca:
    get:
      summary: Your pro orders in a window (`from`, `to`; default 90 days) with arrival mark and mid, average fill, implementation shortfall, slippage, fill rate and time to fill.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketTcaResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTca
  /v1/vault-markets/tca/{orderId}:
    get:
      summary: One order's TCA, including slippage against the VWAP of eligible trades while it worked.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: orderId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketTcaByOrderIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTcaByOrderId
  /v1/vault-markets/execution-quality:
    get:
      summary: "The quarterly execution-quality report (Rule 605 style): fill rates, speed, effective vs quoted spread and shortfall by order type and size, and the busiest keys. `quarter` like 2026-Q4; the current quarter is provisional."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketExecutionQualityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketExecutionQuality
  /v1/vault-markets/order-handling:
    get:
      summary: "How orders are handled (the 606/607-style disclosure): one book, self-trade prevention, protected market orders, liquidations by auction, halts, dealers and fees."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOrderHandlingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOrderHandling
  /v1/vault-markets/confirmations:
    get:
      summary: "Trade confirmations for your fills in a window (default 31 days): price, sale fee, maker or taker, order, vault unit and warehouse receipt."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketConfirmationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketConfirmations
  /v1/vault-markets/confirmations/{tradeId}:
    get:
      summary: One trade confirmation.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: tradeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketConfirmationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketConfirmation
  /v1/vault-markets/confirmations/{tradeId}/pdf:
    get:
      summary: One trade confirmation as a PDF.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: tradeId
          required: true
      responses:
        "200":
          description: A PDF document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketConfirmationPdf
  /v1/vault-markets/statements:
    get:
      summary: The last 24 months with whether each statement is issued (frozen, with its sha256).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketStatementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketStatement
  /v1/vault-markets/statements/{month}:
    get:
      summary: "A monthly statement (`month` like 2026-10): units held at month end, loans, pledges, positions, fills, fees, storage, and cash quoted from the custodian and labelled as its record. Issued (frozen) once the month ends."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: month
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketStatementByMonthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketStatementByMonth
  /v1/vault-markets/statements/{month}/file/{format}:
    get:
      summary: A monthly statement as a csv, pdf or json file.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: month
          required: true
        - schema:
            type: string
          in: path
          name: format
          required: true
      responses:
        "200":
          description: "The file in the requested `format`: a CSV file, a PDF document or the JSON document."
          content:
            text/csv:
              schema:
                type: string
                description: CSV text with a header row.
            application/pdf:
              schema:
                type: string
                format: binary
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketStatementByMonthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketStatementFile
  /v1/vault-markets/fees/schedule:
    get:
      summary: "The fee schedule by role: maker and taker rates for retail, 30-day volume, Registered LPs and DMMs, the CBX discount, the referral share and the 2% net floor Crossly always keeps."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketFeeScheduleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketFeeSchedule
  /v1/vault-markets/fees/quote:
    get:
      summary: "Your fee for an order at a price: as maker (the order rests) and as taker (it fills at once), with the programme that sets your rate and any Crossly One trim. A buyer's fee is added to the price; a seller's comes out of the proceeds."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketFeeQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketFeeQuote
  /v1/vault-markets/rfq:
    post:
      summary: "Ask for a quote on a block: dealers, the key's DMM and LPs, and holders are told, anonymously. Answers are firm for 60 s. Your limit is never shown."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketRfq
    get:
      summary: Your quote requests, newest first.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketRfq
  /v1/vault-markets/rfq/inbox:
    get:
      summary: Open quote requests you were sent (as a dealer, DMM, LP or holder), with your live answer.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRfqInboxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketRfqInbox
  /v1/vault-markets/rfq/open:
    get:
      summary: "Open quote requests on one key (all-to-all: anyone with ID may answer). Anonymous."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketRfqOpen
  /v1/vault-markets/rfq/{id}:
    get:
      summary: "One quote request: the requester sees every answer (anonymous); a responder sees the request and their own answer."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketRfq
  /v1/vault-markets/rfq/{id}/respond:
    post:
      summary: Answer a quote request for the full quantity with a firm price, good for 60 s. Selling needs the units free in your vault; buying pays from your Vault Markets custodian account.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketRfqRespondResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketRfqRespond
  /v1/vault-markets/rfq/{id}/accept:
    post:
      summary: "Take one answer: it fills as a block through the normal fill path (fees by role, self-trade prevention, halts, LULD)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketRfqAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketRfqAccept
  /v1/vault-markets/rfq/{id}/cancel:
    post:
      summary: Cancel your open quote request.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketRfqItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketRfqCancel
  /v1/vault-markets/rfq/responses/{id}/withdraw:
    post:
      summary: Withdraw your live answer to a quote request.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketRfqRespondResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketRfqResponseWithdraw
  /v1/vault-markets/midpoint:
    get:
      summary: Your midpoint block orders.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketMidpointResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketMidpoint
    post:
      summary: A hidden block order that trades only at the firm-book midpoint, with another midpoint order of at least your minimum size.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketMidpointItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketMidpoint
  /v1/vault-markets/midpoint/{id}/cancel:
    post:
      summary: Cancel a midpoint order.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketMidpointItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketMidpointCancel
  /v1/vault-markets/mm:
    get:
      summary: Your market-maker programmes, the last 30 days of obligations, rebates earned (paid only from fees already taken), and the rules.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketMmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketMm
  /v1/vault-markets/mm/lp:
    post:
      summary: Join a key as a Registered Liquidity Provider (ID needed). Meeting coverage earns the LP rates.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketMmLpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketMmLp
  /v1/vault-markets/mm/dmm:
    post:
      summary: Apply to be the designated market maker on a tier B or C key. Ops approves; one per key.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketMmLpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketMmDmm
  /v1/vault-markets/mm/{id}/leave:
    post:
      summary: Leave a market-maker programme.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketMmLpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketMmLeave
  /v1/vault-markets/mm/key:
    get:
      summary: A key's designated market maker (by the name it chose) and how many LPs quote it.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketMmKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketMmKey
  /v1/vault-markets/mm/mmp:
    get:
      summary: "Your market-maker protection: the fill trigger, the freeze, and whether you are frozen now."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketMmMmpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketMmMmp
    put:
      summary: "Set market-maker protection: N units or $X filled on your quotes within T seconds pulls every quote and freezes quoting for a set time."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketMmMmpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketMmMmp
  /v1/vault-markets/mm/mmp/reset:
    post:
      summary: End a market-maker protection freeze early.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketMmMmpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketMmMmpReset
  /v1/vault-markets/mm/mass-cancel:
    post:
      summary: "Cancel every open order (one key, or only quotes) and every resting leg in one statement: nothing fills between the first cancel and the last."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketMmMassCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketMmMassCancel
  /v1/vault-markets/adl:
    get:
      summary: The insurance fund (booked and free to draw), the most one event may draw before auto-deleveraging (ADL) starts, the loss waterfall in order, and the latest ADL events (no user or position ids). Money in cents.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketAdlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketAdl
  /v1/vault-markets/adl/positions:
    get:
      summary: "Your live positions, each with its place in its item ADL queue: lights 5 (first in line) to 1 (last), 0 when not in the queue (only profitable positions are), ranked by P&L% x effective leverage."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAdlPositionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketAdlPositions
  /v1/vault-markets/adl/positions/{id}:
    get:
      summary: One of your positions with its ADL lights (0 once it has ended).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAdlPositionsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketAdlPosition
  /v1/vault-markets/adl/events:
    get:
      summary: "The ADL events your positions were part of, newest first: role bankrupt (yours went under water) or counterparty (yours was first in line), the price both closed at and the transfer status."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAdlEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketAdlEvents
  /v1/vault-markets/dealer/pools:
    get:
      summary: "Your curve pools: open (default) or all, each with its curve, spot, units, buy budget, running totals, the ladder it shows and its live legs."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerPoolsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketDealerPools
    post:
      summary: "Open a curve pool on a key (approved dealers, ID checked): linear (delta in cents) or exponential (delta in bps), spot, fee, levels per side, units it may sell, and a buy budget from your custodian account. Its ladder goes up at once."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerPoolsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketDealerPool
  /v1/vault-markets/dealer/pools/preview:
    post:
      summary: The bids and asks a set of curve settings would show, and why each side stops where it does. Places nothing.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketDealerPoolPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketDealerPoolPreview
  /v1/vault-markets/dealer/pools/{id}:
    get:
      summary: One of your curve pools, with its ladder and live legs.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerPoolsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketDealerPool
    patch:
      summary: "Change a curve pool: spot, step, fee, levels, units, buy budget, floor, ceiling, or pause / resume. Re-quoted at once."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerPoolsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketDealerPool
  /v1/vault-markets/dealer/pools/{id}/close:
    post:
      summary: "Close a curve pool: its legs come off the book; what filled stays filled."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerPoolsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketDealerPoolClose
  /v1/vault-markets/dealer/pools/{id}/fills:
    get:
      summary: "A curve pool's fills, newest first: side, price and spot after."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketDealerPoolFillsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketDealerPoolFills
  /v1/vault-markets/bullion/keys:
    get:
      summary: "Bullion key families (metal, form, size, mint or any mint): members, vault units, best resting bid and ask across their books, and spot as a labelled reference with what one unit of metal is worth at it. Spot is never a Crossly price."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBullionKeysResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketBullionKeys
  /v1/vault-markets/bullion/keys/{slug}:
    get:
      summary: "One bullion key family: its catalogue products, every live book key with best bid, best ask, vault units and its mark (from the book only), live pegged quote counts, and spot as a labelled reference."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketBullionKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketBullionKey
  /v1/vault-markets/bullion/for:
    get:
      summary: The bullion key families one book key belongs to, with spot for its metal as a labelled reference and its melt value at that spot. Empty families when the item is not keyed bullion.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketBullionForResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketBullionFor
  /v1/vault-markets/bullion/pegs/preview:
    get:
      summary: "The price a spot-pegged quote would rest at now (spot plus a premium in cents or basis points, clamped to floor and cap). No price when spot is stale or missing: such a quote waits off the book."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketBullionPegPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketBullionPegPreview
  /v1/vault-markets/bullion/pegs:
    get:
      summary: "Your spot-pegged quotes (live, or all with status=all): side, units, the peg, the order it rests as, the last price and spot it was priced from, and why it is pulled when it is."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBullionPegsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketBullionPegs
    post:
      summary: 'Set a spot-pegged maker quote on a bullion book key: "spot plus or minus N cents" or "plus or minus N basis points", with an optional floor and cap. It rests as a pro limit order re-priced every spot tick and is pulled while spot is stale. Replaces your live quote on the same key and side. ID required.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBullionPegsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketBullionPeg
  /v1/vault-markets/bullion/pegs/{id}:
    delete:
      summary: "Stop a spot-pegged quote: its resting order comes off the book; what filled stays filled."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBullionPegsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketBullionPeg
  /v1/vault-markets/bullion/family-pegs:
    get:
      summary: "Your family-wide spot-pegged quotes (live, or all with status=all): one quote resting across a bullion family books at one condition, with units left, the peg, its status and every leg (the pegged quote on each book)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBullionFamilyPegsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketBullionFamilyPegs
    post:
      summary: 'Set a family-wide spot-pegged quote: one "any 1 oz gold coin" quote resting on each product book of a bullion family at the chosen condition (DS, VNDS or Used). When any leg fills it comes off the others and goes back on only for what is left; two fills at once are settled one at a time against what is left. A bid pays from your custodian account. Replaces your live family quote on the same family, condition and side. ID required.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBullionFamilyPegsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketBullionFamilyPeg
  /v1/vault-markets/bullion/family-pegs/{id}:
    delete:
      summary: "Stop a family-wide quote: every leg order comes off the book; what filled stays filled."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketBullionFamilyPegsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketBullionFamilyPeg
  /v1/vault-markets/p2p/dashboard:
    get:
      summary: "Peer-to-peer vault loans at a glance: what you owe as a borrower and are owed as a lender (principal + interest to the second), daily interest, called loans, your open offers, the gates and the rules (auction hours, rate ceiling, size bounds, call grace)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketP2pDashboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketP2pDashboard
  /v1/vault-markets/p2p/offers:
    get:
      summary: "The open P2P loan offers book, lowest rate first: cents offered per loan, APR (bps), loans left, and the item (book key) or unit each lends against. `bookKey` narrows to one item. Lender identities are never shown."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketP2pOffersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketP2pOffers
    post:
      summary: "Offer to lend: `principalCents` per loan at `aprBps` a year against an item (`bookKey`) or one unit (`vaultItemId`), for up to `maxLoans` loans, lasting `expiresInDays` (default 90). Nothing is held: the custodian pays from your own account when a borrower takes it. Needs a verified ID, an active account and the current lending terms."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketP2pOffersItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketP2pOffer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketP2pOfferRequest"
  /v1/vault-markets/p2p/offers/mine:
    get:
      summary: Your P2P loan offers, newest first, with how many loans each has funded.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketP2pOffersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketP2pOfferMine
  /v1/vault-markets/p2p/offers/{id}/cancel:
    post:
      summary: Withdraw one of your open offers. Loans already taken from it carry on.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketP2pOffersItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketP2pOfferCancel
  /v1/vault-markets/p2p/offers/{id}/take:
    post:
      summary: "Borrow: take an offer against one of your stored vault units (`vaultItemId`). The unit is pledged (no listing, lending or withdrawal) and the principal is paid into your custodian account. Interest accrues by the second; repay any time. Pass `requestId` to make a retry safe."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketP2pLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketP2pOfferTake
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketP2pOfferTakeRequest"
  /v1/vault-markets/p2p/units:
    get:
      summary: "Your vault units for P2P borrowing: whether each can be pledged now (and why not), the best offers covering it, and its loan when it has one."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketP2pUnitsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketP2pUnits
  /v1/vault-markets/p2p/loans:
    get:
      summary: "Your P2P loans as borrower and/or lender (`role`), live by default (`status`): what is owed now, daily interest, the refinancing auction when called, and the item mark for information only (it never triggers anything)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketP2pLoansResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketP2pLoans
  /v1/vault-markets/p2p/loans/{id}:
    get:
      summary: One P2P loan with its money log (fund, repay, refinance). A loan in a running refinancing auction can be read by any lender, without the log.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketP2pLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketP2pLoan
  /v1/vault-markets/p2p/loans/{id}/repay:
    post:
      summary: "Borrower: repay from your custodian account to the lender. Without `amountCents`, in full (principal plus interest to the second; the unit is free once the custodian has it). With `amountCents` below what is owed, a part payment: interest first, then principal, at least the interest owed now and at least $1; the loan stays open on the principal left. Pass `requestId` to make a retry safe."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketP2pLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketP2pLoanRepay
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketP2pLoanRepayRequest"
  /v1/vault-markets/p2p/loans/{id}/call:
    post:
      summary: "Lender: call the loan (once it is a day old). A refinancing auction runs for about 30 hours, the rate a new lender gets climbing to the ceiling; repaid or refinanced, you are paid in full; neither by the end, the unit moves to your vault."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketP2pLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketP2pLoanCall
  /v1/vault-markets/p2p/loans/{id}/cancel-call:
    post:
      summary: "Lender: take back your call before any other lender has taken the loan over. The refinancing auction stops and the loan carries on as before on its terms."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketP2pLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketP2pLoanCancelCall
  /v1/vault-markets/p2p/loans/{id}/refi-auction:
    post:
      summary: "Borrower: look for a cheaper lender. A refinancing auction runs for `hours` (1-72, default 24); the rate a new lender gets climbs from `startAprBps` (default half the loan rate) to just under the loan rate now. The first lender to take it pays your lender off and the loan carries on at that lower rate. Nobody by the end: nothing changes."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketP2pLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketP2pLoanRefiAuction
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketP2pLoanRefiAuctionRequest"
  /v1/vault-markets/p2p/loans/{id}/refi-auction/cancel:
    post:
      summary: "Borrower: stop looking for a cheaper lender before anyone has taken the loan over. The loan carries on unchanged."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketP2pLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketP2pLoanRefiAuctionCancel
  /v1/vault-markets/p2p/auctions:
    get:
      summary: "Running refinancing auctions, soonest to end first: lenders calls (`auction`) and borrowers looking for a cheaper lender (`refiAuction`). The payoff now, the rate a new lender gets now, when it ends, and the item."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketP2pLoansResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketP2pAuctions
  /v1/vault-markets/p2p/loans/{id}/refinance:
    post:
      summary: "Take over a loan in a refinancing auction (a lender call or a borrower search for a cheaper lender): you pay the old lender everything owed now (refused above `maxPayoffCents`), which becomes your loan to the same borrower at the auction rate now. Needs a verified ID, an active account and the current lending terms. Pass `requestId` to make a retry safe."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketP2pLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketP2pLoanRefinance
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketP2pLoanRefinanceRequest"
  /v1/vault/receipt-tokens:
    get:
      summary: Your vault units with their warehouse receipt and receipt-token state (not exported, waiting for a signature, in a wallet, frozen, redeemed), whether each can be exported now and why not. meta.state is the gate (open, missing envs, program id, authority, terms version, cluster); meta.history is your last 50 exports.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultReceiptTokensResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultReceiptTokens
  /v1/vault/receipt-tokens/wallets:
    get:
      summary: Your verified Solana wallets and whether each is on the receipt-token allow-list (receipt tokens move only between allow-listed wallets). meta.state is the gate.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultReceiptTokenWalletsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultReceiptTokenWallets
  /v1/vault/receipt-tokens/wallets/allow:
    post:
      summary: "Put one of your verified Solana wallets (`wallet`) on the receipt-token allow-list so it can hold and receive receipt tokens. Returns a base64 transaction already signed by the receipts authority: the wallet pays the small rent (about 0.001 SOL) and must sign and send it within about two minutes. Needs a verified ID and a wallet that passes the sanctions screen."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultReceiptTokenWalletAllowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultReceiptTokenWalletAllow
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultReceiptTokenRedeemRequest"
  /v1/vault/receipt-tokens/by-mint/{mint}:
    get:
      summary: "What a Solana mint is: the warehouse receipt number and item it stands for, and whether the token is live, frozen (unit pledged or lent) or burned, and whether the unit is still on a vault shelf. Names no person and no wallet."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: mint
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultReceiptTokenByMintResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultReceiptTokenByMint
  /v1/vault/receipt-tokens/{id}:
    get:
      summary: "One receipt token (yours, or on a unit you own now) with its chain log: built, minted, frozen, thawed, new holder seen, redeem built, burned, with explorer links."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultReceiptTokenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultReceiptToken
  /v1/vault/receipt-tokens/export:
    post:
      summary: "Send one unit (`vaultItemId`) warehouse receipt to one of your verified Solana wallets (`wallet`) as a token, accepting the current terms (`acceptTerms`). Returns a base64 transaction already signed by the new mint and the receipts authority: your wallet pays the rent and must sign and send it within about two minutes, then call confirm. Nothing is minted until it does. Needs a verified ID; the unit must be stored, unpledged, not lent and not for sale."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultReceiptTokenExportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultReceiptTokenExport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultReceiptTokenExportRequest"
  /v1/vault/receipt-tokens/{id}/confirm:
    post:
      summary: "After your wallet sent the export: read the chain and mark the token live once its one token exists. Pass the `signature` your wallet returned to record it (kept only if it landed)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultReceiptTokenConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultReceiptTokenConfirm
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultReceiptTokenConfirmRequest"
  /v1/vault/receipt-tokens/{id}/redeem:
    post:
      summary: "Redeem a receipt token held in one of your verified Solana wallets (`wallet`): returns an unsigned base64 burn your wallet signs and sends (it also closes the token account and returns its rent to you). Once it lands, call redeem/confirm and the unit is yours in the vault. Refused while the token is frozen."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultReceiptTokenRedeemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultReceiptTokenRedeem
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultReceiptTokenRedeemRequest"
  /v1/vault/receipt-tokens/{id}/redeem/confirm:
    post:
      summary: "After your wallet sent the redeem: read the chain; once the token is burned the unit moves into your vault (if it was not yours already). Pass the `signature` to record it."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultReceiptTokenRedeemConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultReceiptTokenRedeemConfirm
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultReceiptTokenConfirmRequest"
  /v1/vault-markets/marks/{bookKey}:
    get:
      summary: "One book key mark with everything behind it: the price in cents, its quality (A trade-anchored, B firm two-sided, C indicative, none), its confidence in bps and the band in cents, when it was computed, whether risk may act on it (judged for margin), the related key it was implied from (impliedFrom: a grade, the model median of the other sizes, or an index; null when none), every stored input, and the learned relations it may be implied from."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: bookKey
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketMarkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketMark
  /v1/vault-markets/portfolio-margin:
    get:
      summary: "Portfolio margin for a firm sub-account (`subaccountId`): eligibility with every reason (ECP, KYB, minimum equity $500k or $100k with evidenced intraday monitoring), whether it is enrolled, the latest requirement, equity, excess and state (healthy, call or buy_in), the breakdown by category and item, the partner index futures counted, and the policy. Before enrolling, a live preview."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPortfolioMarginResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPortfolioMargin
  /v1/vault-markets/portfolio-margin/history:
    get:
      summary: "The 5-minute portfolio margin recalculations for a firm sub-account over the last `hours` (default 24, at most 720), newest first: equity, requirement, excess, scenario and floor figures, gross and state."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPortfolioMarginHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPortfolioMarginHistory
  /v1/vault-markets/portfolio-margin/enroll:
    post:
      summary: "Admin: put a firm sub-account under portfolio margin. Needs VAULT_LEVERAGE_VENUE, your ID, an ECP-attested entity that passed KYB, and the minimum equity. Its positions are then margined on the whole account, recalculated every 5 minutes; calls and auctions are unchanged. Audited."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginEnrollResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPortfolioMarginEnroll
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginLeaveRequest"
  /v1/vault-markets/portfolio-margin/leave:
    post:
      summary: "Admin: take a firm sub-account off portfolio margin. Each position is then held to its own tier floors again and may be called at once. Audited."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginLeaveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPortfolioMarginLeave
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginLeaveRequest"
  /v1/vault-markets/portfolio-margin/what-if:
    post:
      summary: The portfolio margin requirement of a firm sub-account before and after a trade (`bookKey`, `side` buy or sell, `units`), at the Crossly mark with fees left out. Changes nothing.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPortfolioMarginWhatIfResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPortfolioMarginWhatIf
  /v1/vault-markets/oracle:
    get:
      summary: "Crossly as an oracle publisher (needs CROSSLY_ORACLE_PUBLISHER_KEY + CROSSLY_ORACLE_NETWORK): the network (pyth or switchboard), the ed25519 key every value is signed with, each published index feed with its latest attempt, and 24 h counts of published, skipped and failed. Only built-in indexes priced from A/B marks are published; Crossly never reads its own feed back."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOracleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOracle
  /v1/vault-markets/oracle/{slug}:
    get:
      summary: "The latest published oracle value for an index: level, fixed-point price and confidence at the feed exponent, confidence in bps, staleness in seconds, coverage, the exact signed message and its ed25519 signature with the signer key, and whether it is fresh."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOracleBySlugResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOracleBySlug
  /v1/vault-markets/oracle/{slug}/history:
    get:
      summary: "Recent publish attempts for an index over 30 days, newest first: published, skipped (with the reason: too few items priced, stale marks, confidence too wide...) or failed (with the error). Filter with `status`, cap with `limit` (default 100)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOracleHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOracleHistory
  /v1/vault-markets/dcm:
    get:
      summary: "The partner exchange (DCM) that lists and clears futures and options on Crossly indexes (needs VAULT_INDEX_DCM + VAULT_INDEX_DCM_API_URL + VAULT_INDEX_DCM_API_KEY), and its contracts as last read: perps, futures and options with the index each settles on, multiplier, tick, expiry and strike. Read-only: Crossly is the licensor and data provider, never the venue."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketDcmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketDcm
  /v1/vault-markets/dcm/contracts/{symbol}:
    get:
      summary: "One partner contract: its spec, its funding prints (newest first; the partner computes and settles funding), annualised funding over the last 21 prints, and the Crossly index level it settles on."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: symbol
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketDcmContractResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketDcmContract
  /v1/vault-markets/dcm/contracts/{symbol}/book:
    get:
      summary: The partner exchange live order book for a contract (cached 5 seconds), with mark, index, last, open interest, 24 h volume, spread in bps and the basis of its mark over the Crossly index in bps. Prices are index points.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: symbol
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketDcmContractBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketDcmContractBook
  /v1/vault-markets/dcm/options-inputs/{slug}:
    get:
      summary: "Options inputs for an index (indexes only, never a single item): Crossly realised volatility (raw and Geltner-desmoothed, from weekly returns), the forward (the partner future mark, else the Crossly close), Black-76 greeks on a strike x expiry grid and on every option the partner lists on the index. Model inputs, not quotes."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketDcmOptionsInputResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketDcmOptionsInput
  /v1/vault-markets/dcm/positions:
    get:
      summary: "The partner exchange account linked to your account (or to the firm sub-account `subaccountId`) and its positions, read-only (cached 15 seconds); index futures on category indexes count as portfolio-margin hedges for that account: contracts, side, entry and mark price, unrealised P&L and margin in cents, liquidation price and notional in cents. Not linked: `linked: false`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketDcmPositionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketDcmPosition
  /v1/vault-markets/dcm/link:
    post:
      summary: "Link a partner exchange account to your account (or to a firm sub-account you manage, `subaccountId`) so Crossly can show its positions: `accountRef` (the account id there) and `code` (the one-time link code it gave you). The partner must confirm the code; the code is never stored. Read-only: Crossly never trades on it."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketDcmLinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketDcmLink
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketDcmLinkRequest"
  /v1/vault-markets/dcm/unlink:
    post:
      summary: "Unlink the partner exchange account from your account (or the firm sub-account `subaccountId`): Crossly stops reading it and its hedges leave portfolio margin."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketDcmUnlinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketDcmUnlink
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketDcmUnlinkRequest"
  /v1/vault-markets/large-trader-reports:
    get:
      summary: "Your large-trader reports (with any linked accounts, as one party): due first, then filed, then cleared in the last 90 days. Each has `action`: file | amend | refile | none."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketLargeTraderReportsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketLargeTraderReports
  /v1/vault-markets/large-trader-reports/{id}/file:
    post:
      summary: "File (or amend, or refile) a large-trader report: why you hold it (purpose), who you act for, other accounts you control, whether you plan to add, and a statement of 20+ characters. Returns the report."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketLargeTraderReportsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLargeTraderReportFile
  /v1/vault-markets/world/market-open:
    get:
      summary: "Market Open events in the Crossly World Commons: keys opening soon and those that opened in the last few hours, live first then soonest, each with its board line, units on the shelf, dealers quoting and the launch show when there is one. Never a prompt to trade."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketWorldMarketOpenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketWorldMarketOpen
  /v1/vault-markets/world/lounge:
    get:
      summary: "The Vault Holders Lounge: the rule to join (held value at reliable marks, or a unit count), whether you may join now and what you hold toward it. Anyone may look in; only holders are seen there. No perks, nothing to trade."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketWorldLoungeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketWorldLounge
  /v1/vault-markets/world/creator-rooms:
    get:
      summary: "Verified creators whose public vault shelf is a world room: title, the creator, the room link and the disclosure. Rooms show each market share of the shelf, never amounts."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketWorldCreatorRoomsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketWorldCreatorRooms
  /v1/vault-markets/creators/programme:
    get:
      summary: "The Vault Markets creator programme: the share of the fee Crossly keeps that a creator earns, the per-fill and lifetime caps (cents), the attribution window in days, the 2% net floor it sits under, and the disclosure words."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCreatorProgrammeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketCreatorProgramme
  /v1/vault-markets/creators/attribution:
    get:
      summary: "The creator who brought you to Vault Markets, when one did: when it started and ends, whether it still earns, and the disclosure. Your prices and fees are the same either way."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCreatorAttributionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketCreatorAttribution
    post:
      summary: "Use a creator code: the creator earns a capped share of the fee Crossly keeps on your Vault Markets trades for a limited window (paid by Crossly, never by you). Only for people new to Vault Markets, once, and never your own code."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketCreatorAttributionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketCreatorAttribution
  /v1/vault-markets/creators/dashboard:
    get:
      summary: "For creators: whether you joined the programme, each of your codes with traders attributed and still earning (counts only), shares accrued, paid and voided (cents) and the latest shares."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCreatorDashboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketCreatorDashboard
  /v1/vault-markets/creators/room:
    get:
      summary: "For creators: your vault shelf room (applied, verified, rejected or paused) and whether your public vault profile is on, which the room needs."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketCreatorRoomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketCreatorRoom
  /v1/vault-markets/world/places/{place}/vault-gate:
    get:
      summary: "The vault-holder door on a Crossly World room or Space, by its presence slug (a room share slug, or space-<slug>): the rule (minValueCents held at reliable A/B marks and/or minUnits units, mode any or all, optionally one product, bullion family or category), the rule in words, and whether you may join now with what you hold toward it. gate is null when the place has no vault door. Anyone may look in; only holders join."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: place
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketWorldPlaceVaultGateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketWorldPlaceVaultGate
  /v1/vault-markets/world/rooms/{id}/vault-gate:
    put:
      summary: "Set the vault-holder door on your own room (its collection rooms follow): visitors must hold minValueCents (cents, at reliable A/B marks) and/or minUnits units in the Crossly vault, mode any (either) or all (both), optionally only one product (scope kind product, ref the catalogue product id), bullion family (bullion, the family slug) or category (category, the slug). Send null to open it again. Returns `{ gate }`. Moves no money."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketWorldRoomVaultGateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketWorldRoomVaultGate
  /v1/vault-markets/world/spaces/{slug}/vault-gate:
    put:
      summary: "Set the vault-holder door on a Space you host: the same rule as a room (minValueCents at reliable marks and/or minUnits, mode, optional scope). Send null to open it again. Returns `{ gate }`. Moves no money."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketWorldRoomVaultGateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketWorldSpaceVaultGate
  /v1/vault-markets/world/cohosts:
    get:
      summary: "Market Open launch shows a verified creator co-hosts that are on now or opening soon: the key, its phase, the show, the creator (named only while their vault profile is public), their room link and, when the creator is in the creator programme, the disclosure that they may earn a share of the fee Crossly keeps. Never a prompt to trade."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketWorldCohostsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketWorldCohosts
  /v1/vault-markets/creators/cohost-invites:
    get:
      summary: "For creators: your invites from Crossly to co-host a Market Open launch show (invited, accepted, declined or withdrawn), each with the key, its show and the guidance for co-hosts."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketCreatorCohostInvitesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketCreatorCohostInvites
  /v1/vault-markets/creators/cohost-invites/{id}/respond:
    post:
      summary: "For creators: accept or decline an invite to co-host a Market Open launch show (`accept` true or false). Accepting needs your vault room verified and adds you to the show as a co-host; your room and the Commons then say you co-host it, with the creator-programme disclosure when it applies."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketCreatorCohostInviteRespondResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketCreatorCohostInviteRespond
  /v1/vault-markets/grade-to-vault:
    get:
      summary: "Your Grade to Vault flows, newest first, each brought up to date: its step, the grading submission, the unit, the grade, the market for it, and the ask once listed. `live=1` for those still going."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradeToVaultResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketGradeToVault
      parameters:
        - name: live
          in: query
          required: false
          schema:
            type: string
            enum:
              - "0"
              - "1"
    post:
      summary: Start Grade to Vault on one item (`source` inventory or vault_unit). With `runId` the grading slot is booked at once (free; your saved card is charged only if the run locks). Nothing is listed until you confirm a price after the grade.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradeToVaultItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradeToVault
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketGradeToVaultRequest"
  /v1/vault-markets/grade-to-vault/candidates:
    get:
      summary: "What you can start Grade to Vault on: raw inventory matched to a catalogue item, and raw vault units on the grading hub shelf; plus whether Grading Runs are open."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketGradeToVaultCandidateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketGradeToVaultCandidate
  /v1/vault-markets/grade-to-vault/{id}:
    get:
      summary: One Grade to Vault flow, brought up to date with its submission and unit.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradeToVaultItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketGradeToVault
  /v1/vault-markets/grade-to-vault/{id}/book:
    post:
      summary: Book (or re-book) the grading slot of a flow still at "picked". Answers 503 naming GRADING_HUB_ADDRESS when runs are not open.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradeToVaultItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradeToVaultBook
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketGradeToVaultBookRequest"
  /v1/vault-markets/grade-to-vault/{id}/shipped:
    post:
      summary: You mailed the card to the grading hub (an inventory card, once its run locked).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradeToVaultItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradeToVaultShipped
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGradingSubmissionShippedRequest"
  /v1/vault-markets/grade-to-vault/{id}/list:
    post:
      summary: "Confirm the price for the grade the unit came back with (`confirm: true`, `gradeKey` must match the unit). Pre-trade risk, the price band and the ID line apply, then one shelf ask is placed on the Crossly order book."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradeToVaultItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradeToVaultList
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketGradeToVaultListRequest"
  /v1/vault-markets/grade-to-vault/{id}/keep:
    post:
      summary: Keep the graded unit in your vault without listing it. The flow ends; list it any time from the vault.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradeToVaultItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradeToVaultKeep
  /v1/vault-markets/grade-to-vault/{id}/cancel:
    post:
      summary: "Stop the flow before the card goes to the grader (still picked, or its slot only reserved: nothing was charged)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketGradeToVaultItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketGradeToVaultCancel
  /v1/vault-markets/units/{id}/evidence:
    get:
      summary: Evidence on a vault unit:its 3D scans (model, texture, listing photos) and its grade report (grader, grade, cert, verified against the grader record, hub intake photos). No owner identity.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketUnitEvidenceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketUnitEvidence
  /v1/vault-markets/units/{id}/evidence/scans:
    post:
      summary: Add a finished scan of your own (`captureId`, of the same catalogue item) to your vault unit. Shown as added by the owner, not as intake evidence.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketUnitEvidenceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketUnitEvidenceScan
  /v1/vault-markets/units/{id}/evidence/{evidenceId}:
    delete:
      summary: Take back a scan you added to your vault unit (intake evidence stays).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: evidenceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketUnitEvidenceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketUnitEvidence
  /v1/vault-markets/hall/lenders:
    get:
      summary: "The vault units lent to this week's Hall of Grails exhibition and on show now, in plinth order: the item (skuId, name, imageUrl, grade), the lender as the plate names them (a display name, or \"a collector\"), the plate lines and how many exhibitions the unit has stood in. meta.exhibition is the week (key, title, endsAt). Names no ids and no amounts."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketHallLendersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketHallLenders
  /v1/vault-markets/hall/loans:
    get:
      summary: "Your Hall of Grails desk: this week's exhibition, the rules (maxLive loans, shownPerHolder per exhibition, repPoints per exhibition shown), reputation (exhibitions finished), your loans (status active, ending or ended; onShowNow, showingUntil, exhibitions, the next exhibition it fits, the Lent to the Hall badge) and the vault units you could lend (canLend, or the blocker in words, and the next exhibition each fits). Display only."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketHallLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketHallLoan
    post:
      summary: "Lend a unit in your Crossly vault to the Hall of Grails: { vaultItemId, credit: 'name' | 'anonymous' }. A standing loan of display rights only: the unit goes on a plinth, under a plate naming you (or \"a collector\"), in every weekly exhibition whose category it fits. It never moves and stays yours to list, sell or withdraw. Earns reputation per exhibition shown; no cash. Resumes a loan you opted out of while it still shows."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketHallLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketHallLoan
  /v1/vault-markets/hall/loans/{id}/opt-out:
    post:
      summary: Opt a Hall of Grails loan out, at any time. A unit on a plinth this week finishes this exhibition (status ending, showingUntil); otherwise the loan ends now (status ended).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketHallLoanOptOutResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketHallLoanOptOut
  /v1/vault-markets/hall/loans/{id}/credit:
    post:
      summary: "Change how the plate on a lent unit's plinth names you, from now: { credit: 'name' } (your display name) or { credit: 'anonymous' } (\"a collector\")."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketHallLoanCreditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketHallLoanCredit
  /v1/vault-markets/agent/watches:
    get:
      summary: Your price watches on book keys (best bid, lowest ask, last trade or market price, in cents), live ones first. `?live=true` for live only.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAgentWatchesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketAgentWatches
    post:
      summary: 'Watch a book key: tell me once when its best bid, lowest ask, last trade or market price crosses a price (cents). Leave out direction for "crosses" (whichever way it has to move). Never trades. At most 50 live, each for 90 days.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketAgentWatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAgentWatch
  /v1/vault-markets/agent/watches/{id}:
    delete:
      summary: Cancel a live price watch. Returns the watch.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAgentWatchesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketAgentWatch
  /v1/vault-markets/agent/drafts:
    get:
      summary: "Limit orders the shopping agent drafted for you, newest first. A draft places nothing: send its orderBody to POST /api/v1/vault-markets/pro/orders to place it."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAgentDraftsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketAgentDrafts
  /v1/vault-markets/agent/drafts/{id}:
    get:
      summary: "One drafted order: item, side, units, limit (cents), the book when drafted, status, and the orderBody that places it."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAgentDraftsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketAgentDraft
  /v1/vault-markets/agent/drafts/{id}/cancel:
    post:
      summary: Throw a drafted order away (only while it is still a draft). Returns { ok, draft }.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketAgentDraftCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAgentDraftCancel
  /v1/vault-markets/paper/missions:
    get:
      summary: 'Your paper-trading missions (play money only): each mission with what to do, your count toward its target, whether it is done and when, plus a suggested market for the "Read the mark" mission. Progress is observed by the server from your paper orders and fills, price watches, set goals and graded mark checks. Missions earn world quest progress and cosmetic pins, never money.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPaperMissionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPaperMissions
  /v1/vault-markets/paper/missions/mark-check:
    post:
      summary: 'Answer the "Read the mark" mission: the quality letter (A, B or C) you read on a market page, checked against the stored mark. One answer per market, 10 a day. Returns `{ bookKey, answer, correct, quality, mission, next }`.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPaperMissionMarkCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPaperMissionMarkCheck
  /v1/vault-markets/paper:
    get:
      summary: "Your paper trading account (play money only, never real or convertible; opened at $10,000 the first time): play cash, buying power, paper positions at the real marks, P&L, working paper orders, recent paper fills and this week on the leaderboard."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPaperResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPaper
  /v1/vault-markets/paper/orders:
    get:
      summary: "Your paper orders since your last reset, newest first: working, done (filled, cancelled, expired) or all. Play money only."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPaperOrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPaperOrders
    post:
      summary: Place a paper order (play money only). It takes visible real liquidity now at book prices with the taker fee simulated; a GTC limit rests the rest with a queue-position estimate, filled later as the real tape reaches it. Sells only paper units you hold (no paper shorts). Never touches the real book. Returns `{ order, fills }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPaperOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPaperOrder
  /v1/vault-markets/paper/fills:
    get:
      summary: "Your paper fills since your last reset, newest first: price, simulated fee, taker or maker, and whether a visible real order (book) or a real trade (tape) filled it. Play money only."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPaperFillsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPaperFills
  /v1/vault-markets/paper/quote:
    get:
      summary: "What a paper order would fill against the real book now, without placing it: units fillable inside the limit (a market order uses the 5% protection band around the mark), average price, simulated fee, and the queue ahead of any rest."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPaperQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPaperQuote
  /v1/vault-markets/paper/orders/{id}/cancel:
    post:
      summary: "Cancel a working paper order: the play cash or paper units it held come back. Returns `{ order }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPaperOrderCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPaperOrderCancel
  /v1/vault-markets/paper/reset:
    post:
      summary: "Reset your paper account to $10,000 of play money: working paper orders are cancelled, paper positions cleared, and your leaderboard week starts again. Once a day."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPaperResetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPaperReset
  /v1/vault-markets/paper/leaderboard:
    get:
      summary: "The weekly paper trading leaderboard (opt-in, display names only): best return on play equity this week (or a past `week`, its Monday as YYYY-MM-DD), with your own line. Nothing is won or paid."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPaperLeaderboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPaperLeaderboard
    put:
      summary: Join or leave the weekly paper leaderboard. Joining needs a display name (2 to 24 letters, numbers, spaces, dots, dashes or underscores), never your real name. Returns `{ optIn, displayName }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketPaperLeaderboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketPaperLeaderboard
  /v1/vault-markets/mode:
    get:
      summary: "Your Vault Markets mode: simple (buy, sell and what it is worth) or pro (the full terminal), whether you chose it or it was set for you (new people start in simple; people already trading start in pro), and when."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketModeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketMode
    put:
      summary: "Choose your Vault Markets mode: `mode` simple or pro. Remembered for you on the web and in the app. A display preference only: it places nothing and moves no money."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketModeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketMode
  /v1/vault-markets/worth:
    get:
      summary: "What one book key (variantId:condition:gradeKey, `bookKey`) is worth: the mark in cents with its quality (A from trades, B from firm quotes, C indicative, none) and band, what Instant Exit would pay for one unit now from the best resting bid (yours left out), and your units: how many you hold, how many are free to sell, their value at the mark and what selling every free one now would fetch from today’s bids. Plain-words `headline` and `lines`. Read only."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketWorthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketWorth
  /v1/vault-markets/worth/vault:
    get:
      summary: "What your whole vault is worth now: value at the marks split into reliable and indicative marks, cost and P&L, today’s change, and an estimate of what the units free to sell would fetch from the bids resting on the book now. Read only."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketWorthVaultResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketWorthVault
  /v1/vault-markets/units/{id}/story:
    get:
      summary: "One vault unit's story, oldest first: intake (with scan and grade evidence when it has some), grades, owners, sales at their prices, loans, pledges, Hall of Grails exhibitions, receipt-token exports and redemptions, and each warehouse-receipt hash-chain step (re-verified on read: chain.ok). People are named only while their public vault profile is on; others are 'A collector'."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketUnitStoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketUnitStory
  /v1/vault-markets/positions/{id}/units:
    get:
      summary: The vault units of one of your positions that you hold (a leveraged long's collateral), each with its story link.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPositionUnitsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPositionUnits
  /v1/vault-markets/alert-prefs:
    get:
      summary: "Your vault alert settings: every kind (price, fill, margin_call, adl, p2p_loan, auction, market_open, receipt_token, set_goal, follow, account), every channel (push, telegram, terminal, email, webhook) with whether it is set up, the full on/off grid, the locked switches (a critical kind always pushes) and quiet hours."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketAlertPrefResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketAlertPref
    put:
      summary: 'Change vault alert settings: `matrix` ({ kind: { channel: true|false } }, merged onto what is set), `quietHours` ({ start: "HH:MM", end: "HH:MM", tz } or null to clear) and `telegram` (the Telegram master switch). Locked switches are ignored. Returns the new settings.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketAlertPrefResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketAlertPref
  /v1/vault-markets/alert-prefs/test:
    post:
      summary: "Send yourself one test alert of a `kind` through your own switches. Returns `{ sent, kind, plan }`, where plan says per channel: send, off, quiet (held by quiet hours) or unavailable."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketAlertPrefTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAlertPrefTest
  /v1/vault-markets/alert-log:
    get:
      summary: "What the alerts hub did with your recent vault alerts (`?limit=` 1 to 200, default 50): kind, title, the channels it went to, what was held (channel:reason) and the email digest state."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAlertLogResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketAlertLog
  /v1/vault-markets/follows/sharing:
    get:
      summary: "Your sharing switches: the public vault profile, new buys, units sent in, sales, Hall loans, bids and asks for copy-watchers, and the leaderboards. All off until you turn them on."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketFollowSharingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketFollowSharing
    put:
      summary: Turn sharing switches on or off (`isPublic`, `showBuys`, `deposits`, `sales`, `hallLoans`, `orders`, `leaderboard`). A switch shows only what happens after it goes on; all but the profile itself need the profile public.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketFollowSharingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketFollowSharing
  /v1/vault-markets/follows/following:
    get:
      summary: "The collectors you follow who have a public vault: what each shares and whether you copy-watch them."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketFollowFollowingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketFollowFollowing
  /v1/vault-markets/follows/feed:
    get:
      summary: Public vault activity of the collectors you follow (buys, units sent in, sales, Hall loans), newest first, never a price. Filter with `kinds`; page with `before`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketFollowFeedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketFollowFeed
  /v1/vault-markets/follows/profiles/{handle}/activity:
    get:
      summary: One collector public vault activity, newest first, never a price. 404 when their vault is not public.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketFollowFeedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketFollowProfileActivity
  /v1/vault-markets/follows/leaderboards:
    get:
      summary: "An opt-in return leaderboard (`period` 30d, 90d or 365d; `category` all or a category slug), ranked by risk-adjusted return from the book A/B marks. Percent and risk only: no dollars, no volume."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketFollowLeaderboardsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketFollowLeaderboards
  /v1/vault-markets/follows/copy-watch:
    get:
      summary: The collectors you copy-watch and whether each still shares bids and asks.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketFollowCopyWatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketFollowCopyWatch
  /v1/vault-markets/follows/copy-watch/{handle}:
    put:
      summary: "Copy-watch a collector who shares bids and asks: you get an alert when they rest a new one. It never places an order for you."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketFollowCopyWatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketFollowCopyWatch
    delete:
      summary: Stop copy-watching a collector.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketFollowCopyWatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketFollowCopyWatch
  /v1/vault-markets/follows/copy-watch/alerts:
    get:
      summary: "Your copy-watch alerts, newest first: who, bid or ask, quantity, limit price, market, and whether it still rests. Page with `before`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketFollowCopyWatchAlertsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketFollowCopyWatchAlerts
  /v1/vault-markets/follows/copy-watch/alerts/read:
    post:
      summary: Mark every copy-watch alert read. Returns `{ marked }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketFollowCopyWatchAlertReadResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketFollowCopyWatchAlertRead
  /v1/vault-markets/world/floor:
    get:
      summary: "The Trading Floor in Crossly World: trades (the newest trades on every vault book in the last day, at most 40, newest first: bookKey, name, priceCents, priceText, side -- buy when a buyer took an ask, sell when a seller hit a bid, cross for an auction -- and ageS), tickers (the big board: the most-traded markets, each with its last trade price, the change from the last trade before today in basis points, trades today and the display mark with its quality), bell (Market Open: ringing for ten minutes after a new key opens, with the key and its market link, and what opens next) and trades24h. Every price is a trade on the Crossly order book; it never shows who traded. Nothing can be traded in the room."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketWorldFloorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketWorldFloor
  /v1/vault-markets/world/floor/boards:
    get:
      summary: 'The Trading Floor boards for the round-13 products: odds (the probability ladder: the busiest open "Will it hit?" markets with probabilityBps, the market’s own price as a probability, display only), heat (option-chain heat: per listed underlying, open interest and the last day’s volume in milli-contracts in strike buckets around the underlying, a 0..1 heat per bucket and the at-the-money implied vol, display only) and shares (Vault Shares tickers: last share price in cents, changeBps from the last fill before today, shares traded today and the implied item value, display only). quality is always C: none of these is ever a mark. It never shows who traded.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketWorldFloorBoardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketWorldFloorBoard
  /v1/vault-markets/set-goals/sets:
    get:
      summary: "Sets to start a goal on. With q (2+ characters): a word-start search of every catalogue set. Without: the sets you hold pieces of in the vault, then the collections you are building. Each with your live goal on it, if any."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSetGoalSetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketSetGoalSets
  /v1/vault-markets/set-goals:
    get:
      summary: "Your set goals: the set, the target a piece must meet, pieces held of the total (from your vault), and the working basket bid."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSetGoalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketSetGoals
    post:
      summary: "Start a goal on a catalogue set (category, brandSlug, modelSlug from the set search), optionally with a target: one condition, and any grade, ungraded, or one exact grade. One live goal per set."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSetGoalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSetGoal
  /v1/vault-markets/set-goals/{id}:
    get:
      summary: "One set goal: every piece in the set order, held (with the vault unit) or missing (with the cheapest marked book key that meets the target and its mark), the conditions and grades seen, and the working basket bid with its legs."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSetGoalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSetGoal
    patch:
      summary: "Change what a piece must be to count (condition, grade mode, grade). Refused while a basket bid works: cancel it first."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSetGoalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketSetGoal
    delete:
      summary: Remove a set goal. A working basket bid is cancelled first; what filled stays in your vault.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketSetGoalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketSetGoal
  /v1/vault-markets/set-goals/{id}/basket-plan:
    get:
      summary: "What a basket bid would place now, without placing it: one leg per missing piece (cheapest first, the mark plus maxBpsOverMark as the limit), the pieces skipped and why, and the most it can cost (limits plus the worst-case buyer fee), never more than budgetCents."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSetGoalBasketPlanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSetGoalBasketPlan
  /v1/vault-markets/set-goals/{id}/basket:
    post:
      summary: 'Place the "complete my set" basket bid: one GTC limit buy per missing piece, under a hard budget, paid by one of your saved cards or your custodian account. Every leg passes pre-trade risk and the ID line like any order. Idempotent on clientBasketId. One working basket per goal; its legs are cancelled once the set is complete.'
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSetGoalBasketsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSetGoalBasket
  /v1/vault-markets/set-goals/{id}/basket/cancel:
    post:
      summary: "Cancel the goal working basket bid: every working leg comes off the book; what already filled stays in your vault."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSetGoalBasketsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSetGoalBasketCancel
  /v1/vault-markets/set-goals/{id}/baskets:
    get:
      summary: A set goal basket bids, newest first, each with its budget, what it committed and spent, and every leg (piece, book key, limit, pro order id, status).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketSetGoalBasketsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketSetGoalBaskets
  /v1/vault-markets/valuation-statements/preview:
    get:
      summary: "An insurance or appraisal statement for a day (purpose, asOf YYYY-MM-DD, default today), built but not issued: every unit you held that day at its mark, with quality, last trade, grade and cert, and the total. No id, no hash."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketValuationStatementPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketValuationStatementPreview
  /v1/vault-markets/valuation-statements:
    post:
      summary: "Issue an insurance or appraisal statement for a day: frozen with the sha256 of its record, sealed in the Crossly audit chain, with a public verify link. preparedFor and policyRef are printed on it and never shown on verify. Moves no money."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketValuationStatementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketValuationStatement
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketValuationStatementRequest"
    get:
      summary: "The insurance and appraisal statements you issued, newest first: purpose, date, units, total at the marks, hash and verify link."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketValuationStatementsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketValuationStatements
  /v1/vault-markets/valuation-statements/{id}:
    get:
      summary: "One statement you issued: every unit, the totals by mark quality, the methodology, its sha256, its audit-chain seal and the verify link."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketValuationStatementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketValuationStatement
  /v1/vault-markets/valuation-statements/{id}/pdf:
    get:
      summary: One statement you issued as a PDF.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: A PDF document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketValuationStatementPdf
  /v1/vault-markets/valuation-statements/{id}/verify:
    get:
      summary: "Check any issued statement by its id, as an insurer would: purpose, date, totals by mark quality and the sha256; intact (the stored record still hashes to it), seal.ok (its audit-chain entry still carries it) and, with ?hash=, whether yours matches. Never the holder or the units."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketValuationStatementVerifyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketValuationStatementVerify
  /v1/vault-markets/joint:
    get:
      summary: Your joint vaults and the invitations waiting for you, with the gate (open, missing env), the joint terms in words and what each right allows. A JointVaultsHome object, not a collection.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketJointResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketJoint
    post:
      summary: "Open a joint vault (ID first): you hold full rights and accept the current joint terms. `invite` sends invitations (@username or email, each with view, trade or full rights). Returns `{ id, status, invited }`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJoint
  /v1/vault-markets/joint/{id}:
    get:
      summary: "One joint vault (active members only): members and rights, the units in it at the mark with each owner of record, totals, recent joint trades, and the activity from the audit trail."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketJointByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketJointById
  /v1/vault-markets/joint/{id}/invite:
    post:
      summary: Invite a Crossly user (full rights only). They have 14 days and show ID to join. Returns `{ userId, rights, expiresAt }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointInvite
  /v1/vault-markets/joint/{id}/respond:
    post:
      summary: Accept (ID first; accepts the current joint terms) or decline an invitation. Returns `{ status }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointRespondResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointRespond
  /v1/vault-markets/joint/{id}/terms:
    post:
      summary: Accept the current joint terms (needed to trade after the terms version changes). Returns `{ termsVersion }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TermsVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointTerm
  /v1/vault-markets/joint/{id}/members/{userId}/rights:
    post:
      summary: Set a member rights to view, trade or full (full rights only; the vault always keeps a full member). Returns `{ userId, rights }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointMemberRightResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointMemberRight
  /v1/vault-markets/joint/{id}/members/{userId}/remove:
    post:
      summary: Remove a member (full rights), or leave when userId is you. Their units go back to their own account and their joint orders are cancelled. Returns `{ userId, status, unitsReturned, jointStatus }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointMemberRemoveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointMemberRemove
  /v1/vault-markets/joint/{id}/units:
    post:
      summary: Put units you own into the joint vault (each stored and free). They keep you as owner of record and stay on the shelf. Returns `{ added, vaultItemIds }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointUnitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointUnit
  /v1/vault-markets/joint/{id}/units/remove:
    post:
      summary: Take units out of the joint vault, back to their owner own account (yours at any rights; anyone else with full rights). Returns `{ removed, vaultItemIds }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointUnitRemoveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointUnitRemove
  /v1/vault-markets/joint/{id}/trades:
    get:
      summary: "The joint vault trades, newest first: side, book key, limit, who started it, whose account the order sits on, and the order standing on the book."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketJointTradesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketJointTrades
    post:
      summary: Place a limit order for the joint vault (trade or full rights, ID shown). A buy (bookKey) is placed on you, paid from your own Vault Markets account, and what it buys is booked to the joint vault. A sell (vaultItemId of a unit in it) is placed on the unit owner of record, who gets the proceeds; pre-trade checks run against you too. Returns `{ tradeId, side, bookKey, ownerUserId, order }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointTradeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointTrade
  /v1/vault-markets/joint/{id}/trades/{tradeId}/cancel:
    post:
      summary: Cancel a working joint order (trade or full rights); what filled stays filled. Returns `{ tradeId, order }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: tradeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointTradeCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointTradeCancel
  /v1/vault-markets/joint/{id}/close:
    post:
      summary: "Close the joint vault (full rights): open joint orders are cancelled and every unit goes back to its owner. Returns `{ status, unitsReturned }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketJointCloseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketJointClose
  /v1/vault-markets/tod:
    get:
      summary: "Your transfer-on-death setup: the gate and terms, whether you accepted them, your beneficiaries and shares, units with their designations and who the plan gives them to today, and open claims on your account (which you can stop). A TodOverview object, not a collection."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketTodResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTod
  /v1/vault-markets/tod/terms:
    post:
      summary: Accept the current transfer-on-death terms. Returns `{ termsVersion }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TermsVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketTodTerm
  /v1/vault-markets/tod/beneficiaries:
    put:
      summary: "Replace your beneficiary list (keep an id to edit one): full name, contact (email or @username), relationship, and share in basis points; shares add up to 10000. Returns `{ beneficiaries, removed }`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketTodBeneficiaryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketTodBeneficiary
  /v1/vault-markets/tod/designations:
    put:
      summary: Leave one of your units to one beneficiary (beneficiaryId null clears it; the unit then follows the shares). Returns `{ vaultItemId, beneficiaryId }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketTodDesignationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketTodDesignation
  /v1/vault-markets/tod/claims/{id}/object:
    post:
      summary: Stop a transfer-on-death claim made on your own account. Returns `{ id, status, estateUnlocked }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketTodClaimObjectResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketTodClaimObject
  /v1/vault-markets/tod/my-claims:
    get:
      summary: "Claims you filed as a beneficiary: status in words, documents sent (names only), the waiting period, and units moved or held. A TodMyClaims object, not a collection."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketTodMyClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTodMyClaim
    post:
      summary: Start a claim as a named beneficiary (ID first), naming the account holder by @username or email. It stays a draft until you add documents and submit. Returns `{ id, status, existing }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketTodMyClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketTodMyClaim
  /v1/vault-markets/tod/my-claims/{id}/documents:
    post:
      summary: "Add one document to a draft claim (or one ops asked more of): kind, filename and the file as base64 (PDF, JPEG or PNG, up to 8 MB). Kept privately for ops review. Returns `{ id, kind, label, filename, bytes }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketTodMyClaimDocumentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketTodMyClaimDocument
  /v1/vault-markets/tod/my-claims/{id}/submit:
    post:
      summary: Send a claim for ops review (it needs a death certificate). The account holder is told and can stop it. Returns `{ id, status }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketTodMyClaimSubmit
  /v1/vault-markets/tod/my-claims/{id}/withdraw:
    post:
      summary: Withdraw a claim before it is released. Returns `{ id, status }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketTodMyClaimWithdraw
  /v1/vault-markets/vault-suggestions:
    get:
      summary: "What to send to the vault: your inventory items whose book key has a liquid vault market (tier A, B or C), best first. Each has a score (0 to 100) and its reasons, the market (tier, mark and its quality, best bid, best vault ask, spread), Instant Exit now, your list price, days listed without selling, and the vault fee. `meta.summary` counts what was left out and why. Inform only; send with POST /api/v1/vault-markets/supply/send."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketVaultSuggestionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketVaultSuggestions
  /v1/vault-markets/vault-suggestions/items/{id}:
    get:
      summary: "One inventory item: its vault suggestion, or in plain words why there is none (`status`: suggested, not_found, no_stock, not_matched, in_vault or no_market)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketVaultSuggestionItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketVaultSuggestionItem
  /v1/vault-markets/health:
    get:
      summary: "Portfolio health of your vault holdings at Crossly marks: concentration by single item, category, grade and grader (shares, HHI on 0 to 10000, its band and effective number of holdings), value by liquidity tier, the stress grid (each category and everything down 10, 20 and 30 percent), value by mark quality, plain observations, and the held items a what-if can run on. Information only, not advice."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketHealthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketHealth
  /v1/vault-markets/health/what-if:
    get:
      summary: "What if one held item moved by moveBps (-10000 to 10000 basis points of its mark): the item, your vault total, the item and its category share of the vault, and the single-item HHI, before and after. A scenario on the mark, not a price you could sell at."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: query
          name: bookKey
          required: true
        - schema:
            type: integer
            minimum: -10000
            maximum: 10000
          in: query
          name: moveBps
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketHealthWhatIfResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketHealthWhatIf
  /v1/vault-markets/tax/loss-suggestions:
    get:
      summary: "Tax-loss suggestions: the units you hold whose mark is below your cost, each with its lot (acquired when and how, cost in cents), short or long term if sold today and the day a short lot turns long, the estimated loss at the mark before selling fees, mark quality, what stops a sale, and a link to the ordinary sell ticket. With totals by term, the gains realised so far this year, and a not-tax-advice disclosure. Never sells."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketTaxLossSuggestionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTaxLossSuggestion
  /v1/vault-markets/tax/options:
    get:
      summary: "Your fractional options tax lots for a calendar year (`year`, default this year): FIFO disposals (closed or settled) with proceeds, cost, gain in cents and holding term, each flagged as a possible Section 1256 contract, the totals with the 60/40 split, and the positions open at year end. Real fills only; practice never appears. Not tax advice."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketTaxOptionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTaxOption
  /v1/vault-markets/tax/shares:
    get:
      summary: "Your Vault Shares tax lots for a calendar year (`year`): disposals (share-book sales, exit payouts) with holding periods, proceeds, cost and gain in cents, the open lots and the totals. The broker-dealer issues the 1099-B; not tax advice."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketTaxShareResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTaxShare
  /v1/vault-markets/tax/predictions:
    get:
      summary: "Your prediction-market results for a calendar year (`year`), as the venue reports them: each settled or voided real-money position with its venue, cost, fees, payout, refund, closing-trade gains and net in cents, and the totals. Practice never appears. Not tax advice."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketTaxPredictionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketTaxPrediction
  /v1/vault-markets/home/units:
    get:
      summary: '"Show my vault": the vault units you hold, the ones standing in your Crossly World home first. Each: vaultItemId, title, grade, imageUrl, bookKey (its market), inHome, visitors (visitors to your home see it). Also your home (slug, privacy, path), max units one home shows, shown, visitorsSee and a note on who sees what. Your home is made on first read. No prices.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketHomeUnitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketHomeUnit
    put:
      summary: "Show exactly these vault units in your Crossly World home: { units: [{ vaultItemId, visitors }] }. Units left out come out of their cases; units already standing stay where they are; new ones go into a free display-case or shelf slot, else a glass case of their own along a wall. visitors: true lets people who may enter your home see that unit (default false: only you). Returns placed, unplaced (no free case: the home is full), refused (with why) and the desk. Display only: nothing moves."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateVaultMarketHomeUnitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketHomeUnit
  /v1/vault-markets/units/{id}/ar:
    get:
      summary: "A vault unit as an AR model, for \"See it in your room\" (the web's /ar/vault-<id> page hands it to Scene Viewer, WebXR or Quick Look): title, model (a path under /models, without .glb, at real size), scanUrl (the unit's own captured mesh, when it has one), imageUrl, art, tint, scale, bookKey, backPath and mine. Your own units always; somebody else's only while they show it to visitors in a home you may enter (else 404)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketUnitArResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketUnitAr
  /v1/vault-markets/price-widgets:
    get:
      summary: Your price widgets, newest first, each with its iframe and script-tag snippets. `meta.codes` lists your affiliate codes a widget can link through; `meta.max` is the cap on live widgets.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPriceWidgetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPriceWidgets
    post:
      summary: "Make a price widget for one vault market (`kind` mark + `bookKey`) or one public index (`kind` index + `indexSlug`): range, layout (compact or chart), theme (auto, light, dark), optionally your own affiliate code for the link back and the sites allowed to show it (empty = any). Returns the widget with its snippets."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPriceWidgetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPriceWidget
  /v1/vault-markets/price-widgets/preview:
    post:
      summary: "What a widget would show before you save it: `view` (value, move, quality, n, as-of, link back) and `html`, the exact page the iframe serves. Nothing is stored."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPriceWidgetPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPriceWidgetPreview
  /v1/vault-markets/price-widgets/{id}:
    get:
      summary: One of your price widgets, with its iframe and script-tag snippets and URLs.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPriceWidgetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPriceWidget
    patch:
      summary: "Change a widget: name, range, layout, theme, affiliate code (null for none) or allowed sites. The market or index it shows never changes: make a new widget for another."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPriceWidgetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketPriceWidget
    delete:
      summary: Delete a widget. Pages that still paste it show that it is no longer available. Returns `{ id, archived }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketPriceWidgetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketPriceWidget
  /v1/vault-markets/pop-reports:
    get:
      summary: "Grading population report for one market (`bookKey`): focus (on a graded market: its grade, pop = copies graded at exactly that grade, higher = copies graded better by the same grader, total, asOf and source), graders (each grader ladder for the card, best grade first, from one report: the newest, the population feed over a hand entry on the same date), provider.connected, and status (ok, not_synced, no_report or no_source) with explain, which says in plain words what is missing. source is provider (the population feed) or ops (entered by Crossly from the grader published report). Counts only, never a price."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: query
          name: bookKey
          required: true
          description: variantId:condition:gradeKey, grade "-" when ungraded.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPopReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPopReport
  /v1/vault-markets/widget/summary:
    get:
      summary: "The home-screen widget summary: portfolio value at the mark with its move since the previous marks (cents and bps) and the share resting on reliable A/B marks, the three biggest movers among what you hold (the market movers when you hold nothing; `movers.source` says which), and one watchlist key (`?key=` a book key on your watchlist; else your newest watch) with a 14-day sparkline. Every price is from the Crossly order book and carries its mark quality (A, B, C or none). Cached for five minutes."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketWidgetSummaryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketWidgetSummary
  /v1/vault-markets/widget/tokens:
    get:
      summary: "Your live home-screen widget tokens, one per phone: id, name (the phone), public prefix, created and last used. The secret is never returned again."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketWidgetTokensResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketWidgetTokens
    post:
      summary: Mint a widget token for one phone (`deviceName`, `installId`); minting again with the same pair replaces that phone token. The token reads the widget summary and nothing else, and is returned once. At most five phones.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketWidgetTokenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketWidgetToken
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketWidgetTokenRequest"
    delete:
      summary: "Turn the widget off on every phone: revokes all your widget tokens. Returns `{ revoked }`, how many."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketWidgetTokenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketWidgetToken
  /v1/vault-markets/widget/tokens/{id}:
    delete:
      summary: "Turn the widget off on one phone: revokes that widget token at once. Only a widget token can be revoked here."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketWidgetTokenByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketWidgetTokenById
  /v1/vault-markets/shares:
    get:
      summary: "Vault Shares at a glance: the venue mode in force (self, partner or paper) and the env it still needs, the rules (about $5 a share, 100 to 100,000 shares, originator keeps 0-50%, 3% origination, maker 0 / taker 100 bps, 90-day lockup, buyouts at the mark x 1.10 with a two-thirds vote) and the disclosure."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShare
  /v1/vault-markets/shares/series:
    get:
      summary: "Vault Shares series: open offerings first, then trading, then the rest. `status` and `bookKey` narrow it. Each with its terms, progress, last share price and implied item value (display only, never a mark), and your holding."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareSeriesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareSeries
    post:
      summary: Propose a Vault Shares series for one of your units (`vaultItemId`), keeping `retainedShares` (0-50%), with an optional minimum raise, offering length (7-60 days) and reserve. Ops then qualify it, attach the offering circular and open the offering. With no venue it is a practice series. Pass `requestId` to make a retry safe.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareSeriesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSery
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSeryRequest"
  /v1/vault-markets/shares/series/{id}:
    get:
      summary: "One series: the offering, the share book depth, the latest fills, holders as share percentages (nobody named), buyouts and your vote, your orders and subscriptions."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareSeryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShareSery
  /v1/vault-markets/shares/series/{id}/book:
    get:
      summary: "A share book’s depth: whole shares per price level (integer cents a share), best first."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareSeryBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShareSeryBook
  /v1/vault-markets/shares/series/{id}/tape:
    get:
      summary: The latest fills on a share book, newest first, with which side made the market.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareSeryTapeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareSeryTape
  /v1/vault-markets/shares/me:
    get:
      summary: "Your Vault Shares: shares and percent of each item, cost, implied value at the last price, your subscriptions and the payouts you were sent."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShareMe
  /v1/vault-markets/shares/world:
    get:
      summary: 'The world vault home’s fractional tiles: each item you own a share of, with "you own 3.2%".'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareWorldResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareWorld
  /v1/vault-markets/shares/subscriptions:
    get:
      summary: Your offering subscriptions, newest first, with where each stands (pending, escrowed, allocated, refunded).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareSubscriptionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareSubscriptions
  /v1/vault-markets/shares/investor:
    get:
      summary: "Your investor account at the venue in force: its status, the investor terms you accepted, and your Reg A+ limit for one offering (10% of the greater of income and net worth unless accredited)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareInvestorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShareInvestor
    post:
      summary: "Open or update your investor account at the venue: accept the current investor terms (`acceptTerms`), and state accredited status or your annual income and net worth for the Reg A+ limit. Needs a verified ID."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareInvestorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareInvestor
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareInvestorRequest"
  /v1/vault-markets/shares/preview:
    get:
      summary: "Fractionalize instead: whether one of your vault units can become a Vault Shares series now (stored, tier A or B, reliable mark of $1,000 or more, declared and insured, free) and the offering terms it would get."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSharePreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSharePreview
  /v1/vault-markets/shares/series/{id}/withdraw-proposal:
    post:
      summary: Withdraw your own proposal before its offering opens.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareSeriesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSeryWithdrawProposal
  /v1/vault-markets/shares/series/{id}/subscribe:
    post:
      summary: Subscribe for whole `shares` in an open offering at its fixed price. The money goes into the venue’s escrow in your own name and is refunded if the offering misses its minimum. Reg A+ limits apply. A joint vault member with trade rights may pass `jointVaultId`. Pass `requestId` to make a retry safe.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareSubscriptionsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSerySubscribe
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSerySubscribeRequest"
  /v1/vault-markets/shares/subscriptions/{id}/cancel:
    post:
      summary: "Cancel an escrowed subscription while its offering is still open: the escrow is refunded."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareSubscriptionsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSubscriptionCancel
  /v1/vault-markets/shares/orders:
    get:
      summary: Your share-book orders, newest first; `seriesId` and `open` narrow it.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareOrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareOrders
  /v1/vault-markets/shares/series/{id}/orders:
    post:
      summary: "Place an order on a series’ share book: `side`, `type` limit or market (immediate-or-cancel inside a 10% band), `tif` gtc / gtd (`expiresAt`) / ioc, whole `shares` or a buy’s `amountCents` (turned into whole shares at the most it could pay), integer `limitCents` a share, `postOnly`. Fees: maker 0, taker 100 bps plus the broker-dealer pass-through. Self-trades are prevented. Pass `requestId` to make a retry safe."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareOrdersItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSeryOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSeryOrderRequest"
  /v1/vault-markets/shares/orders/{id}/cancel:
    post:
      summary: Cancel one of your open share-book orders.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareOrdersItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareOrderCancel
  /v1/vault-markets/shares/series/{id}/buyouts:
    post:
      summary: "Bid for the whole item (`offerCents`, at least the mark x 1.10). The bid is escrowed at the venue, then holders vote by shares: two-thirds yes accepts, a majority against rejects, 14 days with no majority against accepts. Accepted, the item is yours and the price is paid out pro rata after storage and insurance."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareBuyoutFundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSeryBuyout
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSeryBuyoutRequest"
  /v1/vault-markets/shares/buyouts/{id}/vote:
    post:
      summary: Vote `yes` or `no` on a buyout with the shares you held when the vote opened. You can change your vote while it is open.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareBuyoutFundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareBuyoutVote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareBuyoutVoteRequest"
  /v1/vault-markets/shares/buyouts/{id}/fund:
    post:
      summary: "Your whole-unit bid reached the reserve: fund the price through your investor account within 72 hours to buy the item from its holders (no vote)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareBuyoutFundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareBuyoutFund
  /v1/vault-markets/shares/buyouts/{id}/withdraw:
    post:
      summary: Withdraw your buyout bid before its vote opens; the escrow is refunded.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareBuyoutFundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareBuyoutWithdraw
  /v1/vault-markets/shares/series/{id}/recombine:
    post:
      summary: "You hold every share: take the item back whole. With `withdraw`, it ships home at once (any receipt token is burned as it leaves). Storage and insurance the series owed stay with the unit."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareSeryRecombineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSeryRecombine
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSeryRecombineRequest"
  /v1/vault-markets/shares/paper:
    get:
      summary: "Your practice account for Vault Shares (play money only, never real, never convertible): cash, practice holdings, open practice orders, recent practice fills."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSharePaperResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSharePaper
  /v1/vault-markets/shares/paper/series/{id}/book:
    get:
      summary: "A series’ practice book: practice orders and the house quote 1% either side of the reference price."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSharePaperSeryBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketSharePaperSeryBook
  /v1/vault-markets/shares/paper/series/{id}/orders:
    post:
      summary: Place a practice order (play money) with the same rules as the real share book.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketSharePaperSeryOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSharePaperSeryOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSeryOrderRequest"
  /v1/vault-markets/shares/paper/orders/{id}/cancel:
    post:
      summary: Cancel an open practice order.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketSharePaperSeryOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSharePaperOrderCancel
  /v1/vault-markets/shares/paper/series/{id}/subscribe:
    post:
      summary: Subscribe with play money to a practice series’ offering.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSharePaperResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSharePaperSerySubscribe
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketSharePaperSerySubscribeRequest"
  /v1/vault-markets/shares/paper/reset:
    post:
      summary: Start the practice account over with fresh play money (once a day).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketSharePaperResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketSharePaperReset
  /v1/vault-markets/shares/drops:
    get:
      summary: "The Vault Shares drops calendar: announced and open offerings, soonest first, each with its phase (announced, early_access, requests, open), the countdown, the allocation (fcfs, pro_rata or lottery with a per-person cap), your Crossly One early-access time (it moves when you may ask, never the price) and whether you asked to be told."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareDropsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareDrops
  /v1/vault-markets/shares/series/{id}/watch:
    post:
      summary: "Ask to be told about a drop (`kind` notify: when your early access opens and when it opens to everyone) or join the waitlist of a sold-out first-come offering (`kind` waitlist, with the `shares` you want)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareSeryWatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSeryWatch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSeryWatchRequest"
  /v1/vault-markets/shares/series/{id}/unwatch:
    post:
      summary: Stop being told about a drop (`kind` notify) or leave its waitlist (`kind` waitlist).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareSeryWatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSeryUnwatch
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSeryUnwatchRequest"
  /v1/vault-markets/shares/series/{id}/history:
    get:
      summary: "A series’ full price history: OHLC candles of every share-book fill (`interval` 1h, 1d or 1w), the offering price, the change since the offering, and the appraisal history beside it. Share prices are display only, never a mark."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareSeryHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShareSeryHistory
  /v1/vault-markets/shares/series/{id}/appraisals:
    get:
      summary: "The item’s appraisal history: the offering valuation (sealed valuation statement), independent and insurance appraisals, and any buyout or exit price."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareSeryAppraisalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareSeryAppraisals
  /v1/vault-markets/shares/series/{id}/updates:
    get:
      summary: The item’s story, provenance, condition reports, appraisals and exhibitions, newest first. Holders also see holders-only updates.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareSeryUpdatesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareSeryUpdates
    post:
      summary: "Post an update on your own item’s series (you are its originator): `kind` story, provenance, condition, appraisal, exhibition or event, a `title`, a `body`, an optional https `mediaUrl`, `holdersOnly`. Holders are told."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSeryUpdate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSeryUpdateRequest"
  /v1/vault-markets/shares/series/{id}/perks:
    get:
      summary: "Holder perks on a series: whether you hold it, your holder badge, the links to visit the item in the world vault room and in AR, the viewing days with places left and your bookings."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareSeryPerkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShareSeryPerk
  /v1/vault-markets/shares/series/{id}/room:
    get:
      summary: "The holder room for a series (shareholders only): posts newest first under per-series aliases, never account names. `before` pages back."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareSeryRoomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShareSeryRoom
    post:
      summary: Post in the holder room (shareholders only), up to 1,000 characters.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareSeryRoomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSeryRoom
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/BodyRequest"
  /v1/vault-markets/shares/room/{id}/hide:
    post:
      summary: Take down one of your own holder-room posts (`reason`).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareRoomHideResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareRoomHide
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest"
  /v1/vault-markets/shares/viewings/{id}/book:
    post:
      summary: Book a place on a viewing day (shareholders only), with up to the day’s `guests`. Bookings close a day before; booking again changes your guests.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareViewingBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareViewingBook
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareViewingBookRequest"
  /v1/vault-markets/shares/viewing-bookings/{id}/cancel:
    post:
      summary: Cancel your viewing-day booking.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareViewingBookingCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareViewingBookingCancel
  /v1/vault-markets/shares/gifts:
    get:
      summary: Your share gifts, sent and received, newest first, with where each stands (offered, instructed, settled, declined, cancelled, expired, rejected).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareGiftsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareGifts
  /v1/vault-markets/shares/series/{id}/gifts:
    post:
      summary: "Give whole `shares` of a series to someone (`to`: their @handle, email or user id), with an optional `message`. The shares are set aside until they accept (14 days). On acceptance the broker-dealer or transfer agent verifies them and moves the shares on the register: no money moves, and your cost basis and holding date carry over."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareGiftsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareSeryGift
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareSeryGiftRequest"
  /v1/vault-markets/shares/gifts/{id}/accept:
    post:
      summary: Accept a share gift. Needs your own verified Vault Shares investor account; the venue then moves the shares to you on the register.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareGiftsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareGiftAccept
  /v1/vault-markets/shares/gifts/{id}/decline:
    post:
      summary: Decline a share gift offered to you.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareGiftsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareGiftDecline
  /v1/vault-markets/shares/gifts/{id}/cancel:
    post:
      summary: "Cancel a gift you offered, before it is accepted: the shares are free again."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareGiftsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareGiftCancel
  /v1/vault-markets/shares/auto-invest:
    get:
      summary: "Your recurring auto-invest plans: amount, weekly or monthly, the series and weights or the basket, what rolled over (budget too small for a whole share; your money stays at the venue), the next run."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareAutoInvestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareAutoInvest
    post:
      summary: "Start auto-invest: `amountCents` ($5-$10,000) `every` week or month into `seriesIds` (equal weights) or `targets` (seriesId + weightBps summing to 10,000) or a `basketId` (with `rebalance` to keep your own shares on its weights). Whole shares only; the rest rolls over. Offerings are subscribed at their price; trading books are bought at the best ask up to `maxPremiumBps` over the indicative value. `practice` runs it on paper."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareAutoInvestItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareAutoInvest
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareAutoInvestRequest"
  /v1/vault-markets/shares/auto-invest/{id}/update:
    post:
      summary: Change a plan (amount, cadence, series or weights, cap, rebalance) or set its `status` active, paused or cancelled.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareAutoInvestItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareAutoInvestUpdate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareAutoInvestUpdateRequest"
  /v1/vault-markets/shares/auto-invest/{id}/run:
    post:
      summary: Run a plan now (once a minute at most); the schedule does not move.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareAutoInvestRunResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareAutoInvestRun
  /v1/vault-markets/shares/auto-invest/{id}/runs:
    get:
      summary: "A plan’s runs, newest first: the budget, what each series bought, what was spent and what rolled over; rebalances too."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareAutoInvestRunsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareAutoInvestRuns
  /v1/vault-markets/shares/baskets:
    get:
      summary: "Theme baskets: curated model portfolios of Vault Shares series with target weights. You buy and own every share directly in your own name; a basket is never a fund."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketShareBasketsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketShareBaskets
  /v1/vault-markets/shares/baskets/{id}:
    get:
      summary: "One theme basket (id or slug): its series, target and live weights, prices, and your own holdings against the weights."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketShareBasketResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketShareBasket
  /v1/vault-markets/shares/baskets/{id}/buy:
    post:
      summary: "Buy a basket once: `amountCents` split by its live weights into whole shares of each series, in your own name (offerings subscribed, trading books at the best ask up to `maxPremiumBps`). `practice` buys on paper."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketShareBasketBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShareBasketBuy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketShareBasketBuyRequest"
  /v1/vault-markets/options:
    get:
      summary: "Fractional options: the venue mode (self = Crossly is the venue and clearing house, partner = routed to the index DCM, paper = practice only) with the env each mode still needs, the active series and the rule book in force."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOption
  /v1/vault-markets/options/series:
    get:
      summary: "Every options series: its underlying (a Crossly index, or a tier A item key with 90 days of reliable marks), status and the eligibility snapshot it last passed. `status`: active (default) or all."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionSeriesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionSeries
  /v1/vault-markets/options/chain/{underlying}:
    get:
      summary: "The option chain for an underlying (index slug or book key): its expiries, and for one expiry (`expiry`, default the nearest) each strike's call and put with best bid / ask, last, open interest, the theoretical price at the reference vol, the implied vol of the mid (display only, never a mark) and the Greeks. Prices are cents per contract."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: underlying
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionChainResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionChain
  /v1/vault-markets/options/iv/{underlying}:
    get:
      summary: "The at-the-money implied volatility of the nearest expiry on an underlying, for display on its page: derived from the options book, quality C, never written as a mark."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: underlying
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionIvResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionIv
  /v1/vault-markets/options/contracts/{id}:
    get:
      summary: "One option contract: its terms, the self-venue book and tape, its published daily settlement prices and, once settled, its settlement (value, source, flagged, and the hash chained to the previous settlement)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionContractResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionContract
  /v1/vault-markets/options/contracts/{id}/book:
    get:
      summary: "A contract's order book on the Crossly venue (`levels`, default 20): bids and asks by price with milli-contract sizes, and the last 50 prints."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionContractBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionContractBook
  /v1/vault-markets/options/contracts/{id}/daily:
    get:
      summary: "A contract's published daily settlement prices, newest first (`days`, default 30): the price, how it was set (volume-weighted fills, the mid, or Black-Scholes at the reference vol), its implied vol, the underlying, open interest and volume, and each row's chain hash."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionContractDailyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionContractDaily
  /v1/vault-markets/options/contracts/{id}/settlement:
    get:
      summary: "A settled contract's settlement: the value (cents per unit of the underlying), its source (the index's frozen 7-day TWAP, the item's expiry-day A/B mark, or the last reliable value, flagged), and the hash chained to the previous settlement. Null until it settles."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionContractSettlementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionContractSettlement
  /v1/vault-markets/options/quote:
    post:
      summary: "Price a ticket without placing it: give a price per contract or an implied vol (`quoteMode`), get the other back, the premium and fee, the Greeks for your size, the payoff at expiry and the margin it would need on your account (authoritative on the Crossly venue, an estimate when the partner clears). A bad entry is reported, not thrown."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketOptionQuoteRequest"
  /v1/vault-markets/options/orders:
    post:
      summary: "Place an options order: `contractId`, `side`, `quantity` in contracts (three decimals), a `priceCents` or an `iv` (`quoteMode`), `tif` gtc / gtd (with `expiresAt`) / ioc, `postOnly`. Idempotent on `clientOrderId`. On the Crossly venue it matches price-time with self-trade prevention after a scenario-margin check; on the partner venue it routes to the partner (accept its `termsVersion`). `subaccountId` trades for a firm sub-account you may trade."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketOptionOrderRequest"
    get:
      summary: "Your options orders, newest first: `status` working (default) / done / all, `limit`, `subaccountId`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionOrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionOrders
  /v1/vault-markets/options/orders/{id}/cancel:
    post:
      summary: Cancel a working options order (on the partner venue it is cancelled there first). A liquidation order cannot be cancelled.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionOrderCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionOrderCancel
  /v1/vault-markets/options/positions:
    get:
      summary: "Your options positions: signed milli-contracts, average open price, the price it is settled to (Crossly venue), the theoretical mark, unrealised and realised P&L in cents, the Greeks for your size, the protective-put flag and your auto-deleveraging queue lights. `status` open (default) / all, `subaccountId`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionPositionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionPosition
  /v1/vault-markets/options/payoff:
    get:
      summary: "Your whole options position on one `underlying` at expiry: the P&L curve over 50%..150% of spot, breakevens, and the maximum gain and loss (null when unbounded)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionPayoffResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionPayoff
  /v1/vault-markets/options/margin:
    get:
      summary: "Your options margin: the scenario requirement (worst loss over a +/-40% price x +/-50% vol grid, with offsets from vault units and positions you hold), initial margin, equity and state (ok / call / liquidate) per underlying. Authoritative on the Crossly venue; on the partner venue the partner's figure decides and this is an estimate."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionMarginResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionMargin
  /v1/vault-markets/options/hedges:
    get:
      summary: "Your hedges: long puts protecting vault units you hold (protective puts) and the vault units locked as collateral for calls you wrote (covered calls)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionHedgeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionHedge
  /v1/vault-markets/options/covered-calls:
    post:
      summary: "Write a covered call: lock a stored vault unit (`vaultItemId`) as collateral and sell up to one call on its own key (`contractId`, `quantity` <= 1) at a price or an implied vol. The unit cannot be sold, moved, lent or withdrawn until the call is bought back or expires; if assigned you pay cash, or the unit sells at the vault auction to cover."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionCoveredCallResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionCoveredCall
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketOptionCoveredCallRequest"
  /v1/vault-markets/options/covered-calls/{id}/release:
    post:
      summary: Free a covered call's vault unit once the call it covers is closed (or covered by other units).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionCoveredCallReleaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionCoveredCallRelease
  /v1/vault-markets/options/practice:
    get:
      summary: "Your options practice account (play money only, $10,000 to start): cash, positions at the practice maker's price, equity and P&L."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionPracticeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionPractice
  /v1/vault-markets/options/practice/orders:
    post:
      summary: Place a practice options order (the same ticket as a real one; fills against the practice maker at the reference vol). Play money only.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionPracticeOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionPracticeOrder
    get:
      summary: "Your practice options orders: `status` working (default) / done / all, `limit`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionPracticeOrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionPracticeOrders
  /v1/vault-markets/options/practice/orders/{id}/cancel:
    post:
      summary: Cancel a working practice options order.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionPracticeOrdersItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionPracticeOrderCancel
  /v1/vault-markets/options/practice/fills:
    get:
      summary: Your practice options fills, newest first (`limit`).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionPracticeFillsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionPracticeFills
  /v1/vault-markets/options/practice/reset:
    post:
      summary: "Start the options practice account again with $10,000: positions and working orders are cleared."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionPracticeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionPracticeReset
  /v1/vault-markets/options/mm/quotes:
    get:
      summary: "Your two-sided option quotes: the contract, the bid and ask orders behind them, cancel-on-disconnect and the last heartbeat."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionMmQuotesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionMmQuotes
    post:
      summary: "Set (replace) a two-sided quote on an option contract: `bid` and / or `ask` each { priceCents, quantity in contracts }, posted as post-only GTC orders on the Crossly venue. Market-maker protection counts their fills; a quote inside 20% of its mid earns liquidity rewards (CBX)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionMmQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionMmQuote
  /v1/vault-markets/options/mm/quotes/pull:
    post:
      summary: Pull your option quotes on one contract (`contractId`) or all of them.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteVaultMarketProQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionMmQuotePull
  /v1/vault-markets/options/mm/heartbeat:
    post:
      summary: Keep your option quotes alive (cancel-on-disconnect pulls them after 30 s without a heartbeat).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionMmHeartbeatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionMmHeartbeat
  /v1/vault-markets/options/rfq:
    post:
      summary: "Ask for a quote on an option contract: `side`, `quantity` in contracts, an optional `limitCents` (never shown). Makers quoting the series, the underlying's DMM and LPs and approved dealers are told anonymously; answers are firm for 60 s."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionRfq
    get:
      summary: Your option quote requests, newest first.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionRfq
  /v1/vault-markets/options/rfq/inbox:
    get:
      summary: Open option quote requests you can answer.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionRfqInbox
  /v1/vault-markets/options/rfq/{id}:
    get:
      summary: "One option quote request: yours with every answer, or one you were sent with your own answer."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionRfq
  /v1/vault-markets/options/rfq/{id}/respond:
    post:
      summary: Answer an option quote request with a firm price per contract for its full size (good for 60 s; a new answer replaces your last).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionRfqRespondResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionRfqRespond
  /v1/vault-markets/options/rfq/{id}/accept:
    post:
      summary: "Take a live answer (`responseId`) to your option quote request: it trades through the options book at that price or better, with margin and self-trade prevention."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionRfqAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionRfqAccept
  /v1/vault-markets/options/rfq/{id}/cancel:
    post:
      summary: Cancel your open option quote request.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionRfqCancel
  /v1/vault-markets/options/rfq/responses/{id}/withdraw:
    post:
      summary: Withdraw your live answer to an option quote request.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionRfqResponseWithdraw
  /v1/vault-markets/predictions/events/{id}:
    get:
      summary: "One expiry of a series (an event): its markets, what you hold in each, the real worst and best case of your holdings across them (what your limit counts), and, for a full bucket set, how many sets you could merge. `venue` paper or live."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionEvent
  /v1/vault-markets/predictions/conversions:
    get:
      summary: Your bucket-set conversions (split, merge, convert), newest first.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionConversionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionConversions
    post:
      summary: Split ($1 a set buys one Yes in every bucket of an expiry), merge (one Yes in every bucket gives back $1 a set before settlement) or convert (No in one bucket becomes Yes in every other) on a full bucket set. `venue` paper or live. Returns the conversion and the event after it.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionConversionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionConversion
  /v1/vault-markets/predictions/combos/rfqs:
    get:
      summary: "Open combo requests makers can answer: legs, size and the legs' own combined price; never who asked. Your own answers are shown on them."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionComboRfqsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionComboRfqs
    post:
      summary: "Ask makers for a price on a combo: 2 to 6 legs (a market and a side each) on different underlyings, a size, and an optional limit makers never see. Pays $1 a contract if every leg comes true. `venue` paper or live."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionComboRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionComboRfq
  /v1/vault-markets/predictions/combos/rfqs/{id}:
    get:
      summary: "One combo request: its legs and size, and the answers you can see (all of them if you asked; yours if you quoted)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionComboRfqsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionComboRfq
  /v1/vault-markets/predictions/combos/rfqs/{id}/quotes:
    post:
      summary: Answer a combo request with a firm price a contract for the full size (good for 30 seconds; a new answer replaces yours). Real money needs an active prediction maker programme or approved dealer status.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionComboRfqQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionComboRfqQuote
  /v1/vault-markets/predictions/combos/rfqs/{id}/accept:
    post:
      summary: "Take one live, firm answer to your combo request (`quoteId`): both stakes are locked and the combo opens. Returns the combo."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionCombosItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionComboRfqAccept
  /v1/vault-markets/predictions/combos/rfqs/{id}/cancel:
    post:
      summary: Withdraw your combo request; its answers are withdrawn too.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionComboRfqsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionComboRfqCancel
  /v1/vault-markets/predictions/combos:
    get:
      summary: "Your combos, as buyer or maker: legs and their outcomes, stakes, the pot, any reprice after a voided leg, and how each settled."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionCombosResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionCombos
  /v1/vault-markets/predictions/combos/my-rfqs:
    get:
      summary: Your combo requests with every answer they got.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionComboRfqsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionComboMyRfqs
  /v1/vault-markets/predictions/combos/{id}:
    get:
      summary: One of your combos.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionCombosItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionCombo
  /v1/vault-markets/predictions/proposals/check:
    post:
      summary: "Check a market proposal without sending it: whether the underlying may carry markets (a built-in index or a tier A key), and what is wrong with the strike or expiry."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionProposalCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionProposalCheck
  /v1/vault-markets/predictions/proposals:
    get:
      summary: Your market proposals and where each stands (pending, listed, rejected, withdrawn).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionProposalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionProposals
    post:
      summary: "Propose a market: an index slug or a book key, a shape (close at or above / at or below, between, touch), its strike(s) and an expiry. Ops review it; once listed you earn the creator share of Crossly's take on its fees."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionProposalsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionProposal
  /v1/vault-markets/predictions/proposals/{id}/withdraw:
    post:
      summary: Withdraw a proposal still waiting for review.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionProposalsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionProposalWithdraw
  /v1/vault-markets/predictions/proposals/listed:
    get:
      summary: "The markets you proposed that are listed: volume, status and what the creator share has earned you."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionProposalListedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionProposalListed
  /v1/vault-markets/predictions/comments:
    get:
      summary: "A discussion thread on a market (`marketId`) or a series (`seriesId`): comments newest first with their replies. A commenter's side shows only when their forecaster profile is public."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionCommentsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionComments
    post:
      summary: Comment on a market or a series, or reply to a comment (`parentId`). Moderated like every comment on Crossly.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionCommentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionComment
  /v1/vault-markets/predictions/comments/{id}:
    patch:
      summary: Edit your comment.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionCommentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketPredictionComment
    delete:
      summary: Delete your comment.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketPredictionComment
  /v1/vault-markets/predictions/comments/{id}/report:
    post:
      summary: Report a comment with a reason; enough reports hide it until ops look.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionCommentReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionCommentReport
  /v1/vault-markets/predictions/forecaster:
    get:
      summary: "Your forecaster profile: display name, whether it is public (opt-in) and since when, and your followers."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionForecasterResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionForecaster
    put:
      summary: "Go public under a display name (`public: true`), rename, or go private (`public: false`: nothing is shown again)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionForecasterResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketPredictionForecaster
  /v1/vault-markets/predictions/forecasts:
    get:
      summary: Your forecasts (a probability you attached to a market, money or not) and how the markets came out.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionForecastsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionForecasts
    post:
      summary: "Forecast a market: `probabilityPercent` 0 to 100. The one standing when trading closes is scored (Brier)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionForecastResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionForecast
  /v1/vault-markets/predictions/markets/{id}/forecasts:
    get:
      summary: How many people forecast a market and their median probability (no names).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionMarketForecastResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionMarketForecast
  /v1/vault-markets/predictions/leaderboard:
    get:
      summary: "Opt-in forecaster leaderboards: `period` week, month or all; `metric` pnl, accuracy or brier; `venue` live or paper (practice has its own board)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionLeaderboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionLeaderboard
  /v1/vault-markets/predictions/forecasters/{id}:
    get:
      summary: "A public forecaster: scores (all time and this month), open sides (never sizes), recent settled calls, followers. 404 when private."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionForecasterByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionForecasterById
  /v1/vault-markets/predictions/forecasters/{id}/follow:
    post:
      summary: "Follow a public forecaster: you are told when they open a position or forecast (copy-watch only; nothing is ever traded for you)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionForecasterFollowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionForecasterFollow
    delete:
      summary: Stop following a forecaster.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionForecasterFollowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketPredictionForecasterFollow
  /v1/vault-markets/predictions/following:
    get:
      summary: The forecasters you follow.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionFollowingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionFollowing
  /v1/vault-markets/predictions/markets/{id}/history:
    get:
      summary: "A market's history: probability points (display only, never a mark), candles on the Yes price, volume and open interest over `range` 1d, 1w, 1m or all; `venue` live or paper."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionMarketHistoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionMarketHistory
  /v1/vault-markets/predictions/markets/{id}/trades:
    get:
      summary: "The trade tape, newest first: Yes price, size, which side took, venue. Page with `before` (the last `seq`)."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionMarketTradeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionMarketTrade
  /v1/vault-markets/predictions/orders/{id}/amend:
    post:
      summary: Amend a resting order's price (in its own terms) and/or whole size. It keeps its place in the queue only when the size goes down at the same price; otherwise it is re-queued and may trade at once. Returns the order with `keptPriority`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionOrderAmendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionOrderAmend
  /v1/vault-markets/predictions/orders/batch:
    post:
      summary: Place up to 20 orders in one call; each answers on its own (`results[]`), one refused never stops the rest.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionOrderBatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionOrderBatch
  /v1/vault-markets/predictions/orders/batch-cancel:
    post:
      summary: Cancel up to 20 orders in one call; each answers on its own.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionOrderBatchCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionOrderBatchCancel
  /v1/vault-markets/predictions/positions/close:
    post:
      summary: "Close a position: your resting sells on the market are cancelled and everything you hold is sold now (market, 10-cent band) or at `priceCents`. Returns the sell order."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionPositionClose
  /v1/vault-markets/predictions/positions/close-all:
    post:
      summary: "Sell all: close every open position on a venue, or only one event's (`eventId`). Each answers on its own."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionPositionCloseAllResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionPositionCloseAll
  /v1/vault-markets/predictions/stream:
    get:
      summary: "A server-sent event stream for up to 50 markets (`markets`=id,id): `ready`, then `pm_depth`, `pm_trades`, `pm_probability`, `pm_status` and `pm_settlement`, each carrying its marketId."
      tags:
        - Vault Markets
      responses:
        "200":
          description: A server-sent event stream.
          content:
            text/event-stream:
              schema:
                type: string
                description: Server-sent events; each `data:` line is one JSON object.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionStream
      parameters:
        - name: markets
          in: query
          required: true
          schema:
            type: string
  /v1/vault-markets/predictions/me/stream:
    get:
      summary: "A server-sent event stream of your own prediction events: `pm_order` (placed, filled, amended, cancelled, expired), `pm_fill` (your side, price and fee), `pm_position`, `pm_combo` and `pm_conversion`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: A server-sent event stream.
          content:
            text/event-stream:
              schema:
                type: string
                description: Server-sent events; each `data:` line is one JSON object.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionMeStream
  /v1/vault-markets/predictions:
    get:
      summary: "The prediction markets home: the busiest and soonest-expiring \"Will it hit?\" markets with their probability (each market's own price, display only), the underlyings with markets, which venue is live, and how many positions you hold."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPrediction
  /v1/vault-markets/predictions/markets:
    get:
      summary: Prediction markets, filtered by a book key, an index slug, an underlying kind (index | book_key | category_pair), a status (open | closed | settled | all), an expiry day or text. Each with its strike, expiry, best Yes bid and ask, last price, volume, open interest and probability.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionMarketsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionMarkets
  /v1/vault-markets/predictions/markets/{id}:
    get:
      summary: "One prediction market: its terms, the Yes ladder of the live venue and of the practice book, recent trades, settlement history (outcome, value, hash, review), the series rules text and hash, and your positions in it."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionMarketResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionMarket
  /v1/vault-markets/predictions/markets/{id}/stream:
    get:
      summary: "A server-sent event stream for one prediction market: `snapshot` first, then `pm_depth`, `pm_trades`, `pm_probability`, `pm_status` and `pm_settlement` as they change."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: A server-sent event stream.
          content:
            text/event-stream:
              schema:
                type: string
                description: Server-sent events; each `data:` line is one JSON object.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionMarketStream
  /v1/vault-markets/predictions/will-it-hit:
    get:
      summary: 'The "Will it hit?" panel for a key (`bookKey`) or an index (`index` slug): its open markets grouped by expiry, each with its probability. `eligible` is false when nothing is listed on it.'
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionWillItHitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionWillItHit
  /v1/vault-markets/predictions/board:
    get:
      summary: "The prediction board the Trading Floor and the Market Open plank show: the busiest open markets and their odds. Anonymous: never who holds what."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionBoardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionBoard
  /v1/vault-markets/predictions/quote:
    get:
      summary: "What an order would do now without placing it: contracts fillable inside the limit (a market order uses the 10-cent band), average price, estimated fee (Kalshi's formula), the money it would lock, and the most it could pay out."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionQuote
  /v1/vault-markets/predictions/venue:
    get:
      summary: "Which prediction venue is live: self (Crossly as the DCM, money at the segregated settlement bank), partner (a partner DCM) or paper (practice only), who runs the book, where money sits, and the env each real mode still needs."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionVenueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionVenue
  /v1/vault-markets/predictions/rulebook:
    get:
      summary: The prediction venue's rule book now and every version, each hashed and chained to the one before (`chainOk`).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionRulebookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionRulebook
  /v1/vault-markets/predictions/daily-prices:
    get:
      summary: "The published daily settlement price of every listed market for a day (default yesterday): the last hour's volume-weighted Yes price, else the book mid, else the prior day's, with volume and open interest."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionDailyPriceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionDailyPrice
  /v1/vault-markets/predictions/account:
    get:
      summary: "Your prediction-market account: the live venue, your account there and the terms you accepted, whether you may trade real money (region, age, self-exclusion) and why not, your self-set limits, and the practice account line."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionAccountResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionAccount
    post:
      summary: Open your account at the live prediction venue (the partner DCM, or your own segregated account at the settlement bank). Returns `{ venue, status, opened }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionAccountResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionAccount
  /v1/vault-markets/predictions/terms:
    post:
      summary: Accept the current prediction-market contract terms (PREDICTION_TERMS_VERSION), needed for every real-money order. Returns `{ termsVersion, venue }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionTermResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionTerm
  /v1/vault-markets/predictions/limits:
    get:
      summary: "Your self-set prediction limits: daily loss limit, self-exclusion, a raise waiting its 24 hours, and any hold the venue placed."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionLimitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionLimit
    put:
      summary: Set your daily loss limit (`dailyLossLimitCents`, null = none) or exclude yourself (`excludeDays`, `excludedUntil` or "forever"). Tighter takes effect at once; looser waits 24 hours.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionLimitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketPredictionLimit
  /v1/vault-markets/predictions/positions:
    get:
      summary: "Your prediction positions (practice, live or all; open, settled or all): side, contracts, cost, value at the last price, fees, realised P&L, payout or refund once settled, and the share card if you made one."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionPositionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionPositions
  /v1/vault-markets/predictions/orders:
    get:
      summary: "Your prediction orders, newest first: working, done or all; practice, live or all."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionOrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionOrders
    post:
      summary: "Place a prediction order: buy_yes, sell_yes, buy_no or sell_no; limit (priceCents 1-99 in the action's own terms) or market (IOC 10 cents through the best price); GTC, GTD (expiresAt) or IOC; post-only. Sells only what you hold. `venue` paper (practice) or live (503 until a venue is registered). Returns the order with its fills."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionOrder
  /v1/vault-markets/predictions/orders/{id}/cancel:
    post:
      summary: Cancel a working prediction order; the money (or practice money) it locked comes back. Returns the order.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionOrderCancel
  /v1/vault-markets/predictions/orders/cancel-all:
    post:
      summary: Cancel every working prediction order you have, or only those on one market (`marketId`). Returns `{ cancelled }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketProOrderCancelAllResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionOrderCancelAll
  /v1/vault-markets/predictions/settlements/{id}/dispute:
    post:
      summary: Dispute a settlement inside its 24-hour review window (you must hold a position in the market). Payout waits for the venue's decision. Returns `{ settlementId, status }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionSettlementDisputeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionSettlementDispute
  /v1/vault-markets/predictions/alerts:
    get:
      summary: "Your probability alerts: a market, a level (percent) and a direction; each fires once through the alerts hub (kind prediction_odds)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionAlertsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionAlerts
    post:
      summary: "Tell me when a market's probability crosses a level: `{ marketId, levelPercent, direction }`. Returns the alert."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionAlertResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionAlert
  /v1/vault-markets/predictions/alerts/{id}:
    delete:
      summary: Remove a probability alert. Returns `{ ok }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketPredictionAlert
  /v1/vault-markets/predictions/paper:
    get:
      summary: "Your practice prediction account (play money only, $1,000 to start, never real or convertible): cash, money locked by working orders, positions and working orders."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionPaperResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionPaper
  /v1/vault-markets/predictions/paper/reset:
    post:
      summary: "Reset your practice prediction account to $1,000 of play money: working practice orders cancelled, practice positions cleared. Once a day."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionPaperResetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionPaperReset
  /v1/vault-markets/predictions/missions:
    get:
      summary: The two "Will it hit?" practice missions (your first call; see one settle), whether the server saw each done, and the pin they lead to. Pins only.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPredictionMissionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPredictionMission
  /v1/vault-markets/predictions/cards:
    post:
      summary: Make an "I called it" share card for a position of yours that settled in your favour (`showAmounts` to include what you paid and won). Returns the card with its public URL.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionCardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionCard
  /v1/vault-markets/predictions/cards/{id}:
    delete:
      summary: Take an "I called it" card down; its link stops working. Returns `{ ok }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketPredictionCard
  /v1/vault-markets/predictions/makers:
    get:
      summary: Your prediction maker programme applications and their status (applied, active, suspended, revoked) and rebate.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionMakersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPredictionMakers
    post:
      summary: Apply to make markets in prediction ladders (one series, or all with `seriesId` null). Needs the ID check; ops approve. Returns the application.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPredictionMakersItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionMaker
  /v1/vault-markets/predictions/makers/quotes:
    post:
      summary: "Mass quote: replace your resting maker quotes on up to 50 markets with one Yes bid and one Yes ask each (post-only; an ask rests as a No bid at 100 minus it). Live quotes need an active maker programme. Returns what rests."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPredictionMakerQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPredictionMakerQuote
  /v1/vault-markets/options/strategies:
    get:
      summary: "The strategies the picker builds (vertical, calendar, diagonal, straddle, strangle, butterfly, iron condor, collar): how many strikes and expiries each takes, whether it needs calls or puts, and what it does in plain words."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionStrategiesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionStrategies
  /v1/vault-markets/options/strategies/preview:
    post:
      summary: "Preview a strategy before placing it: by template (underlying, kind, direction, strikes, expiries) or by legs. Returns each leg at its bid / ask, the net per unit (+ debit, - credit), the payoff at the first expiry, max profit and max loss (null = unbounded), breakevens, net Greeks, and the scenario margin of the whole strategy next to its legs margined one by one."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionStrategyPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionStrategyPreview
  /v1/vault-markets/options/combos:
    post:
      summary: "Place a strategy: 2 to 4 legs on one underlying with ratios, a quantity (units, three decimals) and ONE signed net limit per unit (+ the most you pay, - the least credit you take). Margined on the combined scenario loss of all its legs; matched against the combo book, then the legs' own books; every leg fills at once or none does. Crossly venue only (409 combos_self_venue_only on the partner venue)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionComboResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionCombo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketOptionComboRequest"
    get:
      summary: "Your strategies: `status` working (default), done or all, with their legs as you hold them, net per unit, filled size and status."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionCombosResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionCombos
  /v1/vault-markets/options/combos/{id}/cancel:
    post:
      summary: Cancel a working strategy.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionCombosItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionComboCancel
  /v1/vault-markets/options/combos/book:
    get:
      summary: "One strategy's combo book by its canonical key (`key`, from the preview or an order): bids and asks by net price and recent strategy trades."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionComboBookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionComboBook
  /v1/vault-markets/options/combos/rfq:
    post:
      summary: Ask makers for a firm net price on a whole strategy (legs, quantity, an optional limit that is never shown). Crossly venue only.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionComboRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionComboRfq
    get:
      summary: Your strategy quote requests, newest first.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionComboRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionComboRfq
  /v1/vault-markets/options/combos/rfq/inbox:
    get:
      summary: Open strategy quote requests you may answer (never your own; the requester stays anonymous).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionComboRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionComboRfqInbox
  /v1/vault-markets/options/combos/rfq/{id}:
    get:
      summary: One strategy quote request and its answers (all of them to the requester, your own to a responder).
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionComboRfqResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionComboRfq
  /v1/vault-markets/options/combos/rfq/{id}/respond:
    post:
      summary: Answer a strategy quote request with a firm net price per unit in the canonical terms, good for 60 seconds; a new answer replaces your last.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionRfqRespondResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionComboRfqRespond
  /v1/vault-markets/options/combos/rfq/{id}/accept:
    post:
      summary: "Take a live, firm answer: both strategies go through the normal path (margin, pre-trade risk), every leg at once."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionComboRfqAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionComboRfqAccept
  /v1/vault-markets/options/combos/rfq/{id}/cancel:
    post:
      summary: Cancel your open strategy quote request.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionComboRfqCancel
  /v1/vault-markets/options/combos/rfq/responses/{id}/withdraw:
    post:
      summary: Withdraw your live answer to a strategy quote request.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionComboRfqResponseWithdraw
  /v1/vault-markets/options/analytics/{underlying}:
    get:
      summary: "Options analytics on an underlying: the vol surface (expiry x moneyness) and one expiry's smile (`expiry`), IV rank and percentile against the series' own year, open interest and volume by strike and expiry, put/call ratios, the expected move to each expiry, and the historical vol of the underlying's own published series. Every implied vol is derived and display only."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: underlying
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionAnalyticResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionAnalytic
  /v1/vault-markets/options/risk:
    get:
      summary: Your options portfolio's Greeks (per underlying and total, with dollar delta and 1% gamma), a scenario's P&L (`priceShift`, `volShift`, `daysForward`), a price x vol P&L grid, and the beta-weighted delta against an index (`betaIndex`, default the deepest). `book` live (default) or practice.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionRiskResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionRisk
  /v1/vault-markets/options/roll:
    post:
      summary: "Roll a position to another contract as one strategy order at one net price (+ you pay, - you receive): the close and the open fill together or not at all. `practice` rolls a practice position."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionRollResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionRoll
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVaultMarketOptionRollRequest"
  /v1/vault-markets/options/auto-close:
    get:
      summary: "Your auto-close rule: close positions (or only in-the-money ones) a set time before expiry with a marketable limit."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionAutoCloseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketOptionAutoClose
    put:
      summary: "Set your auto-close rule: `enabled`, `minutesBefore` (30 to 10080), `onlyItm`, `maxSlippageBps` (0 to 2000)."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketOptionAutoCloseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateVaultMarketOptionAutoClose
  /v1/vault-markets/options/notices:
    get:
      summary: "Your options notices, newest first: expiry warnings, auto-closes, exercises (a long settled in the money), assignments (a short settled in the money), expiries worthless and rolls."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionNoticesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionNotices
  /v1/vault-markets/options/practice/combos:
    post:
      summary: "A practice strategy (play money): the same ticket as a real one, filled at the practice maker's quotes when the net is inside the limit."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketOptionPracticeComboResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketOptionPracticeCombo
    get:
      summary: Your practice strategies.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketOptionCombosResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketOptionPracticeCombos
  /v1/vault-markets/movers:
    get:
      summary: Vault items with the biggest 24 h moves in their market price (from the order book), with units in the vault.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketMoversResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketMovers
  /v1/vault-markets/market:
    get:
      summary: "One book key (variantId:condition:gradeKey): its mark and history, lending depth and borrow rate, open interest and live auctions."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketMarketResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketMarket
  /v1/vault-markets/account:
    get:
      summary: Which Vault Markets registrations are live (and the env each waits on), your custodian account, limits and balances.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketAccountResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketAccount
    post:
      summary: Open your account at the custodian partner (once). Returns `{ status }`; the custodian verifies it before it is active.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAccount
  /v1/vault-markets/identity/start:
    post:
      summary: "Start (or resume) the one-time ID check the money features and larger orders need. Returns `{ url }` to open, or `{ alreadyVerified: true }`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketIdentityStartResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketIdentityStart
  /v1/vault-markets/terms:
    post:
      summary: Accept the current lending terms (needed to lend or short). Returns `{ termsVersion }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TermsVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketTerm
  /v1/vault-markets/portfolio:
    get:
      summary: Your vault holdings at the market price, with cost and P&L, and units you have out on loan.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPortfolioResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPortfolio
  /v1/vault/{id}/lend:
    post:
      summary: Turn lending on or off for a unit you own in the vault, optionally with your minimum borrow rate (APR in basis points). Returns `{ lendEnabled, minAprBps }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultLendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultLend
  /v1/vault-markets/loans/{id}/recall:
    post:
      summary: "Recall a lent unit: the short has 3 days to return one. Returns `{ recallDueAt }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketLoanRecallResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLoanRecall
  /v1/vault-markets/positions:
    get:
      summary: Your positions, live (default) or closed.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPositionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPositions
  /v1/vault-markets/positions/{id}:
    get:
      summary: One position with its loans, auctions and custodian instruction log.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPositionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPosition
  /v1/vault-markets/shorts:
    post:
      summary: "Short a book key: borrow `units` lent units (default 1; at most 25/10/3/1 by liquidity tier A/B/C/D) and sell each at `limitCents` or better, posting collateral for all of them (50% of the mark each; CBX counts at half, up to 30%). All units are borrowed or none unless `allowPartial`. A partial sale opens with the units sold. Returns `{ positionId, matched, units }`."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketLongResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketShort
  /v1/vault-markets/longs:
    post:
      summary: Buy `units` units (default 1; at most 25/10/3/1 by liquidity tier A/B/C/D) into your vault with leverage (up to 2x) from the market staking pool, paying up to `maxCents` each. A partial fill opens with the units bought and the rest is cancelled. Returns `{ positionId, matched, units }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketLongResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketLong
  /v1/vault-markets/positions/{id}/cover:
    post:
      summary: "Cover a short: all its units, or `units` of them, each buying any unit of the key into the vault for up to `maxCents`; each goes back to its lender."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPositionCloseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPositionCover
  /v1/vault-markets/positions/{id}/close:
    post:
      summary: "Close a leveraged long: all its units, or `units` of them, each sold for at least `minCents`; each sale repays the pool first."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPositionCloseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPositionClose
  /v1/vault-markets/positions/{id}/collateral:
    post:
      summary: "Answer a margin call: a short posts more collateral (USD, or CBX at half value); a leveraged long pays down its pool loan. Returns the position."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPositionCollateralResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPositionCollateral
  /v1/vault-markets/positions/{id}/cancel:
    post:
      summary: "Cancel the working order: an unfilled opening order cancels the position; an unfilled cover or close leaves it open. Returns `{ ok }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPositionCancel
  /v1/vault-markets/alerts:
    get:
      summary: Your price alerts on book keys.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAlertsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketAlerts
    post:
      summary: Alert me when a key's market price goes above or below a price (fires once).
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketAlertsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketAlert
  /v1/vault-markets/alerts/{id}:
    delete:
      summary: Delete a price alert. Returns `{ ok }`.
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteVaultMarketAlert
  /v1/vault-markets/pool:
    get:
      summary: "The CBX market staking pool: size, value, what it lends, utilisation, rate, insurance fund."
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetVaultMarketPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getVaultMarketPool
  /v1/vault-markets/pool/stakes:
    get:
      summary: Your stakes in the market pool and what each redeems for now.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListVaultMarketPoolStakesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listVaultMarketPoolStakes
    post:
      summary: Stake CBX you hold at the custodian into the market pool (base units, as a string). Returns `{ stakeId, shares }`.
      tags:
        - Vault Markets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPoolStakeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPoolStake
  /v1/vault-markets/pool/stakes/{id}/unstake:
    post:
      summary: "Unstake: paid out after the 7-day cooldown. Returns `{ cooldownUntil }`."
      tags:
        - Vault Markets
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateVaultMarketPoolStakeUnstakeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createVaultMarketPoolStakeUnstake
  /v1/web3/phygitals/{chain}/{contract}/{tokenId}:
    get:
      summary: "A token's phygital: the physical item it can be redeemed for, and whether it has been."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
        - schema:
            type: string
          in: path
          name: tokenId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3PhygitalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Phygital
  /v1/web3/phygitals:
    get:
      summary: Phygitals you linked (with each redemption and its shipping address) and ones you redeemed.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWeb3Phygital2Response"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWeb3Phygital2
    post:
      summary: Make an NFT you hold redeemable for one of your physical inventory items.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3PhygitalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3Phygital
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3PhygitalRequest"
  /v1/web3/phygitals/{id}/redeem:
    post:
      summary: Redeem a phygital you hold (checked on-chain) for its physical item, with a shipping address. Once per phygital.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3PhygitalRedeemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3PhygitalRedeem
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3PhygitalRedeemRequest"
  /v1/web3/phygitals/redemptions/{id}/ship:
    post:
      summary: Mark a redemption shipped with its carrier and tracking number; the redeemer is notified.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3PhygitalRedemptionShip
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3PhygitalRedemptionShipRequest"
  /v1/web3/solana/offers/tx:
    post:
      summary: Build a bid on a Solana NFT on Crossly's book for your linked wallet to sign; the SOL goes into your Auction House escrow.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaOfferTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaOfferTx
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaOfferTxRequest"
  /v1/web3/solana/offers:
    post:
      summary: Record a sent bid; it is recorded only once its trade state exists on chain.
      tags:
        - Web3
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OrderHashResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaOffer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaOfferRequest"
  /v1/web3/solana/offers/{hash}/cancel-tx:
    post:
      summary: "Build the cancel of your bid: the SOL your other bids do not need comes back."
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: hash
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaListTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaOfferCancelTx
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaOfferCancelTxRequest"
  /v1/web3/solana/offers/{hash}/accept-tx:
    post:
      summary: Build the sale into a bid from your linked wallet that holds the NFT (sell + execute_sale, one transaction).
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: hash
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaListTxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaOfferAcceptTx
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaOfferAcceptTxRequest"
  /v1/web3/solana/offers/{hash}/confirm:
    post:
      summary: Apply a sent accept or cancel once the chain shows the bid closed.
      tags:
        - Web3
      parameters:
        - schema:
            type: string
          in: path
          name: hash
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWeb3SolanaOfferConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWeb3SolanaOfferConfirm
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWeb3SolanaOfferConfirmRequest"
  /v1/policy-presets/{id}/duplicate:
    post:
      summary: Copy a policy preset ("<name> (copy)", never the default; a pricing copy applies nowhere yet).
      tags:
        - PolicyPresets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPolicyPresetsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPolicyPresetDuplicate
  /v1/policy-presets/{id}/applications:
    put:
      summary: "Replace where a policy applies: per platform account, push (use this policy), marketplace (the marketplace's own setting, optionally an eBay business policy id) or off (pricing), and isDefault (default for that marketplace)."
      tags:
        - PolicyPresets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdatePolicyPresetApplicationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePolicyPresetApplication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdatePolicyPresetApplicationRequest"
  /v1/connections/policy-management:
    get:
      summary: List eBay and Etsy accounts with whether Crossly manages their policies.
      tags:
        - Accounts
      description: "One row per connected eBay or Etsy account: `eligible` (eBay only on EBAY_US), `managed` (Crossly keeps its policies / shipping profiles in step with your default presets) and sync `notes`."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListConnectionPolicyManagementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listConnectionPolicyManagement
  /v1/connections/policy-management/{connectionId}:
    put:
      summary: Turn Crossly policy management on or off for one eBay or Etsy account.
      tags:
        - Accounts
      description: "Body `{ managed: boolean }`. On: Crossly may overwrite that account's own policies with your default presets and queues a sync now (409 for an ineligible account, e.g. non-US eBay). Off: Crossly stops touching them. A connection that is not yours (or not eBay/Etsy) is a 404."
      parameters:
        - schema:
            type: string
          in: path
          name: connectionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListConnectionPolicyManagementItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateConnectionPolicyManagement
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateConnectionPolicyManagementRequest"
  /v1/connections/policy-management/{connectionId}/options/{source}:
    get:
      summary: List the live options a marketplace policy field offers (e.g. Allegro delivery methods).
      tags:
        - Accounts
      description: For one of your managed connections, the choices a preset's `platformFields` picker offers, from the marketplace (`source` is the field's `optionsSource`, e.g. `delivery-methods`). An unknown connection or source is a 404.
      parameters:
        - schema:
            type: string
          in: path
          name: connectionId
          required: true
        - schema:
            type: string
          in: path
          name: source
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetConnectionPolicyManagementOptionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getConnectionPolicyManagementOption
  /v1/price-rules/{id}:
    patch:
      summary: Update a price rule.
      tags:
        - PriceRules
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPriceRulesItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePriceRuleById
    delete:
      summary: Delete a price rule.
      tags:
        - PriceRules
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deletePriceRule
  /v1/price-rules/preview:
    post:
      summary: Compute the price each marketplace would list a listing (or a price) at.
      tags:
        - PriceRules
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePriceRulePreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPriceRulePreview
  /v1/sku-presets/preview:
    post:
      summary: Generate a SKU from a saved preset (presetId) or an unsaved template, for the given listing fields (or a sample listing when fields is omitted). Nothing is written.
      tags:
        - SkuPresets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSkuPresetPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSkuPresetPreview
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSkuPresetPreviewRequest"
  /v1/sku-presets/default:
    put:
      summary: Choose the store's default SKU preset, which auto-fills the SKU of new listings created without one. presetId null clears it (manual SKUs).
      tags:
        - SkuPresets
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateSkuPresetDefaultResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSkuPresetDefault
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSkuPresetDefaultRequest"
  /v1/field-rules/reorder:
    post:
      summary: Set the run order of several field rules.
      tags:
        - FieldRules
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFieldRuleReorder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFieldRuleReorderRequest"
  /v1/field-rules/preview:
    post:
      summary: Preview field-rule output for a listing on one channel.
      tags:
        - FieldRules
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateFieldRulePreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createFieldRulePreview
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFieldRulePreviewRequest"
  /v1/bulk-batches/{id}/items:
    post:
      summary: Append one item (every photo of it, primary first).
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBulkBatchItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBulkBatchItem
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBulkBatchItemRequest"
  /v1/bulk-batches/{id}/identify:
    post:
      summary: "Identify items: match to Crossly Market, Magic List, or auto (by preset). Runs in the background."
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBulkBatchIdentifyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBulkBatchIdentify
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBulkBatchIdentifyRequest"
  /v1/bulk-batches/items/{id}:
    patch:
      summary: Correct one item (match, title, price, photos…).
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBulkBatchItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBulkBatchItem
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBulkBatchItemRequest"
    delete:
      summary: Remove one unpublished item.
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteBulkBatchItem
  /v1/bulk-batches/{id}/items/bulk:
    post:
      summary: Set price/quantity/condition/status on many items.
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdatedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBulkBatchItemBulk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBulkBatchItemBulkRequest"
  /v1/bulk-batches/{id}/publish:
    post:
      summary: "Publish reviewed items: drafts only (default) or live on destinations; adds quantity to an existing matching listing."
      tags:
        - BulkBatches
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBulkBatchPublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBulkBatchPublish
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBulkBatchPublishRequest"
  /v1/product-feeds:
    get:
      summary: List the store’s hosted product feeds (Google, Meta, TikTok, Pinterest, Bing, Snapchat, RSS/Atom, JSON, CSV) with their URLs and last-fetch stats.
      tags:
        - ProductFeeds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductFeedsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listProductFeeds
    post:
      summary: Create a hosted product feed in the store for a channel. Returns its secret URL.
      tags:
        - ProductFeeds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductFeedsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductFeed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductFeedRequest"
  /v1/product-feeds/{id}:
    get:
      summary: "One feed: its settings, URLs, store and domain, and when it was last fetched and by whom."
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductFeedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductFeed
    patch:
      summary: "Edit a feed: name, format, on/paused, which listings (filters), field mapping, currency and region, images, UTM, refresh schedule."
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductFeedsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateProductFeed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateProductFeedRequest"
    delete:
      summary: Delete a feed. Its URL stops answering immediately.
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteProductFeed
  /v1/product-feeds/{id}/rotate:
    post:
      summary: "Give the feed a new secret URL. The old URL keeps answering for graceHours (default: the feed’s setting; 0 = stops at once)."
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductFeedsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductFeedRotate
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductFeedRotateRequest"
  /v1/product-feeds/{id}/revoke-previous:
    post:
      summary: "End a rotation’s grace window now: the previous URL stops answering."
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductFeedsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductFeedRevokePrevious
  /v1/product-feeds/{id}/refresh:
    post:
      summary: Drop a scheduled feed’s stored copy so the next fetch builds it fresh.
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListProductFeedsItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductFeedRefresh
  /v1/product-feeds/{id}/copy:
    post:
      summary: Copy the feed’s settings to other stores as new feeds, each with its own URL.
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProductFeedCopyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductFeedCopy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductFeedCopyRequest"
  /v1/product-feeds/{id}/report:
    get:
      summary: "Validate a feed: counts per issue, items with errors (held back) and warnings (sent, limited reach), sample items, store domain and currency."
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductFeedReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductFeedReport
  /v1/product-feeds/{id}/issues:
    get:
      summary: The feed’s flagged items one page at a time, by issue code and severity. Pass nextCursor back as after.
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
          in: query
          name: code
          required: false
        - schema:
            type: string
            enum:
              - error
              - warning
          in: query
          name: severity
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: after
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductFeedIssueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductFeedIssue
  /v1/product-feeds/{id}/preview:
    get:
      summary: "A page of the feed exactly as the channel reads it: every column per item, and the raw document text."
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            enum:
              - xml
              - tsv
              - csv
              - atom
              - json
          in: query
          name: format
          required: false
        - schema:
            type: string
            format: uuid
          in: query
          name: after
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 50
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductFeedPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductFeedPreview
  /v1/product-feeds/{id}/fetches:
    get:
      summary: "Who fetched the feed and when (90 days): the channel, status, served from copy or live, item count, size."
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: date-time
          in: query
          name: before
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductFeedFetchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductFeedFetch
  /v1/product-feeds/{id}/items:
    get:
      summary: The feed’s per-item overrides (title, GTIN, category, custom labels… for this feed only).
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetProductFeedItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getProductFeedItem
  /v1/product-feeds/{id}/items/{listingId}:
    put:
      summary: Set one listing’s override in this feed (the listing itself is unchanged). All fields empty removes it.
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
            format: uuid
          in: path
          name: listingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateProductFeedItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateProductFeedItem
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateProductFeedItemRequest"
    delete:
      summary: Remove one listing’s override from this feed.
      tags:
        - ProductFeeds
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
        - schema:
            type: string
            format: uuid
          in: path
          name: listingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteProductFeedItem
  /v1/email-events/{id}/confirm:
    post:
      summary: "Confirm an email-detected event: re-run it as certain (a possible sale records the sale and delists the item elsewhere). When several listings could be meant, pass platformListingDbId to choose one."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateEmailEventConfirmRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateEmailEventConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEmailEventConfirm
  /v1/email-events/{id}/dismiss:
    post:
      summary: 'Dismiss an email-detected event ("not a sale"): closes the card without acting.'
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEmailEventDismiss
  /v1/email-events/{id}/reprocess:
    post:
      summary: Re-process a marketplace email with the current templates (one Crossly did not recognise, could not finish, or ignored). Refused (409) for an email that already changed something, or once its 30-day copy is gone.
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetEmailEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEmailEventReprocess
  /v1/detected-events/rules/{id}:
    put:
      summary: Replace a detection rule. An id default:<key> stores your edit of that shipped default (delete it, or reset-defaults, to go back to the shipped one).
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventRuleRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDetectedEventRuleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDetectedEventRule
    delete:
      summary: Delete a detection rule. Deleting your edit of a default (its id, or default:<key>) brings the shipped default back; deleting a translated event-policy rule deletes that policy rule too.
      tags:
        - Activity
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteStoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteDetectedEventRule
  /v1/detected-events/rules/reorder:
    post:
      summary: "Set the evaluation order: ids top-down, defaults included (ids from the rules list). Rules are re-numbered 10, 20, 30…; a default moved above one of your rules is stored as your edit. Returns the list."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventRuleReorderRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventRuleReorder
  /v1/detected-events/rules/reset-defaults:
    post:
      summary: Drop your edits of the shipped default rules (keys, or all when omitted). Returns the list.
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventRuleResetDefaultRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDetectedEventRuleReorderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventRuleResetDefault
  /v1/detected-events/rules/place:
    post:
      summary: "Save one rule and the whole evaluation order in one transaction: rule.id is an existing id (replace) or any new client id (create); ids is every rule id top-down, naming the rule by that id. Returns the stored rule and the list."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventRulePlaceRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDetectedEventRulePlaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventRulePlace
  /v1/detected-events/simulate/impact:
    post:
      summary: "What a rule edit would change: your detected events of the last days (default 30, at most 500) re-resolved against the draft rules and against the stored ones. Per event: winning rule and actions before and after, and whether it changed. Nothing runs."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventSimulateImpactRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDetectedEventSimulateImpactResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventSimulateImpact
  /v1/detected-events/simulate:
    post:
      summary: "Run one event through the rules without acting: the winning rule, rules it shadowed, the trace, the guards that held actions back and the plan per target with how it would run (direct / relay / ask / skip). event needs only kind; every axis left out takes its default. rules = an unsaved draft list."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventSimulateRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDetectedEventSimulateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventSimulate
  /v1/detected-events/events/{id}/confirm:
    post:
      summary: "Answer an open ask (canConfirm true): optionally which item it is (itemId, one of the match candidates) and which actions to run instead of the ask's preselected ones. Returns the event. 409 ask_not_open when the event is not waiting."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventEventConfirmRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DetectedEventEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventEventConfirm
  /v1/detected-events/events/{id}/undo:
    post:
      summary: "Undo what Crossly did for an event (canUndo true): every executed action's stored inverse runs, newest first (restore stock, relist, unlink…). Returns the event. 409 nothing_to_undo when nothing is reversible."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DetectedEventEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventEventUndo
  /v1/detected-events/events/{id}/dismiss:
    post:
      summary: "Close an open ask without acting (status dismissed): nothing runs and nothing is recorded for the event. reason is kept with it. Returns the event. 409 ask_not_open when the event is not waiting."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventEventDismissRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DetectedEventEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventEventDismiss
  /v1/detected-events/events/{id}/reject:
    post:
      summary: '"Not this item": drop the suggested match of an open ask (itemId: just that candidate; omitted: every candidate). The ask stays open with the remaining candidates, or asks which item it is. Returns the event.'
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventEventRejectRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DetectedEventEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventEventReject
  /v1/detected-events/starting-point/preview:
    post:
      summary: "What applying a starting point would change, nothing saved: per situation its title, the outcome now and after, and whether it would overwrite a default you edited by hand (those are kept: a starting point only rewrites untouched defaults, never your own rules)."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateDetectedEventStartingPointRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDetectedEventStartingPointPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventStartingPointPreview
  /v1/detected-events/rules/{ref}/copy:
    post:
      summary: Copy one rule (a stored id, or default.<key> for the store's effective rule of a situation) into other stores of yours, at the same relative position. A target store that already has its own rule for that situation keeps it unless overwrite is true. Returns what was copied (and whether it replaced a rule) and what was skipped, and why.
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDetectedEventRuleCopyRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: ref
          required: true
          description: A rule id, or default.<key> (default:<key> works).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDetectedEventRuleCopyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDetectedEventRuleCopy
  /v1/event-policies/rules:
    put:
      summary: "Set what Crossly does with one kind of detected event for one kind of item: scope global (scopeValue null), platform (scopeValue = platform id) or app (scopeValue = OAuth app id, app_managed items only). Replaces the rule for the same cell and scope. The action must be one the matrix allows for that cell; import actions exist only for untracked items."
      tags:
        - Activity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateEventPolicyRuleRequest"
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateEventPolicyRuleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateEventPolicyRule
  /v1/event-policies/rules/{id}:
    delete:
      summary: "Delete a rule: its cell falls back to the next scope (platform → global → the built-in default)."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteStoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteEventPolicyRule
  /v1/event-policies/decisions/{id}/confirm:
    post:
      summary: "Confirm a review decision from a webhook, order poller or app relay (canConfirm true): the event runs again with the seller confirmed, so a review rule runs the strongest allowed non-review action for that cell. Returns the new decision. 409 when the decision was already confirmed or is not confirmable (email review decisions are confirmed on their review card)."
      tags:
        - Activity
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      deprecated: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateEventPolicyDecisionConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEventPolicyDecisionConfirm
  /v1/workflows/import:
    post:
      summary: Import a crossly.workflow export document (or { document, name }) as a new, paused workflow. Integration and workflow references are cleared (they belong to the exporting account) and listed in stripped.
      tags:
        - Workflows
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowImportRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowImport
  /v1/workflows/validate:
    post:
      summary: "Validate a graph without saving it: unknown node types, missing required params, bad ports, cycles, expression errors. blocking=true means activation would be refused."
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowValidateRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowValidateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowValidate
  /v1/workflows/templates/{id}/use:
    post:
      summary: Create a workflow from a template, filling its setup fields; activate=true activates it when it validates.
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowTemplateUseRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Template id from GET /v1/workflows/templates.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowTemplateUse
  /v1/workflows/{id}/activate:
    post:
      summary: "Activate a workflow: its triggers start firing. A graph with blocking issues is refused (422, details.issues)."
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkflowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowActivate
  /v1/workflows/{id}/deactivate:
    post:
      summary: "Pause a workflow: its triggers stop firing. Runs already started finish."
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkflowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowDeactivate
  /v1/workflows/{id}/duplicate:
    post:
      summary: Copy a workflow (graph, description, tags) into a new paused workflow.
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowDuplicateRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowDuplicateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowDuplicate
  /v1/workflows/{id}/versions/{v}/restore:
    post:
      summary: "Restore an earlier version's graph as a new version. Pass version (the current one you read) to refuse the restore when someone saved meanwhile (409). Body optional: { version?: integer }."
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
        - schema:
            type: integer
            minimum: 1
          in: path
          name: v
          required: true
          description: The version number to restore.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkflowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowVersionRestore
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowVersionRestoreRequest"
  /v1/workflows/{id}/test:
    post:
      summary: "Test a workflow (the saved graph, or a draft graph you pass). mode=test runs it for real, using pinned data where a node has it; mode=dry is a safe test: write, destructive and money nodes report what they would do and change nothing. Trigger items: the ones you pass, else pinned, else the last real ones, else the trigger sample."
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowTestRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowTest
  /v1/workflows/{id}/run:
    post:
      summary: Run a workflow (active or paused) live now, on items you pass or on selected listings / orders / inventory items (one kind per call, up to 1,000). The graph must validate (422 with issues otherwise).
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowRunRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowRunResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowRun
  /v1/workflows/run-on:
    post:
      summary: '"Run workflow on…": the same as POST /v1/workflows/{id}/run with the workflow named in the body.'
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowRunOnRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowRunOnResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowRunOn
  /v1/workflow-runs/{runId}/cancel:
    post:
      summary: Cancel a queued, running or waiting run. 409 when it already finished.
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: runId
          required: true
          description: Workflow run id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowRunCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowRunCancel
  /v1/workflow-runs/{runId}/retry:
    post:
      summary: "Retry a failed run from the node that failed: a new run (retryOfRunId) seeded from the failed run's checkpoint, so nodes that succeeded are not repeated. 409 unless the run failed."
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: runId
          required: true
          description: Workflow run id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowRunRetryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowRunRetry
  /v1/workflows/expressions/preview:
    post:
      summary: Resolve one param value ("{{ $json.priceCents * 0.9 }}") with the engine's evaluator against an item, the trigger item, earlier nodes' items or a stored run. A bad expression is an answer (ok=false with the message), not an HTTP error. Changes nothing.
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowExpressionPreviewRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowExpressionPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowExpressionPreview
  /v1/workflow-approvals/{id}/decide:
    post:
      summary: "Approve or reject a pending flow.approval request: the waiting run resumes down the approved or rejected port. 409 when it was already decided (another device, Telegram, or the timeout)."
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowApprovalDecideRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Approval id from GET /v1/workflow-approvals.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowApprovalDecideResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowApprovalDecide
  /v1/workflows/{id}/webhooks/{nodeId}/rotate:
    post:
      summary: "Issue a new inbound URL for an on.webhook trigger node (the old one stops working). The URL, and the signing secret when withSecret=true, are returned ONCE: store them now."
      tags:
        - Workflows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkflowWebhookRotateRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Workflow id.
        - schema:
            type: string
          in: path
          name: nodeId
          required: true
          description: The on.webhook trigger node id.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowWebhookRotateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowWebhookRotate
  /v1/workflows/sales/{saleEventId}/end:
    post:
      summary: End a sale now. A sale that has not started is cancelled; a live one closes and every discounted price is put back now (reverted = how many listings were restored). 404 for a sale that is not yours.
      tags:
        - Workflows
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: saleEventId
          required: true
          description: Sale id from GET /v1/workflows/sales/active.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorkflowSaleEndResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorkflowSaleEnd
  /v1/product-sets/{id}/bulk:
    post:
      summary: Run a bulk action (delist / relist / check-status) against the set's current members.
      tags:
        - ProductSets
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateProductSetBulkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createProductSetBulk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateProductSetBulkRequest"
  /v1/listings/tags:
    get:
      summary: Your listing tags with how many listings carry each, most used first (case-insensitive; `q` filters).
      tags:
        - Listings
      parameters:
        - schema:
            type: string
          in: query
          name: q
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 1000
          in: query
          name: limit
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingTagsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listListingTags
  /v1/listings/tags/suggest:
    get:
      summary: Deterministic tag suggestions for one listing (brand, category, size, condition, colors, style tags, era words in the title); `known` = you already use the tag.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: listingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListListingTagSuggestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listListingTagSuggest
  /v1/listings/tags/bulk:
    post:
      summary: Add and/or remove tags on many listings (yours only; max 30 tags a listing, 40 chars a tag). `dryRun` reports what would change.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingTagBulkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingTagBulk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingTagBulkRequest"
  /v1/listings/tags/rename:
    post:
      summary: Rename a tag on every listing; merges into `to` when it already exists.
      tags:
        - Listings
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateListingTagRenameResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createListingTagRename
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingTagRenameRequest"
  /v1/listings/tags/{tag}:
    delete:
      summary: Remove a tag (any case) from every listing.
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            minLength: 1
          in: path
          name: tag
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdatedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteListingTag
  /v1/source-sync/{platform}:
    patch:
      summary: "Update a store's source-sync settings: on/off, source-owned fields, deletion handling, auto-export channels."
      tags:
        - SourceSync
      parameters:
        - schema:
            type: string
            enum:
              - shopify
              - woocommerce
              - bigcommerce
              - wix
              - squarespace
              - lightspeed_r
              - lightspeed_x
              - square
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSourceSyncItem"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSourceSync
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSourceSyncRequest"
  /v1/source-sync/{platform}/sync:
    post:
      summary: "Reconcile a store now: re-read its whole catalogue and apply every change (runs in the background; 202)."
      tags:
        - SourceSync
      parameters:
        - schema:
            type: string
            enum:
              - shopify
              - woocommerce
              - bigcommerce
              - wix
              - squarespace
              - lightspeed_r
              - lightspeed_x
              - square
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSourceSyncSyncResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSourceSyncSync
  /v1/source-sync/{platform}/location:
    put:
      summary: "POS only: choose the shop (R-Series) / outlet (X-Series) / Square location whose stock and sales Crossly syncs. Must be one GET .../locations lists."
      tags:
        - SourceSync
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSourceSyncLocationRequest"
      parameters:
        - schema:
            type: string
            enum:
              - lightspeed_r
              - lightspeed_x
              - square
          in: path
          name: platform
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSourceSyncLocationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSourceSyncLocation
  /v1/connections/lightspeed_x/token:
    post:
      summary: Connect Lightspeed X-Series with a personal token (Setup → Personal tokens, Plus plan) and the store prefix.
      tags:
        - Accounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateConnectionLightspeedXTokenRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateConnectionLightspeedXTokenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createConnectionLightspeedXToken
  /v1/storefront/shipping:
    get:
      summary: Your Crossly shipping policy (domestic and international services, which countries you ship to) and the default ship-from address of the store named by X-Storefront-Id (else your default store).
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontShippingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontShipping
    put:
      summary: Set your shipping policy (international.enabled, shipsTo worldwide or ISO codes, excludes) and/or the default ship-from address of the store named by X-Storefront-Id, else your default store (any country; 422 for a sanctioned origin).
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontShippingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontShipping
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateStorefrontShippingRequest"
  /v1/listings/{id}/customs:
    put:
      summary: "Set a listing’s customs: HS code (6–10 digits), country of origin, and countries this item must not ship to on Crossly. Omitted fields are left alone; null (or [] for restrictedCountries) clears."
      tags:
        - Listings
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateListingCustomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateListingCustom
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateListingCustomRequest"
  /v1/storefront:
    get:
      summary: "Your storefront design: banner, logo, tagline, bio, theme, SEO title and description, social links, and whether it is published."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefront
    put:
      summary: Update your storefront design. Omitted fields are unchanged, null clears. published=false keeps the design as a draft and buyers see the standard storefront.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefront
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateStorefrontRequest"
  /v1/storefront/sections:
    get:
      summary: "Your storefront sections in display order: kind, title, visible, config, and listing ids for listings shelves."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse4"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStorefrontSections
    post:
      summary: "Add a section at the bottom: kind hero | listings | collections | about | policies | social | announcement | faq (default listings), with its config."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontSectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontSection
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateStorefrontSectionRequest"
  /v1/storefront/sections/{id}:
    patch:
      summary: Rename, show/hide, refill (listings shelves) or reconfigure a section.
      tags:
        - Storefront
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontSectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontSection
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateStorefrontSectionRequest"
    delete:
      summary: Remove a section. Listings on a removed shelf stay live.
      tags:
        - Storefront
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteStorefrontSection
  /v1/storefront/sections/reorder:
    put:
      summary: "Set the section order in one atomic call: every section id, top to bottom."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse4"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontSectionReorder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingByIdRequest"
  /v1/storefront/site:
    get:
      summary: "Your store website: the draft design, what is live, when each changed, whether the site is switched on, and its custom domain."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse3"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontSite
  /v1/storefront/site/draft:
    put:
      summary: Save the website draft (a complete SiteDesign). Validated strictly (a bad field is a 400 naming its path) and sanitized; buyers see nothing until you publish.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontSiteDraft
  /v1/storefront/site/publish:
    post:
      summary: "Publish the draft: it becomes the live site and a publish version is kept (the last 30 versions are kept)."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontSitePublish
  /v1/storefront/site/versions:
    get:
      summary: Saved versions of the website, newest first (publish, restore and template points; up to 30).
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStorefrontSiteVersionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStorefrontSiteVersions
  /v1/storefront/site/versions/{id}/restore:
    post:
      summary: Copy a saved version into the draft (the current draft is kept as a version first). Publish to make it live.
      tags:
        - Storefront
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse3"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontSiteVersionRestore
  /v1/storefront/site/enabled:
    put:
      summary: Switch the website on or off. On requires a publish first; off makes /site/:slug 404 and the custom domain show the shop profile.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse3"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontSiteEnabled
  /v1/storefront/site/starter:
    post:
      summary: Replace the draft with a starter site (vintage, sneakers, streetwear, collectibles, boutique, home, minimal, drop, general). The current draft is kept as a version first.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontSiteStarter
  /v1/storefront/site/preview:
    post:
      summary: "Resolve an unsaved design page like the live site would: every section with its listings and extras (preview: true)."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStorefrontSitePreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontSitePreview
  /v1/storefront/site/resolve:
    post:
      summary: The live listings a ListingSource (manual, tags, category, smart rule or all) selects from your store, and how many match.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStorefrontSiteResolveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontSiteResolve
  /v1/storefront/site/suggest:
    post:
      summary: "Auto-build: website sections proposed from your top tags and categories (not saved)."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStorefrontSiteSuggestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontSiteSuggest
  /v1/storefront/merch:
    get:
      summary: "Your store's live listings by tag, category, condition and brand, with the price range: what product sources can select."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontMerchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontMerch
  /v1/storefront/profile:
    get:
      summary: "Your shop profile (the Crossly Shop page): banner, logo, tagline, bio, accent, announcement, shelves, blocks and All items options."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontProfile
    put:
      summary: Replace your shop profile (a complete ShopProfile). Saved straight away.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateStorefrontProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontProfile
  /v1/storefront/profile/suggest-shelves:
    post:
      summary: Profile shelves proposed from your top tags and categories (not saved).
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStorefrontProfileSuggestShelveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontProfileSuggestShelve
  /v1/storefronts/onboarding:
    get:
      summary: "Crossly Shop setup state: whether you have a store, the generated name/slug a skip would use, each optional step and whether it is done, the listing-gate requirements, payouts readiness and the public URL once live."
      tags:
        - Storefronts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontOnboardingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontOnboarding
  /v1/storefronts/onboarding/skip:
    post:
      summary: "Skip (or dismiss) the setup wizard: ensures your default store exists, with a generated name you can rename any time. Idempotent."
      tags:
        - Storefronts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontOnboardingSkip
  /v1/storefronts/onboarding/suggest:
    post:
      summary: Suggest another generated store name with a free matching slug.
      tags:
        - Storefronts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStorefrontOnboardingSuggestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontOnboardingSuggest
  /v1/storefronts:
    get:
      summary: Your stores (default first). includeArchived=true adds archived ones.
      tags:
        - Storefronts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStorefrontsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStorefronts
      parameters:
        - name: includeArchived
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
    post:
      summary: "Create a store: name (1-60) and optional slug (3-40 lowercase letters, numbers, hyphens; derived from the name when omitted). Your first store becomes the default."
      tags:
        - Storefronts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefront
  /v1/storefronts/slug-available:
    get:
      summary: Is this store slug free? Checks shape, reserved words, current slugs and retired ones.
      tags:
        - Storefronts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontSlugAvailableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontSlugAvailable
      parameters:
        - name: slug
          in: query
          required: true
          schema:
            type: string
  /v1/storefronts/team-access:
    get:
      summary: Every active per-store grant you have made to team members (storefrontId null = all stores).
      tags:
        - Storefronts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStorefrontTeamAccessResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStorefrontTeamAccess
    put:
      summary: Grant (or replace) a team member's access to one store, or to every store (storefrontId null), with scopes.
      tags:
        - Storefronts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontTeamAccess
    delete:
      summary: Revoke a team member's access to one store (or their all-stores grant).
      tags:
        - Storefronts
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteStorefrontTeamAccess
  /v1/storefronts/{id}:
    get:
      summary: "One store: name, slug, status (draft|live|paused|archived), isDefault, nameAuto, onboardedAt, currency (null = never chosen)."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontById
    patch:
      summary: Rename a store. Never changes the slug or your @handle.
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontById
    delete:
      summary: Archive a store. If it was the default, your oldest remaining store becomes the default.
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteStorefront
  /v1/storefronts/{id}/slug:
    put:
      summary: Change a store's slug. The old slug keeps redirecting to the store.
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontSlug
  /v1/storefronts/{id}/status:
    put:
      summary: "Set a store's status: draft | live | paused | archived. A live store is public once it has a live listing."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontStatus
  /v1/storefronts/{id}/currency:
    put:
      summary: "Set a store's currency (ISO 4217, e.g. GBP): what its inventory values, totals and analytics show in, and what a price sent without a currency is stored in."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontCurrency
  /v1/storefronts/{id}/default:
    put:
      summary: Make this store your default (where a Crossly publish with no storefrontId lands).
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontDefault
  /v1/storefronts/{id}/publish:
    post:
      summary: Flip a store live. Fails with storefront_requirements_missing (and the missing list) when ship-from, shipping policy, return policy or payouts are not set.
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontPublish
  /v1/storefronts/{id}/requirements:
    get:
      summary: "What this store still needs before a NEW Crossly listing can publish into it: ship_from, shipping_policy, return_policy, payouts — with where to fix each."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontRequirementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontRequirement
  /v1/storefronts/{id}/settings:
    get:
      summary: "A store's settings: design (banner, logo, theme, SEO, social, published), ship-from, return address, policies (storePolicies: the store's preset picks + what each kind resolves to), custom-order flag, featured listings, bundle discount, custom domain. DEPRECATED aliases, resolved through the policy cascade: offersFreeShipping, freeShippingThresholdCents, offersLocalPickup, localCourierEnabled, acceptsLayaway, sellerProtections, requestArrivalCondition, arrivalConditionWindowHours — use /v1/storefronts/:id/policies and the preset fields."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontSetting
    put:
      summary: "Update a store's settings. Omitted fields are unchanged, null clears. Policies replace wholesale. shippingPresetId / returnPresetId / paymentPresetId pick the store's presets. The checkout-term fields (offersFreeShipping … arrivalConditionWindowHours) are DEPRECATED aliases: they are written into the store's preset."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateStorefrontSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontSetting
  /v1/storefronts/{id}/policies:
    get:
      summary: "A store's policies: per kind (shipping, return, payment) the preset the store picked (presetId, null = your default) and what the store resolves to (resolvedPresetId, resolvedPresetName, level: store | seller_default | legacy | default, body)."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontPolicyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontPolicy
    put:
      summary: "Set a store's policies: shippingPresetId, returnPresetId, paymentPresetId (a policy preset of that kind you own, or null for your default). Omitted = unchanged. Listings in the store with no preset of their own follow these."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStorefrontPolicyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontPolicy
  /v1/storefronts/{id}/policies/from-terms:
    post:
      summary: "Create a policy preset from this store's current terms (body: { kind: 'shipping' | 'return' | 'payment' }) and assign it to the store. Returns { preset, policies }."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStorefrontPolicyFromTermResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontPolicyFromTerm
  /v1/storefronts/{id}/policies/use-shared:
    post:
      summary: "Make a store use your shared policies: a non-default store drops its own return/shipping/payment policy copies and shows your default policies from then on. No change on the default store. Returns the store settings (policySource per kind, usesOwnPolicy)."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateStorefrontSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontPolicyUseShared
  /v1/storefronts/{id}/sections:
    get:
      summary: A store's sections in display order.
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse4"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStorefrontSectionsById
    post:
      summary: Add a section to a store (kind hero | listings | collections | about | policies | social | announcement | faq | creations).
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontSectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontSectionById
  /v1/storefronts/{id}/sections/reorder:
    put:
      summary: "Set a store's section order in one atomic call: every section id, top to bottom."
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse4"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontSectionReorderById
  /v1/storefronts/{id}/sections/{sectionId}:
    patch:
      summary: Rename, show/hide, refill (listings shelves) or reconfigure one section of a store.
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: sectionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontSectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontSectionBySectionId
    delete:
      summary: Remove a section from a store. Listings on a removed shelf stay live.
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: sectionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteStorefrontSectionBySectionId
  /v1/storefronts/{id}/listings/{platformListingId}/move:
    post:
      summary: Move a Crossly listing (by its platform_listing id) into this store.
      tags:
        - Storefronts
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: platformListingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontListingMove
  /v1/wholesale/overview:
    get:
      summary: "Your wholesale store at a glance: the setup checklist, 30-day wholesale revenue, open orders, outstanding invoices, active buyers and pending access requests."
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWholesaleOverviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleOverview
  /v1/wholesale/profile:
    get:
      summary: "A store's trade profile (X-Storefront-Id; default store when omitted): company, tagline, logo and banner, contact, ships-from origin, lead time, order minimums (opening, first order, reorder), the default MOQ / case pack / max per order / backorder / price visibility, return, payment and shipping preset ids, invoicing and its settings, buyer requirements and the directory defaults."
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWholesaleProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleProfile
    put:
      summary: "Save a store's trade profile. Omitted fields are unchanged; null clears. shipsFrom is checked by the shipping validator (400 invalid_ships_from). The profile is the bottom of the trade-terms cascade: catalogs and items that leave a term empty inherit it — saving never rewrites catalogs. Preset ids must be your own presets of that kind."
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWholesaleProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleProfile
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWholesaleProfileRequest"
  /v1/wholesale/catalogs:
    get:
      summary: Your wholesale catalogs with item, buyer-grant and pending-request counts.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleCatalogsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleCatalogs
    post:
      summary: Create a catalog. visibility public | public_prices_private (prices for approved buyers) | private_discoverable (listed, opened on approval) | link (anyone with the URL) | invite (named buyers only; "private" is accepted as invite); autoApprove never | verified | all; the cascade terms (minOrderQuantity, casePack, leadTimeDays, verifiedOnly, priceVisibility, maxPerOrder, backorder, restockEta, preset ids) default every item; listed advertises a public catalog in the wholesale directory (never its prices).
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleCatalogResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleCatalog
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleCatalogRequest"
  /v1/wholesale/catalogs/{id}:
    patch:
      summary: "Edit a catalog: name, slug, description, cover image, visibility, opening-order minimum, trade gate, directory listing, active."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleCatalogResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleCatalog
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWholesaleCatalogRequest"
    delete:
      summary: Delete a catalog with its items, grants and access requests. Orders and invoices are untouched.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWholesaleCatalog
  /v1/wholesale/catalogs/{id}/items:
    get:
      summary: A catalog's items in merchandising order, each with its retail price, trade price, minimum order quantity, case pack and quantity breaks.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleCatalogItemsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleCatalogItems
    post:
      summary: Add your Crossly listings to a catalog (up to 500), each with an optional wholesalePriceCents, minOrderQuantity and casePack. Items already in the catalog have their terms updated.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleCatalogItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleCatalogItem
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleCatalogItemRequest"
    patch:
      summary: "Change many catalog items at once: items[] sets each row (trade price, MOQ, case pack, lead time, max per order, backorder, restock date, verified-only, price visibility, preset ids); or platformListingIds + set applies the same values to each, set.pctOffRetailBps pricing each from its retail price."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWholesaleCatalogItemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleCatalogItem
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWholesaleCatalogItemRequest"
  /v1/wholesale/catalogs/{id}/items/order:
    put:
      summary: "Set the merchandising order: platform listing ids, first to last. Items left out keep their relative order after these."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleCatalogItemsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleCatalogItemOrder
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateLiveStreamLineupRequest"
  /v1/wholesale/catalogs/{id}/items/{platformListingId}:
    patch:
      summary: Change one item's trade price and its own trade terms in this catalog (MOQ, case pack, lead time, max per order, backorder, restock date, verified-only, price visibility, preset ids). null clears = inherit from the catalog.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: platformListingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleCatalogItemByPlatformListingId
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWholesaleCatalogItemByPlatformListingIdRequest"
    delete:
      summary: Take an item out of a catalog. The listing itself is untouched.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: platformListingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWholesaleCatalogItem
  /v1/wholesale/catalogs/{id}/line-sheet:
    get:
      summary: "The catalog's line sheet: your company details and terms, then every item with retail and trade price, minimum, case pack and quantity breaks."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWholesaleCatalogLineSheetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleCatalogLineSheet
  /v1/wholesale/catalogs/{id}/share:
    get:
      summary: The catalog's buyer link (null until you have a shop username), to share or print as a QR code.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWholesaleCatalogShareResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleCatalogShare
  /v1/wholesale/listings/{platformListingId}/tiers:
    put:
      summary: "Replace one listing's quantity breaks: [{ minQuantity ≥ 2, unitPriceCents }], each cheaper than the last and than the list price. An empty list removes them. Applies to every buyer at checkout."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: platformListingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWholesaleListingTierResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleListingTier
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWholesaleListingTierRequest"
  /v1/wholesale/tiers/bulk:
    post:
      summary: "One ladder for many listings: breaks as [{ minQuantity, discountBps }] off each listing's own price. Returns how many were updated and which were skipped and why."
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleTierBulkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleTierBulk
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleTierBulkRequest"
  /v1/wholesale/requests:
    get:
      summary: Requests from buyers to open your private or trade-only catalogs, with each buyer's business-verification and tax-exempt status. ?status=all includes decided ones.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleRequestsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleRequests
  /v1/wholesale/requests/{id}/decide:
    post:
      summary: Approve (grants access to that catalog; optional groupId adds the buyer to a customer group) or decline (optional reason) an access request.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleRequestDecideResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleRequestDecide
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleRequestDecideRequest"
  /v1/wholesale/buyers:
    get:
      summary: "Your trade buyers: catalogs they can open, customer groups, account terms, outstanding balance, wholesale spend, business verification and resale-certificate status (read-only — Crossly reviews those)."
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleBuyersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleBuyers
  /v1/wholesale/buyers/invite:
    post:
      summary: Invite a buyer by email to one or more of your catalogs. Binds to their account now if they have one, or when they sign up.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleBuyerInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleBuyerInvite
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleBuyerInviteRequest"
  /v1/wholesale/buyers/remove:
    post:
      summary: Revoke every catalog grant a buyer (or invited email) has with you. Their terms and invoices are kept.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleBuyerRemoveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleBuyerRemove
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleBuyerRemoveRequest"
  /v1/wholesale/catalogs/{id}/access/{grantId}/resend:
    post:
      summary: "Email a pending catalog invite again (an invited address with no Crossly account yet). One send per invite every 15 minutes: 429 with Retry-After inside that window. grantId is the catalogs[].grantId of GET /wholesale/buyers. Uses the X-Storefront-Id store."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: grantId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleCatalogAccessResendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleCatalogAccessResend
  /v1/wholesale/catalogs/{id}/access/{grantId}:
    delete:
      summary: Revoke one buyer's (or invited address's) access to this ONE catalog; their other catalogs, terms, groups and invoices are kept. /wholesale/buyers/remove revokes every catalog. Uses the X-Storefront-Id store.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: grantId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWholesaleCatalogAccessResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWholesaleCatalogAccess
  /v1/wholesale/buyers/{buyerUserId}/terms:
    put:
      summary: "Set a buyer's account terms: netDays (0-120) for paying on account, creditLimitCents (the most they may owe you at once; null = no limit) and discountPercentBps (their negotiated rate)."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: buyerUserId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWholesaleBuyerTermResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleBuyerTerm
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWholesaleBuyerTermRequest"
    delete:
      summary: Switch a buyer's account terms off. Invoices already issued are unaffected.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: buyerUserId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWholesaleBuyerTerm
  /v1/wholesale/groups:
    get:
      summary: Your customer groups with their discount and members.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleGroupsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleGroups
    post:
      summary: Create a customer group with a discount in basis points (up to 9000). A buyer in several groups gets the best rate, never a stacked one.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleGroupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleGroup
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleGroupRequest"
  /v1/wholesale/groups/{id}:
    patch:
      summary: Rename a group, change its discount, or pause it (active=false).
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleGroupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleGroup
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWholesaleGroupRequest"
    delete:
      summary: Delete a customer group. Its members keep any other group or account rate.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWholesaleGroup
  /v1/wholesale/groups/{id}/members:
    post:
      summary: Add a buyer to a group by account id or by the email of an existing Crossly account.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleGroupMemberResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleGroupMember
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleBuyerRemoveRequest"
  /v1/wholesale/groups/{id}/members/{buyerUserId}:
    delete:
      summary: Take a buyer out of a group.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: buyerUserId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWholesaleGroupMember
  /v1/wholesale/orders:
    get:
      summary: "Wholesale orders: Crossly orders priced through your trade terms (catalog price, quantity break or account rate) or placed on account. Fulfil them like any order."
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleOrdersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleOrders
  /v1/wholesale/invoices:
    get:
      summary: On-account invoices, newest first, with balance due. ?status=unpaid for open, partial and overdue together.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleInvoicesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleInvoices
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - partial
              - open
              - void
              - paid
              - overdue
              - unpaid
              - written_off
        - name: buyerUserId
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/wholesale/invoices/{id}:
    get:
      summary: One invoice with its lines, PO reference, payments and whether Crossly dues on it are collected.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WholesaleInvoiceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleInvoice
  /v1/wholesale/invoices/{id}/mark-paid:
    post:
      summary: "Record a payment the buyer made to you directly: method ach | check | wire | card | other, a reference, and amountCents (omit for the whole balance). When the invoice is settled, Crossly's fee and the tax it remits are charged to your billing card."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WholesaleInvoiceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleInvoiceMarkPaid
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleInvoiceMarkPaidRequest"
  /v1/wholesale/invoices/{id}/send:
    post:
      summary: Email the invoice to the buyer again (an overdue one goes as an overdue notice), with the link to pay it.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleInvoiceSendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleInvoiceSend
  /v1/wholesale/reserve/{inventoryItemId}:
    get:
      summary: How many units of an inventory item are held back for wholesale, and what retail channels advertise.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: inventoryItemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWholesaleReserveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleReserve
    put:
      summary: "Reserve N units of an inventory item for wholesale: retail channels advertise the rest and come down when only the reserve is left. 0 clears it."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: inventoryItemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWholesaleReserveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleReserve
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWholesaleReserveRequest"
  /v1/wholesale/invoices/{id}/void:
    post:
      summary: Void an invoice nobody has paid anything on (e.g. the order was cancelled). It stops counting against the buyer's credit limit.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WholesaleInvoiceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleInvoiceVoid
  /v1/wholesale/invoices/{id}/credit-notes:
    post:
      summary: "Issue a credit note on an on-account invoice (short shipment, damaged, pricing error, returned, goodwill, other): at most the balance due. Numbered <invoice>-CN<n>; settling the rest closes the invoice paid. Not a refund."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleInvoiceCreditNoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleInvoiceCreditNote
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleInvoiceCreditNoteRequest"
  /v1/wholesale/invoices/{id}/write-off:
    post:
      summary: "Write off what is left on an invoice (bad debt): it closes as written_off and stops counting against the buyer's credit."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WholesaleInvoiceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleInvoiceWriteOff
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/NoteRequest"
  /v1/wholesale/invoices/{id}/late-fee:
    post:
      summary: Add your late fee (invoice settings lateFeeBps) to an invoice by hand, once. The hourly sweep adds it automatically when an invoice goes overdue.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WholesaleInvoiceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleInvoiceLateFee
  /v1/storefront/trade-site:
    get:
      summary: "Your store's trade (wholesale) site at /site/:slug/trade: the draft, what is live, whether it is on and its gating (public | prices_private | approved_only)."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse3"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStorefrontTradeSite
  /v1/storefront/trade-site/draft:
    put:
      summary: Save the trade site draft (a complete SiteDesign; trade sections included). Validated strictly and sanitized.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontTradeSiteDraft
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateStorefrontTradeSiteDraftRequest"
  /v1/storefront/trade-site/publish:
    post:
      summary: Publish the trade site draft (a version is kept).
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontTradeSitePublish
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateStorefrontTradeSitePublishRequest"
  /v1/storefront/trade-site/enabled:
    put:
      summary: Switch the trade site on (needs a publish first) or off.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse3"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontTradeSiteEnabled
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnabledRequest"
  /v1/storefront/trade-site/gating:
    put:
      summary: "Who sees the trade site: public (everyone, with prices), prices_private (everyone, prices for approved buyers) or approved_only (approved buyers; others get the apply page)."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse3"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateStorefrontTradeSiteGating
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateStorefrontTradeSiteGatingRequest"
  /v1/storefront/trade-site/starter:
    post:
      summary: Replace the trade site draft with a trade starter (trade_classic, trade_line_sheet, trade_brand_house, trade_apply_first). The current draft is kept as a version first.
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StorefrontResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontTradeSiteStarter
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateStorefrontTradeSiteStarterRequest"
  /v1/storefront/trade-site/suggest:
    post:
      summary: "Trade Auto-build: trade site sections proposed from your wholesale catalogs (a spotlight, a rail per catalog, terms, apply banner). Not saved."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStorefrontSiteSuggestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontTradeSiteSuggest
  /v1/storefront/trade-site/resolve:
    post:
      summary: "The listings a ListingSource selects on your trade site: only items in your active wholesale catalogs (narrowed further by source.catalogIds), and how many match."
      tags:
        - Storefront
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateStorefrontSiteResolveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createStorefrontTradeSiteResolve
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateStorefrontTradeSiteResolveRequest"
  /v1/wholesale/quotes:
    get:
      summary: "Quote requests (RFQ) from trade buyers: items with quantity and target price, your quoted prices and expiry. ?status=open lists the ones waiting on you or the buyer."
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleQuotesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleQuotes
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - expired
              - open
              - accepted
              - declined
              - requested
              - withdrawn
              - answered
  /v1/wholesale/quotes/{id}:
    get:
      summary: One quote request.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WholesaleQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleQuote
  /v1/wholesale/quotes/{id}/answer:
    post:
      summary: "Answer (or revise) a quote: a unit price in CENTS per item you quote, an expiresAt (ISO, at most 90 days out) and an optional note. Items left out are not quoted. The buyer is notified and can accept until expiry."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WholesaleQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleQuoteAnswer
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleQuoteAnswerRequest"
  /v1/wholesale/quotes/{id}/decline:
    post:
      summary: Decline a quote request, with an optional reason the buyer sees.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WholesaleQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleQuoteDecline
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest2"
  /v1/wholesale/freight-requests:
    get:
      summary: Freight (LTL) quote requests from buyers whose order is over your pallet threshold.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleFreightRequestsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleFreightRequests
  /v1/wholesale/freight-requests/{id}/answer:
    post:
      summary: Answer an open freight request with a figure in CENTS (and an optional note).
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleFreightRequestAnswerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleFreightRequestAnswer
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleFreightRequestAnswerRequest"
  /v1/wholesale/drops:
    get:
      summary: "Your trade drops and pre-books: audience (trade = your approved trade buyers, catalog = whoever can open audienceCatalogId), kind (release | prebook), deposit, ship date, status, and for a pre-book its reservation totals (buyers, units, deposits taken, balances still to invoice)."
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleDropsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleDrops
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - draft
              - live
              - cancelled
              - scheduled
              - ended
              - sold_out
    post:
      summary: 'Create a draft trade drop: name, dropAt (ISO; when it opens), audience trade|catalog (+ audienceCatalogId), kind release|prebook. A pre-book needs depositBps (100-9900) and shipBy (YYYY-MM-DD), and takes balanceNetDays (0-90) for the balance invoice. listingIds are your listing ids, each on Crossly. A pre-book makes its listings pre-orders, so buyers pay the deposit at checkout. Schedule it with PATCH status "scheduled".'
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleDrop
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleDropRequest"
  /v1/wholesale/drops/{id}:
    get:
      summary: "One trade drop with its listings and, for a pre-book, every reservation: buyer, item, quantity, deposit, balance, status and the balance invoice once released."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWholesaleDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleDrop
    patch:
      summary: Edit a trade drop (any create field but kind), schedule it (status "scheduled", with dropAt in the future) or cancel it. A live drop can only be cancelled or have endsAt / perCustomerLimit changed.
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWholesaleDrop
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWholesaleDropRequest"
  /v1/wholesale/drops/{id}/release:
    post:
      summary: "Release a live pre-book: every reserved balance becomes an invoice on account to its buyer (due in the drop balanceNetDays), emailed, and the drop ends. Safe to retry: only balances not yet invoiced are invoiced. Returns { invoiced, balanceCents, invoiceIds }."
      tags:
        - Wholesale
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleDropReleaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleDropRelease
  /v1/wholesale/setup-steps:
    get:
      summary: "The wholesale setup checklist for a store: profile, ships-from, payment, returns, a catalog with items, visibility chosen, live. Each step is done because the thing exists."
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWholesaleSetupStepsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWholesaleSetupSteps
  /v1/wholesale/profile/ships-from/validate:
    post:
      summary: Check a ships-from origin ({ postalCode, country, city?, region? }) with the shipping validator without saving it. 400 invalid_ships_from with the issues; 422 for an embargoed origin.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWholesaleProfileShipsFromValidateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWholesaleProfileShipsFromValidate
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWholesaleProfileShipsFromValidateRequest"
  /v1/wholesale/categories:
    get:
      summary: The wholesale category taxonomy (id, label, group). A catalog or trade profile takes up to 12 ids, or "other:<words>".
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWholesaleCategoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleCategory
  /v1/wholesale/terms/preview:
    get:
      summary: The trade terms that apply to a catalog item (?catalogId&platformListingId), a catalog (?catalogId) or the trade profile alone, each with its source (item, catalog, profile, default), plus the return, payment and shipping policies they resolve to.
      tags:
        - Wholesale
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWholesaleTermPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWholesaleTermPreview
      parameters:
        - name: catalogId
          in: query
          required: false
          schema:
            type: string
        - name: platformListingId
          in: query
          required: false
          schema:
            type: string
        - name: storefrontId
          in: query
          required: false
          schema:
            type: string
  /v1/lookbooks:
    get:
      summary: "Your lookbooks: id, slug, title, published, current design version and item count."
      tags:
        - Lookbooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLookbooksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLookbooks
    post:
      summary: Create a lookbook. Pass templateId (classic, editorial, hero, magazine, drop, sale, postcard) to start it from a template styled with your storefront brand kit.
      tags:
        - Lookbooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLookbookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLookbook
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLookbookRequest"
  /v1/lookbooks/{id}/design:
    get:
      summary: A lookbook design document (pages of text, photo, listing, shape and sticker elements) with live listing title/price/photo, your brand kit and rendered page images.
      tags:
        - Lookbooks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetLookbookDesignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getLookbookDesign
    put:
      summary: Save a new design version. Images must already be on the Crossly CDN; listings must be your own Crossly listings. Pass baseVersion to get a 409 instead of overwriting a newer save.
      tags:
        - Lookbooks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateLookbookDesignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateLookbookDesign
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateLookbookDesignRequest"
  /v1/lookbooks/{id}/share-links:
    post:
      summary: "Make a share link for someone without a Crossly login: role view, comment or edit; expires after ttlHours (1 to 2160, default 168). The url is shown once."
      tags:
        - Lookbooks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLookbookShareLinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLookbookShareLink
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLookbookShareLinkRequest"
  /v1/email-providers:
    get:
      summary: "Your BYOK email providers (SMTP, Mailgun, SendGrid, SES, Resend, Postmark, Brevo, Mailjet, SparkPost, MailerSend, Mandrill, Plunk and more): label, from address, default, last test. Secrets are never returned."
      tags:
        - Lookbooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEmailProvidersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listEmailProviders
    post:
      summary: Connect an email sender (16 providers). The key is encrypted; the event webhook URL is returned once.
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateEmailProviderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEmailProvider
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateEmailProviderRequest"
  /v1/email-providers/{id}/uses:
    put:
      summary: "Set what an email provider sends: uses ⊆ [lookbooks, invoices, receipts]. lookbooks is always on; invoices = wholesale invoices and quotes, receipts = other buyer notices, sent from this address instead of from Crossly."
      tags:
        - Lookbooks
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateEmailProviderUsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateEmailProviderUs
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateEmailProviderUsRequest"
  /v1/lookbook-campaigns/preview:
    post:
      summary: "Preview a lookbook email campaign without sending: how many of the audience can receive it (opted in, not suppressed) and the rendered HTML/text."
      tags:
        - Lookbooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateLookbookCampaignPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLookbookCampaignPreview
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLookbookCampaignRequest"
  /v1/lookbook-campaigns:
    post:
      summary: Email a lookbook to customers now or at scheduledAt. Audience kind subscribers | all | repeat | segment {filters} | handles {handles}; only people with marketing consent who have not unsubscribed receive it.
      tags:
        - Lookbooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LookbookCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLookbookCampaign
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLookbookCampaignRequest"
    get:
      summary: Your lookbook campaigns, newest first, with sent / failed / skipped / opened / clicked / bounced / unsubscribed counts.
      tags:
        - Lookbooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLookbookCampaignsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLookbookCampaigns
      parameters:
        - name: collectionId
          in: query
          required: false
          schema:
            type: string
  /v1/lookbook-campaigns/{id}:
    get:
      summary: One lookbook campaign and its counts.
      tags:
        - Lookbooks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LookbookCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getLookbookCampaign
  /v1/lookbook-campaigns/{id}/recipients:
    get:
      summary: "Per-recipient results for a campaign: status (queued, sent, failed, skipped + reason), provider message id, opens, clicks, bounce, unsubscribe."
      tags:
        - Lookbooks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - skipped
              - sent
              - failed
              - queued
        - name: page
          in: query
          required: false
          schema:
            type: number
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListLookbookCampaignRecipientsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listLookbookCampaignRecipients
  /v1/lookbook-campaigns/{id}/cancel:
    post:
      summary: Cancel a scheduled campaign or stop one that is sending (emails already sent stay sent).
      tags:
        - Lookbooks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LookbookCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createLookbookCampaignCancel
  /v1/print-mail/jobs:
    get:
      summary: "Print-and-mail jobs (beta): provider, format, pieces, estimate, status and per-piece results."
      tags:
        - Lookbooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPrintMailJobsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPrintMailJobs
    post:
      summary: "Draft a printed lookbook mailing (beta): renders the print-ready PDF with bleed and estimates the cost from your per-piece price. Mails nothing until confirmed."
      tags:
        - Lookbooks
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePrintMailJobResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPrintMailJob
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePrintMailJobRequest"
  /v1/print-mail/jobs/{id}/confirm:
    post:
      summary: "Confirm a drafted print job: acknowledgeCharges must be true and pieces must equal the job's piece count. Your Lob or PostGrid account is billed."
      tags:
        - Lookbooks
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePrintMailJobConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPrintMailJobConfirm
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePrintMailJobConfirmRequest"
  /v1/crm/integrations:
    get:
      summary: "The store's CRM connections: provider, name, sync settings, health. Secrets are redacted."
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCrmIntegrationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCrmIntegrations
    post:
      summary: Connect a custom webhook CRM or Mailchimp. HubSpot, Salesforce, Pipedrive and Zoho connect by signing in from the dashboard.
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCrmIntegrationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCrmIntegration
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCrmIntegrationRequest"
  /v1/crm/integrations/{id}:
    patch:
      summary: Rename, pause, re-key or change what a CRM receives (sources, opted-in only, field mapping). Blank secrets keep the stored ones.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCrmIntegrationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateCrmIntegration
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateCrmIntegrationRequest"
    delete:
      summary: Disconnect a CRM. Buyers stop flowing to it; its delivery log goes with it.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteCrmIntegration
  /v1/crm/integrations/{id}/test:
    post:
      summary: Send a sample buyer to the CRM and report whether it arrived, in one sanitized line.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCrmIntegrationTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCrmIntegrationTest
  /v1/crm/integrations/{id}/logs:
    get:
      summary: A CRM connection's delivery log, newest first, paged; filter by status.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: page
          in: query
          required: false
          schema:
            type: number
        - name: pageSize
          in: query
          required: false
          schema:
            type: number
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - pending
              - sent
              - failed
              - retrying
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCrmIntegrationLogsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCrmIntegrationLogs
  /v1/email-providers/{id}:
    patch:
      summary: "Edit an email sender: label, from address, reply-to, default, settings. Blank secrets keep the stored ones."
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateEmailProviderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateEmailProvider
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateEmailProviderRequest"
    delete:
      summary: Disconnect an email sender. The next newest becomes the default.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteEmailProvider
  /v1/email-providers/{id}/test:
    post:
      summary: Send a real test email through the sender; the result is one sanitized line.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateEmailProviderTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEmailProviderTest
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateEmailProviderTestRequest"
  /v1/email-providers/{id}/webhook-url:
    post:
      summary: Make a new event webhook URL for the sender (the old one stops working). It is returned once.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateEmailProviderWebhookUrlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEmailProviderWebhookUrl
  /v1/design-tools/{tool}:
    get:
      summary: Whether Figma or Canva is connected for the store, and as whom. Never the token.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: tool
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDesignToolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDesignTool
    put:
      summary: Connect Figma with a personal access token, or save your own Canva Connect app (client id + secret; finish the Canva sign-in in the dashboard).
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: tool
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateDesignToolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDesignTool
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TokenObject"
    delete:
      summary: Disconnect Figma or Canva for the store.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: tool
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteDesignTool
  /v1/design-tools/import:
    post:
      summary: Import Figma frames or Canva pages as images on the Crossly CDN, for the site editor, share cards, ad creatives, Branding drops or lookbooks.
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDesignToolImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDesignToolImport
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDesignToolImportRequest"
  /v1/print-mail/credentials:
    get:
      summary: "The store's Lob and PostGrid accounts: mode, key as last 4, return address, per-piece prices."
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListPrintMailCredentialsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listPrintMailCredentials
    post:
      summary: Save a Lob or PostGrid key (tested against the provider first), with the return address and your per-piece prices.
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePrintMailCredentialResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPrintMailCredential
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePrintMailCredentialRequest"
  /v1/print-mail/credentials/test:
    post:
      summary: Check a Lob or PostGrid key with the provider before saving it. Saves nothing, mails nothing.
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePrintMailCredentialTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPrintMailCredentialTest
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreatePrintMailCredentialTestRequest"
  /v1/print-mail/credentials/{id}:
    patch:
      summary: "Change a print and mail account: label, return address, per-piece prices (cents per format)."
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePrintMailCredentialResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updatePrintMailCredential
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdatePrintMailCredentialRequest"
    delete:
      summary: Remove a print and mail account.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deletePrintMailCredential
  /v1/print-mail/credentials/{id}/test:
    post:
      summary: Re-check a saved Lob or PostGrid key; the result is one sanitized line.
      tags:
        - Integrations
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatePrintMailCredentialTestByIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createPrintMailCredentialTestById
  /v1/print-mail/estimate:
    get:
      summary: "Estimate a printed lookbook send: pieces × the seller's own per-piece price, per format the account's provider prints."
      tags:
        - Integrations
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetPrintMailEstimateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getPrintMailEstimate
      parameters:
        - name: lookbookId
          in: query
          required: true
          schema:
            type: string
        - name: count
          in: query
          required: true
          schema:
            type: number
        - name: credentialId
          in: query
          required: false
          schema:
            type: string
        - name: format
          in: query
          required: false
          schema:
            type: string
            enum:
              - postcard_4x6
              - postcard_6x9
              - postcard_6x11
              - booklet_8x5
  /v1/brand-drops/partner:
    get:
      summary: Your drop-partner terms (fee, promotion tier, monthly allowance, whether you may schedule without review) and how many drops you have created this month. partner is null when you are not an approved partner — apply at crossly.net/drops/apply.
      tags:
        - Brand drops
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandDropPartnerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBrandDropPartner
  /v1/brand-drops:
    get:
      summary: Your brand drops, newest start time first. Filter with ?status=draft|pending_review|scheduled|live|sold_out|ended|cancelled. Empty when you are not a partner.
      tags:
        - Brand drops
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBrandDropsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBrandDrops
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - draft
              - live
              - cancelled
              - scheduled
              - ended
              - sold_out
              - pending_review
        - name: limit
          in: query
          required: false
          schema:
            type: number
    post:
      summary: Create a brand drop as a draft (name, dropAt in the future, optional description, cover image and Crossly platform-listing ids). Approved partners only (403 drop_partner_required); counts against your monthly allowance (403 drop_quota_exhausted).
      tags:
        - Brand drops
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BrandDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBrandDrop
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBrandDropRequest"
  /v1/brand-drops/{id}:
    get:
      summary: One of your brand drops, with its status and any note from Crossly’s review.
      tags:
        - Brand drops
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BrandDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBrandDrop
    patch:
      summary: "Edit a brand drop and/or change its status: draft (withdraw / unschedule), pending_review (submit for review), scheduled (only with canSelfPublish — 403 drop_review_required otherwise), cancelled. Editing name, time or description of a reviewed drop sends it back to review. Live and finished drops cannot be changed."
      tags:
        - Brand drops
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BrandDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBrandDrop
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBrandDropRequest"
  /v1/brand-drops/{id}/listings:
    get:
      summary: The listings a brand drop releases when it goes live.
      tags:
        - Brand drops
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBrandDropListingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBrandDropListings
    put:
      summary: Replace the listings a brand drop releases, by master listing id (up to 100). Each must already be listed on Crossly — otherwise 400 listing_not_on_crossly naming them. Not allowed once the drop is live or finished.
      tags:
        - Brand drops
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBrandDropListingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBrandDropListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBrandDropListingRequest"
  /v1/branding/drops:
    get:
      summary: Your drops, newest first, with config, waves, counts (entries, holding, sold, buyers) and phase. ?scope=upcoming|live|past|drafts|all.
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBrandingDropsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBrandingDrops
      parameters:
        - name: scope
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - live
              - upcoming
              - past
              - drafts
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: cursor
          in: query
          required: false
          schema:
            type: string
    post:
      summary: "Create a drop as a draft. `config` is the full drop config (what, where: shop|world|live|storefront|featured, format, access, limits, pricing, schedule, promotion, fulfilment). Returns rule problems to fix before publishing."
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBrandingDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBrandingDrop
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBrandingDropRequest"
  /v1/branding/drops/{id}:
    get:
      summary: One of your drops.
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandingDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBrandingDrop
    patch:
      summary: Edit a drop that is not live yet. A published drop refuses rule problems (400 drop_config_problems).
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBrandingDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBrandingDrop
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBrandingDropRequest"
    delete:
      summary: Delete a draft, or cancel a scheduled drop. A live drop is ended with the end control.
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteBrandingDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteBrandingDrop
  /v1/branding/drops/{id}/buyers:
    get:
      summary: "A drop's buyers: public username, units claimed, order id and when, oldest first."
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBrandingDropBuyersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBrandingDropBuyers
  /v1/branding/drops/{id}/publish:
    post:
      summary: "Publish: scheduled, or pending_review for a brand partner without self-publish. Brand partners need a verified business on Stripe (403 business_verification_required)."
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBrandingDropPublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBrandingDropPublish
  /v1/branding/drops/{id}/controls/{control}:
    post:
      summary: "Live controls: pause, resume, extend (body endsAt), release-wave, end, draw (raffle)."
      tags:
        - Branding
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: control
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandingDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBrandingDropControl
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBrandingDropControlRequest"
  /v1/branding/drops/{id}/restock-run:
    post:
      summary: "Restock run for a sold-out or ended drop: a link-only group buy on one of its restocked listings ({ platformListingId?, tiers, goalQty?, minQtyToProceed?, perBuyerMax?, days?, paymentMode?, priorityHours?, title?, description?, shareCopy? }). Waitlisted, raffle-losing and notify entrants of the drop are told and join first for priorityHours. One run per drop (409 after)."
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBrandingDropRestockRunResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBrandingDropRestockRun
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBrandingDropRestockRunRequest"
  /v1/branding/events:
    get:
      summary: "Your events: upcoming grouped by date (today, this_week, later), or past."
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandingEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBrandingEvent
      parameters:
        - name: scope
          in: query
          required: false
          schema:
            type: string
            enum:
              - upcoming
              - past
  /v1/branding/events/{id}/settings:
    put:
      summary: Save an event's full settings (where, access, reminders, check-in, recording, linked drops) and ticket tiers.
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateBrandingEventSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBrandingEventSetting
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBrandingEventSettingRequest"
  /v1/branding/events/{id}/check-in:
    post:
      summary: Check a ticket in at the door by its QR token.
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBrandingEventCheckInResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBrandingEventCheckIn
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBrandingEventCheckInRequest"
  /v1/branding/events/{id}/messages:
    post:
      summary: "Message the event's attendees: all, going, or ticketed."
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBrandingEventMessageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBrandingEventMessage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateBrandingEventMessageRequest"
  /v1/branding/events/{id}/cancel:
    post:
      summary: Cancel a published event with the reason attendees see.
      tags:
        - Branding
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBrandingEventCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createBrandingEventCancel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest"
  /v1/branding/brand:
    get:
      summary: Your brand profile (approved brand partners).
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandingBrandResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBrandingBrand
    patch:
      summary: "Edit your brand profile: logoUrl, bannerUrl, story, links."
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandingBrandResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBrandingBrand
  /v1/branding/brand/sellers:
    get:
      summary: Your authorised sellers (approved brand partners), each with its store name and status.
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBrandingBrandSellersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBrandingBrandSellers
    put:
      summary: "Authorise a seller to sell your brand, or revoke them: { sellerUserId, status: active|revoked, note? }."
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateBrandingBrandSellerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBrandingBrandSeller
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBrandingBrandSellerRequest"
  /v1/branding/brand/sellers/search:
    get:
      summary: Find a store to authorise by its name or slug (?q=, at least 2 characters).
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListBrandingBrandSellerSearchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listBrandingBrandSellerSearch
      parameters:
        - name: q
          in: query
          required: false
          schema:
            type: string
  /v1/branding/brand/terms:
    get:
      summary: Your partner terms (fee, drops per month, units per drop, self-publish, pre-bids, promotion tier), this month's drop usage and the terms history.
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandingBrandTermResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBrandingBrandTerm
  /v1/branding/business-verification:
    get:
      summary: Whether your Stripe account is a verified business (company, EIN/tax id verified, payouts on), with reasons and the page to fix it.
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandingBusinessVerificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBrandingBusinessVerification
  /v1/branding/settings:
    get:
      summary: "The store’s Branding defaults new drops start from: timezone, notifyFollowers, botQueue, botCaptcha, cartHoldMinutes, leftovers."
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandingSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getBrandingSetting
    patch:
      summary: Change the store’s Branding defaults (any subset of the fields).
      tags:
        - Branding
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetBrandingSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateBrandingSetting
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBrandingSettingRequest"
  /v1/embeds/keys:
    get:
      summary: Your publishable keys.
      tags:
        - Embeds
      description: Publishable keys are safe to put in a public web page — they can read your own active listings and start a checkout, and nothing else. The key is shown in full because it is not a secret.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEmbedKeysResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listEmbedKeys
    post:
      summary: Mint a publishable key for a site.
      tags:
        - Embeds
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateEmbedKeyRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateEmbedKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createEmbedKey
  /v1/embeds/keys/{id}:
    delete:
      summary: Revoke a publishable key.
      tags:
        - Embeds
      description: Takes effect immediately. Any site still using it will show an empty catalog, so replace the key in the page before revoking the old one.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteEmbedKey
  /v1/spatial/auction/rooms/{sceneId}/bid:
    post:
      summary: Bid on the lot currently up in a room.
      tags:
        - Buyer
      description: "Bids on whatever the auctioneer has up RIGHT NOW. Pass `lotId` to say which lot you believe that is: it is checked against the rostrum rather than used in its place, and a mismatch answers 409 with the lot that is actually up, so a stale catalogue cannot buy you something you never looked at. `amountCents` is CENTS and must be at least the room state's `minimumNextBidCents` — do not compute that yourself, because the opening bid on a lot is floored at the START price rather than start + step. Below it you get 400 `bid_too_low` carrying `details.minimumNextBidCents`, which is the figure the transaction itself used; raise to that and retry. THIS AUCTION HOUSE SELLS DIGITAL GOODS ONLY. A physical lot is refused 403 `forbidden` with `details.reason: \"physical_lot\"`, checked against the listing on every single bid rather than once when the room was set up. Bids by one person on one lot are throttled to a few per second — 429 `bidding_too_fast` carries `retryInSeconds`. A hammered or skipped lot answers 409 `lot_closed`. A room you may not enter answers 404, the same as one that does not exist. Success is the bid RECORDED, not the lot won: the reply names the topic the price moves on, and somebody may outbid you on the next frame."
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: sceneId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialAuctionRoomBidResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialAuctionRoomBid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialAuctionRoomBidRequest"
  /v1/spatial/streets:
    get:
      summary: Every street in the world.
      tags:
        - Inventory
      description: "Active streets with `plotCount` and how many plots are `occupied`. `platform: true` is Crossly's own street (Main Street), where every public shop has a plot."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialStreetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialStreets
  /v1/spatial/streets/{slug}:
    get:
      summary: "A street: every plot and the shop open on each."
      tags:
        - Inventory
      description: "Plots in order from the entrance. Each has its `index` (0-based), house `number` (1-based), `address` (`<street>/<number>`, stable for as long as the shop stands there) and `label` (\"12 Main Street\"). `shop` is the open shop's directory entry, or null for a vacant plot; `shuttered: true` is a plot whose shop is not public right now — it keeps its address. `reserved` plots are newcomer plots: occupiable, never sold or leased. Each open shop's plot carries `life`: `soldToday` (the seller's sales today, America/New_York) and `window` (up to three live listings: listingId, slug, title, priceCents, imageUrl). The street carries `life.billboards` (promoted listings, paid per sale, then Crossly house ads) and `life.buskers` (shop owners on it who are live now)."
      parameters:
        - schema:
            type: string
            minLength: 3
            maxLength: 40
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialStreetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialStreet
  /v1/spatial/address/{street}/{number}:
    get:
      summary: The shop at an address.
      tags:
        - Inventory
      description: Resolves `<street>/<number>` to the shop's `publicSlug` and `name`. 404 when the plot is vacant or its shop is not public.
      parameters:
        - schema:
            type: string
          in: path
          name: street
          required: true
        - schema:
            type: string
          in: path
          name: number
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialAddressResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialAddress
  /v1/spatial/shop/addresses:
    get:
      summary: Your shop's addresses.
      tags:
        - Inventory
      description: One per street your shop stands on, Main Street first.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialShopAddressesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialShopAddresses
  /v1/spatial/streets/{slug}/claim:
    post:
      summary: Put your shop on a street.
      tags:
        - Inventory
      description: Seats your shop on the lowest vacant plot of an OPEN street and returns its `index` and `address`; calling it again returns the plot you already have. Your shop must be public (400 otherwise). A street that takes shops by application or invitation answers 400; a full street you do not own answers 409. Main Street grows instead of filling.
      parameters:
        - schema:
            type: string
            minLength: 3
            maxLength: 40
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialStreetClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetClaim
  /v1/spatial/streets/{slug}/plot:
    delete:
      summary: Take your shop off a street.
      tags:
        - Inventory
      description: "The plot goes vacant and its address may be taken by another shop. `left: false` when your shop was not on it."
      parameters:
        - schema:
            type: string
            minLength: 3
            maxLength: 40
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldCrewLeaveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteSpatialStreetPlot
  /v1/spatial/streets/{slug}/plots/{number}/quote:
    get:
      summary: What a plot costs.
      tags:
        - Inventory
      description: Price in CENTS (paid in CBX at spot), weekly maintenance in cents, weeks included with a purchase, and whether it can be bought now. Newcomer plots (1-2) are never sold.
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: number
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialStreetPlotQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialStreetPlotQuote
  /v1/spatial/property:
    get:
      summary: Your plots and tenancies.
      tags:
        - Inventory
      description: Each deed with its address, price, weekly maintenance, `paidThrough`, `status` (active, grace, delinquent — a delinquent owner cannot collect rent; past three weeks late a deed is foreclosed) and any lease; plus the leases you rent as a tenant.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialPropertyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialProperty
  /v1/spatial/streets/{slug}/plots/{number}/buy:
    post:
      summary: Buy a vacant plot from Crossly, in CBX.
      tags:
        - Inventory
      description: Pays the quoted price from your EARNED CBX at spot and moves your shop onto the plot. Includes the first weeks of maintenance. 409 if the plot is taken or was just bought; 403 while property is not open.
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: number
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialStreetPlotBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetPlotBuy
  /v1/spatial/property/deeds/{id}/maintenance:
    post:
      summary: Pay a plot's maintenance forward.
      tags:
        - Inventory
      description: Body `{ weeks }` (1-12). Extends `paidThrough` from the later of now and the current date.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialPropertyDeedMaintenanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialPropertyDeedMaintenance
  /v1/spatial/property/deeds/{id}/lease:
    post:
      summary: Offer your plot for lease.
      tags:
        - Inventory
      description: Body `{ rentWeeklyCents }` ($1-$5,000). The plot must be vacant and its maintenance current. Terms freeze when a tenant accepts.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialPropertyDeedLeaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialPropertyDeedLease
  /v1/spatial/property/leases/{id}/accept:
    post:
      summary: Take a plot on lease.
      tags:
        - Inventory
      description: Pays the first week to the owner from your EARNED CBX and moves your (public) shop onto the plot.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMarketPlotRentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialPropertyLeaseAccept
  /v1/spatial/property/leases/{id}/rent:
    post:
      summary: Pay rent forward.
      tags:
        - Inventory
      description: "Body `{ weeks }` (1-12). While the owner's deed is delinquent rent is WAIVED (`waived: true`), never collected."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialPropertyLeaseRentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialPropertyLeaseRent
  /v1/spatial/deeds/listings:
    get:
      summary: Plots for resale.
      tags:
        - Inventory
      description: "Live resale listings, cheapest first: address, `priceCents` (paid in CBX at spot), Crossly's `feeCents` (the 2% CBX skim), weekly maintenance, and the deed's `status` and `paidThrough` — a buyer inherits the maintenance clock. `?street=` narrows to one street."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialDeedListingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialDeedListings
  /v1/spatial/property/deeds/{id}/list:
    post:
      summary: List your plot for resale.
      tags:
        - Inventory
      description: Body `{ priceCents }` ($1-$100,000). The deed's maintenance must be current. A lease on it carries on with the buyer.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialPropertyDeedListResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialPropertyDeedList
  /v1/spatial/property/listings/{id}/cancel:
    post:
      summary: Take your plot off the market.
      tags:
        - Inventory
      description: Only a listing nobody is buying right now.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldJobShiftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialPropertyListingCancel
  /v1/spatial/property/listings/{id}/buy:
    post:
      summary: Buy a plot on the resale market, in CBX.
      tags:
        - Inventory
      description: Pays the asking price from your EARNED CBX to the seller (Crossly takes the 2% skim). The deed, its maintenance clock and any lease pass to you; your shop moves onto the plot if it is vacant. 409 if it has just sold.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialPropertyListingBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialPropertyListingBuy
  /v1/spatial/property/leases/{id}/end:
    post:
      summary: End a lease (owner or tenant).
      tags:
        - Inventory
      description: The tenant's showroom leaves the plot.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialPropertyLeaseEndResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialPropertyLeaseEnd
  /v1/spatial/streets/founding:
    get:
      summary: What founding a street costs.
      tags:
        - Inventory
      description: "The founding premium `priceCents` (paid in CBX at spot, from EARNED balance), weekly upkeep `maintenanceWeeklyCents`, `includedWeeks` of upkeep included, `plots` on a founded street, `maxPerOwner`, the `admissions` an owner may pick (open | apply | invite), `cbx` {open, reason} -- closed until mint -- and, for the token owner, `refusal`: why they cannot ask yet (no public shop, already holding a street), or null."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialStreetFoundingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialStreetFounding
  /v1/spatial/streets/mine:
    get:
      summary: Streets your store holds.
      tags:
        - Inventory
      description: "Streets the store (`X-Storefront-Id`, else your default store) holds or asked to found, newest first: `status` (pending review, approved, founding, active, dormant, rejected, released), `upkeep` (active, grace, delinquent -- a delinquent owner collects no stall rent; three weeks late the street is foreclosed and closed), `paidThrough`, `admission`, `occupied` of `plotCount`, `pendingApplications`, and Crossly's `reviewNote`."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialStreetMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialStreetMine
  /v1/spatial/streets/requests:
    post:
      summary: Ask to found a street.
      tags:
        - Inventory
      description: "Body `{ name, slug?, admission? }`. Free: the name (3-32 letters, numbers, spaces and ' & . -) and its web address (derived from the name when omitted) are held for Crossly's review. Crossly's own streets and room addresses are never available. You need a public shop, and hold one street at most. 409 when the address is taken or you already hold one."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialStreetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetRequest
  /v1/spatial/streets/requests/{id}/found:
    post:
      summary: Found an approved street, in CBX.
      tags:
        - Inventory
      description: 'Pays the founding premium from your EARNED CBX at spot and opens the street: its plots exist, the first weeks of upkeep are included, and your shop stands on it. 403 "CBX opens at mint" until the token is live; 409 before approval.'
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialStreetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetRequestFound
  /v1/spatial/streets/owned/{id}/upkeep:
    post:
      summary: Pay a street's upkeep forward.
      tags:
        - Inventory
      description: Body `{ weeks }` (1-12). Extends `paidThrough` from the later of now and the current date.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialStreetOwnedUpkeepResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetOwnedUpkeep
  /v1/spatial/shop/staff:
    get:
      summary: Your shop's staff and their wages.
      tags:
        - Inventory
      description: Staff are people holding a `staff` grant on your shop (invite them through the room-sharing flow). They may arrange the shop and move its stock, nothing else. `wageWeeklyCents` is paid by you in CBX; `pending` is an invite not yet accepted.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialShopStaffResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialShopStaff
  /v1/spatial/staffing:
    get:
      summary: Shops you work in.
      tags:
        - Inventory
      description: Each shop you hold a live staff grant on, with your wage.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialStaffingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialStaffing
  /v1/spatial/shop/staff/{grantId}/wage:
    put:
      summary: Set a staff member's weekly wage.
      tags:
        - Inventory
      description: Body `{ wageWeeklyCents }` ($1-$2,000), or null to clear it.
      parameters:
        - schema:
            type: string
          in: path
          name: grantId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateSpatialShopStaffWageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSpatialShopStaffWage
  /v1/spatial/shop/staff/{grantId}/pay:
    post:
      summary: Pay a staff member's wage forward.
      tags:
        - Inventory
      description: Body `{ weeks }` (1-4). Paid from your EARNED CBX to theirs. 403 while paying staff is not open.
      parameters:
        - schema:
            type: string
          in: path
          name: grantId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialShopStaffPayResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialShopStaffPay
  /v1/world/home/builders:
    put:
      summary: "Set the co-builders of your home: { userIds } -- friends (mutual follows) only, at most 4, replacing the list ([] clears it). They may rearrange your home in the world with your things and add free furniture, never your bought pieces. New co-builders get a world notice."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldHomeBuilderRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldHomeBuilderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldHomeBuilder
  /v1/world/quests/pin:
    put:
      summary: "Wear a pin you EARNED from a quest on your nameplate, or { pin: null } to wear none. 403 for a pin you have not earned. Shows from the next room you walk into."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldQuestPinRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldQuestPinResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldQuestPin
  /v1/world/crews:
    post:
      summary: "Start a crew you own: { name (2-32 chars), tag (2-5 letters or digits, shown on members' nameplates) }. Answers its id and join code. 409 when you are already in a crew."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldCrewRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldCrewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldCrew
  /v1/world/crews/join:
    post:
      summary: Join a crew by the code a member gave you. 404 for an unknown code, 409 when you are already in a crew or it is full (30).
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldCrewJoinRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldCrewJoinResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldCrewJoin
  /v1/world/crews/leave:
    post:
      summary: "Leave your crew. If you own it, the crew is disbanded. Idempotent: leaving when in none succeeds."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldCrewLeaveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldCrewLeave
  /v1/world/friends/{userId}/invite:
    post:
      summary: '"Join me": send one friend (a mutual follow) a notification with a link to the PUBLIC room you name by slug. 404 when they are not a friend or the room is not public; 429 when you invited them in the last minute.'
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldFriendInviteRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldFriendInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldFriendInvite
  /v1/world/avatar/equip:
    post:
      summary: Wear something you already own -- exactly ONE of { cosmeticId } (a cosmetic you hold), { receiptId } (a Crossly purchase from your closet) or { inventoryItemId } (your own stock). The slot comes from the thing itself; slot is only a fallback for an item with no catalog shape. Replaces whatever was in that slot. Moves no money. Answers the slot and your loadout after the change.
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldAvatarEquipRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldAvatarEquipResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldAvatarEquip
  /v1/world/avatar/unequip:
    post:
      summary: "Take off whatever is in one slot. Idempotent: an empty slot answers removed:false. Answers your loadout after the change."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldAvatarUnequipRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldAvatarUnequipResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldAvatarUnequip
  /v1/world/outfits/{id}:
    patch:
      summary: "Rename a saved look: { name (1-32 chars) }. 404 when it is not yours."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldOutfitRequest"
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldOutfitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldOutfit
    delete:
      summary: Delete a saved look. 404 when it is not yours.
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldOutfitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldOutfit
  /v1/world/outfits/{id}/apply:
    post:
      summary: "Put a saved look on. Every item goes through the same equip as POST /v1/world/avatar/equip, so ownership still holds: something you no longer own is listed in skipped with the reason and not worn. Slots the look left empty are emptied (cleared). Answers the appearance of the look (for your character -- appearance lives on your device), applied, skipped and cleared. Moves no money."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldOutfitApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldOutfitApply
  /v1/world/dms:
    get:
      summary: "Your friends (mutual follows) for direct messages: each with userId, name, the last line between you (text, at, mine) or null, and how many of theirs you have not read; most recent first."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldDmsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldDms
  /v1/world/dms/{userId}:
    get:
      summary: "Your direct-message thread with one friend, oldest first (the last 100 lines: id, from, text, at, mine). Reading it marks their lines read."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldDmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldDm
    post:
      summary: Send a direct message to a friend (a mutual follow; never across a block), up to 400 characters, through the world chat guard. 403 when they are not a friend, 429 when sent too quickly.
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldCrewChatRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldDmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldDm
  /v1/world/follows:
    get:
      summary: "Everybody you follow in Crossly World, newest first, each with mutual: true when they follow you back (a friend)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldFollowsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldFollows
  /v1/world/follows/{userId}:
    post:
      summary: Follow somebody. When they follow you back you are friends (friends-here, invites, messages). Idempotent.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldFollowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldFollow
    delete:
      summary: Unfollow somebody. Idempotent.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldFollowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldFollow
  /v1/world/following/rooms:
    get:
      summary: The public rooms of people you follow, to walk into.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldFollowingRoomsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldFollowingRooms
  /v1/world/jobs:
    get:
      summary: "The jobs board: open staff shifts you could claim, your claimed shifts and open price checks (appraisals), as the world shows them."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldJobResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldJob
  /v1/world/jobs/posted:
    get:
      summary: Shifts you posted for your rooms, with who claimed each and how it went.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListJobShiftsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldJobPosted
  /v1/world/emotes/wheel:
    put:
      summary: "Arrange your emote wheel: up to 8 slots, each an emote id, a moment slot or null. Returns the saved wheel (locked or unknown ids are dropped)."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldEmoteWheelRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldEmoteWheelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldEmoteWheel
  /v1/world/pets/active:
    put:
      summary: "Walk one of your pets with you in the world, or none (kind: null)."
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldPetActiveRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldPetActiveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldPetActive
  /v1/spatial/scenes/{id}/rename:
    post:
      summary: Rename one of your rooms.
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialSceneRenameRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialSceneResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialSceneRename
  /v1/spatial/scenes/{id}/visibility:
    post:
      summary: Make one of your rooms private, unlisted (anyone with the link) or public (in the lobby and searchable).
      tags:
        - World
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialSceneVisibilityRequest"
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialSceneResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialSceneVisibility
  /v1/spatial/scenes/{id}/settings:
    patch:
      summary: "How one of your rooms is laid out and lit: grouping and sort keys, theme, overlay and the arrival camera. Cosmetics and the shop layout have their own writers."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialSceneResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSpatialSceneSetting
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSpatialSceneSettingRequest"
  /v1/showroom/catalog:
    get:
      summary: "Everything a showroom can be made of: fixture displays (kind, slots per unit), room sizes, themes, surfaces, shopfronts, facades, sign styles and fonts, window moods, and `holders`: every fixture holder with `owned` (free, or a premium one you bought in the in-world cosmetics market; an unowned premium holder is refused with holder_not_owned)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetShowroomCatalogResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShowroomCatalog
  /v1/showroom:
    get:
      summary: "Your store's showroom in Crossly World: the room and its look, fixtures with their slot grids, where every item stands (pinned by a person or placed automatically), sharing settings and the stock that can stand there. The ETag is the version."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetShowroomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShowroom
    put:
      summary: "Replace the whole showroom layout (room, fixtures, placements, settings). Validated as a whole: every item must be this store's, every pin must fit its fixture, no two pins share a slot. Send If-Match (or expectedVersion) to refuse with 409 version_conflict if it changed meanwhile."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateShowroomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateShowroom
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateShowroomRequest"
    patch:
      summary: "Apply showroom ops in order, all or nothing: place, move, remove, fill (from a category / tag / brand / collection / search, in price, age, value or title order), sort, clear, add_fixture, update_fixture, remove_fixture, set_room, set_settings. Idempotent; refusals name the op (details.opIndex) with codes slot_occupied, item_not_in_store, fixture_capacity, unknown_fixture, unknown_display, version_conflict."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateShowroom2Response"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateShowroom2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateShowroom2Request"
  /v1/showrooms:
    get:
      summary: "Your store's showrooms, primary first: name, visibility, auto-include, pinned items, fixtures, billing and the plots each stands on."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListShowroomsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listShowrooms
    post:
      summary: Add a showroom. The first is included; an extra one has a monthly fee and is added in the dashboard (402 world_payment_failed here).
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateShowroomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createShowroom
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateShowroomRequest"
  /v1/showrooms/{id}:
    get:
      summary: "One showroom: room and look, fixtures (with holders), placements, settings (hours, auto-include) and stock. The ETag is the version."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetShowroomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShowroomById
    put:
      summary: Replace one showroom's whole layout. If-Match (or expectedVersion) refuses with 409 version_conflict on a concurrent edit.
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateShowroomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateShowroomById
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateShowroomRequest"
    patch:
      summary: Apply ops to one showroom in order, all or nothing (the same ops as PATCH /api/v1/showroom).
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateShowroom2Response"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateShowroom3
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateShowroom2Request"
    delete:
      summary: "Archive a showroom: private, off its plots, billing stopped. Never deletes; the primary cannot be archived (409 showroom_primary)."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteShowroomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteShowroom
  /v1/world/stands/shop:
    get:
      summary: "The stands of your shop (its primary showroom's visible fixtures, in order): index (what a drop's world.boothSpotIndex stores), name, display, units and capacity, whether another of your drops already stands there (takenBy) and priceCents (null: your own place costs nothing extra)."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldStandResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldStandShop
  /v1/world/stands/{kind}/{id}:
    get:
      summary: "The stands of one of your places: kind plot (the showroom standing on it; none = no stands) or showroom. Same fields as /api/v1/world/stands/shop."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: kind
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldStandResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldStand
  /v1/showrooms/{id}/item-search:
    get:
      summary: Search this store's in-stock items (title, brand, SKU) to put on a fixture or in a window slot; each with listed / passport / multi_unit badges.
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: brand
          in: query
          required: false
          schema:
            type: string
        - name: category
          in: query
          required: false
          schema:
            type: string
        - name: condition
          in: query
          required: false
          schema:
            type: string
        - name: listed
          in: query
          required: false
          schema:
            type: string
            enum:
              - any
              - unlisted
              - listed
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListShowroomItemSearchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listShowroomItemSearch
  /v1/showrooms/{id}/billing:
    get:
      summary: "A showroom's billing: included, active (paid through), past due or cancelled, and the rails a payment can use."
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetShowroomBillingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShowroomBilling
  /v1/showrooms/{id}/placement:
    get:
      summary: The plots a showroom stands on, and the plots your store owns or rents that it could stand on.
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetShowroomPlacementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShowroomPlacement
    post:
      summary: Stand a showroom on a plot your store owns or rents (403 when it does not; 409 when another showroom stands there).
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateShowroomPlacementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createShowroomPlacement
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateShowroomPlacementRequest"
  /v1/showrooms/{id}/placement/{plotId}:
    delete:
      summary: Take a showroom off a plot (the plot stays yours).
      tags:
        - World
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
          description: Which store (else X-Storefront-Id, else your default store).
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: plotId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateShowroomPlacementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteShowroomPlacement
  /v1/world/conventions:
    get:
      summary: "Conventions open to sellers now or soon: title, room, dates, and how to get a table (invite, free, fee or revenue share)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldConventionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldConventions
    post:
      summary: "Host a convention in one of your rooms: title, dates, tables and how sellers get one (invite, free, a fee in cents, or a revenue share in basis points)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldConventionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConvention
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionRequest"
  /v1/world/conventions/mine:
    get:
      summary: Conventions you host and conventions you are exhibiting at.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldConventionMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldConventionMine
  /v1/world/conventions/{id}:
    get:
      summary: One convention. 404 for an unknown or malformed id alike.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldConventionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldConvention
  /v1/world/conventions/{id}/exhibitors:
    get:
      summary: "The host roster: who applied, who was invited, who is coming (by shop handle). Host only; 404 otherwise."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldConventionExhibitorsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldConventionExhibitors
  /v1/world/conventions/{id}/status:
    put:
      summary: Open, start, end or cancel a convention you host.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldConventionStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldConventionStatus
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldConventionStatusRequest"
  /v1/world/conventions/{id}/invite:
    post:
      summary: Invite a seller (by shop handle) to a convention you host.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionInvite
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionPaidRequest"
  /v1/world/conventions/{id}/apply:
    post:
      summary: Ask for a table at a convention.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldConventionApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionApply
  /v1/world/conventions/{id}/accept:
    post:
      summary: "Accept: your own invitation (no body), or, as host, an application (username)."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldConventionAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionAccept
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionAcceptRequest"
  /v1/world/conventions/{id}/withdraw:
    post:
      summary: Withdraw your table or decline your invitation; as host, decline someone (username).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionWithdraw
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionWithdrawRequest"
  /v1/world/conventions/{id}/paid:
    post:
      summary: As host, record that a seller (username) paid their table fee off-platform. Moves no money.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateGroupBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionPaid
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionPaidRequest"
  /v1/stalls/streets/{slug}/aerial:
    get:
      summary: "A street from above for booking: every spot with its owner, booth size, counter capacity and price, the street events, and who is booked on each date."
      tags:
        - Stalls
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - name: from
          in: query
          required: false
          schema:
            type: string
        - name: days
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStallStreetAerialResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStallStreetAerial
  /v1/stalls/listing-search:
    get:
      summary: "Search ANY of your live Crossly listings for a stall counter or convention booth: q, category, min, max (cents), street (marks what its terms allow), limit, offset."
      tags:
        - Stalls
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStallListingSearchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listStallListingSearch
  /v1/stalls/bookings/{id}/counter:
    get:
      summary: "A stall counter: the listings you picked (in order), its booth kind and capacity."
      tags:
        - Stalls
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetStallBookingCounterResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getStallBookingCounter
  /v1/world/rails:
    get:
      summary: "Which Worlds payment rails are on now: cash (card), CBX, or both."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldRailResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldRail
  /v1/world/venues:
    get:
      summary: "The Convention Center halls for rent: size, floor, booths, price per day, and the days already taken (from, to)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldVenuesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldVenues
      parameters:
        - name: from
          in: query
          required: false
          schema:
            type: string
        - name: to
          in: query
          required: false
          schema:
            type: string
  /v1/world/venues/{id}/quote:
    get:
      summary: What a hall costs for those days (startsOn, endsOn), the full-refund date, and whether it is free.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: startsOn
          in: query
          required: true
          schema:
            type: string
        - name: endsOn
          in: query
          required: true
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldVenueQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldVenueQuote
  /v1/world/conventions/full:
    post:
      summary: "Create a convention in full: venue + days (rented and paid now on the rail), hours, theme, booth tiers and prices, application or open booking, seller limits, promotion. Full-access token and Idempotency-Key required."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldConventionManageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionFull
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionFullRequest"
  /v1/world/venue-bookings/{id}/cancel:
    post:
      summary: "Cancel a hall rental: the whole rent back until 7 days before the first day, nothing after."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldVenueBookingCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldVenueBookingCancel
  /v1/world/conventions/{id}/manage:
    get:
      summary: "A convention you organise: its settings, booth tiers, every seller (status, booth, fee, paid, checked in) and the venue."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldConventionManageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldConventionManage
  /v1/world/conventions/{id}/status-page:
    get:
      summary: "The status page: sellers, booths filled per tier, walk-ins, sales of brought listings, booth fees paid and owed."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldConventionStatusPageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldConventionStatusPage
  /v1/world/conventions/{id}/sellers/decide:
    post:
      summary: "Approve (terms frozen, a booth assigned) or decline an application: { exhibitorId, decision }."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldConventionBoothApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionSellerDecide
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionSellerDecideRequest"
  /v1/world/conventions/{id}/sellers/assign:
    post:
      summary: "Move an accepted seller to another booth of their tier (swaps with whoever is there): { exhibitorId, boothKey }."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldConventionSellerAssignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionSellerAssign
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionSellerAssignRequest"
  /v1/world/conventions/{id}/hall:
    get:
      summary: The hall design (booths, stage, signs, entrance, kiosk), its version and any problems.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldConventionHallResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldConventionHall
    put:
      summary: "Save the hall design: { doc, expectedVersion }. Refused on overlaps, narrow aisles, too many booths or a booth with a seller removed."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldConventionHallResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldConventionHall
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldConventionHallRequest"
  /v1/world/conventions/{id}/booths/apply:
    post:
      summary: "Apply for a booth tier (or book it at once in open mode): { tierId, note?, categories? }."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldConventionBoothApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionBoothApply
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionBoothApplyRequest"
  /v1/world/conventions/{id}/booth-fee:
    post:
      summary: 'Pay your booth fee to the organiser on a Worlds rail: { rail: "cash" | "cbx" }. Once per booth. Full-access token and Idempotency-Key required.'
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldConventionBoothFeeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionBoothFee
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionBoothFeeRequest"
  /v1/world/conventions/{id}/check-in:
    post:
      summary: "Check in: the organiser names { exhibitorId }; an exhibitor checks themselves in with {}."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldConventionCheckInResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionCheckIn
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionCheckInRequest"
  /v1/world/conventions/{id}/my-booth:
    put:
      summary: "Pick what your booth shows: { listingIds } — any of your live listings, up to the tier’s capacity."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldConventionMyBoothResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldConventionMyBooth
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBrandDropListingRequest"
  /v1/world/conventions/{id}/exhibit:
    get:
      summary: "A convention from the exhibitor side: tiers with price, size, capacity and booths left, the rails that pay now, and your own booth (status, fee, paid, checked in, listings)."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldConventionExhibitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldConventionExhibit
  /v1/world/conventions/{id}/messages:
    get:
      summary: "Convention messages you may read: the organiser all of them (?with=<userId> for one seller), an exhibitor theirs and the broadcasts."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: with
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldConventionMessagesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldConventionMessages
    post:
      summary: "Send a convention message: { body, toUserId? }. The organiser writes to one seller or every seller; an exhibitor writes to the organiser."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldConventionMessageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldConventionMessage
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldConventionMessageRequest"
  /v1/world/places/{slug}/offers:
    get:
      summary: "What is for sale in a public room: price, condition and stock, with market references. 404 when no such room is shared."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPlaceOffersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPlaceOffers
  /v1/world/places/{slug}/seller:
    get:
      summary: The shop whose public room this is (username and name), or null.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPlaceSellerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPlaceSeller
  /v1/world/places/{slug}/bundles:
    get:
      summary: The owner's bundle deals mapped onto this room's items (itemIds null = any N from the shop). The discount is decided at checkout.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPlaceBundlesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPlaceBundles
  /v1/world/places/{slug}/drop:
    get:
      summary: The owner's next drop (name, cover, time, live) and how many people are waiting in the room.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPlaceDropResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPlaceDrop
  /v1/world/places/{slug}/trades:
    get:
      summary: Items in this room open to trades, each with its trade post path.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPlaceTradesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPlaceTrades
  /v1/world/places/{slug}/live:
    get:
      summary: "The owner's live sale: their stream and the lot on the block, or null."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPlaceLiveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPlaceLive
  /v1/world/places/{slug}/shop-pet:
    get:
      summary: The shop's pet kind, or null.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPlaceShopPetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPlaceShopPet
  /v1/world/places/{slug}/collections:
    get:
      summary: "The owner's collection rooms: one per category, brand and model they collect."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPlaceCollectionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPlaceCollections
  /v1/world/places/{slug}/collections/{category}/{brand}/{model}:
    get:
      summary: "One collection room: every piece of the set, owned or missing. 404 for an unknown room or set."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: category
          required: true
        - schema:
            type: string
          in: path
          name: brand
          required: true
        - schema:
            type: string
          in: path
          name: model
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPlaceCollectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPlaceCollection
  /v1/world/places/{slug}/items/{itemId}/interest:
    get:
      summary: How many people looked at one item in this room today.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: itemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPlaceItemInterestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPlaceItemInterest
  /v1/world/places/{slug}/radar:
    get:
      summary: "What you have that someone here wants, and what is here that you want: matched on catalog ids."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPlaceRadarResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPlaceRadar
  /v1/world/places/{slug}/trade-tables:
    get:
      summary: "The open trade tables in a place: who is sitting and what is laid on the mat."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPlaceTradeTablesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPlaceTradeTables
  /v1/world/places/{slug}/boards:
    get:
      summary: "The Trade Floor's wall of wants, its authentication desk and its Vault Markets ticker (vaultMovers: bookKey, name, label, units, markCents, change24hBps; only the trade-floor place has them)."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPlaceBoardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPlaceBoard
  /v1/spatial/scenes/{id}/invites:
    post:
      summary: "Mint an invite code to one of your rooms (visitor or staff, optional expiry in hours). The code is in this response only: just its hash is stored."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialSceneInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialSceneInvite
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialSceneInviteRequest"
  /v1/spatial/scenes/{id}/grants:
    get:
      summary: Everyone who can currently walk into one of your rooms, and unused invites. Never returns codes.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialSceneGrantsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialSceneGrants
    post:
      summary: Let a specific user into one of your rooms (visitor or staff), no code needed.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialSceneGrant
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialSceneGrantRequest"
  /v1/spatial/scenes/{id}/grants/{grantId}:
    delete:
      summary: Take somebody's access to your room away, or kill an invite nobody has used yet.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: grantId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteSpatialSceneGrant
  /v1/spatial/invites/accept:
    post:
      summary: Redeem an invite code (dashes optional); returns the room it opens.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialInviteAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialInviteAccept
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrderPackScanRequest"
  /v1/spatial/shared-with-me:
    get:
      summary: Rooms other people let you into.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialSharedWithMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialSharedWithMe
  /v1/spatial/scenes/{id}/place:
    post:
      summary: "Pin an inventory item to a slot in one of your rooms: by warehouse nodeId, or by a collection container key and index."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialScenePlaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialScenePlace
  /v1/spatial/scenes/{id}/unpin:
    post:
      summary: Clear every pin in one of your rooms, so it arranges itself again.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneNodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialSceneUnpin
  /v1/spatial/scenes/{id}/nodes:
    post:
      summary: Add a unit (rack, shelf, bin) to one of your warehouse rooms.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialSceneNodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialSceneNode
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialSceneNodeRequest"
    delete:
      summary: Remove units (by id, up to 500) from one of your warehouse rooms.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneNodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteSpatialSceneNode
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeleteSpatialSceneNodeRequest"
  /v1/spatial/scenes/{id}/nodes/{nodeId}:
    patch:
      summary: Move a rack in one of your warehouse rooms (position in metres).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: nodeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateSpatialSceneNodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSpatialSceneNode
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSpatialSceneNodeRequest"
  /v1/spatial/scenes/{id}/cosmetics:
    patch:
      summary: Redecorate one of your rooms (wall, floor, lighting, trim...). Unknown keys are dropped; the response is what survived. `clear` lists keys to reset.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateSpatialSceneCosmeticResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSpatialSceneCosmetic
  /v1/spatial/scenes/{id}/window:
    get:
      summary: "The listings you chose for the street window of your shop, in slot order (left, middle, right; empty = newest first), and `choices`: your listings that can go in it, newest first."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialSceneWindowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialSceneWindow
    put:
      summary: Choose up to three of your live Crossly listings for the street window of your shop, in slot order. Picks that sell drop out and the newest fill in; an empty list goes back to newest first.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateSpatialSceneWindowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSpatialSceneWindow
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBrandDropListingRequest"
  /v1/spatial/scenes/{id}/warehouse/unplaced:
    get:
      summary: Stock not yet on a shelf in a warehouse room you can arrange (q filters by title).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialSceneWarehouseUnplacedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialSceneWarehouseUnplaced
  /v1/spatial/scenes/{id}/warehouse/stock:
    post:
      summary: Put an inventory item (or unit) on a rack in one of your warehouse rooms.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialScenePlaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialSceneWarehouseStock
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialSceneWarehouseStockRequest"
    delete:
      summary: Take an inventory item (or unit) off its rack.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteSpatialSceneWarehouseStock
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeleteSpatialSceneWarehouseStockRequest"
  /v1/spatial/scenes/{id}/shop/layout:
    put:
      summary: Save your shop room's sections and displays (validated server-side; the response is the stored layout).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateSpatialSceneShopLayoutResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSpatialSceneShopLayout
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSpatialSceneShopLayoutRequest"
  /v1/spatial/scenes/{id}/shop/place:
    post:
      summary: Place an inventory item in a section and display of your shop room.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialSceneShopPlaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialSceneShopPlace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialSceneShopPlaceRequest"
  /v1/world/interactive/designs/{id}:
    get:
      summary: "One of your interactive designs: its draft source, the last static check, and every submitted version with its review state."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldInteractiveDesignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldInteractiveDesign
    delete:
      summary: Delete a draft design, or archive a submitted one (off sale; owned copies keep working).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldInteractiveDesignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldInteractiveDesign
  /v1/world/interactive/designs/{id}/draft:
    put:
      summary: Save the draft MML source (up to 64 KB); the response carries its static check.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldInteractiveDesignDraftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldInteractiveDesignDraft
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldInteractiveDesignDraftRequest"
  /v1/world/interactive/designs/{id}/check:
    post:
      summary: "Check the draft: static rules, that every referenced upload exists, and a sandboxed dry run. Budgeted per person."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldInteractiveDesignCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldInteractiveDesignCheck
  /v1/world/interactive/designs/{id}/preview:
    post:
      summary: A private preview token for the draft (author only) and the socket path that runs it. Budgeted per person.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldInteractiveDesignPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldInteractiveDesignPreview
  /v1/world/interactive/designs/{id}/submit:
    post:
      summary: Freeze the draft as a new version and send it to ops review. Up to 10 a day.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldInteractiveDesignSubmitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldInteractiveDesignSubmit
  /v1/world/interactive/assets:
    post:
      summary: "Upload one asset: kind glb (4 MB), wav (4 MB) or png (1 MB), the file as base64; purpose product (your designs, the default) or game (Carnival Studio files such as badge icons). Answers its sha256 and the path to reference from MML."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldInteractiveAssetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldInteractiveAsset
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldInteractiveAssetRequest"
  /v1/world/interactive/reset:
    post:
      summary: Wipe the stored state of an interactive piece standing in a place you own (a home or your boutique).
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldInteractiveResetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldInteractiveReset
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldInteractiveResetRequest"
  /v1/world/decor/designs:
    get:
      summary: Your decor designs and their review state. available is false until COSM is provisioned.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldDecorDesignsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldDecorDesigns
    post:
      summary: Author a decor design (what it unlocks, a mesh profile and params, an asking price in COSM base units as a string). Inactive until an operator approves it.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldDecorDesignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldDecorDesign
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldDecorDesignRequest"
  /v1/world/decor/designs/{id}/submit:
    post:
      summary: Send one of your decor designs to the review queue.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldDecorDesignSubmitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldDecorDesignSubmit
  /v1/world/capabilities:
    get:
      summary: "What your held NFTs unlock in Crossly World: each token with the capabilities its collection declared (wear, display, emote, gate, ...). Holding is your verified wallets (their synced tokens); the capabilities of a transferred token go within five minutes."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldCapabilityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldCapability
  /v1/world/capabilities/catalogue:
    get:
      summary: "The capability kinds of spec crossly.nft-capabilities/1: what each does, whether only the creator of the collection may declare it, whether it needs review, and which clients honour it."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldCapabilityCatalogueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldCapabilityCatalogue
  /v1/world/capabilities/declarations:
    get:
      summary: Your capability declarations, in every review state (pending, live, rejected with the note from the reviewer).
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldCapabilityDeclarationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldCapabilityDeclarations
  /v1/world/collections/{chain}/{contract}/capabilities:
    get:
      summary: The live capability declaration of a collection (404 when it has none).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldCollectionCapabilityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldCollectionCapability
    put:
      summary: Declare what the tokens of a collection can do (the whole declaration, spec crossly.nft-capabilities/1). As its creator (launched on Crossly or claimed) any kind; as a holder, cosmetic kinds only. Replaces your previous declaration; pending if it names an uploaded asset or an always-reviewed kind.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldCollectionCapabilityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldCollectionCapability
    delete:
      summary: Withdraw your declaration for a collection.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: chain
          required: true
        - schema:
            type: string
          in: path
          name: contract
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldCollectionCapability
  /v1/world/listings/{id}/holders-only:
    put:
      summary: Reserve one of your listings for holders of a collection you declared a holders_only perk for (or release it). Checkout refuses anybody else.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldListingHoldersOnlyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldListingHoldersOnly
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnabledRequest"
  /v1/world/capabilities/wear:
    get:
      summary: "What you wear from your NFTs and COSM copies: your pick per avatar slot (head, body, legs, feet, back) and what the room sees."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldCapabilityWearResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldCapabilityWear
    put:
      summary: Wear a held token on an avatar slot (refId from GET /v1/world/capabilities), or pass refId null to take it off. Its collection must declare a wear capability for that slot.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldCapabilityWearResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldCapabilityWear
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldCapabilityWearRequest"
  /v1/world/cosm/designs:
    get:
      summary: "Your COSM designs in the world: popularity toward the free chain unlock a popular limited design earns, whether it is on chain, and your opt-out. Declare what a design does with chain cosm and the design id as the contract."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldCosmDesignsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldCosmDesigns
  /v1/world/cosm/designs/{id}/chain-auto-unlock:
    put:
      summary: Opt one of your COSM designs in or out of the free chain unlock it earns when popular (on by default). Answers its popularity.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmDesignerChainAutoUnlockResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldCosmDesignChainAutoUnlock
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnabledRequest"
  /v1/world/contests:
    get:
      summary: "Open skill contests on Crossly World games, soonest ending first: entry mode (free, sponsored, paid) and prizes."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldContestsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldContests
    post:
      summary: "Set up a skill contest on a game placed in your place: title, game (its instance id), entry { mode, feeCents? }, prizes by place, funder, window, attempts. Paid entry needs the operator to allow it where it runs."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldContestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldContest
  /v1/world/contests/mine:
    get:
      summary: Your contest entries (best score, attempts used, payment state) and prizes (granted, or owed until their gate opens).
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldContestMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldContestMine
  /v1/world/contests/{id}/standings:
    get:
      summary: "The standings of a contest now: best score first (or lowest, for a time game), ties to whoever got there first."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldContestStandingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldContestStandings
  /v1/world/contests/{id}/join:
    post:
      summary: Enter a contest. Free and sponsored contests take you in at once; a paid one answers a client secret to pay the entry fee.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldContestJoinResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldContestJoin
  /v1/world/contests/entries/{id}/settle-payment:
    post:
      summary: Read the fee of a paid entry back from Stripe and settle it (safe to repeat).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldContestEntrySettlePaymentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldContestEntrySettlePayment
  /v1/world/hall/loans:
    get:
      summary: "Lend to the Hall: this week's exhibition (key, title, categorySlug, endsAt), your loans on show (id, vaultItemId, skuId, name, credit, since) and the vault pieces you can lend (eligible: vaultItemId, skuId, name, imageUrl, grade) -- held in your Crossly vault, not pledged, in the exhibition's category. perMember is how many you may lend each week."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldHallLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldHallLoan
    post:
      summary: "Lend a piece from your vault to this week's Hall of Grails exhibition: { vaultItemId, credit: 'name' | 'anonymous' }. It shows under your plaque until the exhibition ends; it stays in your vault (still listable and withdrawable), and stops showing if it leaves."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldHallLoanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldHallLoan
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldHallLoanRequest"
  /v1/world/hall/loans/{id}:
    delete:
      summary: Take one of your loans off show in the Hall of Grails.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBreakResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldHallLoan
  /v1/world/games:
    get:
      summary: "The Game Directory: every live, reviewed game package with its players, places, rewards, contests and the piece people place."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldGamesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldGames
  /v1/world/games/packages:
    get:
      summary: Your game packages, each with its latest version and review state.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldGamePackagesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldGamePackages
    post:
      summary: "Submit a game package version for review: files as { path, base64 } (game.json, thumb.png, logic/, scene/, audio/, images/). Checked like the CLI, assets quarantined, the entry document dry-run, then reviewed by a person."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGamePackageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGamePackage
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldGamePackageRequest"
  /v1/world/games/packages/{id}:
    get:
      summary: One of your game packages with every version, its review state and decision note.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGamePackageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGamePackage
    delete:
      summary: "Delete a Classic game: unpublished, then a tombstone restorable for 30 days."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldGamePackageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldGamePackage
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeleteWorldExperienceRequest"
  /v1/world/games/packages/{id}/receipts:
    get:
      summary: "Store sales of one of your game packages, newest first: item, price paid, edition, when. Never who bought. Cursor-paged: pass pagination.nextCursor back as ?cursor=."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldGamePackageReceiptsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldGamePackageReceipts
  /v1/world/games/rewards:
    get:
      summary: "Rewards you won in games: granted, or recorded as unfunded for COSM and CBX (a game prints no value)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldGameRewardsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldGameRewards
  /v1/world/games/templates/{kind}:
    get:
      summary: "A fresh game package from a template (table, arena, object; collection is an NFT capability declaration), as { path, base64 } files: the world-kit init, for an agent with no local kit. ?id=my-game&name=My Game."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: kind
          required: true
        - name: id
          in: query
          required: false
          schema:
            type: string
        - name: name
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGameTemplateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGameTemplate
  /v1/world/games/packages/check:
    post:
      summary: "Validate a game package exactly as a submission is checked (the shared intake report, your version still free) without storing, uploading or queuing anything: world-kit validate for an agent. Same files body as submit."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGamePackageCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGamePackageCheck
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTcgCreatorGameRequest"
  /v1/world/games/{id}/leaderboard:
    get:
      summary: A live game leaderboard, this week and all time, by its manifest scoring (wins, best points, or best time). Only people who chose to be named show by name. scoring is null for a game that keeps no board.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGameLeaderboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGameLeaderboard
  /v1/world/games/{id}/rating:
    post:
      summary: Rate a game you played, 1 to 5 stars (rating again replaces it). Only players the runner recorded in that game can rate it.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGameRatingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGameRating
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldGameRatingRequest"
  /v1/world/games/{id}/report:
    post:
      summary: "Report a game: reason broken | unfair | offensive | scam | other, optional detail. Staff review it; the creator is told the reason, never who."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGameReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGameReport
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldGameReportRequest"
  /v1/world/games/{id}:
    get:
      summary: "One live game: its manifest, its store items and which you own."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGameResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGame
  /v1/world/games/{id}/store/{item}/checkout:
    post:
      summary: "Buy an item or pass from a game store: answers a client secret for the payment; the item is yours once it succeeds."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: item
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGameStoreCheckoutResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGameStoreCheckout
  /v1/worlds/experiences:
    get:
      summary: Your experiences, newest first; cursor-paged (?cursor=&limit=).
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperiencesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperiences
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
    post:
      summary: Create an experience with a start place (no version yet). Counts against the plan's experience limit.
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperience
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceRequest"
  /v1/worlds/experiences/{experienceId}:
    get:
      summary: One of your experiences with its places, live CCU and server count.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperience
    patch:
      summary: Edit name, description, genre, rating or icon.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperience
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceRequest"
    delete:
      summary: Delete a game (a tombstone, restorable for 30 days). Body { confirmName } = the game's name.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldExperienceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperience
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeleteWorldExperienceRequest"
  /v1/worlds/experiences/{experienceId}/open:
    post:
      summary: Open the experience to players (needs a published start place).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceOpen
  /v1/worlds/experiences/{experienceId}/close:
    post:
      summary: Make the experience private again (owner-only joins).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceClose
  /v1/worlds/experiences/{experienceId}/archive:
    post:
      summary: "Archive: closes it, drains its servers, frees its plan slot; data is kept."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceArchive
  /v1/worlds/experiences/{experienceId}/places:
    get:
      summary: The places of an experience, start place first.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperiencePlacesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperiencePlaces
    post:
      summary: Add a place (at most 10 per experience in P1).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperiencePlaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlace
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}:
    patch:
      summary: "Place settings: name, max players (1-50), fill target, social slots, empty shutdown."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperiencePlaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperiencePlace
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/start:
    post:
      summary: Make this the start place (where a plain join lands).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperiencePlaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceStart
  /v1/worlds/experiences/{experienceId}/places/{placeId}/versions:
    get:
      summary: Version history of a place, newest first; `current` marks the live one.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperiencePlaceVersionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperiencePlaceVersions
    post:
      summary: Upload a version bundle (crossly-worlds-project/1). Not live until published.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperiencePlaceVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceVersion
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceVersionRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/versions/{versionId}/publish:
    post:
      summary: Make a version current (publish or roll back). New joins land on it; older servers drain as they empty.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - schema:
            type: string
          in: path
          name: versionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperiencePlaceVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceVersionPublish
  /v1/worlds/experiences/{experienceId}/servers:
    get:
      summary: "Live servers: place, version, region, players, health."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceServersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceServers
  /v1/worlds/experiences/{experienceId}/servers/shutdown:
    post:
      summary: "Shut down servers: mode soft (default) teleports players to fresh servers of the current version first; hard stops now. scope all | outdated (only servers not on a served version)."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceServerShutdownResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceServerShutdown
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceServerShutdownRequest"
  /v1/worlds/regions:
    get:
      summary: "Live server regions with a probe URL each: GET it a few times, send the round trips as `pings` with the join to land in the nearest region."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldRegionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldRegions
  /v1/worlds/experiences/{experienceId}/reserved-servers:
    post:
      summary: An access code for a reserved server of a place (teleports, matches, tournaments). The code is shown once.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceReservedServerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceReservedServer
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceReservedServerRequest"
  /v1/worlds/experiences/{experienceId}/join:
    post:
      summary: "Join as the token's owner: a server and a 60-second single-use ticket for wss …/v1/realtime/worlds/{serverId}. 202 while a new server boots."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceJoinResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceJoin
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceJoinRequest"
  /v1/worlds/me/prefs:
    get:
      summary: Your Crossly Carnival choices (whether games may see your Crossly wallet address).
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldMePrefResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldMePref
    put:
      summary: Set your Crossly Carnival choices.
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldMePrefResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldMePref
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldMePrefRequest"
  /v1/worlds/games/mine:
    get:
      summary: "Every game you own or collaborate on, 3D worlds and Classic, filtered (?q&status&engine&genre&template&owner&flag&sort; sort=revenue = highest earning first). Each row carries revenueCents: your creator-ledger earnings from it in USD cents (null for Classic)."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldGameMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldGameMine
      parameters:
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - active
              - all
              - draft
              - archived
              - unlisted
              - public
              - in_review
              - changes_requested
              - private
              - friends
              - deleted
        - name: engine
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - world
              - classic
        - name: genre
          in: query
          required: false
          schema:
            type: string
        - name: template
          in: query
          required: false
          schema:
            type: string
        - name: owner
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - shared
              - mine
        - name: flag
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - reports
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - created
              - updated
              - players
              - revenue
  /v1/worlds/games/mine/{gameId}:
    get:
      summary: "A game's summary: status, timeline, the sub-pages you may open, health and next steps."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: gameId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGameMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGameMine
  /v1/worlds/games/mine/{gameId}/assets-used:
    get:
      summary: "Everything a game's published build ships (Assets used): models, sounds, images, scripts, Toolbox assets and other files, each with the places that ship it. A 3D world reads each place's current version; a Classic game its latest reviewed package version."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: gameId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGameMineAssetsUsedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGameMineAssetsUsed
  /v1/worlds/experiences/{experienceId}/access:
    post:
      summary: "Who can play: private, friends, unlisted or public (public/unlisted need a reviewed publish)."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceAccess
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceAccessRequest"
  /v1/worlds/experiences/{experienceId}/playtesters:
    get:
      summary: People who may join while the game is private.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperiencePlaytestersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperiencePlaytesters
    post:
      summary: Add a playtester by Crossly handle (max 200 per game).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaytesterResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaytester
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaytesterRequest"
  /v1/worlds/experiences/{experienceId}/playtesters/{userId}:
    delete:
      summary: Remove a playtester.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperiencePlaytester
  /v1/worlds/experiences/{experienceId}/chat-settings:
    get:
      summary: The game's text chat setting and filter level.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceChatSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceChatSetting
    put:
      summary: Turn text chat off or use the strict filter for everyone (never looser than the platform).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceChatSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceChatSetting
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceChatSettingRequest"
  /v1/worlds/experiences/{experienceId}/access-limits:
    get:
      summary: The game's crew-only and country limits, and the owner's crew.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceAccessLimitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceAccessLimit
    put:
      summary: "Limit who can play: { crewOnly } (only members of the owner's crew), { countryMode: all|allow|block, countries: ['US', ...] }. The owner and team are never limited."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceAccessLimitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceAccessLimit
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceAccessLimitRequest"
  /v1/worlds/experiences/{experienceId}/showcase:
    get:
      summary: The listings the game's page showcases, and the owner's live Crossly listings that can be picked.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceShowcaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceShowcase
    put:
      summary: "Set the showcased listings: { listingIds } (Crossly shop slugs of the owner's live listings, max 12, in order)."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceShowcaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceShowcase
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateBrandDropListingRequest"
  /v1/worlds/experiences/{experienceId}/maturity:
    get:
      summary: "The content maturity questionnaire: questions, answers, the published rating and any rating waiting for the next publish."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceMaturityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceMaturity
    put:
      summary: "Answer the questionnaire: { answers }. A stricter rating applies now; a looser or first Mature rating waits for the next reviewed publish (takesEffect)."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceMaturityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceMaturity
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldRatingComputeRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/versions/{versionId}/notes:
    put:
      summary: "Edit a release version's changelog (the game page's What's new): { notes } up to 2000 characters."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - schema:
            type: string
          in: path
          name: versionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperiencePlaceVersionNoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperiencePlaceVersionNote
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperiencePlaceVersionNoteRequest"
  /v1/worlds/experiences/{experienceId}/restore:
    post:
      summary: Restore an archived game, or a deleted one within 30 days; it comes back private.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceRestore
  /v1/world/games/packages/{id}/restore:
    post:
      summary: Restore a deleted Classic game within 30 days (it comes back unpublished).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGamePackageRestoreResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGamePackageRestore
  /v1/worlds/experiences/{experienceId}/transfer-requests:
    post:
      summary: Ask another Crossly account (handle or email) to take over a 3D game you own. One waiting request per game; it expires after 14 days.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceTransferRequest
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceTransferRequestRequest"
  /v1/worlds/transfer-requests:
    get:
      summary: Ownership transfer requests you were asked (incoming) or sent (outgoing), newest first (?direction&status&experienceId).
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldTransferRequestsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldTransferRequests
      parameters:
        - name: direction
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - incoming
              - outgoing
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - expired
              - pending
              - cancelled
              - accepted
              - declined
        - name: experienceId
          in: query
          required: false
          schema:
            type: string
  /v1/worlds/transfer-requests/{requestId}:
    get:
      summary: One ownership transfer request (only its two people can read it), with the actions you may take.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldTransferRequest
  /v1/worlds/transfer-requests/{requestId}/accept:
    post:
      summary: "Accept a transfer asked of you: the game becomes yours now. Earnings already credited stay with the previous owner; new sales pay you."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldTransferRequestAccept
  /v1/worlds/transfer-requests/{requestId}/decline:
    post:
      summary: Decline a transfer asked of you; nothing changes.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldTransferRequestDecline
  /v1/worlds/transfer-requests/{requestId}/cancel:
    post:
      summary: Cancel a transfer request you sent while it waits.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldTransferRequestCancel
  /v1/worlds/experiences/{experienceId}/localization:
    get:
      summary: "A game's translations: per language its name, description and in-game strings (key -> text), the English source (the game's Details and string table) and what each language still misses."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceLocalizationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceLocalization
    put:
      summary: 'Save languages: { locales: { es: { name, description, strings: { "shop.title": "Tienda" } } } }. Each language sent replaces that language; the rest stay. English holds the source string table (its name and description are the Details).'
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceLocalizationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceLocalization
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceLocalizationRequest"
  /v1/worlds/experiences/{experienceId}/localization/{locale}:
    delete:
      summary: Remove one language (its name, description and strings).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: locale
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceLocalizationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceLocalization
  /v1/worlds/experiences/{experienceId}/localization/import:
    post:
      summary: 'Import a sheet: { csv } with a "key" column then one column per language code; rows @name and @description carry the game listing. { dryRun: true } previews (issues with line and column) without saving; an error refuses the whole import.'
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceLocalizationImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceLocalizationImport
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInventoryCsvImportRequest"
  /v1/worlds/experiences/{experienceId}/localization/export:
    get:
      summary: The game's translations as one CSV sheet (key, en, then each language; ?locales=es,fr picks the columns).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: locales
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceLocalizationExportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceLocalizationExport
  /v1/world/games/packages/{id}/versions:
    get:
      summary: "Every version of one of your Classic games: draft, pending, approved, rejected, withdrawn or cancelled, which one is live, its documents and report."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGamePackageVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGamePackageVersion
  /v1/world/games/packages/{id}/versions/{semver}/submit:
    post:
      summary: "Send a draft version (uploaded with submit: false) to review: the same static check, sandbox dry run and human review as an upload. Starter seller plan or higher."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: semver
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGamePackageVersionSubmitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGamePackageVersionSubmit
  /v1/world/games/packages/{id}/publish:
    post:
      summary: Make an approved version the one every placed copy runs (rollback or roll-forward; running copies restart on it) and list the game again if it was unpublished. Body { version }. Starter seller plan or higher.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGamePackagePublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGamePackagePublish
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldGamePackagePublishRequest"
  /v1/world/games/packages/{id}/unpublish:
    post:
      summary: "Take a Classic game off the Game Directory and the Carnival Plaza launcher, its store off sale. Copies people already placed keep running. Needs no plan: a lapsed creator can always take a game down."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGamePackageUnpublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldGamePackageUnpublish
  /v1/world/games/packages/{id}/stats:
    get:
      summary: "Play stats for one of your Classic games: 30-day totals, the daily series the launcher ranks on (uniques, sessions, playtime, first-play bounces, D1/D7/D28), its ranking score, test impressions and players right now. ?days=1-90."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: days
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGamePackageStatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGamePackageStat
  /v1/worlds/launcher:
    get:
      summary: "The Carnival Plaza launcher: portals for Classic games, Crossly's own card games and the Commons card tables, each with players right now, your friends inside, its ranking score (published weights, retention-weighted, first-play bounce negative) and where Play goes. Twelve ring slots: friends' pick, new & rising (guaranteed test impressions), then the top, first-party capped at 25%."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldLauncherResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldLauncher
  /v1/worlds/discover/rows:
    get:
      summary: "The Play hub's rows for you: Continue playing, Friends are playing, Recommended for you, Featured (editorial, first-party capped), Top Playing, Trending, New & Rising, Top Rated, Made in Carnival Studio, Shop the world, card games, Classic games and genre rows. At most one tile is paid, always labelled \"Sponsored\", never in the first two rows or a row's first two places."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldDiscoverRowResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldDiscoverRow
  /v1/worlds/charts/{chart}:
    get:
      summary: "A chart: top-playing (players now), trending (this week vs last, retention-weighted), top-rated (Wilson lower bound of thumbs up, 10+ votes), new-rising, friends, most-favorited; ?genre= cuts it to one genre. Organic only: nothing paid."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: chart
          required: true
        - name: genre
          in: query
          required: false
          schema:
            type: string
            enum:
              - shopping
              - other
              - social
              - strategy
              - hangout
              - simulation
              - obby
              - adventure
              - roleplay
              - sports
              - arcade
              - card_games
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldChartResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldChart
  /v1/worlds/search:
    get:
      summary: "Search experiences by title, creator, tags and genre (typo-tolerant, synonyms such as obby / obstacle). Filters: genre, rating (everyone keeps to Everyone), device, players (one server holds at least N), minThumbs (percent), live, friends. No results suggests a chart."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldSearchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldSearch
      parameters:
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: genre
          in: query
          required: false
          schema:
            type: string
            enum:
              - shopping
              - other
              - social
              - strategy
              - hangout
              - simulation
              - obby
              - adventure
              - roleplay
              - sports
              - arcade
              - card_games
        - name: rating
          in: query
          required: false
          schema:
            type: string
            enum:
              - everyone
              - teen
              - mature
        - name: device
          in: query
          required: false
          schema:
            type: string
            enum:
              - desktop
              - tablet
              - phone
              - vr
        - name: players
          in: query
          required: false
          schema:
            type: number
        - name: minThumbs
          in: query
          required: false
          schema:
            type: number
        - name: live
          in: query
          required: false
          schema:
            type: string
            enum:
              - "0"
              - "1"
              - "true"
              - "false"
        - name: friends
          in: query
          required: false
          schema:
            type: string
            enum:
              - "0"
              - "1"
              - "true"
              - "false"
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/worlds/plaza:
    get:
      summary: "The Carnival Plaza district: the twelve-portal ring (a sponsored portal can only take the last slot, labelled), the new & rising row, the featured stage's editorial pick and four chart boards, with players now and friends inside."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPlazaResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPlaza
  /v1/worlds/discover/experiences/{key}:
    get:
      summary: "An experience's thumbs up/down, favourites, your vote and favourite, and whether you have played enough to vote (10 minutes). key: worlds:<id>, classic:<id>, tcg:<game>, cards:<game>."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse3"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldDiscoverExperience
  /v1/worlds/links/listing/{slug}:
    get:
      summary: '"Try it in Crossly Carnival": open games whose live version shows this Crossly listing (its shop slug), then other games by the same seller. Links only: a sale is attributed to a game only through in-world touches its server reports.'
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldLinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldLinkListing
  /v1/worlds/links/seller/{username}:
    get:
      summary: "\"Games by this seller\": the seller's open games, best first."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: username
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldLinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldLinkSeller
  /v1/worlds/links/card-game/{game}:
    get:
      summary: "Where to play a card game: Crossly's own game, its Commons tables, and creator worlds that tag it."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldLinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldLinkCardGame
  /v1/worlds/experiences/{experienceId}/shop:
    get:
      summary: "An open experience's way back to commerce: its creator's shop and how many live listings it has."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceShopResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceShop
  /v1/worlds/games/{game}:
    get:
      summary: "A game's page, as the /games launcher shows it: the tile (players now, thumbs-up %, friends inside), description, tags, creator (Crossly for its own), rating with its content descriptors, visits, created and updated, release notes, gallery, what it sells (bought through Crossly checkout) and the Crossly World app link. :game is a Worlds experience id or any experience key."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGameByGameResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGameByGame
  /v1/worlds/games/{game}/servers:
    get:
      summary: "A Crossly Carnival game's public servers that are up: players, max, whether a stranger still fits, your friends on each (friends' servers first, then the fullest with room); and the private servers you pay for. Join one with POST /v1/worlds/experiences/:id/join { serverId }."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGameServerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGameServer
  /v1/worlds/recent:
    get:
      summary: "Continue playing: what you played in the last 90 days that is still open, newest first (from what the servers recorded)."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldRecentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldRecent
  /v1/worlds/friends/playing:
    get:
      summary: Your friends (mutual follows) and where each is playing right now, with the link that joins them.
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldFriendPlayingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldFriendPlaying
  /v1/worlds/votes:
    put:
      summary: "Thumbs up, down, or null to withdraw: one vote per player per experience, counted only after 10 minutes of play (403 vote_needs_playtime before). A light ranking signal."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse3"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldVote
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldVoteRequest"
  /v1/worlds/favorites:
    put:
      summary: Favourite or un-favourite an experience (idempotent).
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse3"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldFavorite
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldFavoriteRequest"
    get:
      summary: Your favourite experiences that are still open, newest first.
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldRecentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldFavorites
  /v1/worlds/experiences/{experienceId}/data/usage:
    get:
      summary: "Live quotas and usage: CCU, request budgets per minute, DataStore storage, MemoryStore memory."
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceDataUsageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceDataUsage
  /v1/worlds/experiences/{experienceId}/datastores:
    get:
      summary: The DataStores of an experience, with key counts and bytes.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceDatastoresResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceDatastores
  /v1/worlds/experiences/{experienceId}/datastores/{store}/entries:
    get:
      summary: Keys of a DataStore in key order; ?prefix=&scope=&cursor=&limit=.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceDatastoreEntriesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceDatastoreEntries
  /v1/worlds/experiences/{experienceId}/datastores/{store}/entries/{key}:
    get:
      summary: 'The current value of a key: version (ETag "v<n>"), userIds and attributes.'
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceDatastoreEntryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceDatastoreEntry
    put:
      summary: 'Write a new version. If-Match "v<n>" (or ifVersion) writes only at that version; If-None-Match: * only if absent. 412 on a mismatch.'
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceDatastoreEntryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceDatastoreEntry
    delete:
      summary: Remove a key (a tombstone version; history stays readable for 30 days). Honours If-Match.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldExperienceDatastoreEntryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceDatastoreEntry
  /v1/worlds/experiences/{experienceId}/datastores/{store}/entries/{key}/increment:
    post:
      summary: Atomically add `by` to a numeric key (absent counts as 0).
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceDatastoreEntryIncrementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceDatastoreEntryIncrement
  /v1/worlds/experiences/{experienceId}/datastores/{store}/entries/{key}/versions:
    get:
      summary: Versions of a key, newest first (30-day history; the current version is kept).
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceDatastoreEntryVersionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceDatastoreEntryVersions
  /v1/worlds/experiences/{experienceId}/datastores/{store}/entries/{key}/versions/{version}:
    get:
      summary: One version of a key, including a removed one.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
        - schema:
            type: string
          in: path
          name: version
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceDatastoreEntryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceDatastoreEntryVersion
  /v1/worlds/experiences/{experienceId}/ordered/{store}:
    get:
      summary: An OrderedStore page ranked by value; ?order=desc|asc&min=&max=&cursor=&limit=.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceOrderedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceOrdered
  /v1/worlds/experiences/{experienceId}/ordered/{store}/entries/{key}:
    get:
      summary: One OrderedStore entry.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceOrderedEntryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceOrderedEntry
    put:
      summary: Set an OrderedStore entry to a whole number.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceOrderedEntryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceOrderedEntry
    delete:
      summary: Remove an OrderedStore entry.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldExperienceOrderedEntryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceOrderedEntry
  /v1/worlds/experiences/{experienceId}/ordered/{store}/entries/{key}/increment:
    post:
      summary: Atomically add `by` to an OrderedStore entry.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: store
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceOrderedEntryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceOrderedEntryIncrement
  /v1/worlds/experiences/{experienceId}/memory/queues/{queue}/items:
    post:
      summary: Add an item to a MemoryStore queue (ttlSeconds ≤ 45 days, priority 0-1000).
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: queue
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceMemoryQueueItem
  /v1/worlds/experiences/{experienceId}/memory/queues/{queue}/read:
    post:
      summary: Read and hide up to `count` queue items for invisibilitySeconds; remove them with the readId.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: queue
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceMemoryQueueReadResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceMemoryQueueRead
  /v1/worlds/experiences/{experienceId}/memory/queues/{queue}/reads/{readId}:
    delete:
      summary: Remove the items of one read (409 if the read lapsed).
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: queue
          required: true
        - schema:
            type: string
          in: path
          name: readId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneNodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceMemoryQueueRead
  /v1/worlds/experiences/{experienceId}/memory/queues/{queue}:
    get:
      summary: Queue length (visible, in flight) and the head, without hiding anything.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: queue
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceMemoryQueueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceMemoryQueue
  /v1/worlds/experiences/{experienceId}/memory/maps/{map}:
    get:
      summary: Items of a MemoryStore hash map (cursor-paged, unordered).
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: map
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceMemoryMapResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceMemoryMap
  /v1/worlds/experiences/{experienceId}/memory/maps/{map}/{key}:
    get:
      summary: One MemoryStore hash map item with its version and expiry.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: map
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceMemoryMapByKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceMemoryMapByKey
    put:
      summary: Set a hash map item (ttlSeconds required; ifVersion for compare-and-set).
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: map
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceMemoryMapResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceMemoryMap
    delete:
      summary: Remove a hash map item.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: map
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceMemoryMap
  /v1/worlds/experiences/{experienceId}/memory/sorted/{map}:
    get:
      summary: A MemoryStore sorted map in order (sortKey, then key); ?order=&cursor=&limit=.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: map
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceMemoryMapResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceMemorySorted
  /v1/worlds/experiences/{experienceId}/memory/sorted/{map}/{key}:
    get:
      summary: One sorted map item.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: map
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceMemoryMapByKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceMemorySortedByKey
    put:
      summary: Set a sorted map item (ttlSeconds, optional sortKey and ifVersion).
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: map
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceMemoryMapResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceMemorySorted
    delete:
      summary: Remove a sorted map item.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: map
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceMemorySorted
  /v1/worlds/experiences/{experienceId}/messaging/{topic}:
    post:
      summary: Publish a message (≤ 1 KB) to every live server of the experience subscribed to the topic.
      tags:
        - Worlds data
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: topic
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceMessagingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceMessaging
  /v1/worlds/experiences/{experienceId}/products:
    get:
      summary: "What an experience sells: passes, developer products, subscriptions, private servers, paid access (?includeArchived=true)."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceProductsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceProducts
    post:
      summary: "Create a product: price 50-100,000 cents (a private server may be free), optional per-country prices. Paid random items need an approved drop table and are never tradeable."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceProductResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceProduct
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceProductRequest"
  /v1/worlds/experiences/{experienceId}/products/{productId}:
    patch:
      summary: "Edit a product: name, description, icon, price, regional prices, hourly limit, on/off sale. Kind and place never change."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: productId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceProductResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceProduct
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceProductRequest"
  /v1/worlds/experiences/{experienceId}/products/{productId}/archive:
    post:
      summary: Take a product off sale for good. Owned passes and running subscriptions keep working.
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: productId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceProductResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceProductArchive
  /v1/worlds/experiences/{experienceId}/drop-tables:
    get:
      summary: Declared drop tables with their odds, simulation (10^6 draws) and hash.
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceDropTablesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceDropTables
    post:
      summary: "Declare a drop table for a paid random item: cosmetic or in-experience outcomes only. Crossly pre-simulates and hashes it."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceDropTableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceDropTable
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceDropTableRequest"
  /v1/worlds/experiences/{experienceId}/receipts:
    get:
      summary: "Every purchase: orderId, sub, product, price, net, state (paid/delivered/granted/refunded/revoked). Cursor-paged; ?since=."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: since
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceReceiptsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceReceipts
  /v1/worlds/experiences/{experienceId}/receipts/{orderId}/ack:
    post:
      summary: "Acknowledge a grant your back-end made off-server. Idempotent: a second ack reports duplicate."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: orderId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceReceiptAckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceReceiptAck
  /v1/worlds/experiences/{experienceId}/revenue:
    get:
      summary: Gross, tax, refunds, chargebacks, net and your share per product, plus pending / available / paid.
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceRevenueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceRevenue
  /v1/worlds/earnings:
    get:
      summary: "Your Crossly Carnival earnings: pending, available, held, paid; next payout; what cashing out still needs."
      tags:
        - Worlds money
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldEarningResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldEarning
  /v1/worlds/earnings/ledger:
    get:
      summary: "Your creator ledger, newest first: every earning and reversal. Cursor-paged."
      tags:
        - Worlds money
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldEarningLedgerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldEarningLedger
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/worlds/earnings/payouts:
    get:
      summary: Your monthly Crossly Carnival payouts.
      tags:
        - Worlds money
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldEarningPayoutsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldEarningPayouts
  /v1/worlds/earnings/payout-account:
    get:
      summary: "Your creator payout account (your own, separate from any store payout account): not_started, pending, restricted, active or payouts_unavailable."
      tags:
        - Worlds money
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldEarningPayoutAccountResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldEarningPayoutAccount
  /v1/worlds/earnings/payout-account/onboard:
    post:
      summary: "Start or resume Stripe onboarding for your creator payout account. Returns a one-time Stripe URL. Body: { country? } (fixed once the account exists)."
      tags:
        - Worlds money
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldEarningPayoutAccountOnboardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldEarningPayoutAccountOnboard
  /v1/worlds/earnings/affiliate:
    get:
      summary: "Real-goods orders attributed to your games: the fee, your 20% share, and whether it is posted."
      tags:
        - Worlds money
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldEarningAffiliateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldEarningAffiliate
  /v1/worlds/economy:
    get:
      summary: "The published payout formula: splits, thresholds, scheduled changes (90-day notice) and guarantees."
      tags:
        - Worlds money
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldEconomyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldEconomy
  /v1/worlds/experiences/{experienceId}/store:
    get:
      summary: "An experience's store as you see it: your regional price, odds for paid random items, what you own."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceStoreResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceStore
  /v1/worlds/experiences/{experienceId}/purchases:
    post:
      summary: "Open a purchase sheet for a product (paid access, a pass…). Returns checkoutPath: the player pays only in the Crossly checkout."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePurchaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePurchase
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePurchaseRequest"
  /v1/worlds/purchases/{intentId}:
    get:
      summary: "A purchase sheet: item, price, tax, total, odds, status."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: intentId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPurchaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPurchase
  /v1/worlds/purchases/{intentId}/cancel:
    post:
      summary: Cancel an unpaid purchase sheet.
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: intentId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceJoinResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPurchaseCancel
  /v1/worlds/me/subscriptions:
    get:
      summary: Your experience subscriptions and private servers.
      tags:
        - Worlds money
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldMeSubscriptionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldMeSubscriptions
  /v1/worlds/me/subscriptions/{id}/cancel:
    post:
      summary: "Cancel: no more charges; the benefit lasts to the end of the paid month."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMeSubscriptionCancelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldMeSubscriptionCancel
  /v1/worlds/me/subscriptions/{id}/private-server-code:
    post:
      summary: A fresh access code for your private server (the previous one stops working). Join with reservedCode.
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMeSubscriptionPrivateServerCodeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldMeSubscriptionPrivateServerCode
  /v1/worlds/me/receipts/{receiptId}/refund:
    post:
      summary: "Refund a developer product bought by mistake: within the self-refund window and before the experience granted it."
      tags:
        - Worlds money
      parameters:
        - schema:
            type: string
          in: path
          name: receiptId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMeReceiptRefundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldMeReceiptRefund
  /v1/worlds/experiences/{experienceId}/http:
    get:
      summary: "Http settings: declared domains with their review state, secret names (never values), limits and rules."
      tags:
        - Worlds Http
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceHttpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceHttp
  /v1/worlds/experiences/{experienceId}/http/domains:
    post:
      summary: Declare a domain server scripts may call (example.com or *.example.com). It is reviewed by a person before it works.
      tags:
        - Worlds Http
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceHttpDomainResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceHttpDomain
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceHttpDomainRequest"
  /v1/worlds/experiences/{experienceId}/http/domains/{domainId}:
    delete:
      summary: "Remove a domain: scripts lose access at once."
      tags:
        - Worlds Http
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: domainId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceHttpDomain
  /v1/worlds/experiences/{experienceId}/http/secrets/{name}:
    put:
      summary: Set a secret (UPPER_SNAKE name). Scripts reference it as Http.secret("NAME"); the value is never returned.
      tags:
        - Worlds Http
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: name
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceHttpSecretResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceHttpSecret
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceHttpSecretRequest"
    delete:
      summary: Delete a secret.
      tags:
        - Worlds Http
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: name
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceHttpSecret
  /v1/worlds/experiences/{experienceId}/rewards:
    get:
      summary: "The funded reward pool: balance, reserved (owed) value, caps, today's grants, the reward catalogue and the published rates."
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceRewardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceReward
  /v1/worlds/experiences/{experienceId}/rewards/pool:
    patch:
      summary: "Set the pool's daily caps: total value per day, value and grant count per player per day."
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceRewardPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceRewardPool
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceRewardPoolRequest"
  /v1/worlds/experiences/{experienceId}/rewards/deposits:
    post:
      summary: Move available Crossly Carnival earnings into the pool ($1-$10,000). Owner only; idempotent on idempotencyKey.
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceRewardDepositResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceRewardDeposit
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceRewardDepositRequest"
  /v1/worlds/experiences/{experienceId}/rewards/close:
    post:
      summary: "Close the pool: the unspent balance returns to your Crossly Carnival earnings. Free rewards keep working."
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceRewardCloseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceRewardClose
  /v1/worlds/experiences/{experienceId}/rewards/definitions:
    post:
      summary: "Add a reward scripts can grant: pin, emote, decor, item (your own COSM design), cosm or cbx (with an amount)."
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceRewardDefinitionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceRewardDefinition
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceRewardDefinitionRequest"
  /v1/worlds/experiences/{experienceId}/rewards/definitions/{rewardId}:
    patch:
      summary: "Edit a reward: name, description, image, amount, per-player daily cap, on/off. Key and kind never change."
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: rewardId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceRewardDefinitionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceRewardDefinition
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceRewardDefinitionRequest"
  /v1/worlds/experiences/{experienceId}/rewards/grants:
    get:
      summary: "Every grant, newest first: reward, player sub, amount, cost, status. Cursor-paged; ?sub= for one player."
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: sub
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceRewardGrantsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceRewardGrants
  /v1/worlds/experiences/{experienceId}/rewards/ledger:
    get:
      summary: "The pool's own ledger: deposits, grant draw-downs, refunds. Cursor-paged."
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceRewardLedgerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceRewardLedger
  /v1/worlds/experiences/{experienceId}/badges:
    get:
      summary: "A game's badges, oldest first: name, description, icon and its review state, on/off, how many players hold each; plus the player count (the rarity denominator) and the limits. Scripts award them with BadgeService.AwardBadge(player, badgeId)."
      tags:
        - Worlds badges
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceBadgeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceBadge
    post:
      summary: Add a badge (at most 100 per game). name 1-50 characters, description up to 1000, iconSha256 = the sha256 a png upload answered (POST /v1/world/interactive/assets, kind png); a new icon is shown once a person approved it.
      tags:
        - Worlds badges
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceBadgeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceBadge
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceBadgeRequest"
  /v1/worlds/experiences/{experienceId}/badges/{badgeId}:
    patch:
      summary: "Edit a badge: name, description, icon (null removes it), enabled. Badges are never deleted (players keep what they earned); turn one off to hide it and stop AwardBadge."
      tags:
        - Worlds badges
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: badgeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceBadgeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceBadge
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceBadgeRequest"
  /v1/worlds/games/{game}/badges:
    get:
      summary: "A Crossly Carnival game's badges as players see them: name, description, approved icon, how many hold it, rarity (% of the game's players) and, for you, when you earned it. :game is a Worlds experience id or key."
      tags:
        - Worlds badges
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldGameBadgeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldGameBadge
  /v1/worlds/players/{username}/badges:
    get:
      summary: The game badges a person shows on their person page (only when they switched it on; Mature and non-public games never appear).
      tags:
        - Worlds badges
      parameters:
        - schema:
            type: string
          in: path
          name: username
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPlayerBadgeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPlayerBadge
  /v1/worlds/badges/mine:
    get:
      summary: Every game badge you hold, newest first, and whether your person page shows them.
      tags:
        - Worlds badges
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldBadgeMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldBadgeMine
  /v1/worlds/badges/profile:
    put:
      summary: Show (or hide) the game badges you hold on your person page. Off by default.
      tags:
        - Worlds badges
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldBadgeProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldBadgeProfile
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldBadgeProfileRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/draft:
    get:
      summary: The Studio draft of a place ({ world, place }, revision). Falls back to the current version, or an empty place.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceDraftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceDraft
    put:
      summary: Save the draft. baseRevision is the revision you loaded (0 for none); a newer save elsewhere answers 409 draft_conflict.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceDraftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperiencePlaceDraft
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperiencePlaceDraftRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/checks:
    post:
      summary: Run the publish checks (script lint, budgets, shop-object listings) on a project. Writes nothing.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceCheck
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceCheckRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/test:
    post:
      summary: "Cloud playtest: a private test version from the saved draft, joined on a fleet server (owner only, never live). 202 while it boots."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceTestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceTest
  /v1/worlds/experiences/{experienceId}/places/{placeId}/versions/{versionId}/rollback:
    post:
      summary: Make an earlier reviewed version current again. Unreviewed versions go through …/publishes.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - schema:
            type: string
          in: path
          name: versionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperiencePlaceVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceVersionRollback
  /v1/worlds/experiences/{experienceId}/places/{placeId}/publishes:
    get:
      summary: "Publishes of a place, newest first: state, checks, rating, access, review, rollout."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperiencePlacePublishesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperiencePlacePublishes
    post:
      summary: "Step 1: run checks and freeze a version (the saved draft, or an uploaded versionId). Blocking problems answer 400 with the list."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlacePublish
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlacePublishRequest"
  /v1/worlds/experiences/{experienceId}/publishes/{requestId}:
    get:
      summary: One publish with its review state and rollout.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePublish
    patch:
      summary: "Steps 2–5: details, rating questionnaire answers, access (private | friends | unlisted | public), money review acknowledgement."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperiencePublish
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperiencePublishRequest"
  /v1/worlds/experiences/{experienceId}/publishes/{requestId}/submit:
    post:
      summary: "Step 6: moderation. First publishes and script changes go to a person (24 h SLA); layout-only and private publishes are approved automatically."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePublishSubmit
  /v1/worlds/experiences/{experienceId}/publishes/{requestId}/rollout:
    post:
      summary: "Step 7: serve the approved version to percent (1–100) of new joins; 100 makes it current. Crash-heavy rollouts halt automatically."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePublishRollout
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePublishRolloutRequest"
  /v1/worlds/experiences/{experienceId}/publishes/{requestId}/halt:
    post:
      summary: "Stop a rollout: new joins go back to the current version."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePublishHalt
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest2"
  /v1/worlds/experiences/{experienceId}/publishes/{requestId}/cancel:
    post:
      summary: Give up a publish that is not live.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: requestId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceResponse2"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePublishCancel
  /v1/worlds/shop-listings:
    get:
      summary: Your live Crossly listings a game can show and sell (shop objects bind to their id).
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldShopListingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldShopListings
      parameters:
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: experienceId
          in: query
          required: false
          schema:
            type: string
  /v1/worlds/policy/me:
    get:
      summary: 'What this account may do in experiences, by age and region: chat level, purchases, paid random items, trading, links, ads, contests, rating ceiling — with the reason for each "no".'
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPolicyMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPolicyMe
  /v1/worlds/reports:
    post:
      summary: Report a player (targetSub), the experience, an object (targetInstanceId) or a chat line (chatLineId). Crossly attaches the server, place version and its own chat log; you send ids only.
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldReport
  /v1/worlds/experiences/{experienceId}/moderation:
    get:
      summary: "Moderation status of your experience: holds (unlisted / taken down), the latest review, the automated scan, strikes, trusted-lane status, open reports and live bans."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceModerationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceModeration
  /v1/worlds/experiences/{experienceId}/moderation/reports:
    get:
      summary: Reports about your experience, newest first (cursor). Reporter identity, account ids and other players' words are removed.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceModerationReportsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceModerationReports
  /v1/worlds/experiences/{experienceId}/moderation/appeals:
    get:
      summary: "What you can appeal on your game and every appeal of it: data.targets (Crossly's actions, a moderation hold, rejected versions, blocked assets; each with appealableUntil and its latest appeal) and data.appeals (newest first: kind, status open | upheld | overturned, reason, evidence, the reviewer's note)."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceModerationAppealResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceModerationAppeal
    post:
      summary: "Appeal a moderation decision on your game within 6 months (183 days): { kind: action | game | version | asset, targetId (from GET …/moderation/appeals targets), reason (20-4000 characters), evidence?: up to 5 https links }. The older shape { actionId, statement } still appeals an action. One open appeal per decision; a different reviewer answers and you are notified."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceModerationAppealResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceModerationAppeal
  /v1/worlds/appeals:
    get:
      summary: Your appeals and their decisions.
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldAppealsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldAppeals
  /v1/worlds/experiences/{experienceId}/bans:
    get:
      summary: Players banned from your experience (by pairwise sub), oldest first (cursor).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceBansResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceBans
    post:
      summary: "Ban a player from your experience: { sub, duration (seconds, null = permanent), reason, displayReason?, applyToAlts? }. Enforced at join and on every running server."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceBanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceBan
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceBanRequest"
  /v1/worlds/experiences/{experienceId}/bans/{sub}:
    get:
      summary: The live ban on one player, or 404.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: sub
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceBanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceBan
    delete:
      summary: Lift your experience's ban on a player. Bans placed by Crossly safety are lifted only by appeal.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: sub
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldExperienceBanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceBan
  /v1/worlds/mature:
    get:
      summary: "Mature (17+) for this account: eligible or not, the steps still to take in order (birth month, ID check, opt-in; region, parental controls and safety holds are final), and the ID age check status."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldMatureResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldMature
    put:
      summary: 'Switch "Show Mature experiences" on or off: { showMature }. On is refused while a final step blocks (too young, region, parental controls, safety hold); it never skips the ID check.'
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldMatureResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldMature
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldMatureRequest"
  /v1/worlds/mature/verify:
    post:
      summary: "Start the ID check Mature needs (Stripe Identity: photo ID + selfie; the date of birth is read off the ID). Returns a hosted URL and client secret, or alreadyVerified."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMatureVerifyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldMatureVerify
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldMatureVerifyRequest"
  /v1/worlds/parental/me:
    get:
      summary: "This account's parent link: none, pending (an invite is out) or active (the parent's name and the limits they set)."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldParentalMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldParentalMe
  /v1/worlds/parental/invite:
    post:
      summary: "An under-18 account asks for a parent: a one-time code (72 hours) the parent enters while signed in to their own account. Replaces any pending code."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldParentalInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldParentalInvite
    delete:
      summary: Withdraw a pending parent invite.
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteDaoProposalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldParentalInvite
  /v1/worlds/parental/accept:
    post:
      summary: "Accept a child's invite as the parent: { code, pin }. The parent must be an ID-verified adult (18+ by the date of birth on the ID). The PIN protects every later change."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldParentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldParentalAccept
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldParentalAcceptRequest"
  /v1/worlds/parental/children:
    get:
      summary: "Accounts you are the linked parent of: limits (max rating, chat, monthly spend), spend this month, and the last 7 days of playtime per experience."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldParentalChildrenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldParentalChildren
  /v1/worlds/parental/children/{childId}:
    get:
      summary: One linked account with ?days= (1-90) of playtime per experience.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: childId
          required: true
        - name: days
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldParentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldParentalChildren
    patch:
      summary: "Change a linked account's limits with your PIN: { pin, settings: { maxRating: everyone|teen, chat: on|friends|off, monthlySpendLimitCents (0 = no purchases, null = no limit) } }. Enforced server-side at join, chat, the purchase prompt and checkout."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: childId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldParentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldParentalChildren
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldParentalChildrenRequest"
  /v1/worlds/parental/children/{childId}/pin:
    post:
      summary: "Change the parent PIN: { pin, newPin } (4-8 digits). Five wrong PINs lock changes for 15 minutes."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: childId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldParentalChildrenPinResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldParentalChildrenPin
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldParentalChildrenPinRequest"
  /v1/worlds/parental/children/{childId}/unlink:
    post:
      summary: "Remove the parent link (and its limits) with your PIN: { pin }."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: childId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldParentalChildrenUnlinkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldParentalChildrenUnlink
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldParentalChildrenUnlinkRequest"
  /v1/worlds/rating/questionnaire:
    get:
      summary: "The content-rating questionnaire (IARC-aligned): every question and choice, the three ratings (Everyone, Teen 13+, Mature 17+), what is never allowed, and the regions where Mature is restricted."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldRatingQuestionnaireResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldRatingQuestionnaire
  /v1/worlds/rating/compute:
    post:
      summary: "Rate a set of questionnaire answers exactly as publishing does: { answers } → rating (null when refused), reasons, content descriptors, interactive notices and refusals."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldRatingComputeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldRatingCompute
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldRatingComputeRequest"
  /v1/worlds/transparency:
    get:
      summary: "Published monthly transparency reports, newest first: reports received and actions taken, by type (counts only)."
      tags:
        - Worlds
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldTransparencyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldTransparency
  /v1/worlds/transparency/{month}:
    get:
      summary: "One month's transparency report (YYYY-MM): reports by reason and source, decisions and median time to decide, actions by kind and issuer, appeals and overturn rate, publish reviews, second reviews of creator bans."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: month
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldTransparencyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldTransparency
  /v1/worlds/experiences/{experienceId}/analytics/{report}:
    get:
      summary: "An analytics report: overview, engagement, retention, monetization, funnels, economy, performance, custom or costs (fleet CPU-minutes, egress, estimated cost). ?from=&to= (YYYY-MM-DD), retention ?segment=, funnels ?funnel=, economy ?currency=."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: report
          required: true
        - name: from
          in: query
          required: false
          schema:
            type: string
        - name: to
          in: query
          required: false
          schema:
            type: string
        - name: segment
          in: query
          required: false
          schema:
            type: string
        - name: funnel
          in: query
          required: false
          schema:
            type: string
        - name: currency
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceAnalyticResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceAnalytic
  /v1/worlds/experiences/{experienceId}/analytics/query:
    post:
      summary: "Query one custom event over ≤ 31 days: count, sum, avg or players, by day or hour, optionally grouped by a field. Groups under 50 players are suppressed."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceAnalyticQueryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceAnalyticQuery
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceAnalyticQueryRequest"
  /v1/worlds/experiences/{experienceId}/configs:
    get:
      summary: The remote config document ({ values, rules }) and its version.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceConfigResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceConfig
    put:
      summary: Save the whole config document. Running servers get it within seconds (ConfigService.Changed). baseVersion guards against overwriting a newer save (409).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceConfigResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceConfig
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceConfigRequest"
  /v1/worlds/experiences/{experienceId}/configs/values:
    patch:
      summary: Set and/or remove individual config keys.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceConfigResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceConfigValue
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceConfigValueRequest"
  /v1/worlds/experiences/{experienceId}/configs/versions:
    get:
      summary: "Config history, newest first: who changed which keys, when."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: cursor
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceConfigVersionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceConfigVersions
  /v1/worlds/experiences/{experienceId}/configs/rollback:
    post:
      summary: "Instant rollback: an earlier version becomes the newest one."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceConfigResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceConfigRollback
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceConfigRollbackRequest"
  /v1/worlds/experiences/{experienceId}/experiments:
    get:
      summary: A/B experiments, newest first, with their live verdict.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceExperimentsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceExperiments
    post:
      summary: "Create a draft experiment: 2–5 variants of config values with traffic weights (+ holdout = 100), targeting, a primary metric and guardrails, minimum 7 days."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceExperiment
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceExperimentRequest"
  /v1/worlds/experiences/{experienceId}/experiments/{experimentId}:
    get:
      summary: "Results per variant: n, mean, lift, fixed and always-valid 95% intervals, the verdict and a sample-size estimate."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: experimentId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceExperiment
    patch:
      summary: Edit a draft (a running experiment may only rename or reword).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: experimentId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceExperiment
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceExperimentRequest"
  /v1/worlds/experiences/{experienceId}/experiments/{experimentId}/start:
    post:
      summary: "Start: running servers begin assigning players by their per-experience id."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: experimentId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceExperimentStart
  /v1/worlds/experiences/{experienceId}/experiments/{experimentId}/stop:
    post:
      summary: "Stop: every player sees the base config again."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: experimentId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceExperimentStop
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest2"
  /v1/worlds/experiences/{experienceId}/experiments/{experimentId}/ship:
    post:
      summary: "Ship a variant: its values become the base config for everyone and the experiment ends."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: experimentId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceExperimentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceExperimentShip
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceExperimentShipRequest"
  /v1/worlds/experiences/{experienceId}/events:
    get:
      summary: Scheduled and live events (?includeEnded=true for history).
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: includeEnded
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceEvents
    post:
      summary: "Schedule a live event: start and end, config values while live, an optional Messaging topic the platform publishes to at start and end."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceEvent
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceEventRequest"
  /v1/worlds/experiences/{experienceId}/events/{eventId}:
    patch:
      summary: Reschedule or change a scheduled event; a live event may only move its end.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: eventId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceEvent
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceEventRequest"
  /v1/worlds/experiences/{experienceId}/events/{eventId}/cancel:
    post:
      summary: Cancel a scheduled event, or end a live one now.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: eventId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceEventCancel
  /v1/worlds/experiences/{experienceId}/alerts:
    get:
      summary: Alerts that fired, newest first.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: cursor
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceAlertsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceAlerts
  /v1/worlds/experiences/{experienceId}/alerts/settings:
    get:
      summary: Alert rules (threshold, on/off, inbox, webhook) and quiet hours.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceAlertSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceAlertSetting
    put:
      summary: Change alert rules and quiet hours.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceAlertSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceAlertSetting
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceAlertSettingRequest"
  /v1/worlds/experiences/{experienceId}/alerts/{alertId}/ack:
    post:
      summary: Acknowledge an alert.
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: alertId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceAlertAckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceAlertAck
  /v1/worlds/experiences/{experienceId}/audit:
    get:
      summary: "The live-ops audit log: every config, experiment, event and alert change, who made it, when."
      tags:
        - Worlds
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: cursor
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceAuditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceAudit
  /v1/worlds/experiences/{experienceId}/team:
    get:
      summary: "The team: owner, collaborators with roles (owner, admin, editor, scripter, builder, tester, analyst), your role and permissions, the plan cap."
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceTeamResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceTeam
  /v1/worlds/experiences/{experienceId}/collaborators:
    post:
      summary: Invite a Crossly handle with a role. Owner or admin; only the owner makes admins. Counts against the owner's plan cap.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceCollaboratorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceCollaborator
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceCollaboratorRequest"
  /v1/worlds/experiences/{experienceId}/collaborators/{userId}:
    patch:
      summary: Change a collaborator's role.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceCollaboratorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceCollaborator
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceCollaboratorRequest"
    delete:
      summary: Remove a collaborator, or leave (your own user id). Their revenue share returns to the owner from next month.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceCollaborator
  /v1/worlds/collaborations:
    get:
      summary: Experiences you are invited to or work on, with your role.
      tags:
        - Worlds team
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldCollaborationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldCollaborations
  /v1/worlds/collaborations/{experienceId}/accept:
    post:
      summary: Accept an invitation.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldCollaborationAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldCollaborationAccept
  /v1/worlds/collaborations/{experienceId}/decline:
    post:
      summary: Decline an invitation.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldCollaborationDeclineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldCollaborationDecline
  /v1/worlds/experiences/{experienceId}/activity:
    get:
      summary: "Activity history, newest first: who changed what, when, from where (studio, api, mcp, cli); instance changes are revertible."
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
        - name: placeId
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceActivityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceActivity
  /v1/worlds/experiences/{experienceId}/activity/{activityId}/revert:
    post:
      summary: "Revert an instance change: its undo is applied as a new edit by you; anything changed since by others is left alone."
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: activityId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceActivityRevertResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceActivityRevert
  /v1/worlds/experiences/{experienceId}/splits:
    get:
      summary: "Revenue split of the creator share: current, scheduled, history."
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceSplitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceSplit
    put:
      summary: "Owner only: split the creator share (70% of net) in basis points summing to 10000. Takes effect the 1st of next month; every party is notified. The 70% total never changes."
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceSplitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceSplit
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceSplitRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/collab:
    get:
      summary: The live co-editing document of a place (node ids every editor shares), its op sequence and your role.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceCollabResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceCollab
  /v1/worlds/experiences/{experienceId}/places/{placeId}/collab/ops:
    get:
      summary: "Ops after a sequence number, grouped by batch. 409 resync when they are no longer kept: reload the session."
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - name: since
          in: query
          required: true
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceCollabOpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceCollabOp
    post:
      summary: Apply a batch of ops (insert, delete, move, prop, attr, name, tags, world) in server order. Each op is checked against your role; a retried batch id is answered, not re-applied.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabOpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceCollabOp
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabOpRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/collab/save:
    post:
      summary: Write the session into the place draft now (publishing and cloud tests do this themselves).
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabSaveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceCollabSave
  /v1/worlds/experiences/{experienceId}/places/{placeId}/collab/scripts:
    get:
      summary: Your script drafts in this place, with whether someone committed since you started.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperiencePlaceCollabScriptsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperiencePlaceCollabScripts
  /v1/worlds/experiences/{experienceId}/places/{placeId}/collab/scripts/{nodeId}:
    put:
      summary: Save your own draft of a script (needs edit scripts).
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - schema:
            type: string
          in: path
          name: nodeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperiencePlaceCollabScriptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperiencePlaceCollabScript
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldInteractiveDesignDraftRequest"
    delete:
      summary: Discard your draft of a script.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - schema:
            type: string
          in: path
          name: nodeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldExperiencePlaceCollabScriptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperiencePlaceCollabScript
  /v1/worlds/experiences/{experienceId}/places/{placeId}/collab/scripts/{nodeId}/commit:
    post:
      summary: Commit your draft with a three-way merge. 409 merge_conflict carries the merged text with conflict blocks and the current source.
      tags:
        - Worlds team
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - schema:
            type: string
          in: path
          name: nodeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabScriptCommitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceCollabScriptCommit
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceCollabScriptCommitRequest"
  /v1/worlds/experiences/{experienceId}/notification-templates:
    get:
      summary: "Notification templates: key, title and body with {placeholders}, review status (approved ones can be sent)."
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceNotificationTemplatesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceNotificationTemplates
  /v1/worlds/experiences/{experienceId}/notification-templates/{key}:
    put:
      summary: Create or reword a template. Clean words with no link are approved at once; anything the text filter flags, or any link, waits for Crossly review (24 h). Rewording re-reviews.
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceNotificationTemplateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceNotificationTemplate
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGroupBuyMessageRequest"
  /v1/worlds/experiences/{experienceId}/notification-templates/{key}/retire:
    post:
      summary: "Retire a template: sends by its key stop."
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: key
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceNotificationTemplateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceNotificationTemplateRetire
  /v1/worlds/experiences/{experienceId}/notifications:
    post:
      summary: Send an approved template to one player (sub) or up to 100 (subs). Only players who turned notifications on, 13+, not banned, at most 2 a day per player and outside their quiet hours receive it; every other send is logged as suppressed with its reason.
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceNotificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceNotification
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceNotificationRequest"
  /v1/worlds/experiences/{experienceId}/notifications/report:
    get:
      summary: "Sends over the last N days (default 7, max 90): delivered, suppressed by reason, per template, and how many players turned notifications on."
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: days
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceNotificationReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceNotificationReport
  /v1/worlds/experiences/{experienceId}/experience-events:
    get:
      summary: Your scheduled Experience Events (upcoming, live and the last 30 days) with RSVP counts.
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceExperienceEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceExperienceEvents
    post:
      summary: "Schedule an Experience Event shown on the game's card: title, description, start/end (5 min–14 days, ≤ 180 days ahead), thumbnail, place. With liveEventId it follows that live-ops event's schedule."
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceExperienceEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceExperienceEvent
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceExperienceEventRequest"
  /v1/worlds/experiences/{experienceId}/experience-events/{eventId}:
    patch:
      summary: Change an event. A started event keeps its start; a new start time earns RSVPs a new reminder.
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: eventId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceExperienceEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceExperienceEvent
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceExperienceEventRequest"
  /v1/worlds/experiences/{experienceId}/experience-events/{eventId}/cancel:
    post:
      summary: Cancel an event (it disappears from the game's card; no reminder goes out).
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: eventId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceExperienceEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceExperienceEventCancel
  /v1/worlds/experiences/{experienceId}/notifications/opt-in:
    get:
      summary: Whether you turned this experience's notifications on.
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceNotificationOptInResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceNotificationOptIn
    put:
      summary: Turn this experience's notifications on or off for you. timeZone (IANA) keeps them out of your night.
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceNotificationOptInResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceNotificationOptIn
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceNotificationOptInRequest"
  /v1/worlds/me/notification-opt-ins:
    get:
      summary: Every experience whose notifications you turned on.
      tags:
        - Worlds engagement
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldMeNotificationOptInsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldMeNotificationOptIns
  /v1/worlds/me/experience-events:
    get:
      summary: Events you are going to that have not ended.
      tags:
        - Worlds engagement
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldMeExperienceEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldMeExperienceEvents
  /v1/worlds/experiences/{experienceId}/experience-events/{eventId}/rsvp:
    post:
      summary: "RSVP (going: true) or take it back. remind: true also turns the experience's notifications on, so the 15-minute reminder can reach you."
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: eventId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceExperienceEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceExperienceEventRsvp
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceExperienceEventRsvpRequest"
  /v1/worlds/experiences/{experienceId}/experience-events/upcoming:
    get:
      summary: An experience's upcoming and live events as players see them, with whether you are going.
      tags:
        - Worlds engagement
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceExperienceEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceExperienceEventUpcoming
  /v1/worlds/experience-events/upcoming:
    get:
      summary: Events across public experiences in the next 7 days (and live now), soonest first — the Carnival Plaza's "Coming up" board.
      tags:
        - Worlds engagement
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceEventUpcomingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceEventUpcoming
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/worlds/experiences/{experienceId}/ads:
    get:
      summary: "The ads for a game's in-world ad surfaces (parts tagged CrosslyAdSurface), for the token's owner: Sponsored Listings labelled \"Ad\", served only to signed-in adults where the game's creator turned ads on, never to its team. A click is POST /api/public/shop/ads/click { token }."
      tags:
        - Worlds ads
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: slots
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceAdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceAd
  /v1/worlds/experiences/{experienceId}/ad-settings:
    get:
      summary: Whether this game shows in-game ads (opt-in, default off) and the creator's share of Crossly's ad revenue in force.
      tags:
        - Worlds ads
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceAdSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceAdSetting
    put:
      summary: Turn in-game ads on or off for this game. Ads fill the game's ad surfaces (parts tagged CrosslyAdSurface); nothing shows until it has one.
      tags:
        - Worlds ads
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceAdSettingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceAdSetting
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnabledRequest"
  /v1/worlds/experiences/{experienceId}/ads/report:
    get:
      summary: "In-game ads over the last N days (default 30, max 90): impressions, clicks, charged clicks, advertiser spend and your earned share, per day."
      tags:
        - Worlds ads
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: days
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceAdReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceAdReport
  /v1/worlds/experiences/{experienceId}/assets:
    get:
      summary: "Meshes imported into this experience, newest first: paths, phone LOD, bounds, hull size, budget report, moderation (pending until a reviewed publish uses them) and a URL you can load now."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceAssetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceAssets
  /v1/worlds/experiences/{experienceId}/assets/meshes/check:
    post:
      summary: "Check a .glb (base64) for import without storing it: the budget report per device, plain-English errors with a fix list, whether a phone LOD will be made, mesh bounds and hull points."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceAssetMeshCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceAssetMeshCheck
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceAssetMeshCheckRequest"
  /v1/worlds/experiences/{experienceId}/assets/meshes:
    post:
      summary: "Import a .glb (base64) as a MeshPart: safety parse + budgets, stored on the Crossly CDN, a phone LOD over 5k triangles, collision Box or convex Hull. Returns the asset and the MeshPart node; with placeId it is inserted into that place through its co-editing session."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceAssetMeshResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceAssetMesh
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceAssetMeshRequest"
  /v1/worlds/experiences/{experienceId}/gallery/upload-url:
    post:
      summary: "A presigned upload for a gallery screenshot (JPEG/PNG/WebP/GIF, ≤ 10 MB) or video (MP4/QuickTime/WebM): PUT the file to uploadUrl with the same Content-Type and exact Content-Length, then add publicUrl to the gallery."
      tags:
        - Worlds gallery
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceGalleryUploadUrlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceGalleryUploadUrl
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceGalleryUploadUrlRequest"
  /v1/worlds/experiences/{experienceId}/gallery:
    get:
      summary: "The game's gallery: every screenshot and video with its review state (pending / approved / rejected with the reviewer's note), position and caption, plus the limits."
      tags:
        - Worlds gallery
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperienceGalleryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperienceGallery
    post:
      summary: Add an uploaded screenshot or video (your own upload's publicUrl; a video may carry a poster image). Images are scanned at once; every item waits for a person and shows on the game's page once approved.
      tags:
        - Worlds gallery
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceGalleryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceGallery
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperienceGalleryRequest"
  /v1/worlds/experiences/{experienceId}/gallery/{mediaId}:
    patch:
      summary: Change an item's caption (filtered; an approved item with a new caption goes back to review).
      tags:
        - Worlds gallery
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: mediaId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceGalleryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceGallery
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceGalleryRequest"
    delete:
      summary: Take an item off the game's page now.
      tags:
        - Worlds gallery
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: mediaId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperienceGallery
  /v1/worlds/experiences/{experienceId}/gallery/order:
    put:
      summary: "Set the order on the game's page: the ids you list first, the rest after in their current order."
      tags:
        - Worlds gallery
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceGalleryRoleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceGalleryOrder
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateListingByIdRequest"
  /v1/worlds/experiences/{experienceId}/gallery/trailer-url:
    put:
      summary: Set the game's trailer to a YouTube or Vimeo video link (https; youtube.com, youtu.be, vimeo.com, player.vimeo.com only; any other host is 400 trailer_host_not_allowed). It waits for a person like any gallery item; the current trailer goes back to the gallery (an uploaded clip) or off the page (a link).
      tags:
        - Worlds gallery
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldExperienceGalleryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceGalleryTrailerUrl
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceGalleryTrailerUrlRequest"
  /v1/worlds/experiences/{experienceId}/gallery/{mediaId}/role:
    put:
      summary: Make an item the game's icon or thumbnail (an image), its trailer (a video), or put it back in the gallery. The previous holder of that role goes back to the gallery.
      tags:
        - Worlds gallery
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: mediaId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperienceGalleryRoleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperienceGalleryRole
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperienceGalleryRoleRequest"
  /v1/worlds/experiences/{experienceId}/rewards/topups:
    get:
      summary: "Card top-ups of the reward pool, newest first: amount into the pool, card fee, status, what went back to the card."
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperienceRewardTopupsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperienceRewardTopups
    post:
      summary: Open a card top-up ($5-$10,000 into the pool; the 2.9% + 30¢ card fee is added on top). Returns checkoutUrl, where the owner pays with Crossly checkout; the pool is credited once when the payment lands. Owner only.
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperienceRewardTopupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperienceRewardTopup
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateFundingDrawQuoteRequest"
  /v1/worlds/rewards/topups/{topupId}:
    get:
      summary: "One card top-up: its status (open, paying, paid, cancelled, expired, refused), amounts and the pool it funds."
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: topupId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldRewardTopupResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldRewardTopup
  /v1/worlds/rewards/topups/{topupId}/cancel:
    post:
      summary: Cancel an unpaid top-up sheet.
      tags:
        - Worlds rewards
      parameters:
        - schema:
            type: string
          in: path
          name: topupId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceJoinResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldRewardTopupCancel
  /v1/worlds/assistant/status:
    get:
      summary: "Studio Assistant status: whether Crossly's model key is configured, whether you have your own AI key, and your plan allowance (asks left today, budget left this month)."
      tags:
        - Worlds studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAssistantStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldAssistantStatus
  /v1/worlds/experiences/{experienceId}/places/{placeId}/assistant:
    post:
      summary: "Ask the Studio Assistant (mode explain | edit | build): returns an explanation and a proposed change set (scripts, inserts, edits) checked against your role and linted. Nothing is applied."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceAssistant
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/assistant/apply:
    post:
      summary: Apply accepted Assistant changes to the place as one co-editing batch (activity via assistant, revertible). Re-checked against the place as it is now.
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceAssistantApply
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceAssistantApplyRequest"
  /v1/worlds/studio/classes:
    get:
      summary: "The engine's class table: insertable classes, services, and for ?name= one class with every property, its type, default and the exact JSON a place (and a studio edit) takes."
      tags:
        - Worlds studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldStudioClassResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldStudioClass
      parameters:
        - name: name
          in: query
          required: false
          schema:
            type: string
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/tree:
    get:
      summary: The live instance tree (what every open Studio shows) by dotted path, depth levels down (default 3, max 12).
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - name: path
          in: query
          required: false
          schema:
            type: string
        - name: depth
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceStudioTreeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceStudioTree
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/instance:
    get:
      summary: "One instance by path (or session id): class, properties, attributes, tags, children. Script source is read with …/studio/script."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - name: path
          in: query
          required: false
          schema:
            type: string
        - name: id
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceStudioInstanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceStudioInstance
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/find:
    get:
      summary: Find instances by name (contains), exact class and/or tag.
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - name: name
          in: query
          required: false
          schema:
            type: string
        - name: class
          in: query
          required: false
          schema:
            type: string
        - name: tag
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceStudioFindResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceStudioFind
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/snapshot:
    get:
      summary: A plan (top) or front drawing of the parts under a path as SVG, with bounds, spawns and unanchored parts that will fall.
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - name: path
          in: query
          required: false
          schema:
            type: string
        - name: view
          in: query
          required: false
          schema:
            type: string
            enum:
              - top
              - front
        - name: labels
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceStudioSnapshotResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceStudioSnapshot
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/edits:
    post:
      summary: "Apply set / insert / move / delete steps by path as ONE batch through Team Create (live in every open Studio, one revertible activity entry). All-or-nothing: any bad step refuses the batch with every problem listed."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioEditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceStudioEdit
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioEditRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/script:
    get:
      summary: A script's current source, your draft of it (if any, with whether someone committed since) and the lint of each.
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - name: path
          in: query
          required: true
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceStudioScriptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceStudioScript
    put:
      summary: Save your draft of a script (the place does not change until you commit). Returns lint and the diff from the current source.
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperiencePlaceStudioScriptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperiencePlaceStudioScript
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperiencePlaceStudioScriptRequest"
    delete:
      summary: Discard your draft of a script.
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - name: path
          in: query
          required: true
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldExperiencePlaceCollabScriptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldExperiencePlaceStudioScript
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/script/commit:
    post:
      summary: Commit your draft with a three-way merge onto the script as it is now (collaborators' edits kept). 409 merge_conflict carries merged text with conflict blocks and theirs.
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioScriptCommitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceStudioScriptCommit
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioScriptCommitRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/insert-asset:
    post:
      summary: Insert a Toolbox asset under a path (default Workspace; ServerScripts for scripts). Paid assets need the experience owner's licence.
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioInsertAssetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceStudioInsertAsset
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioInsertAssetRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/problems:
    get:
      summary: "The publish checks on the place as the live session holds it: script lint, budgets per device, settings, shop listings, Toolbox licences. publishable = no errors."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceStudioProblemResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceStudioProblem
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/playtest:
    post:
      summary: "Cloud test: flush the session, freeze a private test version and start a fleet server for it. 201 ready (ticket) or 202 starting; outputCursor reads only this test's Output."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioPlaytestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceStudioPlaytest
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/playtest/stop:
    post:
      summary: Stop this place's cloud-test servers now.
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioPlaytestStopResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceStudioPlaytestStop
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/output:
    get:
      summary: "Server Output (print, warnings, errors) after a cursor: every line of cloud tests, errors of live servers (scope=all). Kept 24 hours."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - name: since
          in: query
          required: false
          schema:
            type: number
        - name: serverId
          in: query
          required: false
          schema:
            type: string
        - name: level
          in: query
          required: false
          schema:
            type: string
            enum:
              - info
              - error
              - warn
        - name: scope
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - test
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldExperiencePlaceStudioOutputResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldExperiencePlaceStudioOutput
  /v1/worlds/experiences/{experienceId}/places/{placeId}/studio/publish:
    post:
      summary: "Prepare a publish from the live session: checks, details, rating answers, access. Never submits and never acknowledges the money review — the person does (or submit_worlds_publish)."
      tags:
        - Worlds studio
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioPublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlaceStudioPublish
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlaceStudioPublishRequest"
  /v1/worlds/packages:
    get:
      summary: "Your package library: reusable models and modules, newest first, with how many places hold copies."
      tags:
        - Worlds packages
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPackagesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPackages
      parameters:
        - name: archived
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
    post:
      summary: Create a package (v1) from one node (place JSON) or from a node in a place — which then becomes copy v1, auto-updating.
      tags:
        - Worlds packages
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPackageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPackage
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldPackageRequest"
  /v1/worlds/packages/{packageId}:
    get:
      summary: A package with its versions.
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: packageId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPackageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPackage
    patch:
      summary: Rename a package or change its description.
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: packageId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldPackageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldPackage
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldPackageRequest"
    delete:
      summary: Archive a package. Copies in places keep working; they just stop receiving updates.
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: packageId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldPackageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldPackage
  /v1/worlds/packages/{packageId}/versions:
    post:
      summary: Publish a new version; every auto-updating, unmodified copy in your places is updated through its co-editing session. Returns what happened per place.
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: packageId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPackageVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPackageVersion
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldPackageVersionRequest"
  /v1/worlds/packages/{packageId}/versions/{number}:
    get:
      summary: One version, with its payload (one root node in place JSON).
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: packageId
          required: true
        - schema:
            type: string
          in: path
          name: number
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPackageVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPackageVersion
  /v1/worlds/packages/{packageId}/toolbox:
    post:
      summary: List the latest version in the Toolbox as an asset of kind package (Toolbox review and pricing rules apply).
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: packageId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPackageToolboxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPackageToolbox
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldPackageToolboxRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/packages:
    get:
      summary: "Package copies in a place: version, newest version, modified, auto-update."
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldExperiencePlacePackagesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldExperiencePlacePackages
    post:
      summary: "Insert a copy of a package (default: the newest version, auto-update on)."
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlacePackageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlacePackage
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlacePackageRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/packages/{nodeId}/update:
    post:
      summary: "Update a copy to a version (default newest). A copy edited in the place needs force: true (its edits are replaced)."
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - schema:
            type: string
          in: path
          name: nodeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldExperiencePlacePackageUpdateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldExperiencePlacePackageUpdate
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldExperiencePlacePackageUpdateRequest"
  /v1/worlds/experiences/{experienceId}/places/{placeId}/packages/{nodeId}:
    patch:
      summary: Turn auto-update on or off for one copy.
      tags:
        - Worlds packages
      parameters:
        - schema:
            type: string
          in: path
          name: experienceId
          required: true
        - schema:
            type: string
          in: path
          name: placeId
          required: true
        - schema:
            type: string
          in: path
          name: nodeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldExperiencePlacePackageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldExperiencePlacePackage
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldExperiencePlacePackageRequest"
  /v1/toolbox/assets:
    get:
      summary: "Search the Toolbox: models, scripts, sounds, images, packages. Free and paid; `owned` says whether you may insert it now."
      tags:
        - Toolbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListToolboxAssetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listToolboxAssets
      parameters:
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: kind
          in: query
          required: false
          schema:
            type: string
            enum:
              - package
              - image
              - model
              - script
              - sound
              - animation
              - plugin
        - name: price
          in: query
          required: false
          schema:
            type: string
            enum:
              - free
              - all
              - paid
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - price
              - new
              - top_rated
              - popular
        - name: minRating
          in: query
          required: false
          schema:
            type: number
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
    post:
      summary: Publish an asset (place nodes). Scanned (lint, text, credits, uploads) then reviewed. Free by default; paid needs Pro and a verified identity.
      tags:
        - Toolbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ToolboxAssetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createToolboxAsset
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateToolboxAssetRequest"
  /v1/toolbox/assets/{assetId}:
    get:
      summary: "One asset: versions, credits (assets it includes), licence, contents, your purchase."
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: assetId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetToolboxAssetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getToolboxAsset
    patch:
      summary: Edit name, description, tags, thumbnail or price.
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: assetId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ToolboxAssetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateToolboxAsset
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateToolboxAssetRequest"
  /v1/toolbox/assets/{assetId}/use:
    post:
      summary: Get the asset's nodes stamped with its id for a place you can edit; insert:true also inserts them into the place's live session. Paid assets need the experience owner's licence.
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: assetId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateToolboxAssetUseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createToolboxAssetUse
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateToolboxAssetUseRequest"
  /v1/toolbox/assets/{assetId}/purchase:
    post:
      summary: "Open a Crossly checkout for a paid asset. Nothing is charged here: a person pays at checkoutUrl. The author earns 80% of net; the licence is use in your own experiences."
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: assetId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetToolboxPurchaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createToolboxAssetPurchase
  /v1/toolbox/assets/{assetId}/ratings:
    get:
      summary: "Ratings of an asset: average stars, breakdown, recent reviews, yours, and whether you may rate it."
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: assetId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetToolboxAssetRatingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getToolboxAssetRating
  /v1/toolbox/assets/{assetId}/ratings/mine:
    put:
      summary: "Rate an asset you bought or installed: 1–5 stars and an optional review (1000 characters). Not your own."
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: assetId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateToolboxAssetRatingMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateToolboxAssetRatingMine
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateToolboxAssetRatingMineRequest"
    delete:
      summary: Remove your rating of an asset.
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: assetId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteToolboxAssetRatingMine
  /v1/toolbox/purchases/{purchaseId}:
    get:
      summary: "A purchase: status, price, tax, refundable until."
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: purchaseId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetToolboxPurchaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getToolboxPurchase
  /v1/toolbox/purchases/{purchaseId}/refund:
    post:
      summary: Refund a licence within 14 days while no published version of yours uses the asset. Ends the licence; the author's share is reversed.
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: purchaseId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMeReceiptRefundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createToolboxPurchaseRefund
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest2"
  /v1/toolbox/library:
    get:
      summary: "Assets you may insert: licences you bought, your own, free ones you used."
      tags:
        - Toolbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListToolboxLibraryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listToolboxLibrary
  /v1/toolbox/mine:
    get:
      summary: "Your published assets: review state, reviewer note, what each earned you."
      tags:
        - Toolbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListToolboxMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listToolboxMine
  /v1/toolbox/sales:
    get:
      summary: "Your Toolbox sales: gross, net, your 80% share after refunds. Never who bought."
      tags:
        - Toolbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListToolboxSalesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listToolboxSales
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/toolbox/assets/{assetId}/versions:
    post:
      summary: A new version (reviewed); the live one keeps serving until it is approved.
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: assetId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ToolboxAssetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createToolboxAssetVersion
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateToolboxAssetVersionRequest"
  /v1/toolbox/assets/{assetId}/retire:
    post:
      summary: Take an asset off the store for good. Licences already sold keep working.
      tags:
        - Toolbox
      parameters:
        - schema:
            type: string
          in: path
          name: assetId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ToolboxAssetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createToolboxAssetRetire
  /v1/developer/apps/{appId}/review:
    get:
      summary: Your app's Crossly Carnival client certification, verification and review history in one read.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeveloperAppReviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDeveloperAppReview
  /v1/developer/apps/{appId}/certification:
    get:
      summary: "The Crossly Carnival client certification application (null until you create it): status, client, evidence, the passing run and what still blocks submission."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeveloperAppCertificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDeveloperAppCertification
    put:
      summary: "Create or edit the application: client name, platform, version, build and source URLs, description and evidence (report menu, chat, Policy UI). Changing the client clears the passing run."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeveloperAppCertificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDeveloperAppCertification
  /v1/developer/apps/{appId}/certification/submit:
    post:
      summary: Send the application to Crossly review. Needs a passing conformance run on this client version and report-menu evidence.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeveloperAppCertificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperAppCertificationSubmit
  /v1/developer/apps/{appId}/certification/withdraw:
    post:
      summary: Take the application out of review to edit it.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeveloperAppCertificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperAppCertificationWithdraw
  /v1/developer/apps/{appId}/conformance-runs:
    get:
      summary: Your app's conformance runs, newest first.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDeveloperAppConformanceRunsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDeveloperAppConformanceRuns
    post:
      summary: "Start a conformance run: a test experience only your app, signed in as you, can join. Join it with POST /v1/worlds/experiences/{experienceId}/join and follow the instruction."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeveloperAppConformanceRunResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperAppConformanceRun
  /v1/developer/apps/{appId}/conformance-runs/{runId}:
    get:
      summary: A run's step, instruction and every check with its verdict.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
        - schema:
            type: string
          in: path
          name: runId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeveloperAppConformanceRunResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDeveloperAppConformanceRun
  /v1/developer/apps/{appId}/conformance-runs/{runId}/abort:
    post:
      summary: Abort an open run.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
        - schema:
            type: string
          in: path
          name: runId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDeveloperAppConformanceRunAbortResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperAppConformanceRunAbort
  /v1/developer/apps/{appId}/client-versions:
    get:
      summary: "Releases of your certified client, newest first: the re-certification status (awaiting_run, running, carried, ops_review, approved, rejected, failed, superseded), the rule that decided it and its checks."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDeveloperAppClientVersionsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDeveloperAppClientVersions
    post:
      summary: Register a new release of your certified client and start its conformance run. A pass on the same major version carries the certification automatically; a new major version goes to Crossly review; a failure keeps your previous certified version.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDeveloperAppClientVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperAppClientVersion
  /v1/developer/apps/{appId}/client-versions/{versionId}:
    get:
      summary: One client release and its re-certification.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
        - schema:
            type: string
          in: path
          name: versionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeveloperAppClientVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDeveloperAppClientVersion
  /v1/developer/apps/{appId}/client-versions/{versionId}/run:
    post:
      summary: Start a new conformance run for a release whose run failed, expired or was aborted.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
        - schema:
            type: string
          in: path
          name: versionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDeveloperAppClientVersionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperAppClientVersionRun
  /v1/developer/apps/{appId}/verification:
    get:
      summary: "The app verification for worlds:publish / worlds:monetize (null until created): domain proof, policies, justifications and per-scope decisions."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeveloperAppVerificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDeveloperAppVerification
    put:
      summary: "Create or edit the verification: domain, requested scopes with a justification each, privacy policy, terms, support email, demo."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeveloperAppVerificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDeveloperAppVerification
  /v1/developer/apps/{appId}/verification/check-domain:
    post:
      summary: Look up the DNS TXT record crossly-app-verification=<token> on your domain (or _crossly.<domain>) now.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeveloperAppVerificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperAppVerificationCheckDomain
  /v1/developer/apps/{appId}/verification/submit:
    post:
      summary: Send the verification to Crossly review (each scope is decided separately).
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeveloperAppVerificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperAppVerificationSubmit
  /v1/developer/apps/{appId}/health:
    get:
      summary: "Your app's API health: write-request counts by status class (24 h, 7 d) across every seller using it, top error codes with advice, a retry-storm flag, the last 50 failed requests (message and correlation id only on requests made with your own account), and from Atlas: how many people authorized the app and with which scopes (counts, never who) and the token endpoint's OAuth errors by code (e.g. invalid_grant) with the latest one."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeveloperAppHealthResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDeveloperAppHealth
  /v1/developer/apps/{appId}/verification/withdraw:
    post:
      summary: Take the verification out of review to edit it.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeveloperAppVerificationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperAppVerificationWithdraw
  /v1/developer/apps:
    get:
      summary: "Your stores' OAuth apps (and any of yours still waiting for a store): filter by storefrontId, status or q; page with page + pageSize. meta.stores lists the stores you may register apps for."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: storefrontId
          required: false
        - schema:
            type: string
          in: query
          name: q
          required: false
        - schema:
            type: string
            enum:
              - live
              - in_review
              - listed
              - needs_store
              - revoked
              - all
          in: query
          name: status
          required: false
        - schema:
            type: integer
            minimum: 1
          in: query
          name: page
          required: false
        - schema:
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: pageSize
          required: false
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDeveloperAppsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDeveloperApps
    post:
      summary: "Register an OAuth app for one of your stores (storefrontId; default: the store in X-Storefront-Id, else your default store). The store is paid what the app earns. clientSecret is returned ONCE."
      tags:
        - Developer apps
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDeveloperAppResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDeveloperApp
  /v1/developer/apps/{appId}:
    get:
      summary: One of your OAuth apps, with the store that owns it.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeveloperAppResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDeveloperApp
    patch:
      summary: Edit an app's name, redirect URIs, scopes and revenue share. Existing installs keep the terms they agreed to.
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateDeveloperAppResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDeveloperApp
  /v1/developer/apps/{appId}/store:
    put:
      summary: "Choose (or change) the store that owns an app: a store of the same business. Its unpaid earnings move with it; client id, secret, installs and webhooks don't change."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateDeveloperAppStoreResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDeveloperAppStore
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateDeveloperAppStoreRequest"
  /v1/developer/apps/{appId}/profile:
    get:
      summary: "Your app's public directory profile: every editable field, the listing status, what still needs review, and `preview` — the profile exactly as /seller-apps or /buyer-apps will show it."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDeveloperAppProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDeveloperAppProfile
    patch:
      summary: "Edit your app's directory profile: name, slug, tagline, description, longDescription (markdown), category, audience (auto|seller|buyer|both), logoUrl, bannerUrl (4:1, 1600×400), screenshots (≤6), demoVideoUrl, homepageUrl, installUrl, support/privacy/terms links, docsLinks [{label,url}] and pricingNote. Absent keys are kept, null clears. Images not on Crossly's CDN are copied onto it. Renaming a listed app or changing its audience sends it back to review."
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateDeveloperAppProfileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDeveloperAppProfile
  /v1/developer/apps/{appId}/listing:
    put:
      summary: 'Turn "Listed publicly" on or off. On: an app Crossly approved whose name, scopes and audience are unchanged is listed at once; anything else goes to review (pending_review). Off: unlisted immediately.'
      tags:
        - Developer apps
      parameters:
        - schema:
            type: string
          in: path
          name: appId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateDeveloperAppListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateDeveloperAppListing
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateDeveloperAppListingRequest"
  /v1/creator-rewards/formula:
    get:
      summary: "The Creator Rewards formula: the pool's share of Crossly's Crossly Carnival take in force, the counting rules, and any scheduled change (announced at least 90 days ahead)."
      tags:
        - Creator Rewards
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorRewardFormulaResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorRewardFormula
  /v1/creator-rewards/months:
    get:
      summary: "Every calculated month: Crossly's take, the funded share, the pool, what was distributed and carried, counted minutes and exclusions by reason."
      tags:
        - Creator Rewards
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorRewardMonthsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorRewardMonths
  /v1/creator-rewards/me:
    get:
      summary: "Your Creator Rewards: each month, each experience you own or are paid for (counted minutes and players, exclusions, its amount, your part)."
      tags:
        - Creator Rewards
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorRewardMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorRewardMe
  /v1/creator-rewards/me/{month}:
    get:
      summary: One month of your Creator Rewards (YYYY-MM).
      tags:
        - Creator Rewards
      parameters:
        - schema:
            type: string
          in: path
          name: month
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorRewardMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorRewardMe
  /v1/world/blocks/{id}:
    delete:
      summary: Unblock somebody (by the block id from GET /v1/world/blocks).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldBlockResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldBlock
  /v1/world/jobs/shifts/{id}:
    delete:
      summary: Cancel a shift you posted that nobody has worked yet.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldJobShiftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldJobShift
  /v1/world/jobs/shifts/{id}/claim:
    post:
      summary: Claim an open shift. You work it by being in the place while it runs.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldJobShiftClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldJobShiftClaim
  /v1/world/jobs/shifts/{id}/release:
    post:
      summary: Give a shift you claimed back to the board.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldJobShiftReleaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldJobShiftRelease
  /v1/world/jobs/appraisals/{id}/answers:
    post:
      summary: "Answer a price check: your estimate of the item value in CENTS and an optional note. Moves no money; the asker may accept it."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldJobAppraisalAnswerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldJobAppraisalAnswer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldJobAppraisalAnswerRequest"
  /v1/world/places/{slug}/bans:
    get:
      summary: Who is banned from a place you own (your boutique or home).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPlaceBansResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPlaceBans
  /v1/world/places/{slug}/bans/{userId}:
    delete:
      summary: Lift a ban from a place you own; they can walk in again right away.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldPlaceBanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldPlaceBan
  /v1/world/avatar/identity:
    get:
      summary: Whether others see your name in the world (named), or not (anonymous); null if you have never chosen.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAvatarIdentityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldAvatarIdentity
    put:
      summary: Choose named or anonymous. Rooms you are already in keep the old answer until you rejoin.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldAvatarIdentityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldAvatarIdentity
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldAvatarIdentityRequest"
  /v1/world/avatar/look:
    get:
      summary: "Your world look on the account: the handle you chose (null if anonymous) and your appearance; null if you never made one."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAvatarLookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldAvatarLook
    put:
      summary: "Save your world look to the account, so every device starts from it. look: null stays anonymous. appearance.outfit = { top, outer, bottom, shoes, hat } picks the basic outfit (GET /v1/world/avatar/basics)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldAvatarLookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldAvatarLook
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldAvatarLookRequest"
  /v1/world/avatar/basics:
    get:
      summary: 'The free basic wardrobe every account owns: 25 garments (tees, hoodie, overshirt, polo, jacket, vest, jeans, shorts, skirt, sneakers, boots, loafers, caps...) by slot, each with its colourways. Wear one by saving appearance.outfit = { top, outer, bottom, shoes, hat } as "garment:colour" (outer and hat may be "none") with PUT /v1/world/avatar/look.'
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAvatarBasicResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldAvatarBasic
  /v1/world/controls:
    get:
      summary: Your world controls settings (look sensitivity, invert look, stick size, left-handed, camera distance, reduced camera motion, tap-to-walk, haptics) and whether you have seen the controls tutorial.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldControlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldControl
    put:
      summary: Save your world controls settings to the account (any subset of prefs; out-of-range values take the default) and/or mark the controls tutorial seen.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldControlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldControl
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldControlRequest"
  /v1/world/fit-value/share:
    put:
      summary: Whether people in a room can see what your outfit is worth.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldFitValueShareResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldFitValueShare
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldFitValueShareRequest"
  /v1/world/emotes/showable:
    get:
      summary: The things you own that a show-off emote can hold up.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldEmoteShowableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldEmoteShowable
  /v1/world/friends/here:
    get:
      summary: Your friends in Crossly World right now, and where (when they share it).
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldFriendsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldFriendHere
  /v1/world/trades/mine:
    get:
      summary: Your trades and each item progress through the authentication gate (verified or failed).
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldTradeMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldTradeMine
  /v1/world/staff/postings:
    get:
      summary: Your job postings, with their upcoming shifts.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldStaffPostingsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldStaffPostings
    post:
      summary: "Post a job: a showroom, stall or convention, pay, recurrence and rules."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldStaffPostingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldStaffPosting
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldStaffPostingRequest"
  /v1/world/staff/postings/{id}:
    get:
      summary: One of your postings, with its shifts.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldStaffPostingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldStaffPosting
    put:
      summary: Replace a posting; its future unstaffed shifts are re-made.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldStaffPostingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldStaffPosting
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldStaffPostingRequest"
  /v1/world/staff/postings/{id}/status:
    post:
      summary: Open, pause or close a posting.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldStaffPostingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldStaffPostingStatus
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldStaffPostingStatusRequest"
  /v1/world/staff/applicants:
    get:
      summary: Who applied to your postings, with their worker reputation.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldStaffApplicantsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldStaffApplicants
      parameters:
        - name: postingId
          in: query
          required: false
          schema:
            type: string
  /v1/world/staff/applications/{id}/decide:
    post:
      summary: Accept or decline an application.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldStaffApplicationDecideResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldStaffApplicationDecide
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldStaffApplicationDecideRequest"
  /v1/world/staff/shifts:
    get:
      summary: Your scheduled seats and who is on them.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldStaffShiftsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldStaffShifts
  /v1/world/staff/assignments/{id}:
    delete:
      summary: Take a worker off a seat that has not started.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldStaffAssignment
  /v1/world/staff/assignments/{id}/rate-worker:
    post:
      summary: Rate the worker of one of your seats.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldStaffAssignmentRateWorkerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldStaffAssignmentRateWorker
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldStaffAssignmentRateWorkerRequest"
  /v1/world/staff/reputation:
    get:
      summary: Your employer reputation, rated by the people who worked your public jobs.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldStaffReputationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldStaffReputation
  /v1/world/staff/places:
    get:
      summary: The showrooms, stalls and conventions a job can be posted at, and the pay rails that are live.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldStaffPlacesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldStaffPlaces
  /v1/world/staff/people:
    get:
      summary: "Everyone working for you: your Settings team and public workers, with their seats."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldStaffPeopleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldStaffPeople
  /v1/world/jobs/board:
    get:
      summary: The public Job Board, filterable.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldJobBoardResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldJobBoard
      parameters:
        - name: role
          in: query
          required: false
          schema:
            type: string
            enum:
              - host
              - stock
              - floor
              - appraiser
              - greeter
              - cashier
              - stylist
              - security
        - name: rail
          in: query
          required: false
          schema:
            type: string
            enum:
              - cash
              - cbx
              - bucks
        - name: basis
          in: query
          required: false
          schema:
            type: string
            enum:
              - shift
              - hour
              - commission
        - name: place
          in: query
          required: false
          schema:
            type: string
            enum:
              - showroom
              - convention
              - stall
        - name: minPayCents
          in: query
          required: false
          schema:
            type: number
        - name: minEmployerRep
          in: query
          required: false
          schema:
            type: number
        - name: after
          in: query
          required: false
          schema:
            type: string
        - name: before
          in: query
          required: false
          schema:
            type: string
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - pay
              - soonest
              - employer
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/world/work/mine:
    get:
      summary: "Where you work: your seats, applications and your teams’ open jobs."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldWorkMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldWorkMine
  /v1/world/work/postings/{id}/apply:
    post:
      summary: Apply for a job.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldWorkPostingApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldWorkPostingApply
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVideoRequestDeclineRequest"
  /v1/world/work/assignments/{id}/rate-employer:
    post:
      summary: "Rate the employer of a public-job shift you worked: paid on time, job as described, conduct."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldStaffAssignmentRateWorkerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldWorkAssignmentRateEmployer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldWorkAssignmentRateEmployerRequest"
  /v1/world/work/earnings:
    get:
      summary: What your shifts paid, by rail.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldWorkEarningResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldWorkEarning
  /v1/world/attendant:
    get:
      summary: Your AI attendant and whether your AI key is connected.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldAttendantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldAttendant
    put:
      summary: "Create or replace your AI attendant (BYOK: switching it on needs your AI key)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldAttendantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldAttendant
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldAttendantRequest"
  /v1/world/attendant/usage:
    get:
      summary: Your AI attendant’s usage log.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldAttendantUsageResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldAttendantUsage
  /v1/world/attendant/test-chat:
    post:
      summary: One test answer from your AI attendant, on your own AI key (409 ai_key_required without one).
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldAttendantTestChatResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldAttendantTestChat
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldAttendantTestChatRequest"
  /v1/spatial/streets/requests/{id}:
    delete:
      summary: Withdraw a street request you made that has not been founded yet.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteDaoProposalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteSpatialStreetRequest
  /v1/spatial/streets/owned/{id}:
    patch:
      summary: Who may open a shop on a street you own (open, apply or invite).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialStreetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSpatialStreetOwned
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSpatialStreetOwnedRequest"
  /v1/spatial/streets/admissions:
    get:
      summary: "Street applications and invitations: yours, and those waiting on streets you own."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialStreetAdmissionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialStreetAdmission
  /v1/spatial/streets/{slug}/apply:
    post:
      summary: Ask to open your shop on a street whose owner reviews applications.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialStreetApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetApply
  /v1/spatial/streets/{slug}/invite:
    post:
      summary: Invite a shop (by its slug) to open on a street you own.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSpatialStreetApplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetInvite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSpatialStreetInviteRequest"
  /v1/spatial/streets/admissions/{id}/accept:
    post:
      summary: "Accept a street admission: an application to a street your store owns, or an invitation to your store shop. Seats the shop."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialStreetAdmissionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetAdmissionAccept
  /v1/spatial/streets/admissions/{id}/decline:
    post:
      summary: "Decline a street admission: an application to a street your store owns, or an invitation to your store shop."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialStreetAdmissionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetAdmissionDecline
  /v1/spatial/streets/admissions/{id}/withdraw:
    post:
      summary: "Take back a street admission your store sent: its shop application, or an invitation from its street."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SpatialStreetAdmissionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialStreetAdmissionWithdraw
  /v1/spatial/streets/{slug}/leases:
    get:
      summary: "Plots on a street offered for lease: weekly rent in CENTS and terms."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialLeasesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialStreetLeases
  /v1/spatial/streets/{slug}/decor:
    get:
      summary: The decor on a street you may dress, and what you can place.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialStreetDecorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialStreetDecor
    put:
      summary: Dress a street you own with decor you hold (validated against your inventory).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialStreetDecorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateSpatialStreetDecor
  /v1/spatial/property/leases/{id}/withdraw:
    post:
      summary: Withdraw a lease offer nobody has accepted yet.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteDaoProposalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSpatialPropertyLeaseWithdraw
  /v1/world/decor/streets:
    get:
      summary: Streets you may dress.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldDecorStreetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldDecorStreets
  /v1/world/decor/stalls:
    get:
      summary: Your stall bookings, to dress their booths.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListStallMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldDecorStalls
  /v1/world/stalls/bookings/{id}/booth:
    put:
      summary: Dress the booth of a stall you booked (decor you hold).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldStallBookingBoothResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldStallBookingBooth
  /v1/world/decor/retract:
    post:
      summary: Take a placed decor piece back into your inventory; answers the inventory after.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldDecorRetractResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldDecorRetract
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldDecorRetractRequest"
  /v1/world/decor/market:
    get:
      summary: "Decor copies other people are reselling (asks in COSM); optional pair filter. Read only: listing and buying stay on crossly.net."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldDecorMarketResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldDecorMarket
      parameters:
        - name: pair
          in: query
          required: false
          schema:
            type: string
  /v1/spatial/shop/neighbourhood:
    get:
      summary: Where your shop stands, and the district theme your stock fits.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialShopNeighbourhoodResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialShopNeighbourhood
  /v1/spatial/scenes/{sceneId}/attention:
    get:
      summary: "What visitors looked at in one of your rooms: viewers, looks, inspects and dwell per item over the last days (1-35, default 30)."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: sceneId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialSceneAttentionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialSceneAttention
  /v1/spatial/spaces:
    get:
      summary: "The room catalogue: every space profile (what it holds, how it is sorted, its containers) and the warehouse units."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSpatialSpaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSpatialSpace
  /v1/world/places/{slug}/items/{itemId}/want:
    post:
      summary: Tell a room owner you would buy one of their items (once per person per item; they see the count). Moves no money.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: itemId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPlaceItemWantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPlaceItemWant
  /v1/world/market:
    get:
      summary: Plots and streets for sale or rent in the Worlds Market.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldMarketResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldMarket
      parameters:
        - name: kind
          in: query
          required: false
          schema:
            type: string
            enum:
              - plot
              - street
        - name: mode
          in: query
          required: false
          schema:
            type: string
            enum:
              - sale
              - rent
        - name: street
          in: query
          required: false
          schema:
            type: string
        - name: theme
          in: query
          required: false
          schema:
            type: string
        - name: minPrice
          in: query
          required: false
          schema:
            type: number
        - name: maxPrice
          in: query
          required: false
          schema:
            type: number
        - name: size
          in: query
          required: false
          schema:
            type: string
            enum:
              - small
              - large
              - medium
        - name: traffic
          in: query
          required: false
          schema:
            type: string
            enum:
              - quiet
              - steady
              - busy
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - newest
              - price_asc
              - price_desc
              - traffic_desc
        - name: offset
          in: query
          required: false
          schema:
            type: number
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/world/market/{kind}/{id}:
    get:
      summary: "One plot or street in the Market: price, renders, neighbours, foot traffic, history."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: kind
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldMarketResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldMarket
  /v1/world/market/streets/{slug}/signs:
    get:
      summary: The street's for-sale and for-rent boards.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldMarketStreetSignsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldMarketStreetSigns
  /v1/world/promoted:
    get:
      summary: 'Promoted places in Crossly World: boosted showrooms and conventions (Sponsored, labelled "Promoted"), with the token to send when one is opened.'
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPromotedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPromoted
      parameters:
        - name: kind
          in: query
          required: false
          schema:
            type: string
            enum:
              - showroom
              - convention
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/world/billing/rails:
    get:
      summary: Which rails (card, CBX) can pay in the world right now.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldBillingRailResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldBillingRail
  /v1/world/market/{kind}/{id}/buy:
    post:
      summary: Buy a plot or a street.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: kind
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMarketBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldMarketBuy
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldMarketBuyRequest"
  /v1/world/market/plot/{id}/rent:
    post:
      summary: Rent a plot offered for lease.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMarketPlotRentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldMarketPlotRent
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldMarketBuyRequest"
  /v1/world/market/listings:
    post:
      summary: List a plot for sale or rent, or a street for sale.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldMarketListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldMarketListing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldMarketListingRequest"
  /v1/world/market/listings/{kind}/{id}/{mode}:
    delete:
      summary: Withdraw a plot or street from the Market.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: kind
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: mode
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldMarketListingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldMarketListing
  /v1/world/streets/{slug}/trespass-barriers:
    get:
      summary: Plot numbers on the street you are trespassed from.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldStreetTrespassBarrierResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldStreetTrespassBarrier
  /v1/world/property/plots:
    get:
      summary: Plots your store owns or rents.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPropertyPlotsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPropertyPlots
  /v1/world/property/plots/{plotId}:
    get:
      summary: "One plot of yours: showroom, rental, value, upkeep."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: plotId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPropertyPlotResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPropertyPlot
  /v1/world/property/plots/{plotId}/showroom:
    post:
      summary: Stand one of your showrooms on a plot you own or rent.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: plotId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPropertyPlotShowroomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPropertyPlotShowroom
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldPropertyPlotShowroomRequest"
    delete:
      summary: Take the showroom off a plot.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: plotId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldPropertyPlotShowroomResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldPropertyPlotShowroom
  /v1/world/property/plots/{plotId}/photo/upload-url:
    post:
      summary: "A presigned upload for a plot's photo (WebP/PNG/JPEG, up to 4 MB): PUT the image to uploadUrl with the same Content-Type and exact Content-Length, then store publicUrl with PUT .../photo."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: plotId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPropertyPlotPhotoUploadUrlResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPropertyPlotPhotoUploadUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldPropertyPlotPhotoUploadUrlRequest"
  /v1/world/property/plots/{plotId}/photo:
    put:
      summary: "Store a plot's photo: an image of its frontage you uploaded through POST .../photo/upload-url, a render (buildKey must be the plot's current one) or an in-world capture."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: plotId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldPropertyPlotPhotoResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldPropertyPlotPhoto
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldPropertyPlotPhotoRequest"
  /v1/world/property/rentals:
    get:
      summary: Plots you rent out.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPropertyRentalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPropertyRentals
  /v1/world/property/rentals/{leaseId}:
    get:
      summary: One plot you rent out, with its payments.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: leaseId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPropertyRentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPropertyRental
  /v1/world/property/renting:
    get:
      summary: Plots you rent.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPropertyRentalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPropertyRenting
  /v1/world/property/renting/{leaseId}:
    get:
      summary: One plot you rent, with its payments.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: leaseId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldPropertyRentalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPropertyRenting
    patch:
      summary: Turn weekly autopay on or off (card leases).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: leaseId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldPropertyRentingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldPropertyRenting
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldPropertyRentingRequest"
  /v1/world/property/trespassed:
    get:
      summary: People your store has banned, owner-wide or from one showroom.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPropertyTrespassedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldPropertyTrespassed
    post:
      summary: Ban someone owner-wide or from one showroom.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldPropertyTrespassedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPropertyTrespassed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldPropertyTrespassedRequest"
  /v1/world/property/trespassed/{userId}:
    delete:
      summary: Lift a ban.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: userId
          required: true
        - name: place
          in: query
          required: true
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteSpatialSceneGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldPropertyTrespassed
  /v1/world/streets/owned/{id}:
    get:
      summary: "A street your store owns: tenants, applications, upkeep, look, fund, and the owning `store`."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldStreetOwnedResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldStreetOwned
  /v1/world/streets/owned/{id}/theme:
    put:
      summary: Set your store's street theme.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldStreetOwnedThemeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldStreetOwnedTheme
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldStreetOwnedThemeRequest"
  /v1/world/streets/owned/{id}/upkeep/pay:
    post:
      summary: Pay your store's street upkeep forward.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldStreetOwnedUpkeepPayResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldStreetOwnedUpkeepPay
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldStreetOwnedUpkeepPayRequest"
  /v1/world/manage/overview:
    get:
      summary: "Your Crossly World at a glance: shop and addresses, property, staff and shifts, conventions, stalls, 30-day visitors and money."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldManageOverviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldManageOverview
  /v1/world/manage/visitors:
    get:
      summary: "Who came to your world shop over 7, 30 or 90 days: the funnel, attention by day, most-looked and most-wanted items."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldManageVisitorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldManageVisitor
  /v1/world/manage/ledger:
    get:
      summary: "World money over 7, 30 or 90 days: plot purchases, maintenance, rent, deed sales, staff wages, shifts and stalls, in and out."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldManageLedgerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldManageLedger
  /v1/spatial/leases:
    get:
      summary: "Plots offered for lease on every street, cheapest first: address, weekly rent and maintenance in CENTS."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSpatialLeasesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSpatialLeases
  /v1/world/spaces:
    get:
      summary: "The Spaces directory: seller-hosted clubs with a venue, members and events (optional venue filter)."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldSpacesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldSpaces
      parameters:
        - name: venue
          in: query
          required: false
          schema:
            type: string
            enum:
              - stage
              - gallery
              - card_club
              - sneaker_meet
              - vintage_market
              - clubhouse
    post:
      summary: "Open a Space (sellers only, at most two): slug, name, venue, optional membership and about."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldSpace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldSpaceRequest"
  /v1/world/spaces/whats-on:
    get:
      summary: Live and upcoming events across Spaces (streets=1 and stage=1 add street and Main Stage events).
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldSpaceWhatsOnResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldSpaceWhatsOn
  /v1/world/spaces/mine:
    get:
      summary: Spaces you belong to.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldSpacesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldSpaceMine
  /v1/world/spaces/can-host:
    get:
      summary: "Whether you may open a Space: sellers only, at most two active."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldSpaceCanHostResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldSpaceCanHost
  /v1/world/spaces/{slug}:
    get:
      summary: "One Space: its layout, host, events and your place in it."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldSpaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldSpace
    patch:
      summary: As host, change a Space name, about or membership.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateWorldSpaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldSpace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldSpaceRequest"
    delete:
      summary: As host, close a Space.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldSpaceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldSpace
  /v1/world/spaces/{slug}/join:
    post:
      summary: Join a Space, or ask to when it is request-only.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceJoinResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldSpaceJoin
  /v1/world/spaces/{slug}/leave:
    post:
      summary: Leave a Space.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldCrewLeaveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldSpaceLeave
  /v1/world/spaces/{slug}/requests:
    get:
      summary: As host or co-host, who asked to join.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldSpaceRequestsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldSpaceRequests
  /v1/world/spaces/{slug}/requests/{userId}:
    post:
      summary: As host or co-host, accept or turn down a request to join.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: userId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceRequestByUserIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldSpaceRequestByUserId
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldSpaceRequestByUserIdRequest"
  /v1/world/spaces/{slug}/invite:
    post:
      summary: Invite somebody (userId) to a Space.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldSpaceInvite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UserIdRequest"
  /v1/world/spaces/{slug}/role:
    post:
      summary: As host, make a member a co-host or back to a member.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceRoleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldSpaceRole
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldSpaceRoleRequest"
  /v1/world/spaces/{slug}/events:
    post:
      summary: "As host or co-host, put an event on: title, kind, optional about, ISO start and end with offset."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceEventResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldSpaceEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldSpaceEventRequest"
  /v1/world/spaces/{slug}/events/{id}:
    delete:
      summary: As host or co-host, cancel an event.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldJobShiftResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldSpaceEvent
  /v1/world/spaces/{slug}/events/{id}/rsvp:
    post:
      summary: Say whether you are going to an event.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceEventRsvpResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldSpaceEventRsvp
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldSpaceEventRsvpRequest"
  /v1/world/parties:
    post:
      summary: Start a party with you as leader (up to 8 members).
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateBreakResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldParty
  /v1/world/parties/{id}/invite:
    post:
      summary: Invite a friend (userId) to your party.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyInviteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPartyInvite
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UserIdRequest"
  /v1/world/parties/invites/{inviteId}/accept:
    post:
      summary: Accept a party invite.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: inviteId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyInviteAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPartyInviteAccept
  /v1/world/parties/invites/{inviteId}/decline:
    post:
      summary: Decline a party invite.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: inviteId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyInviteAcceptResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPartyInviteDecline
  /v1/world/parties/{id}/leave:
    post:
      summary: Leave your party (the lead passes on if you led it).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyLeaveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPartyLeave
  /v1/world/parties/{id}/kick:
    post:
      summary: As leader, remove a member (userId).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyKickResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPartyKick
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UserIdRequest"
  /v1/world/parties/{id}/leader:
    post:
      summary: As leader, pass the lead to a member (userId).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyLeaderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPartyLeader
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UserIdRequest"
  /v1/world/parties/{id}/wishlist:
    post:
      summary: Add a listing (listingId, or its shop slug) to the party wishlist; answers the wishlist.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyWishlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPartyWishlist
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldPartyWishlistRequest"
  /v1/world/parties/{id}/wishlist/{listingId}:
    delete:
      summary: Take a listing you added off the party wishlist; answers the wishlist.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: listingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyWishlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldPartyWishlist
  /v1/world/parties/{id}/wishlist/{listingId}/vote:
    post:
      summary: Thumb a wishlist listing up or down (null clears your vote); answers the wishlist.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: listingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldPartyWishlistResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPartyWishlistVote
  /v1/world/parties/{id}/chat:
    get:
      summary: "Your party chat: the recent lines. 404 when this is not your party."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldPartyChat
    post:
      summary: Say something in your party chat (up to 2000 characters).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldPartyChat
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldPartyChatRequest"
  /v1/world/home:
    patch:
      summary: "Your home: privacy (open, friends, private), theme, and wall, floor and mood decor you hold."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldHomeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldHome
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldHomeRequest"
  /v1/world/home/layout:
    put:
      summary: "Arrange your home: the full layout (up to 200 pieces you own), validated server-side."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldHomeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldHomeLayout
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldHomeLayoutRequest"
  /v1/world/home/placeable:
    get:
      summary: "What you can place in your home: your items and your furniture."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldHomePlaceableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldHomePlaceable
  /v1/world/home/building:
    get:
      summary: Homes whose owner made you a co-builder.
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorldHomeBuildingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listWorldHomeBuilding
  /v1/world/homes/{slug}/layout:
    put:
      summary: Rearrange a home you co-build (never adding the owner bought pieces).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorldHomeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateWorldHomeLayoutBySlug
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorldHomeLayoutRequest"
  /v1/world/homes/{slug}/guestbook:
    post:
      summary: Sign a home guestbook (one short line).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldHomeGuestbookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldHomeGuestbook
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/BodyRequest"
  /v1/world/homes/{slug}/guestbook/{id}:
    delete:
      summary: As the home owner, hide a guestbook entry.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteWorldHomeGuestbookResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteWorldHomeGuestbook
  /v1/world/homes/{slug}/guestbook/{id}/report:
    post:
      summary: Report a guestbook entry to moderation.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldGameReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldHomeGuestbookReport
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldHomeGuestbookReportRequest"
  /v1/world/homes/{slug}/ask:
    post:
      summary: Ask a home owner whether they would sell a piece you saw there (an item or a decor piece).
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldHomeAskResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldHomeAsk
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorldHomeAskRequest"
  /v1/tcg/{game}/cards:
    get:
      summary: "The game's card pool: every card with its rules text, stats, rarity and collector number."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTcgCardsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTcgCards
  /v1/tcg/{game}/me:
    get:
      summary: Your starter faction, collection (card id -> copies), decks and earned packs.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgMe
  /v1/tcg/{game}/starter:
    post:
      summary: Claim the free starter deck for a game, choosing its faction (once per account; account-bound, untradeable).
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgStarterResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgStarter
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTcgStarterRequest"
  /v1/tcg/{game}/decks:
    post:
      summary: "Create (no id) or update a deck: its lead (Crew Boss, Mastermind or Keeper) and 40 cards you own, checked against the deck rules of its game."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgDeckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgDeck
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTcgDeckRequest"
  /v1/tcg/decks/{id}:
    delete:
      summary: Delete one of your decks.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteTcgDeck
  /v1/tcg/{game}/table:
    post:
      summary: "Sit at a table with your free starter deck (claimed now if you never did: starter names it, else one is picked for you): joins the oldest open 1v1 challenge, or opens one; already waiting, your own seat back."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgTable
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTcgTableRequest"
  /v1/tcg/{game}/practice:
    post:
      summary: Start a practice match against the house bot with one of your decks.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgPractice
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeckIdRequest"
  /v1/tcg/{game}/challenges:
    post:
      summary: Open a 1v1 challenge with one of your decks; another player joins it.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgChallenge
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeckIdRequest"
  /v1/tcg/matches/{id}/join:
    post:
      summary: Join an open 1v1 challenge with one of your decks.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgMatchJoin
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeckIdRequest"
  /v1/tcg/{game}/matches:
    get:
      summary: Your recent matches, and open challenges you could join.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgMatchResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgMatch
  /v1/tcg/matches/{id}:
    get:
      summary: Your view of a match (no hidden information) and, on your turn, every legal move.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgMatchById
  /v1/tcg/matches/{id}/act:
    post:
      summary: "Make one move: { action } as listed in the match's legal moves. The engine checks it."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgMatchAct
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTcgMatchActRequest"
  /v1/tcg/packs/{id}/open:
    post:
      summary: "Open one of your earned packs: its eight cards join your collection."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgPackOpenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgPackOpen
  /v1/games/pack-break:
    post:
      summary: "Pack Break: your open pack of five real market pieces, or a fresh one. No prices until you pick."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateGamePackBreakResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGamePackBreak
  /v1/games/pack-break/{id}/pick:
    post:
      summary: "Pick the pull you think is worth the most: every lowest open ask is revealed, and a win earns a fee-back coupon."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateGamePackBreakPickResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createGamePackBreakPick
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGamePackBreakPickRequest"
  /v1/games/coupons:
    get:
      summary: "Your fee-back coupons from house-game wins: Bucks paid out of the fee on your next market purchase."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListGameCouponsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listGameCoupons
  /v1/world/neighbourhoods/{slug}/claim:
    get:
      summary: Whether you may claim a plot on a neighbourhood street (its top sellers by recent sales), and why not.
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldNeighbourhoodClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldNeighbourhoodClaim
  /v1/world/streets/{slug}/fund:
    get:
      summary: "A street's fund: the CBX property payments on its plots over the last four weeks, and the street events it unlocked."
      tags:
        - World
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldStreetFundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWorldStreetFund
  /v1/tcg/games:
    get:
      summary: "Crossly's own card games: id, name, seats and card count."
      tags:
        - TCG
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTcgGamesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTcgGames
  /v1/tcg/{game}/ladder:
    get:
      summary: "The season's ranked leaderboard for a game: place, rating, tier and record (named only where the player chose to be)."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgLadderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgLadder
  /v1/tcg/{game}/ladder/me:
    get:
      summary: Your ranked rating, tier, place and record this season, and whether you are queued.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgLadderMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgLadderMe
  /v1/tcg/{game}/queue:
    post:
      summary: Join the ranked queue with an owned, legal deck (free). Returns the match at once when an opponent fits.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgQueueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgQueue
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeckIdRequest"
    delete:
      summary: Leave the ranked queue.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteTcgQueue
  /v1/tcg/{game}/tournaments:
    get:
      summary: A game's recent and upcoming Swiss tournaments (free to enter; prizes are earned packs).
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTcgTournamentsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTcgTournaments
    post:
      summary: "Host a Swiss tournament: name, optional top cut (4 or 8), round length, player cap and start time."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgTournamentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgTournament
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTcgTournamentRequest"
  /v1/tcg/tournaments/{id}:
    get:
      summary: A tournament's standings (points, opponents' and game win %), this round's pairings and your seat.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgTournamentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgTournament
  /v1/tcg/tournaments/{id}/register:
    post:
      summary: Enter a tournament with an owned, legal deck before it starts.
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgTournamentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgTournamentRegister
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeckIdRequest"
  /v1/tcg/tournaments/{id}/drop:
    post:
      summary: Leave a tournament before it starts, or drop from it (your results stand).
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgTournamentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgTournamentDrop
  /v1/tcg/tournaments/{id}/start:
    post:
      summary: "As the host, start the tournament: Swiss rounds are sized to the field and round 1 is dealt."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TcgTournamentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgTournamentStart
  /v1/wallet/crossly:
    get:
      summary: "Your Crossly wallet (self-custody Solana): status, address, whether it is configured, and your card NFT counts by status."
      tags:
        - Crossly wallet
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWalletCrosslyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWalletCrossly
    post:
      summary: Create your Crossly wallet now (it is otherwise created for you in the background). Idempotent.
      tags:
        - Crossly wallet
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWalletCrosslyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWalletCrossly
  /v1/tcg/{game}/nfts:
    get:
      summary: "Your card NFTs for a Crossly TCG game: each copy, its mint status, asset id and whether it is soulbound (starter)."
      tags:
        - Crossly wallet
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTcgNftsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTcgNfts
  /v1/tcg/nfts/reconcile:
    post:
      summary: Re-read your wallets on chain so your card counts follow what you hold (cards you moved away leave; cards you received join).
      tags:
        - Crossly wallet
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgNftReconcileResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgNftReconcile
  /v1/tcg/creator/games:
    get:
      summary: "Live creator card games: name, set, description, typical match length, frame colours, thumbnail."
      tags:
        - TCG creators
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTcgCreatorGamesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTcgCreatorGames
    post:
      summary: "Submit a card-game package version for review: game.json, cards.json, rules/game.js, thumb.png, art/*.png as { path, base64 }. Checked, conformance-run, art quarantined, then reviewed by a person."
      tags:
        - TCG creators
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgCreatorGameResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgCreatorGame
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTcgCreatorGameRequest"
  /v1/tcg/creator/games/{id}:
    get:
      summary: "One live creator card game: its set, every card (rules text, rarity, art URL, game data) and its COSM prices."
      tags:
        - TCG creators
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgCreatorGameResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgCreatorGame
  /v1/tcg/creator/games/{id}/shelf:
    get:
      summary: "The game's COSM shelf: the booster and every single, each with its COSM design id (buy via /api/v1/cosm/cosmetics/:id/buy), price, edition cap and copies issued."
      tags:
        - TCG creators
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgCreatorGameShelfResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgCreatorGameShelf
  /v1/tcg/creator/games/{id}/popularity:
    get:
      summary: "The set's progress toward going on chain: distinct collectors, packs opened and resales against the bar; when it passes, every holder may mint their cards as NFTs."
      tags:
        - TCG creators
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgCreatorGamePopularityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgCreatorGamePopularity
  /v1/tcg/creator/mine:
    get:
      summary: Your creator card games and every version with its review state and note.
      tags:
        - TCG creators
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTcgCreatorMineResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTcgCreatorMine
  /v1/tcg/creator/games/check:
    post:
      summary: Check a card-game package exactly as a submission is checked -- the static report and bot games played against your rules in the sandbox -- storing nothing. Files as { path, base64 }.
      tags:
        - TCG creators
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgCreatorGameCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgCreatorGameCheck
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTcgCreatorGameRequest"
  /v1/tcg/creator/games/{id}/versions/{v}/withdraw:
    post:
      summary: Withdraw one of your versions that is still waiting for review.
      tags:
        - TCG creators
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: v
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgCreatorGameVersionWithdraw
  /v1/tcg/creator/games/{id}/starter:
    post:
      summary: Claim a creator game's free starter deck by its key (once per account; account-bound, never tradeable).
      tags:
        - TCG creators
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgStarterResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgCreatorGameStarter
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateTcgCreatorGameStarterRequest"
  /v1/tcg/creator/games/{id}/collection:
    get:
      summary: "Your playable copies of a creator game: card id -> copies (free starter plus every COSM copy you hold)."
      tags:
        - TCG creators
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgCreatorGameCollectionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgCreatorGameCollection
  /v1/tcg/creator/games/{id}/packs:
    get:
      summary: Your unopened boosters of a creator game.
      tags:
        - TCG creators
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTcgCreatorGamePacksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listTcgCreatorGamePacks
  /v1/tcg/creator/games/{id}/packs/{packId}/open:
    post:
      summary: "Open a booster you hold: the game's rules pick the pulls, the pack is used up, and one COSM copy per card joins your collection (logged with its seed)."
      tags:
        - TCG creators
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: packId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateTcgCreatorGamePackOpenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createTcgCreatorGamePackOpen
  /v1/creator/entitlements:
    get:
      summary: "What you can do in Creator Studio: your plan, whether you can author, grandfathering, and every limit with used and remaining. Read by web, apps, SDK and MCP alike."
      tags:
        - Creator
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorEntitlementResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorEntitlement
  /v1/creator/experience-keys:
    get:
      summary: "Your experience API keys, newest first (never the secret). ?includeRevoked=true for the history; ?experienceId= for the keys that reach one game (a game's own keys are narrowed to it alone). Cursor-paged: pass pagination.nextCursor back as ?cursor=."
      tags:
        - Creator
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorExperienceKeysResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorExperienceKeys
      parameters:
        - name: includeRevoked
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
        - name: experienceId
          in: query
          required: false
          schema:
            type: string
    post:
      summary: "Issue an experience API key for a back-end or CI: name, creator scopes (worlds:*, items:write — only ones your token holds), an IP allowlist (CIDRs; 0.0.0.0/0 + ::/0 for anywhere), optional experienceIds and expiresInDays. The token is in the response ONCE."
      tags:
        - Creator
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorExperienceKeyResponse"
        "201":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorExperienceKeyResponseN201"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorExperienceKey
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorExperienceKeyRequest"
  /v1/creator/experience-keys/{id}/rotate:
    post:
      summary: "Rotate a key: a replacement with the same settings (its token shown ONCE); the old key keeps working for overlapHours (default 24, 0 = revoke now, max 168)."
      tags:
        - Creator
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorExperienceKeyRotateResponse"
        "201":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorExperienceKeyRotateResponseN201"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorExperienceKeyRotate
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorExperienceKeyRotateRequest"
  /v1/creator/experience-keys/{id}:
    delete:
      summary: "Revoke an experience key now. Never needs a plan: a credential must always be revocable."
      tags:
        - Creator
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: Default Response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteCreatorExperienceKeyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteCreatorExperienceKey
  /v1/creator/items/templates:
    get:
      summary: "Wearable templates: each garment the Crossly avatar wears, its recolourable panels, default colours and measured cost (triangles, draw calls, bones, bytes, phone LOD), plus the per-wearable budget."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorItemTemplateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorItemTemplate
  /v1/creator/items/wearables:
    get:
      summary: "Your wearables: drafts, in review, live or with changes requested, each with its automated checks and per-colourway designs."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorItemWearablesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorItemWearables
    post:
      summary: "Start a wearable from a template: slug, name, colourways (panel -> #rrggbb), a COSM price and optional edition size. Text is filtered; answers the automated checks. Paid seller plans only."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorItemWearableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorItemWearable
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorItemWearableRequest"
  /v1/creator/items/wearables/{id}:
    get:
      summary: One of your wearables with its checks, review state and note.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorItemWearableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorItemWearable
    patch:
      summary: Edit a draft wearable (name, description, colourways, price, edition). Submitted wearables are frozen.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorItemWearableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateCreatorItemWearable
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateCreatorItemWearableRequest"
    delete:
      summary: Delete a draft wearable.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteCreatorItemWearable
  /v1/creator/items/wearables/{id}/submit:
    post:
      summary: "Submit a wearable whose checks pass: each colourway becomes a COSM design (inactive) filed for review. Needs an https preview image (POST /v1/creator/items/previews)."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorItemWearableResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorItemWearableSubmit
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorItemWearableSubmitRequest"
  /v1/creator/items/previews:
    post:
      summary: "Upload a preview PNG (base64, at most 1 MB and 2048 px): parsed, scanned and stored on the Crossly CDN; answers its https URL."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorItemPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorItemPreview
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorCardSetArtRequest"
  /v1/creator/items/models/check:
    post:
      summary: "The budget report for a .glb (base64), storing nothing: every limit (triangles, draw calls, texture edge per phone/desktop; size, nodes, meshes, images, animations; bones for wearables) with pass/fail, problems and LOD suggestions."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorItemModelCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorItemModelCheck
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorItemModelCheckRequest"
  /v1/creator/items/models:
    get:
      summary: Your uploaded 3D models with their budget reports and review state.
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorItemModelsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorItemModels
    post:
      summary: "Upload a .glb (base64, 4 MB): validated, measured and stored (quarantined until approved). An over-budget model is refused with every failing number."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorItemModelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorItemModel
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorItemModelRequest"
  /v1/creator/items/models/{id}:
    get:
      summary: One of your models with its budget report.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorItemModelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorItemModel
    delete:
      summary: Delete a draft or rejected model.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteCreatorItemModel
  /v1/creator/items/models/{id}/submit:
    post:
      summary: Send an uploaded model to art review.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorItemModelResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorItemModelSubmit
  /v1/creator/creations:
    get:
      summary: "Every creation of your shop in one list: wearables, 3D objects, decor, interactive objects, each card of your card sets, Classic games and card games, with status, collection, rating, earnings and mint status."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorCreationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorCreations
      parameters:
        - name: kind
          in: query
          required: false
          schema:
            type: string
            enum:
              - item
              - decor
              - interactive
              - card
              - game
        - name: format
          in: query
          required: false
          schema:
            type: string
            enum:
              - wearable
              - model
              - decor
              - interactive
              - card
              - classic_game
              - card_game
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - draft
              - live
              - paused
              - in_review
              - changes_requested
              - rejected
              - retired
        - name: collection
          in: query
          required: false
          schema:
            type: string
        - name: q
          in: query
          required: false
          schema:
            type: string
  /v1/creator/creations/{format}/{id}:
    get:
      summary: "One creation: its status timeline and review history, the files it uses, where it sells, its sales, its buyer reviews and its mint status."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: format
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorCreationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorCreation
  /v1/creator/creations/{format}/{id}/reviews:
    get:
      summary: Buyer reviews of one creation, newest first (hidden ones included).
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: format
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorCreationReviewsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorCreationReviews
  /v1/creator/creations/{format}/{id}/submit:
    post:
      summary: "Send one creation to review through its format's own submit (wearable, model, decor, interactive, card: its whole set). Games are published from world-kit."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: format
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorCreationSubmitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorCreationSubmit
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorCreationSubmitRequest"
  /v1/creator/creations/{format}/{id}/status:
    get:
      summary: "Where one creation stands: its status, the reviewer's last note and its status timeline."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: format
          required: true
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorCreationStatusResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorCreationStatus
  /v1/creator/reviews/{reviewId}/reply:
    post:
      summary: Reply to a buyer review of your creation (or change your reply).
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: reviewId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorReviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorReviewReply
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorReviewReplyRequest"
  /v1/creator/reviews/{reviewId}/hide:
    post:
      summary: Hide a buyer review from your public page (it is kept, and its rating still counts).
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: reviewId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorReviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorReviewHide
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest2"
  /v1/creator/reviews/{reviewId}/unhide:
    post:
      summary: Show a hidden buyer review on your page again.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: reviewId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorReviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorReviewUnhide
  /v1/creator/reviews/{reviewId}/report:
    post:
      summary: Report a buyer review to Crossly (abuse, spam, not a real buyer).
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: reviewId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorReviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorReviewReport
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest"
  /v1/creator/minting:
    get:
      summary: "Everything you take on chain as collection rows with a six-stage status (designed, eligible, drafted, deploying, live, ended): gettingReady and launched. Game items (source game_item: tradeable game products, NFT declarations for your games) carry href and gameId."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorMintingResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorMinting
  /v1/creator/templates/{format}:
    get:
      summary: "The template files for a format (wearable, model, decor, interactive, card_set): crossly-creation.json, creations.csv where it applies, and a README."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: format
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorTemplateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorTemplate
  /v1/creator/templates/{format}/zip:
    get:
      summary: A format's template as a .zip download (the same files as GET /templates/:format, plus its empty folders).
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: format
          required: true
      responses:
        "200":
          description: A ZIP archive.
          content:
            application/zip:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorTemplateZip
  /v1/creator/imports:
    post:
      summary: "Validate a filled-in template (manifest text, CSV text, every path in the upload): issues with file, line and column, and a preview. Creates nothing."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorImport
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorImportRequest"
  /v1/creator/imports/{id}:
    get:
      summary: A stored template validation.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorImportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorImport
  /v1/creator/imports/{id}/commit:
    post:
      summary: Create the drafts of a validated template upload (drafts only; nothing is submitted to review).
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorImportCommitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorImportCommit
  /v1/creator/collections/{collectionId}/perks:
    get:
      summary: A collection's holder perks (percent off at your shop, early access, a World item, a loyalty tier), whether they can be edited, and why not (a card set not started yet, a contract claimed from elsewhere).
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: collectionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorCollectionPerkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorCollectionPerk
    put:
      summary: "Replace a collection's holder perks: `{ perks: [...] }`, at most one of each type: percent_off { percent 1-50 }, early_access { hours 1-720 }, world_item { creationRef, name }, loyalty_tier { tierId, tierName } (one of your loyalty tiers), each with an optional note. 409 when the collection has no launch yet."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: collectionId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorCollectionPerkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateCreatorCollectionPerk
  /v1/creator/cards/sets:
    get:
      summary: "Your card set drafts, each with its road from COSM to print: live on COSM, the mint threshold (collectors, packs opened, resales) and the print-run cost against what NFT sales have banked."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorCardSetsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorCardSets
    post:
      summary: "Start a card set: a game id (3-24 of a-z, 0-9, -), a set code (MG1) and a name. Answers a starter draft that already passes conformance. Paid seller plans only."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorCardSetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorCardSet
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorCardSetRequest"
  /v1/creator/cards/sets/{id}:
    get:
      summary: "One set draft with its check: draft issues by field and tcgStaticConformance problems."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorCardSetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorCardSet
    put:
      summary: "Save the whole draft: cards (name, type, rarity, rules text, flavour, power/draw/guard), COSM prices and supply, frame colours, print plan. Every word goes through the text filter. Art is merged: a card without `art` (or with art as read) keeps its stored art, `art: null` clears it; only the art upload sets art. Answers the check."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorCardSetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateCreatorCardSet
    delete:
      summary: Delete a set draft that was never published.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteCreatorCardSet
  /v1/creator/cards/sets/{id}/art/{slug}:
    post:
      summary: "One card's art: a PNG (base64, at most 1 MB and 2048 px), scanned and stored until the version is approved."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: slug
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorCardSetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorCardSetArt
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCreatorCardSetArtRequest"
  /v1/creator/cards/sets/{id}/check:
    post:
      summary: "The full check publish runs: draft issues, tcgStaticConformance and bot-vs-bot games of the set."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorCardSetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorCardSetCheck
  /v1/creator/cards/sets/{id}/publish:
    post:
      summary: "Publish: the set must pass its check; it is packaged (game.json, cards.json, the designer rules, art) and submitted as a new immutable version for review, through the same intake as a hand-made card game."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorCardSetPublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorCardSetPublish
  /v1/creator/cards/sets/{id}/progress:
    get:
      summary: "A set's three steps: live on COSM, the mint threshold toward NFTs, and the print-run cost (trading_cards estimate) against production funding banked."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCreatorCardSetProgressResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorCardSetProgress
  /v1/creator/cards/games:
    get:
      summary: "Your card games composed from several card sets: the sets, deck size, copies per card, win condition and cover, each with its check."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCreatorCardGamesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCreatorCardGames
    post:
      summary: "Compose a card game from your card sets: a game id, its own set code, a name and the set ids; optionally the deck size (8-40), copies per card (1-4), the win condition (most points, or first to N) and the cover (a card with art, or a colour). Paid seller plans only."
      tags:
        - Creator Studio
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorCardGameResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorCardGame
  /v1/creator/cards/games/{id}:
    get:
      summary: "One composed card game with its check: issues by field and conformance problems."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorCardGameResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCreatorCardGame
    put:
      summary: "Save the whole composition: name, description, setTitle, the set ids, deck size, copies per card, win condition and cover. Every word goes through the text filter. Answers the check."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorCardGameResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateCreatorCardGame
    delete:
      summary: Delete a composed card game that was never published.
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "204":
          description: No Content — the request succeeded and there is no body.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteCreatorCardGame
  /v1/creator/cards/games/{id}/check:
    post:
      summary: "The full check publish runs: issues, tcgStaticConformance and bot-vs-bot games of the composed rules."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreatorCardGameResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorCardGameCheck
  /v1/creator/cards/games/{id}/publish:
    post:
      summary: "Publish: the composition must pass its check; its cards, the composed rules, art and cover are packaged and submitted as a new immutable version for review, through the same intake as every card game."
      tags:
        - Creator Studio
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCreatorCardGamePublishResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCreatorCardGamePublish
  /v1/tcg/{game}/print:
    get:
      summary: "Print files for one of Crossly's own card games: a card proof (template), 3 x 3 Letter/A4 home sheets with crop marks, and the set's print file (63 x 88 mm, 3 mm bleed)."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: game
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgPrintResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgPrint
  /v1/tcg/creator/games/{id}/print:
    get:
      summary: "Print file links for your own creator card game (owner only): the set's print file, home sheets and a proof, for its newest version."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetTcgCreatorGamePrintResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgCreatorGamePrint
  /v1/tcg/creator/games/{id}/print/{kind}:
    get:
      summary: "A PDF of your own creator card game (owner only): kind set | sheet | proof; ?version=, ?paper=letter|a4, ?card= for a proof. Binary (application/pdf)."
      tags:
        - TCG
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: kind
          required: true
      responses:
        "200":
          description: A PDF document.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getTcgCreatorGamePrintByKind
  /v1/world/hunt/start:
    post:
      summary: "Start the Great Hunt this season by reading its first riddle (the Copper key's). Idempotent: starting again answers your progress unchanged. Answers the same shape as GET /v1/world/hunt. 409 when no season is running."
      tags:
        - World
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetWorldHuntResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createWorldHuntStart
  /v1/sandbox:
    get:
      summary: The sandbox seller this token acts on, its simulated channels and the failure modes.
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetSandboxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getSandbox
  /v1/sandbox/reset:
    post:
      summary: Restore the sandbox seller to its seed. Your grant and webhook subscriptions are kept.
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSandboxResetResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSandboxReset
  /v1/sandbox/simulate/order:
    post:
      summary: Simulate a sale through the real sale pipeline (order.created, sale.detected, stock and cross-channel updates).
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSandboxSimulateOrderResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSandboxSimulateOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSandboxSimulateOrderRequest"
  /v1/sandbox/simulate/order.cancelled:
    post:
      summary: The buyer or the marketplace cancels an order (order.cancelled).
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSandboxSimulateOrder.cancelledResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSandboxSimulateOrder.cancelled
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/OrderIdReasonRequest"
  /v1/sandbox/simulate/refund:
    post:
      summary: Refund an order in full or in part (refund.issued).
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSandboxSimulateRefundResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSandboxSimulateRefund
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSandboxSimulateRefundRequest"
  /v1/sandbox/simulate/order.delivered:
    post:
      summary: The carrier delivers a shipped order (order.delivered).
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSandboxSimulateOrder.deliveredResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSandboxSimulateOrder.delivered
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/OrderIdReasonRequest"
  /v1/sandbox/simulate/order.address:
    post:
      summary: The buyer address of an order simulated with address "delayed" arrives now (order.address_available).
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSandboxSimulateOrder.addressResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSandboxSimulateOrder.address
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSandboxSimulateOrder.addressRequest"
  /v1/sandbox/simulate/listing.sold_out:
    post:
      summary: A listing sells out on a marketplace with no order (stock moves, other channels delist).
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateSandboxSimulateListing.soldOutResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSandboxSimulateListing.soldOut
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSandboxSimulateListing.soldOutRequest"
  /v1/sandbox/simulate/inventory:
    post:
      summary: Change stock (set, increase or decrease); the new quantity is pushed to every channel.
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateInboxConversationBulkResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createSandboxSimulateInventory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateSandboxSimulateInventoryRequest"
  /v1/sandbox/events:
    get:
      summary: "The simulated marketplaces' call log: verb, channel, outcome, latency."
      tags:
        - Sandbox
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListSandboxEventsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listSandboxEvents
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/shop-limits:
    get:
      summary: "Your Crossly Shop selling limit: live listings and listed value, used of limit, per store, and the next step."
      tags:
        - Listings
      description: Per seller account, shared by all your stores. Counts live + scheduled Crossly Shop listings once each; value is the US-dollar shop price x quantity (an auction at max(start, reserve, buy-now)). Drafts, sold/ended listings and Trade Block posts are not counted, and selling frees space at once. `unlimited` is true for sandbox sellers.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetShopLimitResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getShopLimit
  /v1/shop-limits/requests:
    post:
      summary: Ask for a higher Crossly Shop selling limit.
      tags:
        - Listings
      description: One pending request at a time (409 otherwise). Approved on the spot when your last 90 days are clean (no auto-cancelled orders, disputes lost or chargebacks lost) and every number asked is at most twice your current limit; otherwise Crossly staff review it. `valueCents` is US cents.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateShopLimitRequestRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateShopLimitRequestResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createShopLimitRequest
  /v1/webhooks/stream:
    get:
      summary: Stream this account's webhook events as they happen (SSE).
      tags:
        - Webhooks
      description: "A long-lived text/event-stream. Each event is one `data:` line of JSON: {eventName, eventId, createdAt, payload}. Used by `crossly dev` to forward live events to a local URL without exposing the machine to the internet. Does not replay history — you see what happens from the moment you connect."
      responses:
        "200":
          description: A server-sent event stream.
          content:
            text/event-stream:
              schema:
                type: string
                description: Server-sent events; each `data:` line is one JSON object.
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getWebhookStream
  /v1/cbx/me:
    get:
      summary: Identity check — which merchant this key belongs to, and its terms.
      tags:
        - CBX
      description: "Returns the economics your merchant is configured with, so an integration can display accurate terms rather than hard-coding ours. Note `claimsEnabled`: off means balances are store credit that cannot leave, which is the default and the smaller regulatory posture."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxMeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxMe
  /v1/cbx/subjects:
    post:
      summary: Map one of your user ids to a CBX subject.
      tags:
        - CBX
      description: Idempotent. Call it whenever you need a subject id; repeated calls with the same externalUserId return the same subject. Your user ids are opaque to us and unique only within your merchant, so two marketplaces can both have a user "1" without collision.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxSubjectResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxSubject
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxSubjectRequest"
  /v1/cbx/accruals:
    post:
      summary: Record cashback a user earned, in cents.
      tags:
        - CBX
      description: "The accrual is PENDING until its maturation window closes, then converts to CBX at that moment's market price. It is denominated in cents the whole time it is pending, deliberately: quoting a token quantity up front and buying later would leave the reserve short for the length of the window. Send sourceExternalId and a retry is a no-op rather than a double credit."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxAccrualResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxAccrual
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxAccrualRequest"
  /v1/cbx/accruals/{accrualId}/reverse:
    post:
      summary: Claw back a pending accrual — a refund, a cancellation, fraud.
      tags:
        - CBX
      description: "Only works while the accrual is still pending. Once it has converted, the value is tokens in somebody's balance and this is the wrong operation: reversing then is a debit against that balance, which is a different act with different consequences and is not something an integration key can do. This is why the maturation window has to be at least as long as your refund window."
      parameters:
        - schema:
            type: string
          in: path
          name: accrualId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxSpendReverseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxAccrualReverse
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest"
  /v1/cbx/subjects/{subjectId}/balance:
    get:
      summary: "What a subject holds: pending cents and available CBX."
      tags:
        - CBX
      description: Two numbers because they are two different things. `pendingCents` is cashback earned but still inside its window — reversible, denominated in dollars, not yet tokens. `availableBaseUnits` is CBX they hold now. Amounts are strings because a token balance can exceed what a JSON number represents exactly.
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxSubjectBalanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxSubjectBalance
  /v1/cbx/subjects/{subjectId}/ledger:
    get:
      summary: A subject's CBX ledger, newest first.
      tags:
        - CBX
      description: Append-only. The balance is the sum of these rows and there is no cached balance anywhere that could disagree with them.
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
          in: query
          name: limit
          required: false
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxSubjectLedgerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxSubjectLedger
  /v1/cbx/treasury:
    get:
      summary: Your most recent reserve reconciliation.
      tags:
        - CBX
      description: Coverage is your reserve measured against what you owe your users, including claims already in flight. Below 100% your conversions stop — we will not credit balances that nothing backs. Claims and spends keep working, because those move value out and improve coverage.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxTreasuryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxTreasury
  /v1/cbx/wallets/challenge:
    post:
      summary: Start wallet verification. Returns a message for the user to sign.
      tags:
        - CBX
      description: "Present the returned `message` verbatim to the user's wallet for signing. It binds your merchant, their subject, the address and a single-use nonce, so the resulting signature is not transferable to another address or account. A signature is required because there is no custody here: a send cannot be undone, so a typo or a swapped address is permanent."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxWalletChallengeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxWalletChallenge
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxWalletChallengeRequest"
  /v1/cbx/wallets/verify:
    post:
      summary: Complete wallet verification with the user's signature.
      tags:
        - CBX
      description: The signature is checked against the message WE issued and stored, never one supplied here. The nonce is single-use, so the same signature cannot re-verify an address later.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxWalletVerifyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxWalletVerify
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxWalletVerifyRequest"
  /v1/cbx/subjects/{subjectId}/wallet:
    get:
      summary: The verified payout address for a subject, if any.
      tags:
        - CBX
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxSubjectWalletResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxSubjectWallet
  /v1/cbx/claims/quote:
    post:
      summary: What a claim would cost, without committing to it.
      tags:
        - CBX
      description: Every fee at cost, so a confirm screen can show the breakdown before the user agrees. The network fee is passed through at actual cost and includes the one-time account rent when the recipient has no token account yet — that rent is a recoverable deposit on an account the USER owns, not a fee we keep.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxClaimQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxClaimQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxClaimQuoteRequest"
  /v1/cbx/claims:
    post:
      summary: Reserve a claim. Debits the balance and queues the transfer.
      tags:
        - CBX
      description: "The balance is debited here, before anything is sent, which is the only safe order: sending first and debiting after means a crash between the two pays somebody and never charges them, and that is unrecoverable. A crash after this leaves a reserved balance and a pending claim, which is recoverable by looking at the chain. Send the same idempotencyKey to retry safely."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxClaim
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxClaimRequest"
  /v1/cbx/claims/{claimId}/send:
    post:
      summary: Send a reserved claim on chain.
      tags:
        - CBX
      description: "Re-checks every precondition rather than trusting the reservation: the delegation may have been revoked, the fee payer may have run dry, the address may have been flagged since. A response of `unconfirmed` means the transfer may have landed but confirmation was not observed — do NOT retry it, it needs reconciliation against the chain first."
      parameters:
        - schema:
            type: string
          in: path
          name: claimId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxClaimSendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxClaimSend
  /v1/cbx/claims/{claimId}:
    get:
      summary: A claim's current state.
      tags:
        - CBX
      parameters:
        - schema:
            type: string
          in: path
          name: claimId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxClaim
  /v1/cbx/reserve:
    post:
      summary: "Register your reserve after granting the payout allowance. Verified on chain: mint, delegate and allowance are read from the token account."
      tags:
        - CBX
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxReserveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxReserve
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxReserveRequest"
  /v1/cbx/pool:
    get:
      summary: Your events-pool balance.
      tags:
        - CBX
      description: Funded by the skim on in-marketplace CBX spending, the community share of withdrawal fees, and lapsed balances. Sponsor budgets are tracked separately and are not included here.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxPoolResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxPool
  /v1/cbx/campaigns:
    post:
      summary: Create a campaign in draft.
      tags:
        - CBX
      description: "Nothing is paid until it is previewed, approved and executed. Available metrics: accruals_count, accrued_cents, spend_count, spend_base_units — all of them measure activity inside the window. `capPerSubject` is worth setting on a proportional campaign: without it one large participant can take almost the whole pool, which makes the event pointless for everybody else."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxCampaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxCampaignRequest"
    get:
      summary: Your campaigns, newest first.
      tags:
        - CBX
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxCampaignsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxCampaigns
  /v1/cbx/campaigns/{campaignId}/preview:
    post:
      summary: Compute the recipient list without paying it.
      tags:
        - CBX
      description: Returns every recipient and amount, plus a hash of the list. Re-previewing invalidates any prior approval by design — the approver signed off on a specific list, and if it has changed they have not approved what would now happen.
      parameters:
        - schema:
            type: string
          in: path
          name: campaignId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxCampaignPreviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxCampaignPreview
  /v1/cbx/campaigns/{campaignId}/approve:
    post:
      summary: Approve the previewed recipient list.
      tags:
        - CBX
      parameters:
        - schema:
            type: string
          in: path
          name: campaignId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldSpaceJoinResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxCampaignApprove
  /v1/cbx/campaigns/{campaignId}/execute:
    post:
      summary: Pay an approved campaign.
      tags:
        - CBX
      description: Recomputes the list and refuses if the hash no longer matches the approved one. Payouts credit balances directly rather than transferring on chain, so a distribution to ten thousand recipients costs one internal move and is reversible if it was computed wrong.
      parameters:
        - schema:
            type: string
          in: path
          name: campaignId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxCampaignExecuteByCampaignIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxCampaignExecuteByCampaignId
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxCampaignExecuteByCampaignIdRequest"
  /v1/cbx/campaigns/{campaignId}/payouts:
    get:
      summary: What a campaign actually paid, with the weight behind each amount.
      tags:
        - CBX
      description: The weight is kept so a payout can be explained to the person who received it. "Why did I get this much" should have an answer that is not "the algorithm".
      parameters:
        - schema:
            type: string
          in: path
          name: campaignId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxCampaignPayoutsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxCampaignPayouts
  /v1/cbx/spends:
    post:
      summary: Redeem a user's CBX against an order.
      tags:
        - CBX
      description: "Debits the user exactly what they spent — the skim is never added on top, because making CBX worth less when used than when sold would invert the whole reason to spend rather than liquidate. The skim comes out of YOUR fee on the order and is capped against it, so an order paid entirely in saved-up CBX does not have its whole margin eaten. Idempotent on externalId: a retried checkout returns the original spend rather than debiting twice. Spending is always free and has no minimum — that asymmetry against the withdrawal fee is what steers toward spending without ever telling anyone they cannot have their money."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxSpendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxSpend
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxSpendRequest"
  /v1/cbx/spends/{externalId}/reverse:
    post:
      summary: Refund a spend — give the tokens back and claw the skim back.
      tags:
        - CBX
      description: "Returns the user's tokens AND reverses the skim out of both the community pool and operator revenue. All three move together: returning the tokens while the pool and operator kept their shares would count the same tokens twice against one reserve. The spend also stops counting as activity for campaign weighting, so buy-then-refund cannot farm distributions."
      parameters:
        - schema:
            type: string
          in: path
          name: externalId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxSpendReverseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxSpendReverse
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReasonRequest"
  /v1/cbx/subjects/{subjectId}/spent:
    get:
      summary: Total CBX a subject has spent in your marketplace.
      tags:
        - CBX
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxSubjectSpentResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxSubjectSpent
  /v1/cbx/revenue:
    get:
      summary: Operator revenue accrued and not yet withdrawn.
      tags:
        - CBX
      description: "Your share of the spend skim plus your half of withdrawal fees, denominated in CBX. It sits inside the reserve until swept, which is why it is tracked here rather than inferred: without a number saying how much of the reserve is yours, there is no safe amount to take out."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxRevenueResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxRevenue
  /v1/cbx/revenue/sweep:
    post:
      summary: Move accrued revenue from the reserve to your revenue wallet.
      tags:
        - CBX
      description: "Computes what is genuinely free — reserve minus outstanding balances, minus claims in flight, minus the pool, minus unswept revenue — and moves at most that. If the reserve is short it moves NOTHING, whatever the ledger says: an under-covered reserve is not a reason to stop paying users, it is a reason to stop paying yourself. Send dryRun to see the arithmetic without moving tokens."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxRevenueSweepResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxRevenueSweep
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxRevenueSweepRequest"
  /v1/cbx/earn-tiers:
    get:
      summary: Earn terms on offer — longer maturation, higher rate.
      tags:
        - CBX
      description: "A term structure on a rebate, not a yield: the user chooses WHEN to be paid for a purchase they already made, and a longer wait earns more. Nothing accrues to a balance for being held. Show these at checkout so the choice is the user's — the rate is snapshot onto the accrual, so a tier edited later never reprices a promise already made."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxEarnTiersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxEarnTiers
    post:
      summary: Define an earn term.
      tags:
        - CBX
      description: Setting `isDefault` moves the default off whatever held it — exactly one active default per merchant is enforced by a unique index, because two would make "what rate did this user get" depend on row order.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxEarnTierResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxEarnTier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxEarnTierRequest"
  /v1/cbx/boosts:
    get:
      summary: Your funded cashback boosts, newest first.
      tags:
        - CBX
      description: "`spentCents` against `budgetCents` is the live burn. The budget is a hard ceiling enforced inside the accrual transaction, so a boost cannot overspend — when it runs out, matching orders quietly fall back to your base rate rather than failing or accruing zero."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxBoostsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxBoosts
    post:
      summary: Fund elevated cashback on matching items.
      tags:
        - CBX
      description: "Performance marketing priced in CBX: the spend lands as a durable balance the buyer returns to use, rather than a one-time price cut they pocket. A boost REPLACES the base or tier rate rather than adding to it — you are stating the total you will pay, and it is priced against your margin. Targeting is matched by equality on one facet; most specific wins (sku > collection > category > all). Kinds: all, category, sku, collection."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxBoostResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxBoost
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxBoostRequest"
  /v1/cbx/boosts/{boostId}/pause:
    post:
      summary: Stop a boost from matching further orders.
      tags:
        - CBX
      description: Pausing does not refund anything — already-accrued cashback is a promise already made to a buyer, and unwinding it would take back cashback somebody was shown at checkout. The remaining budget simply stops being spendable.
      parameters:
        - schema:
            type: string
          in: path
          name: boostId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxBoostPauseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxBoostPause
  /v1/cbx/rates/quote:
    post:
      summary: What would this order earn, and why.
      tags:
        - CBX
      description: Resolve the rate without accruing anything, so a checkout can show the real number and its reason. `source` tells you whether it came from your base rate, a tier, or a boost; `stakeBoostBps` is the part the user's own stake contributed. Quoting does NOT reserve boost budget — a quote and the subsequent accrual can differ if the budget runs out in between, which is why the accrual response repeats the rate it actually granted.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxRateQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxRateQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxRateQuoteRequest"
  /v1/cbx/accruals/purchase:
    post:
      summary: Accrue cashback for an order at the resolved rate.
      tags:
        - CBX
      description: "Prefer this over POST /accruals when you want us to do the rate maths — it resolves the tier, the boost and the stake boost, charges your boost budget in the same transaction, and records what rate was actually granted. If a matching boost cannot fund the order, the accrual falls back to your un-boosted rate and `boostBudgetExhausted` is true. Idempotent on externalId: a retried webhook neither accrues twice nor charges your budget twice."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxAccrualPurchaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxAccrualPurchase
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxAccrualPurchaseRequest"
  /v1/cbx/stake-tiers:
    get:
      summary: Staking tiers — what locking tokens buys.
      tags:
        - CBX
      description: "Staking pays NOTHING. It confers a lower withdrawal fee and a higher earn rate on future purchases: a discount for commitment, not a return on a holding. Staked tokens never leave the user — they stay in their balance and stay backed by the reserve — they simply become unspendable until unstaked."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxStakeTiersResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxStakeTiers
    post:
      summary: Define a staking tier.
      tags:
        - CBX
      description: "A user gets the highest tier their amount clears. `cooldownDays` is what makes the discount real: without a wait, a user stakes for the discount and unstakes the moment they want to withdraw, so the commitment it was priced against never existed."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxStakeTierResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxStakeTier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxStakeTierRequest"
  /v1/cbx/subjects/{subjectId}/stake:
    get:
      summary: A subject's staking state and spendable balance.
      tags:
        - CBX
      description: "`availableBaseUnits` is the number a checkout must use — balance minus anything locked. `earnBoostBps` reads zero once an unstake has been requested, because the boost ends with the commitment; `feeDiscountBps` survives the cooldown, since withdrawing is exactly what somebody in cooldown is trying to do."
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxSubjectStakeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxSubjectStake
    post:
      summary: Lock a subject's tokens for a tier.
      tags:
        - CBX
      description: "Refuses an amount that clears no tier — locking tokens for no benefit is never what somebody meant to do. One stake per subject: to change the amount, unstake and wait out the cooldown first."
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxSubjectStakeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxSubjectStake
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxSubjectStakeRequest"
  /v1/cbx/subjects/{subjectId}/stake/unstake:
    post:
      summary: Start the cooldown. Tokens unlock when it elapses.
      tags:
        - CBX
      description: The earn boost stops immediately; the tokens stay locked until `unlocksAt`. The cooldown is read from the tier as configured NOW, which is the one place a later config change is allowed to matter — holding somebody to a longer wait the merchant has since abandoned would be the worse behaviour.
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxSubjectStakeUnstakeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxSubjectStakeUnstake
  /v1/cbx/redemptions/services:
    get:
      summary: Services payable in CBX, and the discount each carries.
      tags:
        - CBX
      description: "Paying in CBX costs less than paying in dollars, which is what makes anybody choose it. These are real services with real cost behind them rather than a sink invented to soak up supply — and sinks matter: supply is fixed, so tokens that only ever accumulate starve the market the protocol has to buy from."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxRedemptionServicesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxRedemptionServices
  /v1/cbx/redemptions/quote:
    post:
      summary: What a service costs in tokens right now.
      tags:
        - CBX
      description: Refuses with 409 when there is no fresh price. A dollar-priced service has no honest token quantity without a spot, and there is no safe direction to guess in — a guess either overcharges the user or undercharges us.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxRedemptionQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxRedemptionQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxRedemptionQuoteRequest"
  /v1/cbx/redemptions:
    post:
      summary: Pay for a service in CBX.
      tags:
        - CBX
      description: "Idempotent on (serviceKind, externalId) rather than externalId alone: a grading submission and a listing boost can legitimately share an id because they refer to the same item, and without the service in the key, boosting a listing you had already graded would return the grading receipt and never charge for the boost. Staked tokens cannot pay — the debit checks spendable balance, not total."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxRedemptionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxRedemption
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxRedemptionRequest"
  /v1/cbx/disbursement-rules:
    get:
      summary: Threshold rules that fire community distributions.
      tags:
        - CBX
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxDisbursementRulesResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxDisbursementRules
    post:
      summary: Fire a distribution when the events pool crosses a threshold.
      tags:
        - CBX
      description: "Applies to the EVENTS POOL only — never free reserve surplus. Reserve surplus is the recirculation buffer that funds the next accrual without touching the market, so distributing it would force us to buy the same tokens back at spread plus MEV. `checkCadenceHours` bounds how often the rule may fire even when the pool is over the line: a pure threshold fires at an unpredictable moment, and the pool jumps most after a lapse sweep — precisely when engagement was worst. `distributeBps` is capped under 100% because draining the pool removes the standing balance that makes the next event credible. The rule decides WHEN only: firing opens a campaign that still needs preview, approval and execution. Metrics: accruals_count, accrued_cents, spend_count, spend_base_units."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxDisbursementRuleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxDisbursementRule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxDisbursementRuleRequest"
  /v1/cbx/disbursement-rules/{ruleId}/check:
    post:
      summary: Evaluate a rule now. Fires it if every gate passes.
      tags:
        - CBX
      description: "Gates in order: cadence, threshold, coverage. `outcome` names the one that stopped it — every evaluation is recorded including the declines, because \"why didn't the event happen\" is the question people ask and the answer is always a check that ran and said no. A missing or stale treasury snapshot declines on `coverage`: unknown coverage is not healthy coverage. Send dryRun to evaluate without opening a campaign or writing anything."
      parameters:
        - schema:
            type: string
          in: path
          name: ruleId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxDisbursementRuleCheckResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxDisbursementRuleCheck
  /v1/cbx/disbursement-rules/{ruleId}/active:
    post:
      summary: Enable or disable a rule.
      tags:
        - CBX
      parameters:
        - schema:
            type: string
          in: path
          name: ruleId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxDisbursementRuleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxDisbursementRuleActive
  /v1/cbx/disbursement-progress:
    get:
      summary: How close each rule is to firing — the public counter.
      tags:
        - CBX
      description: "Safe to show users. A climbing counter toward a known number is the reason to prefer cadence-plus-threshold over a pure threshold: people can see the pool rising and know roughly when the next event is possible. A trigger nobody can anticipate generates suspicion rather than anticipation."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxDisbursementProgressResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxDisbursementProgress
  /v1/cbx/ad-credit:
    get:
      summary: Unspent advertising credit, in cents.
      tags:
        - CBX
      description: "Advertising is payable in CBX and nothing else. Your budget is denominated in dollars, priced at the spot when your payment finalized — deliberately NOT held as a token quantity, since a price move would otherwise silently change the budget you prepaid, making you a market participant because you bought ads. Credit is 1:1 with market value: with CBX the only way to pay there is nothing to discount against. Spendable on advertising only, and not refundable."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxAdCreditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxAdCredit
  /v1/cbx/ad-credit/quote:
    post:
      summary: What a given number of tokens buys in ad credit.
      tags:
        - CBX
      description: Credit is 1:1 with the market value of the tokens at confirmation. Refuses with 409 when there is no fresh price — pricing an entire prepaid budget off a guess is not something to do quietly.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxAdCreditQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxAdCreditQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxSubjectStakeRequest"
  /v1/cbx/ad-credit/purchase:
    post:
      summary: Claim ad credit against a CBX transfer you sent.
      tags:
        - CBX
      description: "Send CBX to our revenue wallet yourself, then present the signature. We read the actual balance delta at FINALIZED commitment — a confirmed transaction can still be dropped by a fork, and this grants real credit. One signature can be claimed exactly once. Priced at the spot when the claim is processed, not when you signed: pricing at send time would let somebody hold signed transfers and claim only the ones that moved in their favour. A 409 means the transaction has not finalized yet and you should retry; a 400 means it will never be claimable (failed, wrong mint, wrong destination)."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxAdCreditPurchaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxAdCreditPurchase
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxAdCreditPurchaseRequest"
  /v1/cbx/ad-credit/spend:
    post:
      summary: Consume credit for a billing period.
      tags:
        - CBX
      description: "Spends what the balance covers and reports the rest as `shortfallCents` — the campaign should stop there rather than running on credit that does not exist. 20% of what is spent moves to the community events pool and 80% is operator revenue; the split happens on SPEND rather than at purchase, because the pool's share is earned when the advertising is actually delivered. Idempotent on externalId: pass your billing-period id so a retried run does not consume the same credit twice."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxAdCreditSpendResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxAdCreditSpend
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxAdCreditSpendRequest"
  /v1/cbx/ad-credit/ledger:
    get:
      summary: Ad-credit movements, newest first.
      tags:
        - CBX
      description: "Append-only. `purchase_cbx` and `grant` add; `ad_spend` and `expire` subtract. There is no refund kind and there will not be one: advertising credit exists to buy advertising, and any exit at face value turns it into a currency exchange."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxAdCreditLedgerResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxAdCreditLedger
  /v1/cbx/subjects/{subjectId}/balances:
    get:
      summary: All three balances a subject holds.
      tags:
        - CBX
      description: EARNED is cashback and affiliate accruals — withdrawable once matured and above the claim floor. GRANTED is ad credit, wholesale draws and promos — spendable in your marketplace only, never withdrawable, so it creates no sell pressure. CONNECTED is the subject's own self-custodied CBX, reachable through a bounded delegation; it was never our liability and does not enter the reserve invariant. `connectedAvailableBaseUnits` is delegation HEADROOM, not a wallet balance — the subject may hold less than they approved, or have revoked on chain without telling us, so treat it as a ceiling and let the spend re-read the chain.
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxSubjectBalanceBySubjectIdResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxSubjectBalanceBySubjectId
  /v1/cbx/subjects/{subjectId}/spend-plan:
    post:
      summary: Which balances would pay for a spend, and in what order.
      tags:
        - CBX
      description: "The order is granted → earned → connected and you do not get to choose it. Granted first is a security property, not a preference: if earned spent first, a subject holding both would spend their withdrawable balance down while their non-withdrawable grant sat untouched — converting a grant into a withdrawable balance one purchase at a time. Returns a `shortfallBaseUnits` rather than failing, so a checkout can charge the remainder to a card. Send excludeConnected on a flow that cannot wait for an on-chain transfer."
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxSubjectSpendPlanResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxSubjectSpendPlan
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxSubjectSpendPlanRequest"
  /v1/cbx/subjects/{subjectId}/grants:
    get:
      summary: Live grants, soonest-expiring first.
      tags:
        - CBX
      description: "That ordering is the allocation order: a spend consumes the grant closest to lapsing, so value about to expire is used before value that will not. Grants with no expiry sort last."
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxSubjectGrantsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxSubjectGrants
    post:
      summary: Issue grant credit — in-platform, non-withdrawable.
      tags:
        - CBX
      description: Requires a funding `batchId` for every kind except `grant_makegood`. Grant credit is spendable at merchants who receive real value, so the tokens have to exist — the same rule earned balance obeys. A makegood is exempt because compensating somebody for our failure must not be blocked on treasury state. There is no path that converts a grant to earned balance or pays it to an address, and the database enforces that rather than a comment.
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxSubjectGrantResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxSubjectGrant
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxSubjectGrantRequest"
  /v1/cbx/credit:
    get:
      summary: A seller's wholesale credit line.
      tags:
        - CBX
      description: "Trade credit, not token-collateralized lending. The line is secured by receivables we already hold — the payout stream sits under a hold with an exposure ceiling — and secondarily by goods bought from our own wholesale channel. CBX is the alignment mechanism, not the collateral: a stake raises the limit and lowers the rate, bounded to a share of the earned limit so a price collapse can never remove the majority of a facility. The limit may FALL. A drawn balance is never accelerated or margin-called — there is no liquidation engine, no keeper and no oracle trigger anywhere in it."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCbxCreditResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCbxCredit
  /v1/cbx/credit/refresh:
    post:
      summary: Recompute a limit from trading history and stake.
      tags:
        - CBX
      description: "The earned limit is a share of trailing SETTLED payout volume — money that actually reached the seller, not listed inventory or projected sales. The stake bonus is capped at a share of that, so a seller with no history gets nothing however much they stake. A frozen line stays frozen: freezing is a credit decision somebody made, and a recompute must not quietly undo it."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxCreditRefreshResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxCreditRefresh
  /v1/cbx/credit/draw:
    post:
      summary: Draw against a line, receiving grant credit.
      tags:
        - CBX
      description: "The advance lands as GRANT balance: in-platform only, so it cannot be withdrawn, cannot be turned into cash and absconded with, and adds nothing to the float that could hit an order book. Restricted to wholesale channels — the limit was sized on the theory that the advance buys goods that get sold and generate the payout stream repaying it, and credit spent on a subscription does not create that stream. Refuses if the reserve has no unallocated tokens: credit is real value and cannot be advanced against tokens that do not exist. Idempotent on externalId."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxCreditDrawResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxCreditDraw
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxCreditDrawRequest"
  /v1/cbx/credit/repay:
    post:
      summary: Apply a repayment to a line.
      tags:
        - CBX
      description: "`treasury` scope, which looks backwards next to a draw needing only `spend` and is deliberate: a forged repayment writes off real money owed to us, while a forged draw hands out credit spendable only in our own marketplace. The scope follows the loss. Clamped to what is outstanding — a payout larger than the debt would otherwise push the balance negative and read as credit nobody underwrote."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxCreditRepayResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxCreditRepay
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxCreditRepayRequest"
  /v1/cbx/credit/freeze:
    post:
      summary: Stop new draws. Leaves the drawn balance on its terms.
      tags:
        - CBX
      description: The only lever over a line, and deliberately the only one. A seller who took inventory on Tuesday keeps Tuesday's terms whatever the token does on Wednesday — the only way a credit product sits next to a volatile asset without transmitting its volatility.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxCreditFreezeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxCreditFreeze
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxCreditFreezeRequest"
  /v1/cbx/wallet-payments/quote:
    post:
      summary: Build a transfer for the buyer to sign themselves.
      tags:
        - CBX
      description: "Returns an unsigned, base64 transaction. The buyer's wallet signs and submits it; we never hold a key or a delegation and never submit anything, so the platform has no authority over their tokens at any point. RESERVES NOTHING — no row, no hold, no balance change. The buyer may never sign it. The SIGNATURE is the event, so treat this as a convenience and not a commitment. `lastValidBlockHeight` is when it expires: a wallet prompt left open for a couple of minutes produces a transaction the chain will reject, and you should re-quote rather than retry. `payerCanCover` is a courtesy read of their balance so you can warn before a prompt rather than after a failure; null means we could not read it, which is not the same as \"no\". The buyer needs no prior wallet registration: a payment proves control of the tokens, which is what a connect-and-verify step would have been proving."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxWalletPaymentQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxWalletPaymentQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxWalletPaymentQuoteRequest"
  /v1/cbx/wallet-payments/confirm:
    post:
      summary: Present the signature. Returns a ship / do-not-ship decision.
      tags:
        - CBX
      description: "Everything is read from the CHAIN at finalized commitment — the amount, the payer, the destination. Nothing you assert about the payment is trusted, because a client that can state its own payment amount can state a larger one. The response `releaseDecision` is about the ORDER, not the payment: by the time we see a signature the tokens have moved and cannot be un-moved, so the only decision left is whether to hand over goods. `release` means ship. `review` means hold — a person needs to look, and that includes the case where no screening provider is configured. `refuse` means do not ship; the payment is still recorded, because we received the tokens and that fact does not go away. Idempotent twice over: on txSig globally, so one payment cannot pay two orders, and on (merchant, externalId), so one order is not paid twice. A 409 means the transaction has not finalized yet and you should retry; a 400 means it never will be claimable."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxWalletPaymentConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxWalletPaymentConfirm
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxWalletPaymentConfirmRequest"
  /v1/cbx/wallet-payments/review:
    get:
      summary: Payments held for a human — the ops queue.
      tags:
        - CBX
      description: Every row here is money taken and goods not shipped, which is not a state to leave a buyer in without it appearing on a list. `riskLevel` and `riskExposures` are the verdict as recorded at the time, not re-derived — asking a provider again next month answers a different question than the one already decided.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCbxWalletPaymentReviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCbxWalletPaymentReview
  /v1/cbx/wallet-payments/{paymentId}/resolve:
    post:
      summary: A human decides on a held payment.
      tags:
        - CBX
      description: Only moves a payment OUT of `review`, never between the other two. A refusal that could later be flipped to a release is an approval control with no teeth, and a release re-decided as a refusal after the goods shipped is a record that no longer describes what happened. The reviewer and their note are stored on the row, because this is the decision somebody will be asked to justify.
      parameters:
        - schema:
            type: string
          in: path
          name: paymentId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCbxWalletPaymentResolveResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCbxWalletPaymentResolve
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCbxWalletPaymentResolveRequest"
  /v1/ads/offsite:
    get:
      summary: Your offsite-ads opt-in and its terms.
      tags:
        - Ads
      description: "Offsite ads spend your CBX advertising budget on external networks — Google, Meta and similar — at our discretion. Your item gets promoted, and the traffic lands on Crossly. OFF unless you turn it on, and there is no path that enables it on your behalf. Media is passed through AT COST with a separate, disclosed management fee, so you can always see how much of your budget reached the auction. `minReturnBps` is a STOP, not a guarantee: below it, offsite spend auto-pauses and the rest of your budget reverts to on-platform placement. Nobody can honestly promise ad performance; what we can promise is that it stops."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAdOffsiteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAdOffsite
    put:
      summary: Turn offsite ads on or off. Yours alone to set.
      tags:
        - Ads
      description: "The toggle. Nothing else in the system sets `enabled` — no onboarding default, no bulk enable, no admin override. `maxOffsiteShareBps` caps how much of your budget may leave the platform, so opting in does not mean discovering the whole thing went to Google. `minReturnBps` sets the floor below which offsite spend auto-pauses: 20000 means we must return $2 of attributed revenue per $1 spent over the window. Toggling either way clears any existing auto-pause, so turning it back on later does not inherit a pause from months ago. When one of your ads brings a buyer who purchases somebody ELSE's item, that is reported to you as spillover so you can judge whether offsite traffic is reaching buyers who want YOUR item, and switch it off if not. It is not credited back — you bought clicks, which is how every ad market works."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateAdOffsiteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateAdOffsite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateAdOffsiteRequest"
  /v1/ads/offsite/report:
    get:
      summary: What your offsite budget bought — including the misses.
      tags:
        - Ads
      description: Spend, impressions and clicks are reported whether or not anything converted. A report showing only conversions is a report nobody can audit, and this is a feature where you handed over discretion over your money. `mediaCostCents` versus `managementFeeCents` answers "how much of my budget reached the auction" — the two are recorded separately so the answer survives. `spilloverConversions` is sales your ads produced on OTHER sellers' items. Reported so you can see whether offsite traffic is reaching buyers who want your item — a high spillover rate is the signal to turn it off. `returnBps` is attributed revenue as bps of spend; compare it with your `minReturnBps` floor.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAdOffsiteReportResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAdOffsiteReport
  /v1/ads/offsite/resume:
    post:
      summary: Clear an auto-pause and resume offsite spend.
      tags:
        - Ads
      description: Returns 409 when you are not actually paused. The pause reason is worth reading first — resuming without changing anything will usually just trip the floor again over the next window.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAdOffsiteResumeResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAdOffsiteResume
  /v1/ads/offsite/eligibility:
    get:
      summary: Whether an item can run offsite, and why not.
      tags:
        - Ads
      description: "Reasons: `not_opted_in`, `auto_paused`, `network_not_allowed`, `category_not_allowlisted`, `no_adapter`, `no_budget`. The category check is an ALLOWLIST, so an unclassified category is not eligible. That is not bureaucracy: ad networks suspend the ACCOUNT over a prohibited item, and the account is one shared resource across every merchant using this — so one listing could take offsite ads away from all of them. A blocklist would fail open on the first category nobody thought of."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetAdOffsiteEligibilityResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getAdOffsiteEligibility
      parameters:
        - name: network
          in: query
          required: true
          schema:
            type: string
            enum:
              - google
              - tiktok
              - reddit
              - meta
              - pinterest
        - name: category
          in: query
          required: true
          schema:
            type: string
  /v1/ads/offsite/campaigns:
    post:
      summary: Launch an offsite campaign for an item.
      tags:
        - Ads
      description: 'Creative is built from the structured fields you pass — title, condition as you recorded it, price, image. We generate no prose and invent no claims about condition or authenticity: an ad saying "mint" or "authenticated" when your listing says neither is a misrepresentation we authored and YOU would take the dispute for. Refuses with 403 when no ad network is wired, rather than returning a campaign that does not exist — a campaign row marked live with nothing behind it would read as spending your money when it is not.'
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateAdOffsiteCampaignResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createAdOffsiteCampaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAdOffsiteCampaignRequest"
  /v1/cosm/designer/terms:
    get:
      description: "The published terms for a design: resale, price window, secondary royalty and collaborator splits. Also reports the platform rates a designer does not control, and whether the terms are enforceable on chain — inside Crossly every rule is enforced, but a third-party marketplace honours a royalty voluntarily at best."
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: cosmeticId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmDesignerTermResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmDesignerTerm
    post:
      description: "Publish terms for a design. Never edits: every change is a new version, and a copy sold under an earlier one keeps those terms forever. Only the designer may call it. Collaborator shares are of the ROYALTY rather than the sale price and may total at most 100%, with the remainder staying with the designer; a total above 100% is refused rather than scaled down."
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmDesignerTermRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmDesignerTermResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmDesignerTerm
  /v1/cosm/designer/chain-unlock:
    post:
      description: "Burn COSM to make a design mintable on chain. Designer-only and idempotent: paying twice is impossible, and a second call returns the existing unlock without charging. The fee is DESTROYED rather than collected. Limited editions only. Once unlocked, any holder may take their own copy on chain."
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmDesignerChainUnlockRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmDesignerChainUnlockResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmDesignerChainUnlock
  /v1/cosm/designer/chain-auto-unlock:
    post:
      description: Opt a design in or out of the free chain unlock a popular limited design earns (on by default). Designer-only. Answers the popularity of the design toward the bar.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmDesignerChainAutoUnlockRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmDesignerChainAutoUnlockResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmDesignerChainAutoUnlock
  /v1/cosm/designer/submit-for-review:
    post:
      description: Submit a user-authored design for moderation. Designer-only, and refuses a design with no preview image HERE rather than at approval so the designer learns what is missing while they can still fix it. Submitting twice returns the existing pending review instead of queueing a second one — a moderator facing two reviews of one piece does not know which they are deciding. A design already on sale is refused.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmDesignerChainUnlockRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmDesignerSubmitForReviewResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmDesignerSubmitForReview
  /v1/cosm/designer/materialise:
    post:
      description: "Lock a copy and return an UNSIGNED Metaplex Core mint for the holder to sign. One call: it resolves the designer royalty, locks the copy, publishes immutable content-addressed metadata and builds the transaction — so a lock is never taken without a transaction to go with it, and a failure after the lock releases it. Does NOT void the copy; call confirm once the chain reaches FINALIZED commitment. Every royalty recipient needs a connected wallet first, and the designer must have unlocked the design."
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmDesignerMaterialiseRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmDesignerMaterialiseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmDesignerMaterialise
  /v1/cosm/designer/materialise/confirm:
    post:
      description: Record a confirmed mint and void the in-world copy, in one transaction. The caller MUST have verified the transaction at finalized commitment first — an NFT recorded against a transaction that never landed cannot be recalled, and the copy it voided is gone. Idempotent on an already-confirmed request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmDesignerMaterialiseConfirmRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmDesignerMaterialiseConfirmResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmDesignerMaterialiseConfirm
  /v1/cosm/designer/materialise/release:
    post:
      description: Release a mint lock that was never signed. The ordinary outcome of somebody closing a wallet prompt, and it leaves the copy exactly as it was. Refuses a request that has already minted, because releasing one would unlock a copy that is on chain.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmDesignerMaterialiseReleaseRequest"
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateWorldJobShiftReleaseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmDesignerMaterialiseRelease
  /v1/cosm/designer/copy-state:
    get:
      description: "Where a copy currently is: held (in-world, wearable, listable for COSM), minting (locked while a mint is in flight) or materialised (an NFT in the holder wallet). A copy is in exactly one of these, never two."
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: ownershipId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmDesignerCopyStateResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmDesignerCopyState
  /v1/cosm/designer/earnings:
    get:
      description: What a designer has earned, in both denominations. COSM royalties come from COSM-priced sales; cash earnings come from cash-priced sales and are funded by the buyer payment itself. The two are never converted into one another, and COSM is never cashed out.
      parameters:
        - schema:
            type: string
            format: uuid
          in: query
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmDesignerEarningResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmDesignerEarning
  /v1/cosm/cosmetics/{id}/buy-cbx:
    post:
      summary: Buy a dollar-priced cosmetic, paying in CBX.
      tags:
        - COSM
      description: The SKU's `priceCents` is paid from the subject's EARNED CBX at spot. `requestKey` (8-64 chars, one per purchase attempt) makes a retry the same purchase. If the grant fails after payment — sold out, already held — the CBX spend is reversed. Refuses an earned (COSM) or stake-exclusive SKU.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmCosmeticBuyCbxResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmCosmeticBuyCbx
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmCosmeticBuyCbxRequest"
  /v1/cosm/cosmetics/{id}/claim:
    post:
      summary: Claim a stake-exclusive cosmetic once tenure qualifies.
      tags:
        - COSM
      description: "Bound forever, and purchasable by nobody at any price in any currency. What people buy in cosmetics is STATUS, and anything purchasable is by definition available to anyone with money — an item money cannot buy is strictly rarer than an expensive one. Tenure is the LONGEST CONTINUOUS active stake, not time since first staking: somebody who staked, unstaked and staked again has not held continuously, and that is the whole claim the item makes. A cooling stake does not count, because the commitment is already being withdrawn. Returns `granted: false` with the tenure and the requirement when it is short — that is the normal answer, not an error. Idempotent: claiming twice while the first copy is held is a no-op."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmCosmeticClaimResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmCosmeticClaim
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubjectIdRequest"
  /v1/cosm/stake-tenure:
    get:
      summary: How long a subject has held a stake continuously, in days.
      tags:
        - COSM
      description: The figure every stake-exclusive grant is decided on, readable on its own so a UI can show progress rather than only reporting failure at claim time. LONGEST CONTINUOUS active stake — a gap resets it, and a cooling stake does not count.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmStakeTenureResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmStakeTenure
      parameters:
        - name: subjectId
          in: query
          required: true
          schema:
            type: string
  /v1/cosm/cosmetics/{id}/unlock:
    put:
      summary: Set (or clear) what a cosmetic unlocks spatially.
      tags:
        - COSM
      description: "A cosmetic can gate a spatial control — a theme, a prop, a room feature — by naming a key/value pair the scene reads. Both or neither: a key with no value would claim EVERY value of that key and silently gate the whole control, so passing one without the other clears both. Pass two nulls to remove the gate entirely, which makes the control free for everyone. Treasury scope — this changes what every holder can reach, not one subject."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateCosmCosmeticUnlockResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateCosmCosmeticUnlock
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateCosmCosmeticUnlockRequest"
  /v1/cosm/handles:
    delete:
      summary: Release a handle. NOTHING IS REFUNDED.
      tags:
        - COSM
      description: "The COSM paid for a handle was BURNED, so there is nothing to give back — refunding would mean minting, which no support flow should be able to do. Say that in the UI before calling this; a user who expects a refund will read silence as a bug. The handle returns to the pool and can be claimed by anyone, including somebody else, so releasing is not a way to park one. Returns `released: false` when the subject held none."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteCosmHandleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteCosmHandle
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeleteCosmHandleRequest"
    post:
      summary: Claim a vanity handle, burning COSM.
      tags:
        - COSM
      description: "One live handle per subject, enforced by a unique index. Collecting handles is a land grab that makes the good names unavailable, not a sink. A handle is released rather than deleted when given up, so the record of who held it survives — a handle that silently changed owner is the same impersonation problem from the other direction. There is no refund on release: the COSM was burned, and refunding would mean minting."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmHandleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmHandle
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmHandleRequest"
  /v1/cosm/employee/fee-quote:
    get:
      summary: What one shop-employee conversation will cost, in COSM.
      tags:
        - COSM
      description: A quote, priced with the SAME functions the charge uses, so the figure shown is the figure taken. Half of the fee BURNS and half moves to the market pool as a tax; the two always sum to the total exactly, because the split is applied in cents and the remainder is handed to the pool rather than derived from the complementary basis points. A pure burn would make the employee a deflation lever and nothing else; a pure transfer would make it a tax with no sink. Reads nothing and charges nothing — safe to call on every keystroke.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmEmployeeFeeQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmEmployeeFeeQuote
      parameters:
        - name: totalCents
          in: query
          required: true
          schema:
            type: number
  /v1/cosm/balance:
    get:
      summary: A subject's COSM balance and the earn rate in force.
      tags:
        - COSM
      description: "Balances are STRINGS of base units, and COSM has six decimals — divide by 1e6 to display. They are strings because a JSON number loses precision past 2^53, which is only about nine billion COSM: it would work in testing and corrupt balances at scale. `taper` is the emission step currently in force, which depends on lifetime supply rather than on anything about this subject — two sellers earning the same week always see the same taper."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmBalanceResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmBalance
      parameters:
        - name: subjectId
          in: query
          required: true
          schema:
            type: string
  /v1/cosm/supply:
    get:
      summary: Total supply — minted, burned, circulating.
      tags:
        - COSM
      description: "The one question a holder of an emitted currency cannot answer for themselves. Every figure is derived from the ledger rather than a cached counter, so it cannot drift from the rows it summarises. `reconciles` is the check you can run against us: minted minus burned minus reversed must equal the sum of every balance, and the auction debit/credit pair must cancel exactly. False means a bug on our side, not stale data. Once COSM is transferable the on-chain `total_minted` emitted by `cosm-minter` is the authoritative figure and this becomes the convenient one."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmSupplyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmSupply
  /v1/cosm/supply/epochs:
    get:
      summary: Per-epoch emission against the backstop.
      tags:
        - COSM
      description: "`demanded` is what activity would have earned at full rate; `emitted` is what was actually credited. Both are reported because storing only the second would make a refusal indistinguishable from a quiet rate cut. `ceilingBound` should be rare — the governor is the emission rate itself, which is a share of transaction value, so the ceiling binding means an anomaly rather than a busy week."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmSupplyEpochsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmSupplyEpochs
  /v1/cosm/supply/schedule:
    get:
      summary: The published emission taper. Fixed years ahead.
      tags:
        - COSM
      description: "Indexed on CUMULATIVE MINTED, which is monotonic and which nothing anybody does can move backwards. Net circulating supply would be self-correcting against a healthy sink and would also be reflexive — burning to hold the taper back would become a strategy. A schedule nobody can game beats a clever loop. The final step is a floor, not zero: a terminating schedule is a loyalty programme with an expiry date, where the last cohort to join earns nothing."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmSupplyScheduleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmSupplySchedule
  /v1/cosm/cosmetics:
    get:
      summary: The cosmetics catalogue.
      tags:
        - COSM
      description: "Tiers are DISJOINT and no SKU carries two prices: `premium` is cash only, `earned` is COSM only, `stake_exclusive` cannot be bought at any price in any currency. That is not a presentation choice — pricing one SKU in both currencies would expose a fixed COSM price to a floating market price, which is free money in the gap and hands limited editions to whoever automates it. `priceCents` is set only on premium, `priceBaseUnits` only on earned."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmCosmeticsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmCosmetics
      parameters:
        - name: tier
          in: query
          required: false
          schema:
            type: string
            enum:
              - premium
              - earned
              - stake_exclusive
        - name: slot
          in: query
          required: false
          schema:
            type: string
  /v1/cosm/cosmetics/{id}/buy:
    post:
      summary: Buy an earned-tier cosmetic. The COSM is DESTROYED.
      tags:
        - COSM
      description: "Not credited to a treasury. Keeping it would make cosmetics a round trip rather than a sink, and the epoch backstop is computed FROM the burn — recycling would quietly uncouple emission from consumption. Refuses a premium or stake-exclusive SKU: those are not sold for COSM. Also counts toward any open community burn goal."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmCosmeticBuyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmCosmeticBuy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubjectIdRequest"
  /v1/cosm/inventory:
    get:
      summary: Cosmetics a subject holds.
      tags:
        - COSM
      description: "`bound` is derived from how it was acquired and is enforced by a database CHECK, not set by hand: a stake-exclusive grant and a make-good are bound forever, everything else trades. Bound items cannot be listed on the auction house or used as a fusion input. `editionNumber` identifies the ITEM and travels with it through a sale, because a reissued #7 would falsify every scarcity claim a market has priced."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmInventoryResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmInventory
      parameters:
        - name: subjectId
          in: query
          required: true
          schema:
            type: string
  /v1/cosm/unlocks:
    get:
      summary: Which spatial cosmetic values this subject may apply.
      tags:
        - COSM
      description: "Owning a cosmetic is what permits setting the room value it claims. Values no SKU claims — the stock walls, floors and themes — are free and are not listed here. Paint a picker from this rather than discovering a refusal on submit: the redecorate endpoint returns the locked items by name so a swatch can be greyed out instead."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmUnlocksResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmUnlocks
      parameters:
        - name: subjectId
          in: query
          required: true
          schema:
            type: string
  /v1/cosm/auction:
    get:
      summary: Open auction listings, priced in COSM.
      tags:
        - COSM
      description: "A COSM-denominated peer market: buyers pay COSM, sellers receive COSM, and the 8% fee BURNS. It is not a cash market — a cash resale market for COSM-bought items would reintroduce the arbitrage between a fixed COSM price and a floating market price. `feeBaseUnits` was quoted when the listing was created and is held, because a fee recomputed at sale time is a quote nobody can rely on."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmAuctionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmAuction
      parameters:
        - name: cosmeticId
          in: query
          required: false
          schema:
            type: string
    post:
      summary: List an owned cosmetic for COSM.
      tags:
        - COSM
      description: Refuses a BOUND item with 403. The bound flag is CHECK-derived from how the item was acquired, so the refusal cannot be bypassed by writing a different flag. One open listing per item, enforced by a unique index — otherwise the same cosmetic could be listed twice and sold to two buyers. `askBaseUnits` is a STRING of base units and must exceed 1.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmAuctionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmAuction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmAuctionRequest"
  /v1/cosm/auction/{id}/buy:
    post:
      summary: Buy an open listing.
      tags:
        - COSM
      description: "Three ledger rows: the buyer is debited the ask, the seller is credited it, and the fee burns against the seller. Net supply falls by exactly the fee. The listing is claimed out of `open` BEFORE any COSM moves, so the loser of a race is refused rather than debited. Buying your own listing is refused by a database CHECK: it would burn the fee for nothing and is the obvious way to fake a market price."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmFusionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmAuctionBuy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubjectIdRequest"
  /v1/cosm/fusion/{recipeId}:
    post:
      summary: Fuse two cosmetics plus COSM into a rarer one.
      tags:
        - COSM
      description: "The deepest sink available: it destroys on three axes at once — both input items AND the COSM cost — while producing something whose scarcity is real, because a recipe is the only route to it. Inputs must be owned, live, UNBOUND and flagged `fusable`. Stake-exclusive items can never be consumed: there is no way to reissue one without falsifying its scarcity, so the loss would be unrecoverable. An open listing on a consumed input is cancelled, since the owner has just chosen fusion over selling."
      parameters:
        - schema:
            type: string
          in: path
          name: recipeId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmFusionResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmFusion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubjectIdRequest"
  /v1/cosm/auction/quote:
    get:
      summary: What an auction listing would cost in fees.
      tags:
        - COSM
      description: Quote before committing. The fee is 8% of the ask, rounded UP so a small listing can never pay nothing — a zero-fee listing would be a free transfer channel, which is the one thing the design forbids outright. The seller always nets something, and a database CHECK asserts the same bound.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmAuctionQuoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmAuctionQuote
  /v1/cosm/handles/{handle}:
    get:
      summary: Is this handle available, and what does it cost?
      tags:
        - COSM
      description: "Reasons for unavailability: `invalid_shape`, `reserved`, `taken`. Handles are lowercased and constrained to a narrow character class, because anything that can be made to LOOK like another handle is an impersonation vector rather than an expressive option. Priced by length: short names are scarcer. Uniqueness is platform-wide, not per merchant — it is a URL namespace."
      parameters:
        - schema:
            type: string
          in: path
          name: handle
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmHandleResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmHandle
  /v1/cosm/goals:
    get:
      summary: Community burn goal progress.
      tags:
        - COSM
      description: "Aggregate burn crossing a threshold unlocks a cosmetic for everyone who contributed — scoped to contributors, because a goal that rewarded non-participants makes contributing irrational. Only burns inside the window count; a goal counting all history would complete the moment it was created. `progressBps` is capped at 10000: the total is snapshotted on completion so a bar never reads over 100%."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmGoalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmGoals
  /v1/cosm/withdrawals:
    get:
      summary: Withdrawal history, and whether withdrawals are open at all.
      tags:
        - COSM
      description: "COSM does not leave the platform yet. `open` is false and `outstanding` lists the preconditions still to be met: an audited minter, a securities opinion, a money-transmission review, and the emission invariant proven under real volume. None of them has a date, so do not present one. The endpoint exists so a client can show that state honestly rather than hiding the feature and surprising somebody later."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmWithdrawalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmWithdrawals
      parameters:
        - name: subjectId
          in: query
          required: true
          schema:
            type: string
    post:
      summary: Request a withdrawal to your own proven wallet. REFUSES today.
      tags:
        - COSM
      description: "Returns 409 with the outstanding preconditions until COSM is transferable. Built and switched off deliberately: a withdrawal rail written in a hurry the week it is cleared is the one that ships with mistakes. THE DESTINATION IS NOT A PARAMETER. It resolves to this subject’s own VERIFIED connected wallet, because a per-request destination is how a compromised session drains a balance to somebody else’s address. Idempotent on `externalId`. The debit lands before anything is minted, so a crash leaves a recoverable state rather than tokens in a wallet with no debit behind them."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmWithdrawalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmWithdrawal
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmWithdrawalRequest"
  /v1/cosm/attestations:
    get:
      summary: Published Merkle commitments. What you can check instead of trusting us.
      tags:
        - COSM
      description: Two claims become verifiable here. `cosm_emission` commits an epoch’s activity claims, so anybody can confirm emission never exceeded the sum of committed real activity — and every input is in the leaf, so the payout arithmetic can be rechecked, not just membership. `cbx_liability` commits every balance, which is the half of proof-of-reserve usually hand-waved. READ `anchoredAt` BEFORE RELYING ON A ROOT. Null means the commitment is computed and stored but NOT yet on chain — which makes it a row we could edit, so it proves nothing to somebody who does not already trust us. `totalBaseUnits` lets you check the sum without rebuilding the tree.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmAttestationsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmAttestations
      parameters:
        - name: kind
          in: query
          required: false
          schema:
            type: string
            enum:
              - cosm_emission
              - cbx_liability
        - name: limit
          in: query
          required: false
          schema:
            type: number
  /v1/cosm/attestations/{id}/proof:
    get:
      summary: A Merkle inclusion proof for one subject, against a published root.
      tags:
        - COSM
      description: "Returns `canonicalLeaf`, a `proof` of sibling hashes, and the `root`. VERIFY IT YOURSELF rather than trusting `verified`: hash the leaf with a 0x00 prefix, then fold each proof step with a 0x01 prefix, ordering the two hashes lexicographically at each step, and compare to the root. That is sixteen lines in any language and needs nothing from us. The prefixes are not decoration — without them an internal node is indistinguishable from a leaf and membership of uncommitted data can be forged. Returns 409 if the underlying data no longer reproduces the published root. That is a disclosure event, not a retryable error: the published root stands and a proof against a rebuilt one would be worthless."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - name: subjectId
          in: query
          required: true
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetCosmAttestationProofResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getCosmAttestationProof
  /v1/cosm/attestations/{id}/anchor:
    post:
      summary: Record a signature for a commitment anchored BY HAND.
      tags:
        - COSM
      description: An ops tool, not a trust boundary. Automated anchoring needs an RPC and a dedicated key; until those are wired, `attestationMemo()` emits exactly the bytes to publish, and this records the resulting signature so the verifiable story is available before the automation is. IT VERIFIES NOTHING beyond the signature’s shape — there is no RPC here to confirm the transaction exists or that its memo matches. A wrong signature recorded here produces a commitment that LOOKS anchored and is not, which is worse than unanchored. Refuses to overwrite an existing anchor.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateCosmAttestationAnchorResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createCosmAttestationAnchor
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateCosmAttestationAnchorRequest"
  /v1/cosm/pegs:
    get:
      summary: CBX-pegged listings and why each last moved.
      tags:
        - COSM
      description: "A peg holds a CBX ask at a dollar target. `lastReason` says what the last cycle did: repriced, no_rate, below_threshold, clamped_floor, clamped_ceiling or clamped_change. A seller asking why their price has not moved deserves an answer that is not “it should have”. The repricer reads a 24h MINIMUM rate, never spot — tracking spot would let somebody pump CBX, watch the ask drop, and pay with cheaply bought tokens."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCosmPegsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listCosmPegs
      parameters:
        - name: sellerUserId
          in: query
          required: true
          schema:
            type: string
    put:
      summary: Set or update a CBX price peg. OFF unless you turn it on.
      tags:
        - COSM
      description: "Holds a CBX ask at a dollar target, repriced hourly against a 24h MINIMUM rate. Three bounds, each for a different failure: `maxChangeBps` stops one bad reading posting an absurd ask (it converges over cycles instead), `floorBaseUnits` and `ceilingBaseUnits` are YOUR limits so a sustained real move never posts a price you did not consider, and `minChangeBps` stops the ask being rewritten for a fraction of a percent. Accepting CBX means holding CBX. The peg protects the dollar value of the ASK; it cannot protect the value of tokens once you have them."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateCosmPegResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: updateCosmPeg
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateCosmPegRequest"
  /v1/cosm/pegs/{listingId}:
    delete:
      summary: Stop repricing. The current ask stays where it is.
      tags:
        - COSM
      description: Disabling means “stop moving it”, not “revert to something the buyer never saw”. The terms are kept, so re-enabling later does not mean re-entering them.
      parameters:
        - schema:
            type: string
          in: path
          name: listingId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteCosmPegResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteCosmPeg
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeleteCosmPegRequest"
  /v1/dao/proposals:
    get:
      summary: The proposal queue.
      tags:
        - DAO
      description: Staked CBX decides what the events pool funds. Voting power is size x tenure — the same weighting the earn multiplier uses — and it is SNAPSHOTTED when a proposal opens, so staking after seeing one grants no vote on it. `totalVotingPower` is the frozen quorum denominator; recomputing it would let somebody move the bar after votes were cast. Amounts are strings of base units.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDaoProposalsResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: listDaoProposals
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - expired
              - draft
              - open
              - rejected
              - passed
              - vetoed
              - executed
        - name: limit
          in: query
          required: false
          schema:
            type: number
    post:
      summary: Raise a proposal. Starts as a draft.
      tags:
        - DAO
      description: "Requires staked CBX above `minProposeWeight`, and one in-flight proposal at a time. The limits bound a denial of ATTENTION rather than of service — attention is the resource a DAO actually runs on. `beneficiaryKind` is a CLOSED set and there is deliberately no stakers, holders, airdrop or distribution option. A proposal whose beneficiaries are the voters would be a self-payment, and a distribution decided by its own recipients is a dividend whatever it is called. The DAO decides WHAT to fund, never WHO gets paid. A `policy` proposal requests no funds and must omit the amount; every other kind must supply one. proposalKind (default spend) raises a Crossly Funding pool proposal instead: pool_allocation (beneficiary funding_pool, an amount), pool_parameter, spend_category or supplier_allowlist (beneficiary policy, with params). A passed pool proposal is applied by the operator; it never pays the voters."
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDaoProposalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDaoProposal
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDaoProposalRequest"
  /v1/dao/proposals/{id}/open:
    post:
      summary: Put your draft to a vote. Snapshots voting power.
      tags:
        - DAO
      description: ONLY THE PROPOSER may open their own draft. Opening puts something to a binding vote in somebody's name, and authorship and that decision both belong to them. Opening writes a per-subject voting-power snapshot and freezes the quorum denominator. Nothing recomputes either afterwards, which is what stops acquire-vote-sell. Refuses when nobody holds enough staked CBX to vote — opening then would guarantee a failed quorum, waste a week and read as the feature being broken.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDaoProposalOpenResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDaoProposalOpen
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDaoProposalOpenRequest"
  /v1/dao/proposals/{id}:
    delete:
      summary: Withdraw your own DRAFT.
      tags:
        - DAO
      description: "Drafts only. Withdrawing an OPEN proposal would discard votes already cast, which is the proposer overruling the electorate — the thing the whole mechanism exists to prevent. An open proposal runs its window and gets a result. This exists so the one-in-flight limit is not a trap: without it a typo would lock somebody out of governance until the draft expired."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteDaoProposalResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: deleteDaoProposal
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubjectIdRequest"
  /v1/dao/proposals/{id}/vote:
    post:
      summary: Cast or change a vote while the window is open.
      tags:
        - DAO
      description: "Weight comes from the snapshot taken when the proposal opened, so staking afterwards grants no vote on it. Changing your mind is an UPDATE, not a second vote — a unique index makes double-counting impossible even if this logic were wrong. ABSTAIN counts toward turnout and not toward approval, which is the whole reason to offer it: it lets you help a proposal clear quorum without taking a side."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDaoProposalVoteResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDaoProposalVote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDaoProposalVoteRequest"
  /v1/dao/subjects/{subjectId}/participation:
    get:
      summary: "One holder's participation: votes, voting power over time, share."
      tags:
        - DAO
      description: Every vote the subject cast (with the frozen weight it carried), the voting power snapshotted for it at each proposal open (oldest first) with that proposal total, and the latest snapshot share of the total in bps. Amounts are strings of base units. Read-only; the subject must belong to the calling merchant.
      parameters:
        - schema:
            type: string
          in: path
          name: subjectId
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDaoSubjectParticipationResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDaoSubjectParticipation
  /v1/dao/proposals/{id}/tally:
    get:
      summary: The live count.
      tags:
        - DAO
      description: '`turnoutBps` is cast power over the frozen total, and counts abstentions. `approvalBps` is FOR over decisive votes, and does not. A proposal that misses quorum reports `expired` rather than `rejected` when finalised — "nobody turned up" and "the room said no" are different outcomes and a proposer deserves to know which happened.'
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GetDaoProposalTallyResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: getDaoProposalTally
  /v1/dao/proposals/{id}/veto:
    post:
      summary: Operator block. There is no matching power to PASS.
      tags:
        - DAO
      description: "DELIBERATELY ASYMMETRIC. A veto exists for the illegal and the ruinous — funding something unlawful, or emptying the pool in a week. A power to pass would make every vote advisory theatre, because the outcome would always be whatever the operator preferred. An operator who can only say no cannot manufacture an outcome. The reason is MANDATORY and stored: an unexplained veto is indistinguishable from disliking the result, which is exactly what would destroy confidence in the mechanism. Expect it to be read."
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDaoProposalVetoResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDaoProposalVeto
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDaoProposalVetoRequest"
  /v1/dao/proposals/{id}/finalise:
    post:
      summary: Close a proposal whose window has passed and record the outcome.
      tags:
        - DAO
      description: Normally unnecessary — the hourly sweep does it. Exposed so a result can be published immediately after a window closes rather than waiting for a tick. FINALISING RECORDS AN OUTCOME AND NOTHING ELSE. A passed proposal sets a status; disbursing still requires a campaign with a preview and a human approval, and there is no endpoint here that can move value.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateDaoProposalFinaliseResponse"
        "400":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      operationId: createDaoProposalFinalise
servers:
  - url: https://crossly.net/api
security:
  - PersonalAccessToken: []
